xorgproto-2023.2/0000755000175000017500000000000014443010036010641 500000000000000xorgproto-2023.2/fontcacheproto.pc.in0000644000175000017500000000021714443010026014527 00000000000000prefix=@prefix@ includedir=@includedir@ Name: FontcacheProto Description: Fontcache extension headers Version: 0.1.3 Cflags: -I${includedir} xorgproto-2023.2/randrproto.pc.in0000644000175000017500000000020714443010026013702 00000000000000prefix=@prefix@ includedir=@includedir@ Name: RandrProto Description: Randr extension headers Version: 1.6.0 Cflags: -I${includedir} xorgproto-2023.2/config.guess0000755000175000017500000014120514443010030013076 00000000000000#!/usr/bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-05-25' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xorgproto-2023.2/xf86driproto.pc.in0000644000175000017500000000022314443010026014064 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86DRIProto Description: XF86DRI extension headers Version: 2.1.1 Cflags: -I${includedir}/X11/dri xorgproto-2023.2/specs/0000755000175000017500000000000014443010036011756 500000000000000xorgproto-2023.2/specs/xextproto/0000755000175000017500000000000014443010036014032 500000000000000xorgproto-2023.2/specs/xextproto/tog-cup.xml0000644000175000017500000004114414443010026016055 00000000000000 %defs; ]> Colormap Utilization Policy and Extension X Project Team Standard X Version 11, Release &fullrelvers; Version 1.0 Kaleb S. Keithley The Open Group 1986-1997The Open Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to use the Software without restriction, including, without limitation, the rights to copy, modify, merge, publish, distribute and sublicense the Software, to make, have made, license and distribute derivative works thereof, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and the following permission notice shall be included in all copies 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 NON- INFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the use or other dealings in this Software without prior written authorization from The Open Group. X Window System is a trademark of The Open Group. Overview This extension has three purposes: a) to provide mechanism for a special application (a colormap manager) to discover any special colormap requirements, e.g. the colormap entries that are nominally reserved for desktop colors in the MS-Windows environment and initialize the default colormap so that it can be more easily shared; and b) to encourage colormap sharing and reduce colormap flashing on low-end 8-bit frame buffers by providing a policy for sharing; and c) when colormaps aren't shared, define a behavior in the X server color allocation scheme to reduce colormap flashing. To encourage colormap sharing and accommodate special colormap requirements two new protocols are defined: the first provides a way to query the server for a list of reserved colormap entries, and the second is a way to initialize read-only (shareable) colormap entries at specific locations in a colormap. To minimize colormap flashing when the root window's default visual is one of GrayScale, PseudoColor, or DirectColor, and a private colormap for the default visual is being used, a minor (but compatible) change to the server implementation of the AllocColor and AllocNamedColor requests is required. Where the core protocol says nothing about the pixel values returned, when this extension is in effect, the AllocColor and AllocNamedColor requests will first look for a matching color in the default colormap, and, if a match is found and the same cell in the private colormap has not already been allocated, the color will be allocated in the private colormap at the same locaton as in the default colormap (instead of in the first available location.) Requests QueryVersion client_major_version: CARD16 client_minor_version: CARD16 => server_major_version: CARD16 server_minor_version: CARD16 If supplied, the client_major_version and client_minor_version indicate what version of the protocol the client wants the server to implement. The server version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server_major_version and the server_minor_version are a mechanism to support future revisions of the TOG-CUP protocol that may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small upward-compatible changes. Servers that support the protocol defined in this document will return a server_major_version of one (1), and a server_minor_version of zero (0). GetReservedColormapEntries screen: CARD32 => entries: LISTofCOLORITEM This request returns a list of colormap entries (pixels) that are reserved by the system, e.g. MS-Windows reserved desktop colors. This list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. The do-red, do-green, and do-blue elements of the COLORITEMs are unused in this reply. Rationale: There are colormap entries (pixels) that, e.g., MS-Windows desktop reserves as desktop colors, that should not be altered. If they are altered then X programs will cause colormap flashing between X and MS-Windows applications running/displaying on the same desktop. StoreColors cmap: COLORMAP items: LISTofCOLORITEM => items: LISTofCOLORITEM This request changes the colormap entries of the specified pixels. The colormap entries are allocated as if by an AllocColor request. The do-red, do-green, and do-blue elements of the COLORITEMs are unused in this request. A boolean alloc-ok element (a bit) is returned indicating whether the particular pixel was successfully allocated or not. If successfully allocated the RGB and pixel are returned. A Value error is generated if a pixel is not a valid index into cmap. A BadMatch error is generated if if cmap does not belong to a GrayScale, PseudoColor, or DirectColor visual. Events and Errors No new events or errors are defined by this extension. Changes to existing protocol. None. Encoding The name of this extension is "TOG-CUP". The conventions used here are the same as those for the core X11 Protocol Encoding. QueryVersion 1 CARD8 opcode 1 0 TOG-CUP opcode 2 2 request length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_number 20 unused GetReservedColormapEntries 1 CARD8 opcode 1 1 TOG-CUP opcode 2 2 request length 4 CARD32 screen => 1 1 reply 1 unused 2 CARD16 sequence number 4 3n length 24 unused 12n LISTofCOLORITEM items StoreColors 1 CARD8 opcode 1 2 TOG-CUP opcode 2 2+3n request length 4 COLORMAP cmap 12n LISTofCOLORITEM items => 1 1 reply 1 unused 2 CARD16 sequence number 4 3n length 24 unused 12n LISTofCOLORITEM items (The definition of COLORITEM here is only for the purpose of defining the additional alloc-ok member in the CUPStoreColors reply.) COLORITEM 4 CARD32 pixel 2 CARD16 red 2 CARD16 green 2 CARD16 blue 1 alloc-ok #x07 unused #x08 alloc-ok (1 is True, 0 is False) #xF0 unused 1 unused C Language Binding The C functions provide direct access to the protocol and add no additional semantics. For complete details on the effects of these functions, refer to the appropriate protocol request, which can be derived by deleting XCup at the start of the function. All functions that have return type Status will return nonzero for success and zero for failure. The include file for this extension is <X11/extensions/Xcup.h>. Status XCupQueryVersion Display* display int* major_version_return int* minor_version_return display Specifies the connection to the X server. major_version_return Returns the major version supported by the server. minor_version_return Returns the minor version supported by the server. XCupQueryVersions sets major_version_return and minor_version_return to the major and minor TOG-CUP protocol version supported by the server. If the TOG-CUP library is compatible with the version returned by the server, it returns nonzero. If dpy does not support the TOG-CUP extension, or if there was an error during communication with the server, or if the server and library protocol versions are incompatible, it returns zero. No other XCup functions may be called before this function. If a client violates this rule, the effects of all subsequent XCup calls that it makes are undefined. To get the list of reserved colormap entries, use XCupGetReservedColormapEntries. Status XCupGetReservedColormapEntries Display* display int screen XColor** colors_out int* ncolors display Specifies the connection to the X server. colors_out Returns the values reserved by the server. ncolors Returns the number of items in colors_out. The XCupGetReservedColormapEntries function gets system specific colormap entries. E.g. the MS-Windows desktop uses N colormap entries at the beginning (0..N) and end (256-N..255) of the colormap. Use XFree to free colors_out. To allocate one or more read-only color cells with RGB values, use XCupStoreColors. Status XCupStoreColors Display* display Colormap colormap XColor* colors_in_out int ncolors display Specifies the connection to the X server. colormap Specifies the colormap. colors_in_out Specifies and returns the values actually used in the colormap. ncolors Specifies the number of items in colors_in_out. The XCupStoreColors function changes the colormap entries of the pixel values specified in the pixel members of the XColor structures. The colormap entries are allocated as if an AllocColor had been used instead, i.e. the colors are read-only (shareable). XCupStoreColors returns the number of colors that were successfully allocated in the colormap. Using the TOG-CUP extension and Colormap Utilization Policy The X server preallocates any hardware or desktop special colors in the default colormap; e.g. UNIX X servers preallocate Black and White pixels. PC X servers should also preallocate the MS-Windows desktop colors. (Note to implementors: in the Sample Implementation special colors are allocated in the default colormap in cfbCreateDefColormap for dumb memory framebuffers.) To minimize colormap flash an application which installs its own private colormap should query the special colors by calling XCupGetReservedColormapEntries, and can then store those entries (in the proper location) in its private colormap using XCupStoreColors. Applications which allocate many colors in a screen's default colormap, e.g. a color-cube or a gray-ramp, should allocate them with XCupStoreColors. By using XCupStoreColors the colors will be allocated shareable (read-only) and any other application which allocates the same color will share that color cell. xorgproto-2023.2/specs/xextproto/shm.xml0000644000175000017500000004145414443010026015272 00000000000000 %defs; ]> MIT-SHM(The MIT Shared Memory Extension) How the shared memory extension works JonathanCorbet National Center for Atmospheric Research Atmospheric Technology Division corbet@ncar.ucar.edu KeithPackard MIT X Consortium X Version 11, Release &fullrelvers; Version 1.0 1991X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The OpenGroup. This document briefly describes how to use the MIT-SHM shared memory extension. I have tried to make it accurate, but it would not surprise me if some errors remained. If you find anything wrong, do let me know and I will incorporate the corrections. Meanwhile, please take this document "as is" (eman improvement over what was there before, but certainly not the definitive word.) REQUIREMENTS The shared memory extension is provided only by some X servers. To find out if your server supports the extension, use xdpyinfo(1). In particular, to be able to use this extension, your system must provide the SYSV shared memory primitives. There is not an mmap-based version of this extension. To use shared memory on Sun systems, you must have built your kernel with SYSV shared memory enabled -- which is not the default configuration. Additionally, the shared memory maximum size will need to be increased on both Sun and Digital systems; the defaults are far too small for any useful work. WHAT IS PROVIDED The basic capability provided is that of shared memory XImages. This is essentially a version of the ximage interface where the actual image data is stored in a shared memory segment, and thus need not be moved through the Xlib interprocess communication channel. For large images, use of this facility can result in some real performance increases. Additionally, some implementations provided shared memory pixmaps. These are 2 dimensional arrays of pixels in a format specified by the X server, where the image data is stored in the shared memory segment. Through use of shared memory pixmaps, it is possible to change the contents of these pixmaps without using any Xlib routines at all. Shared memory pixmaps can only be supported when the X server can use regular virtual memory for pixmap data; if the pixmaps are stored in some magic graphics hardware, your application will not be able to share them with the server. Xdpyinfo(1) doesn't print this particular nugget of information. HOW TO USE THE SHARED MEMORY EXTENSION Code which uses the shared memory extension must include a number of header files: #include <X11/Xlib.h> /* of course */ #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> Of course, if the system you are building on does not support shared memory, the file XShm.h may not be present. You may want to make liberal use of #ifdefs. Any code which uses the shared memory extension should first check to see that the server provides the extension. You could always be running over the net, or in some other environment where the extension will not work. To perform this check, call either Status XShmQueryExtension Display *display or Status XShmQueryVersion Display *display int *major int *minor Bool *pixmaps Where "display" is, of course, the display on which you are running. If the shared memory extension may be used, the return value from either function will be True; otherwise your program should operate using conventional Xlib calls. When the extension is available, \fCXShmQueryVersion\fP also returns "major" and "minor" which are the version numbers of the extension implementation, and "pixmaps" which is True iff shared memory pixmaps are supported. USE OF SHARED MEMORY XIMAGES The basic sequence of operations for shared memory XImages is as follows: Create the shared memory XImage structure Create a shared memory segment to store the image data Inform the server about the shared memory segment Use the shared memory XImage, much like a normal one. To create a shared memory XImage, use: XImage *XShmCreateImage Display *display Visual *visual unsigned int depth int format char *data XShmSegmentInfo *shminfo unsigned int width unsigned int height Most of the arguments are the same as for XCreateImage; I will not go through them here. Note, however, that there are no "offset", "bitmap_pad", or "bytes_per_line" arguments. These quantities will be defined by the server itself, and your code needs to abide by them. Unless you have already allocated the shared memory segment (see below), you should pass in NULL for the "data" pointer. There is one additional argument: "shminfo", which is a pointer to a structure of type XShmSegmentInfo. You must allocate one of these structures such that it will have a lifetime at least as long as that of the shared memory XImage. There is no need to initialize this structure before the call to XShmCreateImage. The return value, if all goes well, will be an XImage structure, which you can use for the subsequent steps. The next step is to create the shared memory segment. This is best done after the creation of the XImage, since you need to make use of the information in that XImage to know how much memory to allocate. To create the segment, you need a call like: shminfo.shmid = shmget (IPC_PRIVATE, image->bytes_per_line * image->height, IPC_CREAT|0777); (assuming that you have called your shared memory XImage "image"). You should, of course, follow the Rules and do error checking on all of these system calls. Also, be sure to use the bytes_per_line field, not the width you used to create the XImage as they may well be different. Note that the shared memory ID returned by the system is stored in the shminfo structure. The server will need that ID to attach itself to the segment. Also note that, on many systems for security reasons, the X server will only accept to attach to the shared memory segment if it's readable and writeable by "other". On systems where the X server is able to determine the uid of the X client over a local transport, the shared memory segment can be readable and writeable only by the uid of the client. Next, attach this shared memory segment to your process: shminfo.shmaddr = image->data = shmat (shminfo.shmid, 0, 0); The address returned by shmat should be stored in *both* the XImage structure and the shminfo structure. To finish filling in the shminfo structure, you need to decide how you want the server to attach to the shared memory segment, and set the "readOnly" field as follows. Normally, you would code: shminfo.readOnly = False; If you set it to True, the server will not be able to write to this segment, and thus XShmGetImage calls will fail. Finally, tell the server to attach to your shared memory segment with: Status XShmAttach (display, shminfo); If all goes well, you will get a non-zero status back, and your XImage is ready for use. To write a shared memory XImage into an X drawable, use XShmPutImage: Status XShmPutImage Display *display Drawable d GC gc XImage *image int src_x int src_y int dest_x int dest_y unsigned int width unsigned int height bool send_event The interface is identical to that of XPutImage, so I will spare my fingers and not repeat that documentation here. There is one additional parameter, however, called "send_event". If this parameter is passed as True, the server will generate a "completion" event when the image write is complete; thus your program can know when it is safe to begin manipulating the shared memory segment again. The completion event has type XShmCompletionEvent, which is defined as the following: typedef struct { int type; /* of event */ unsigned long serial; /* # of last request processed */ Bool send_event; /* true if came from a SendEvent request */ Display *display; /* Display the event was read from */ Drawable drawable; /* drawable of request */ int major_code; /* ShmReqCode */ int minor_code; /* X_ShmPutImage */ ShmSeg shmseg; /* the ShmSeg used in the request */ unsigned long offset; /* the offset into ShmSeg used */ } XShmCompletionEvent; The event type value that will be used can be determined at run time with a line of the form: int CompletionType = XShmGetEventBase (display) + ShmCompletion; If you modify the shared memory segment before the arrival of the completion event, the results you see on the screen may be inconsistent. To read image data into a shared memory XImage, use the following: Status XShmGetImage Display *display Drawable d XImage *image int x int y unsigned long plane_mask Where "display" is the display of interest, "d" is the source drawable, "image" is the destination XImage, "x" and "y" are the offsets within "d", and "plane_mask" defines which planes are to be read. To destroy a shared memory XImage, you should first instruct the server to detach from it, then destroy the segment itself, as follows: XShmDetach (display, shminfo); XDestroyImage (image); shmdt (shminfo.shmaddr); shmctl (shminfo.shmid, IPC_RMID, 0); USE OF SHARED MEMORY PIXMAPS Unlike X images, for which any image format is usable, the shared memory extension supports only a single format (i.e. XYPixmap or ZPixmap) for the data stored in a shared memory pixmap. This format is independent of the depth of the image (for 1-bit pixmaps it doesn't really matter what this format is) and independent of the screen. Use XShmPixmapFormat to get the format for the server: int XShmPixmapFormat Display *display If your application can deal with the server pixmap data format (including bits-per-pixel et al.), create a shared memory segment and "shminfo" structure in exactly the same way as is listed above for shared memory XImages. While it is, not strictly necessary to create an XImage first, doing so incurs little overhead and will give you an appropriate bytes_per_line value to use. Once you have your shminfo structure filled in, simply call: Pixmap XShmCreatePixmap Display *display Drawable d char *data XShmSegmentInfo *shminfo unsigned int width unsigned int height unsigned int depth The arguments are all the same as for XCreatePixmap, with two additions: "data" and "shminfo". The second of the two is the same old shminfo structure that has been used before. The first is the pointer to the shared memory segment, and should be the same as the shminfo.shmaddr field. I am not sure why this is a separate parameter. If everything works, you will get back a pixmap, which you can manipulate in all of the usual ways, with the added bonus of being able to tweak its contents directly through the shared memory segment. Shared memory pixmaps are destroyed in the usual manner with XFreePixmap, though you should detach and destroy the shared memory segment itself as shown above. xorgproto-2023.2/specs/xextproto/dbe.xml0000644000175000017500000010766314443010026015242 00000000000000 %defs; ]> Double Buffer Extension Protocol X Consortium Standard IanElliott Hewlett-Packard Company DavidP.Wiggins X Consortium 1989199219931994 X Consortium, Inc. 1989Digital Equipment Corporation 1992Intergraph Corporation 1993Silicon Graphics, Inc. 1994Hewlett-Packard Company X Version 11, Release &fullrelvers; Version 1.0 Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. Digital Equipment Corporation, Intergraph Corporation, Silicon Graphics, Hewlett-Packard, and the X Consortium make no representations about the suitability for any purpose of the information in this document. This documentation is provided “as is” without express or implied warranty. Introduction The Double Buffer Extension (DBE) provides a standard way to utilize double-buffering within the framework of the X Window System. Double-buffering uses two buffers, called front and back, which hold images. The front buffer is visible to the user; the back buffer is not. Successive frames of an animation are rendered into the back buffer while the previously rendered frame is displayed in the front buffer. When a new frame is ready, the back and front buffers swap roles, making the new frame visible. Ideally, this exchange appears to happen instantaneously to the user and with no visual artifacts. Thus, only completely rendered images are presented to the user, and they remain visible during the entire time it takes to render a new frame. The result is a flicker-free animation. Goals This extension should enable clients to: Allocate and deallocate double-buffering for a window. Draw to and read from the front and back buffers associated with a window. Swap the front and back buffers associated with a window. Specify a wide range of actions to be taken when a window is swapped. This includes explicit, simple swap actions (defined below), and more complex actions (for example, clearing ancillary buffers) that can be put together within explicit "begin" and "end" requests (defined below). Request that the front and back buffers associated with multiple double-buffered windows be swapped simultaneously. In addition, the extension should: Allow multiple clients to use double-buffering on the same window. Support a range of implementation methods that can capitalize on existing hardware features. Add no new event types. Be reasonably easy to integrate with a variety of direct graphics hardware access (DGHA) architectures. Concepts Normal windows are created using the core CreateWindow request, which allocates a set of window attributes and, for InputOutput windows, a front buffer, into which an image can be drawn. The contents of this buffer will be displayed when the window is visible. This extension enables applications to use double-buffering with a window. This involves creating a second buffer, called a back buffer, and associating one or more back buffer names (XIDs) with the window for use when referring to (that is, drawing to or reading from) the window's back buffer. The back buffer name is a DRAWABLE of type BACKBUFFER. DBE provides a relative double-buffering model. One XID, the window, always refers to the front buffer. One or more other XIDs, the back buffer names, always refer to the back buffer. After a buffer swap, the window continues to refer to the (new) front buffer, and the back buffer name continues to refer to the (new) back buffer. Thus, applications and toolkits that want to just render to the back buffer always use the back buffer name for all drawing requests to the window. Portions of an application that want to render to the front buffer always use the window XID for all drawing requests to the window. Multiple clients and toolkits can all use double-buffering on the same window. DBE does not provide a request for querying whether a window has double-buffering support, and if so, what the back buffer name is. Given the asynchronous nature of the X Window System, this would cause race conditions. Instead, DBE allows multiple back buffer names to exist for the same window; they all refer to the same physical back buffer. The first time a back buffer name is allocated for a window, the window becomes double-buffered and the back buffer name is associated with the window. Subsequently, the window already is a double-buffered window, and nothing about the window changes when a new back buffer name is allocated, except that the new back buffer name is associated with the window. The window remains double-buffered until either the window is destroyed or until all of the back buffer names for the window are deallocated. In general, both the front and back buffers are treated the same. In particular, here are some important characteristics: Only one buffer per window can be visible at a time (the front buffer). Both buffers associated with a window have the same visual type, depth, width, height, and shape as the window. Both buffers associated with a window are "visible" (or "obscured") in the same way. When an Expose event is generated for a window, both buffers should be considered to be damaged in the exposed area. Damage that occurs to either buffer will result in an Expose event on the window. When a double-buffered window is exposed, both buffers are tiled with the window background, exactly as stated by the core protocol. Even though the back buffer is not visible, terms such as obscure apply to the back buffer as well as to the front buffer. It is acceptable at any time to pass a BACKBUFFER in any request, notably any core or extension drawing request, that expects a DRAWABLE. This enables an application to draw directly into BACKBUFFERs in the same fashion as it would draw into any other DRAWABLE. It is an error (Window) to pass a BACKBUFFER in a core request that expects a Window. A BACKBUFFER will never be sent by core X in a reply, event, or error where a Window is specified. If core X11 backing-store and save-under applies to a double-buffered window, it applies to both buffers equally. If the core ClearArea request is executed on a double-buffered window, the same area in both the front and back buffers is cleared. The effect of passing a window to a request that accepts a DRAWABLE is unchanged by this extension. The window and front buffer are synonymous with each other. This includes obeying the GetImage semantics and the subwindow-mode semantics if a core graphics context is involved. Regardless of whether the window was explicitly passed in a GetImage request, or implicitly referenced (that is, one of the windo's ancestors was passed in the request), the front (that is, visible) buffer is always referenced. Thus, DBE-naive screen dump clients will always get the front buffer. GetImage on a back buffer returns undefined image contents for any obscured regions of the back buffer that fall within the image. Drawing to a back buffer always uses the clip region that would be used to draw to the front buffer with a GC subwindow-mode of ClipByChildren. If an ancestor of a double-buffered window is drawn to with a core GC having a subwindow-mode of IncludeInferiors, the effect on the double-buffered window's back buffer depends on the depth of the double-buffered window and the ancestor. If the depths are the same, the contents of the back buffer of the double-buffered window are not changed. If the depths are different, the contents of the back buffer of the double-buffered window are undefined for the pixels that the IncludeInferiors drawing touched. DBE adds no new events. DBE does not extend the semantics of any existing events with the exception of adding a new DRAWABLE type called BACKBUFFER. If events, replies, or errors that contain a DRAWABLE (for example, GraphicsExpose) are generated in response to a request, the DRAWABLE returned will be the one specified in the request. DBE advertises which visuals support double-buffering. DBE does not include any timing or synchronization facilities. Applications that need such facilities (for example, to maintain a constant frame rate) should investigate the Synchronization Extension, an X Consortium standard. Window Management Operations The basic philosophy of DBE is that both buffers are treated the same by core X window management operations. When the core DestroyWindow is executed on a double-buffered window, both buffers associated with the window are destroyed, and all back buffer names associated with the window are freed. If the core ConfigureWindow request changes the size of a window, both buffers assume the new size. If the windo's size increases, the effect on the buffers depends on whether the implementation honors bit gravity for buffers. If bit gravity is implemented, then the contents of both buffers are moved in accordance with the windo's bit gravity (see the core ConfigureWindow request), and the remaining areas are tiled with the window background. If bit gravity is not implemented, then the entire unobscured region of both buffers is tiled with the window background. In either case, Expose events are generated for the region that is tiled with the window background. If the core GetGeometry request is executed on a BACKBUFFER, the returned x, y, and border-width will be zero. If the Shape extension ShapeRectangles, ShapeMask, ShapeCombine, or ShapeOffset request is executed on a double-buffered window, both buffers are reshaped to match the new window shape. The region difference is the following: D = newshape - oldshape It is tiled with the window background in both buffers, and Expose events are generated for D. Complex Swap Actions DBE has no explicit knowledge of ancillary buffers (for example, depth buffers or alpha buffers), and only has a limited set of defined swap actions. Some applications may need a richer set of swap actions than DBE provides. Some DBE implementations have knowledge of ancillary buffers, and/or can provide a rich set of swap actions. Instead of continually extending DBE to increase its set of swap actions, DBE provides a flexible "idiom" mechanism. If an application's needs are served by the defined swap actions, it should use them; otherwise, it should use the following method of expressing a complex swap action as an idiom. Following this policy will ensure the best possible performance across a wide variety of implementations. As suggested by the term "idiom," a complex swap action should be expressed as a group/series of requests. Taken together, this group of requests may be combined into an atomic operation by the implementation, in order to maximize performance. The set of idioms actually recognized for optimization is implementation dependent. To help with idiom expression and interpretation, an idiom must be surrounded by two protocol requests: DBEBeginIdiom and DBEEndIdiom. Unless this begin-end pair surrounds the idiom, it may not be recognized by a given implementation, and performance will suffer. For example, if an application wants to swap buffers for two windows, and use core X to clear only certain planes of the back buffers, the application would issue the following protocol requests as a group, and in the following order: DBEBeginIdiom request. DBESwapBuffers request with XIDs for two windows, each of which uses a swap action of Untouched. Core X PolyFillRectangle request to the back buffer of one window. Core X PolyFillRectangle request to the back buffer of the other window. DBEEndIdiom request. The DBEBeginIdiom and DBEEndIdiom requests do not perform any actions themselves. They are treated as markers by implementations that can combine certain groups/series of requests as idioms, and are ignored by other implementations or for nonrecognized groups/series of requests. If these requests are sent out of order, or are mismatched, no errors are sent, and the requests are executed as usual, though performance may suffer. An idiom need not include a DBESwapBuffers request. For example, if a swap action of Copied is desired, but only some of the planes should be copied, a core X CopyArea request may be used instead of DBESwapBuffers. If DBESwapBuffers is included in an idiom, it should immediately follow the DBEBeginIdiom request. Also, when the DBESwapBuffers is included in an idiom, that request's swap action will still be valid, and if the swap action might overlap with another request, then the final result of the idiom must be as if the separate requests were executed serially. For example, if the specified swap action is Untouched, and if a PolyFillRectangle using a client clip rectangle is done to the windo's back buffer after the DBESwapBuffers request, then the contents of the new back buffer (after the idiom) will be the same as if the idiom was not recognized by the implementation. It is highly recommended that Application Programming Interface (API) providers define, and application developers use, "convenience" functions that allow client applications to call one procedure that encapsulates common idioms. These functions will generate the DBEBeginIdiom request, the idiom requests, and DBEEndIdiom request. Usage of these functions will ensure best possible performance across a wide variety of implementations. Requests The DBE defines the following requests. DBEGetVersion This request returns the major and minor version numbers of this extension. DBEGetVersion client-major-version CARD8 client-minor-version CARD8 => server-major-version CARD8 server-minor-version CARD8 The client-major-version and client-minor-version numbers indicate what version of the protocol the client wants the server to implement. The server-major-version and the server-minor-version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server-major-version and server-minor-version allow the creation of future revisions of the DBE protocol that may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small, upward-compatible changes. Servers that support the protocol defined in this document will return a server-major-version of one (1), and a server-minor-version of zero (0). The DBE client must issue a DBEGetVersion request before any other double buffering request in order to negotiate a compatible protocol version; otherwise, the client will get undefined behavior (DBE may or may not work). DBEGetVisualInfo This request returns information about which visuals support double buffering. DBEGetVisualInfo screen-specifiers LISTofDRAWABLE => visinfo LISTofSCREENVISINFO where: SCREENVISINFO LISTofVISINFO VISINFO [ visual: VISUALID depth: CARD8 perflevel: CARD8 ] Errors: Drawable All of the values passed in screen-specifiers must be valid DRAWABLEs (or a Drawable error results). For each drawable in screen-specifiers, the reply will contain a list of VISINFO structures for visuals that support double-buffering on the screen on which the drawable resides. The visual member specifies the VISUALID. The depth member specifies the depth in bits for the visual. The perflevel is a performance hint. The only operation defined on a perflevel is comparison to a perflevel of another visual on the same screen. The visual having the higher perflevel is likely to have better double-buffer graphics performance than the visual having the lower perflevel. Nothing can be deduced from any of the following: the magnitude of the difference of two perflevels, a perflevel value in isolation, or comparing perflevels from different servers. If the list of screen-specifiers is empty, information for all screens is returned, starting with screen zero. DBEAllocateBackBufferName This request allocates a drawable ID used to refer to the back buffer of a window. DBEAllocateBackBufferName window WINDOW back-buffer-name BACKBUFFER swap-action-hint SWAPACTION Errors: Alloc, Value, IDChoice, Match, Window If the window is not already a double-buffered window, the window becomes double-buffered, and the back-buffer-name is associated with the window. The swap-action-hint tells the server which swap action is most likely to be used with the window in subsequent DBESwapBuffers requests. The swap-action-hint must have one of the values specified for type SWAPACTION (or a Value error results). See the description of the DBESwapBuffers request for a complete discussion of swap actions and the SWAPACTION type. If the window already is a double-buffered window, nothing about the window changes, except that an additional back-buffer-name is associated with the window. The window remains double-buffered until either the window is destroyed, or until all of the back buffer names for the window are deallocated. The window passed into the request must be a valid WINDOW (or a Window error results). The window passed into the request must be an InputOutput window (or a Match error results). The visual of the window must be in the list returned by DBEGetVisualInfo (or a Match error results). The back-buffer-name must be in the range assigned to the client, and must not already be in use (or an IDChoice error results). If the server cannot allocate all resources associated with turning on double-buffering for the window, an Alloc error results, the windo's double-buffer status (whether it is already double-buffered or not) remains unchanged, and the back-buffer-name is freed. DBEDeallocateBackBufferName This request frees a drawable ID that was obtained by DBEAllocateBackBufferName. DBEDeallocateBackBufferName back-buffer-name BACKBUFFER Errors: Buffer The back-buffer-name passed in the request is freed and no longer associated with the window. If this is the last back-buffer-name associated with the window, then the back buffer is no longer accessible to clients, and all double-buffering resources associated with the window may be freed. The window's current front buffer remains the front buffer. The back-buffer-name must be a valid BACKBUFFER associated with a window (or a Buffer error results). DBESwapBuffers This request swaps the buffers for all windows listed, applying the appropriate swap action for each window. DBESwapBuffers windows LISTofSWAPINFO where: SWAPINFO [ window: WINDOW swap-action: SWAPACTION ] SWAPACTION { Undefined, Background, Untouched, Copied } Errors: Match, Window, Value Each window passed into the request must be a valid WINDOW (or a Window error results). Each window passed into the request must be a double-buffered window (or a Match error results). Each window passed into the request must only be listed once (or a Match error results). Each swap-action in the list must have one of the values specified for type SWAPACTION (or a Value error results). If an error results, none of the valid double-buffered windows will have their buffers swapped. The swap-action determines what will happen to the new back buffer of the window it is paired with in the list in addition to making the old back buffer become visible. The defined actions are as follows: Undefined The contents of the new back buffer become undefined. This may be the most efficient action since it allows the implementation to discard the contents of the buffer if it needs to. Background The unobscured region of the new back buffer will be tiled with the window background. The background action allows devices to use a fast clear capability during a swap. Untouched The unobscured region of the new back buffer will be unmodified by the swap. Copied The unobscured region of the new back buffer will be the contents of the old back buffer. If DBESwapBuffers is included in a "swap and clear" type of idiom, it must immediately follow the DBEBeginIdiom request. DBEBeginIdiom This request informs the server that a complex swap will immediately follow this request. DBEBeginIdiom As previously discussed, a complex swap action is a group/series of requests that, taken together, may be combined into an atomic operation by the implementation. The sole function of this request is to serve as a "marker" that the server can use to aid in idiom processing. The server is free to implement this request as a no-op. DBEEndIdiom This request informs the server that a complex swap has concluded. DBEEndIdiom The sole function of this request is to serve as a "marker" that the server can use to aid in idiom processing. The server is free to implement this request as a no-op. DBEGetBackBufferAttributes This request returns information about a back buffer. DBEGetBackBufferAttributes back-buffer-name BACKBUFFER => attributes BUFFER_ATTRIBUTES where: BUFFER_ATTRIBUTES: [ window: WINDOW ] If back-buffer-name is a valid BACKBUFFER, the window field of the attributes in the reply will be the window which has the back buffer that back-buffer-name refers to. If back-buffer-name is not a valid BACKBUFFER, the window field of the attributes in the reply will be None. Encoding Please refer to the X11 Protocol Encoding document as this section uses syntactic conventions and data types established there. The name of this extension is "DOUBLE-BUFFER". Type The following new types are used by the extension. BACKBUFFER: XID SWAPACTION #x00 Undefined #x01 Background #x02 Untouched #x03 Copied SWAPINFO 4 WINDOW window 1 SWAPACTION swap action 3 unused VISINFO 4 VISUALID visual 1 CARD8 depth 1 CARD8 perflevel 2 unused SCREENVISINFO 4 CARD32 n, number in list 8n LISTofVISINFO n VISINFOs BUFFER_ATTRIBUTES 4 WINDOW window Error Buffer 1 0 error 1 error base + 0 code 2 CARD16 sequence number 4 CARD32 bad buffer 2 CARD16 minor-opcode 1 CARD8 major-opcode 21 unused Request DBEGetVersion 1 CARD8 major-opcode 1 0 minor-opcode 2 2 request length 1 CARD8 client-major-version 1 CARD8 client-minor-version 2 unused => 1 unused 2 CARD16 sequence number 4 0 reply length 1 CARD8 server-major-version 1 CARD8 server-minor-version 22 unused DBEAllocateBackBufferName 1 CARD8 major-opcode 1 1 minor-opcode 2 4 request length 4 WINDOW window 4 BACKBUFFER back buffer name 1 SWAPACTION swap action hint 3 unused DBEDeallocateBackBufferName 1 CARD8 major-opcode 1 2 minor-opcode 2 2 request length 4 BACKBUFFER back buffer name DBESwapBuffers 1 CARD8 major-opcode 1 3 minor-opcode 2 2+2n request length 4 CARD32 n, number of window/swap action pairs in list 8n LISTofSWAPINFO window/swap action pairs DBEBeginIdiom 1 CARD8 major-opcode 1 4 minor-opcode 2 1 request length DBEEndIdiom 1 CARD8 major-opcode 1 5 minor-opcode 2 1 request length DBEGetVisualInfo 1 CARD8 major-opcode 1 6 minor-opcode 2 2+n request length 4 CARD32 n, number of screen specifiers in list 4n LISTofDRAWABLE n screen specifiers => 1 1 Reply 1 unused 2 CARD16 sequence number 4 CARD32 j, reply length 4 CARD32 m, number of SCREENVISINFOs in list 20 unused 4j LISTofSCREENVISINFO m SCREENVISINFOs DBEGetBackBufferAttributes 1 CARD8 major-opcode 1 7 minor-opcode 2 2 request length 4 BACKBUFFER back-buffer-name => 1 unused 2 CARD16 sequence number 4 0 reply length 4 BUFFER_ATTRIBUTES attributes 20 unused Acknowledgements We wish to thank the following individuals who have contributed their time and talent toward shaping the DBE specification: T. Alex Chen, IBM; Peter Daifuku, Silicon Graphics, Inc.; Ian Elliott, Hewlett-Packard Company; Stephen Gildea, X Consortium, Inc.; Jim Graham, Sun; Larry Hare, AGE Logic; Jay Hersh, X Consortium, Inc.; Daryl Huff, Sun; Deron Dann Johnson, Sun; Louis Khouw, Sun; Mark Kilgard, Silicon Graphics, Inc.; Rob Lembree, Digital Equipment Corporation; Alan Ricker, Metheus; Michael Rosenblum, Digital Equipment Corporation; Bob Scheifler, X Consortium, Inc.; Larry Seiler, Digital Equipment Corporation; Jeanne Sparlin Smith, IBM; Jeff Stevenson, Hewlett-Packard Company; Walter Strand, Metheus; Ken Tidwell, Hewlett-Packard Company; and David P. Wiggins, X Consortium, Inc. Mark provided the impetus to start the DBE project. Ian wrote the first draft of the specification. David served as architect. References Jeffrey Friedberg, Larry Seiler, and Jeff Vroom, "Multi-buffering Extension Specification Version 3.3." Tim Glauert, Dave Carver, Jim Gettys, and David P. Wiggins, "X Synchronization Extension Version 3.0." xorgproto-2023.2/specs/xextproto/security.xml0000644000175000017500000013253714443010026016355 00000000000000 %defs; ]> Security Extension Specification X Consortium Standard DavidP.Wiggins X Consortium X Version 11, Release &fullrelvers; Version 7.1 1996X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The OpenGroup. November 15, 1996 Introduction The Security extension contains new protocol needed to provide enhanced X server security. The Security extension should not be exposed to untrusted clients (defined below). Requests SecurityQueryVersion This request returns the major and minor version numbers of this extension. SecurityQueryVersion client-major-version CARD16 client-minor-version CARD16 => server-major-version CARD16 server-minor-version CARD16 The client-major-version and client-minor-version numbers indicate what version of the protocol the client wants the server to implement. The server-major-version and the server-minor-version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server-major-version and server-minor-version allow the creation of future revisions of the Security protocol that may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small, upward-compatible changes. Servers that support the protocol defined in this document will return a server-major-version of one (1), and a server-minor-version of zero (0). Clients using the Security extension must issue a SecurityQueryVersion request before any other Security request in order to negotiate a compatible protocol version; otherwise, the client will get undefined behavior (Security may or may not work). SecurityGenerateAuthorization This request causes the server to create and return a new authorization with specific characteristics. Clients can subsequently connect using the new authorization and will inherit some of the characteristics of the authorization. SecurityGenerateAuthorization authorization-protocol-name STRING8 authorization-protocol-data STRING8 value-mask BITMASK value-list LISTofVALUE => authorization-id AUTHID authorization-data-return STRING8 Errors: AuthorizationProtocol, Value, Alloc authorization-protocol-name is the name of the authorization method for which the server should generate a new authorization that subsequent clients can use to connect to the server. If the authorization-protocol-name is not one that the server supports, or if authorization-protocol-data does not make sense for the given authorization-protocol-name, an AuthorizationProtocol error results. authorization-protocol-data is authorization-method specific data that can be used in some way to generate the authorization. In this version of the extension, the only authorization method required to be supported is "MIT-MAGIC-COOKIE-1" with any amount of authorization-protocol-data (including none). The server may use the authorization-protocol-data as an additional source of randomness used to generate the authorization. Other authorization methods can supply their own interpretation of authorization-protocol-data. The value-mask and value-list specify attributes of the authorization that are to be explicitly initialized. The possible values are: Attribute Type Default timeout CARD32 60 group XID or None None trust-level {SecurityClientTrusted, SecurityClientUntrusted} SecurityClientUntrusted event-mask SecurityAuthorizationRevoked, or None None timeout is the timeout period in seconds for this authorization. A timeout value of zero means this authorization will never expire. For non-zero timeout values, when timeout seconds have elapsed since the last time that the authorization entered the state of having no connections authorized by it, and if no new connections used the authorization during that time, the authorization is automatically purged. (Note that when an authorization is created, it enters the state of having no connections authorized by it.) Subsequent connection attempts using that authorization will fail. This is to facilitate "fire and forget" launching of applications. group is an application group ID as defined by the Application Group extension, or None. Any other values will cause a Value error. When a group is destroyed, all authorizations specifying that group are revoked as described under the SecurityRevokeAuthorization request. The Application Group extension attaches additional semantics to the group. trust-level tells whether clients using the authorization are trusted or untrusted. If trust-level is not one of the constants SecurityClientTrusted or SecurityClientUntrusted, a Value error results. event-mask defines which events the client is interested in for this authorization. When the authorization expires or is revoked if event-mask contains SecurityAuthorizationRevoked a SecurityAuthorizationRevoked event is reported to the client. The SecurityAuthorizationRevoked event contains the following field: Field Type authorization-id AUTHID where authorization-id is the identification of the authorization that was revoked. If an invalid value-mask is specified, a Value error occurs. The returned authorization-id is a non-zero value that uniquely identifies this authorization for use in other requests. The value space for type AUTHID is not required to be disjoint from values spaces of other core X types, e.g. resource ids, atoms, visual ids, and keysyms. Thus, a given numeric value might be both a valid AUTHID and a valid atom, for example. authorization-data-return is the data that a client should use in some authorization-method-specific way to make a connection with this authorization. For "MIT-MAGIC-COOKIE-1," authorization-data-return should be sent as the authorization-protocol-data in the connection setup message. It is not required that other authorization methods use authorization-data-return this way. SecurityRevokeAuthorization This request deletes an authorization created by SecurityGenerateAuthorization. SecurityRevokeAuthorization authorization-id AUTHID Errors: Authorization If authorization-id does not name a valid authorization, an Authorization error occurs. Otherwise, this request kills all clients currently connected using the authorization specified by authorization-id. The authorization is deleted from the server's database, so future attempts by clients to connect with this authorization will fail. Changes to Core Requests A server supporting this extension modifies the handling of some core requests in the following ways. Resource ID Usage If an untrusted client makes a request that specifies a resource ID that is not owned by another untrusted client, a protocol error is sent to the requesting client indicating that the specified resource does not exist. The following exceptions apply. An untrusted client can: use the QueryTree, GetGeometry, and TranslateCoordinates requests without restriction. use colormap IDs that are returned in the default-colormap field of its connection setup information in any colormap requests. specify a root window as: the drawable field of CreatePixmap, CreateGC, and QueryBestSize. the parent field of CreateWindow. the window field of CreateColormap, ListProperties, and GetWindowAttributes. the grab-window or confine-to fields of GrabPointer. the grab-window field of UngrabButton. the destination of SendEvent, but only if all of the following are true. (These conditions cover all the events that the ICCCM specifies with a root window destination.) The propagate field of SendEvent is False. The event-mask field of SendEvent is ColormapChange, StructureNotify, or the logical OR of SubstructureRedirect with SubstructureNotify. The event type being sent is UnmapNotify, ConfigureRequest, or ClientMessage. the window field of ChangeWindowAttributes, but only if the value-mask contains only event-mask and the corresponding value is StructureNotify, PropertyChange, or the logical OR of both. ISSUE: are root window exceptions needed for these? WarpPointer, ReparentWindow (parent), CirculateWindow, QueryPointer (emacs does this), GetMotionEvents. Extension Security This extension introduces the notion of secure and insecure extensions. A secure extension is believed to be safe to use by untrusted clients; that is, there are no significant security concerns known that an untrusted client could use to destroy, modify, or steal data of trusted clients. This belief may be founded on a careful analysis of the extension protocol, its implementation, and measures taken to "harden" the extension to close security weaknesses. All extensions not considered secure are called insecure. The implementation details of how an extension is identified as secure or insecure are beyond the scope of this specification. ListExtensions will only return names of secure extensions to untrusted clients. If an untrusted client uses QueryExtension on an insecure extension that the server supports, the reply will have the present field set to False and the major-opcode field set to zero to indicate that the extension is not supported. If an untrusted client successfully guesses the major opcode of an insecure extension, attempts by it to execute requests with that major opcode will fail with a Request error. Keyboard Security The protocol interpretation changes in this section are intended to prevent untrusted applications from stealing keyboard input that was meant for trusted clients and to prevent them from interfering with the use of the keyboard. The behavior of some keyboard-related requests and events is modified when the client is untrusted depending on certain server state at the time of request execution or event generation. Specifically, if a hypothetical keyboard event were generated given the current input focus, pointer position, keyboard grab state, and window event selections, and if that keyboard event would not be delivered to any untrusted client, the following changes apply: The bit vector representing the up/down state of the keys returned by QueryKeymap and KeymapNotify is all zeroes. GrabKeyboard returns a status of AlreadyGrabbed. SetInputFocus does nothing. Note that this means the Globally Active Input and WM_TAKE_FOCUS mechanisms specified in the ICCCM will not work with untrusted clients. Passive grabs established by GrabKey that would otherwise have activated do not activate. If an untrusted client attempts to use any of the following requests, the only effect is that the client receives an Access error: SetModifierMapping, ChangeKeyboardMapping, ChangeKeyboardControl. If an InputOnly window owned by an untrusted client has a parent owned by a trusted client, all attempts to map the window will be ignored. This includes mapping attempts resulting from MapWindow, MapSubwindows, ReparentWindow, and save-set processing. However, if the parent of an InputOnly window owned by an untrusted client is the root window, attempts to map that window will be performed as expected. This is in line with the root window exceptions above. Image Security It should be impossible for an untrusted client to retrieve the image contents of a trusted window unless a trusted client takes action to allow this. We introduce the following defenses in support of this requirement. The restrictions on resource ID usage listed above prevent untrusted clients from using GetImage directly on windows not belonging to trusted clients. If an untrusted client tries to set the background-pixmap attribute of an untrusted window to None, the server will instead use a server-dependent background which must be different than None. The X protocol description of GetImage states that the returned contents of regions of a window obscured by noninferior windows are undefined if the window has no backing store. Some implementations return the contents of the obscuring windows in these regions. When an untrusted client uses GetImage, this behavior is forbidden; the server must fill the obscured regions in the returned image with a server-dependent pattern. If an untrusted window has trusted inferiors, their contents are vulnerable to theft via GetImage on the untrusted parent, as well as being vulnerable to destruction via drawing with subwindow-mode IncludeInferiors on the untrusted parent. An untrusted window having trusted inferiors can only occur at the request of a trusted client. It is expected to be an unusual configuration. Property Security Unlike the other security provisions described in this document, security for property access is not amenable to a fixed policy because properties are used for inter-client communication in diverse ways and may contain data of varying degrees of sensitivity. Therefore, we only list the possible restrictions the server may decide to impose on use of properties on trusted windows by untrusted clients. How the server chooses which restrictions from this list to apply to a particular property access is implementation dependent In the X Consortium server implementation, property access is controlled by a configuration file; see the -sp option in the Xserver(1) manual page. . The X Protocol property requests are ChangeProperty, GetProperty, DeleteProperty, RotateProperties, and ListProperties. For these requests, the server can allow the request to execute normally (as if it had been issued by a trusted client), ignore the request completely (as if it were a NoOperation), or ignore the request except to send an Atom error to the client. Ignoring a ListProperties request means replying that the window has no properties. ListProperties may also reply with a subset of the existing properties if the server is doing property hiding; see below. An ignored GetProperty request may reply that the property does not exist, or that it exists but contains no data. The server may decide to hide certain properties on certain windows from untrusted clients The X Consortium server implementation does not currently provide a way to hide properties. . If a property is to be hidden, it must be done consistently to avoid confusing clients. This means that for untrusted clients: That property should not be returned by ListProperties. PropertyNotify events should not be sent for that property. GetProperty on that property should reply that the property does not exist (the return type is None, the format and bytes-after are zero, and the value is empty). For a property that the server is protecting but not hiding, consistency must also be maintained: That property should be returned by ListProperties. PropertyNotify events should be sent for that property. GetProperty on that property should reply that the property exists (if it really does) but the value is empty (return type and format are their real values, and the "length of value" field in the reply is zero). Miscellaneous Security If an untrusted client attempts to use ChangeHosts, ListHosts, or SetAccessControl, the only effect is that the client receives an Access error. If an untrusted client attempts to use ConvertSelection on a selection with a trusted selection owner window, the server generates a SelectionNotify event to the requestor with property None. New Authorization Method This extension includes a new authorization method named "XC-QUERY-SECURITY-1". Its purpose is to allow an external agent such as the X firewall proxy to probe an X server to determine whether that server meets certain security criteria without requiring the agent to have its own authorization for that server. The agent may use the returned information to make a decision. For example, the X firewall proxy may choose not to forward client connections to servers that do not meet the criteria. To use this authorization method, the client (or proxy) sends "XC-QUERY-SECURITY-1" as the authorization-protocol-name in the initial connection setup message. The authorization-protocol-data may be empty or may contain additional security criteria described below. If the success field of the server's reply is Authenticate, the server supports the security extension, and the server meets all specified additional security criteria. In this case, the client should resend the initial connection setup message substituting the authorization protocol name and data that should be used to authorize the connection. If the success field of the server's reply is anything other than Authenticate, either the server does not support the security extension, does not meet (or cannot determine if it meets) all of the additional security criteria, or chooses for internal reasons not to answer with Authenticate. In this case, the client should close the connection. If the authorization-protocol-data sent with "XC-QUERY-SECURITY-1" is not empty, it specifies additional security criteria for the server to check, as follows. authorization-protocol-data policy-mask BITMASK policies LISTofSECURITYPOLICY The policy-mask field is any logical-OR combination of the constants Extensions and SitePolicies. For each bit set in policy-mask, there is a SECURITYPOLICY element in policies. The nth element in policies corresponds to the nth 1-bit in policy-mask, counting upward from bit 0. SECURITYPOLICY policy-type {Disallow, Permit} names LISTofSTR For a SECURITYPOLICY corresponding to policy-mask Extensions, if policy-type is Disallow the server is required to consider as insecure all extensions given in names. No policy is specified for extensions not listed in names. If policy-type is Permit the server may consider only those extensions given in names to be secure; all other extensions must be treated as insecure. If these constraints are not met, the server should not return Authenticate in the success field of the reply. Servers can but need not dynamically configure themselves in response to an Extensions SECURITYPOLICY; a conforming server might simply compare the policy with a compiled-in table of extensions and their security status. For a SECURITYPOLICY corresponding to policy-mask SitePolicies, policy-type Disallow means the server must not have been configured with any of the site policies given in names. Policy-type Permit means the server must have been configured with at least one of the site policies given in names. If these constraints are not met, the server should not return Authenticate in the success field of the reply. SitePolicies provide a way to express new forms of security-relevant information that could not be anticipated at the time of this writing. For example, suppose the server is found to have a critical security defect. When a fix is developed, a site policy string could be associated with the fix. Servers with the fix would advertise that site policy, and the X firewall proxy would specify that site policy in a SECURITYPOLICY with policy-type Permit. Encoding Please refer to the X11 Protocol Encoding document as this section uses syntactic conventions and data types established there. The name of this extension is "SECURITY". Types AUTHID: CARD32 Request Encoding SecurityQueryVersion 1 CARD8 major-opcode 1 0 minor-opcode 2 2 request length 2 CARD16 client-major-version 2 CARD16 client-minor-version => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 server-major-version 2 CARD16 server-minor-version 20 unused SecurityRevokeAuthorization 1 CARD8 major-opcode 1 2 minor-opcode 2 2 request length 4 AUTHID authorization-id SecurityGenerateAuthorization 1 CARD8 major-opcode 1 1 minor-opcode 2 3 + (m+n+3)/4 + s request length 2 CARD16 m, number of bytes in authorization protocol name 2 CARD16 n, number of bytes in authorization data m STRING8 authorization protocol name n STRING8 authorization protocol data p unused, p=pad(m+n) 4 BITMASK value-mask (has s bits set to 1) #x00000001 timeout #x00000002 trust-level #x00000004 group #x00000008 event-mask 4s LISTofVALUE value-list VALUES 4 CARD32 timeout 4 trust-level 0 SecurityClientTrusted 1 SecurityClientUntrusted 4 XID group 0 None 4 CARD32 event-mask #x00000001 SecurityAuthorizationRevoked => 1 1 Reply 1 unused 2 CARD16 sequence number 4 (q+3)/4 reply length 4 AUTHID authorization-id 2 CARD16 data-length 18 unused q STRING8 authorization-data-return r unused, r=pad(q) Event Encoding SecurityAuthorizationRevoked 1 0+extension event base code 1 unused 2 CARD16 sequence number 4 AUTHID authorization id 24 unused Authorization Method Encoding For authorization-protocol-name "XC-QUERY-SECURITY-1", the authorization-protocol-data is interpreted as follows: authorization-protocol-data 1 BITMASK policy-mask #x00000001 Extensions #x00000002 SitePolicies m LISTofSECURITYPOLICY policies SECURITYPOLICY 1 policy-type 0 Permit 1 Disallow 1 CARD8 number of STRs in names n LISTofSTR names LISTofSTR has the same encoding as in the X protocol: each STR is a single byte length, followed by that many characters, and there is no padding or termination between STRs. C Language Binding The header for this extension is <X11/extensions/security.h>. All identifier names provided by this header begin with XSecurity. All functions that have return type Status will return nonzero for success and zero for failure. Status XSecurityQueryExtension Display *dpy int *major_version_return int *minor_version_return sets major_version_return and minor_version_return to the major and minor Security protocol version supported by the server. If the Security library is compatible with the version returned by the server, it returns nonzero. If dpy does not support the Security extension, or if there was an error during communication with the server, or if the server and library protocol versions are incompatible, it returns zero. No other XSecurity functions may be called before this function. If a client violates this rule, the effects of all subsequent XSecurity calls that it makes are undefined. Xauth *XSecurityAllocXauth void In order to provide for future evolution, Xauth structures are used to pass and return authorization data, and the library provides ways to allocate and deallocate them. must be used to allocate the Xauth structure that is passed to . For the purposes of the Security extension, the Xauth structure has the following fields: Type Field name Description unsigned short name_length number of bytes in name char * name authorization protocol name unsigned short data_length number of bytes in data char * data authorization protocol data The Xauth structure returned by this function is initialized as follows: name_length and data_length are zero, and name and data are NULL. void XSecurityFreeXauth Xauth *auth must be used to free Xauth structures allocated by or returned by . It is the caller's responsibility to fill in the name and data fields of Xauth structures allocated with , so this function will not attempt to free them. In contrast, all storage associated with Xauth structures returned from will be freed by this function, including the name and data fields. Bool XSecurityRevokeAuthorization Display *dpy XSecurityAuthorization auth_id deletes the authorization specified by auth_id, which must be a value returned in the auth_id_return parameter of . All clients that connected with that authorization are be killed. Subsequently, clients that attempt to connect using that authorization will be refused. Xauth *XSecurityGenerateAuthorization Display *dpy Xauth *auth_in unsigned long valuemask XSecurityAutorizationAttributes *attributes XSecurityAutorization *auth_id_return creates a new authorization with the specified attributes. The auth_in argument must be allocated by . The name and name_length fields of auth_in should be initialized to the authorization protocol name and its length in characters respectively. If there is authorization data, the data and data_length fields of auth_in should be initialized to the data and its length in characters respectively. The library does not assume that name and data are null-terminated strings. The auth_in argument must be freed with . The XSecurityAuthorizationAttributes structure has the following fields: Type Field name Mask unsigned int trust_level XSecurityTrustLevel unsigned int timeout XSecurityTimeout XID group XSecurityGroup long event_mask XSecurityEventMask These correspond to the trust-level, timeout, group, and event-mask described in the SecurityGenerateAuthorization protocol request. The caller can fill in values for any subset of these attributes. The valuemask argument must be the bitwise OR of the symbols listed in the Mask column for all supplied attributes. The event_mask attribute can be None, XSecurityAuthorizationRevokedMask, or XSecurityAllEventMasks. In this revision of the protocol specification XSecurityAllEventMasks is equivalent to XSecurityAuthorizationRevokedMask. If the caller does not need to specify any attributes, the attributes argument can be NULL, and the valuemask argument must be zero. If the function fails, NULL is returned and auth_id_return is filled in with zero. Otherwise, a pointer to an Xauth structure is returned. The name and name_length fields of the returned Xauth structure will be copies of the name that was passed in, and the data and data_length fields will be set to the authorization data returned by the server. The caller should not assume that name and data are null-terminated strings. If no authorization data was returned by the server, the data and data_length fields will be set to NULL and zero respectively. The returned Xauth structure must be freed with ; the caller should not use any other means free the structure or any of its components. The auth_id_return argument will be filled in with the non-zero authorization id of the created authorization. The XSecurityAuthorizationRevokedEvent structure has the following fields: Type Field name Description int type event base + XSecurityAuthorizationRevoked unsigned long serial # of last request processed by server Bool send_event true if this came from SendEvent Display* display Display the event was read from XSecurityAuthorization auth_id revoked authorization id xorgproto-2023.2/specs/xextproto/multibuf.xml0000644000175000017500000014317314443010026016333 00000000000000 %defs; ]> Extending X for Double-Buffering, Multi-Buffering, and Stereo JeffreyFriedberg LarrySeiler JeffVroom 1989Digital Equipment Corporation X Version 11, Release &fullrelvers; Version 3.3 Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. Digital Equipment Corporation makes no representations about the suitability for any purpose of the information in this document. This documentation is provided "as is" without express or implied warranty. This document is subject to change. Copyright © 1989, 1994 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The OpenGroup. Warning The Multi-Buffering extension described here was a draft standard of the X Consortium prior to Release 6.1. It has been superseded by the Double Buffer Extension (DBE). DBE is an X Consortium Standard as of Release 6.1. Introduction Several proposals have been written that address some of the issues surrounding the support of double-buffered, multi-buffered, and stereo windows in the X Window System: Extending X for Double-Buffering, Jeffrey Friedberg, Larry Seiler, Randi Rost. (Proposal for) Double-Buffering Extensions, Jeff Vroom. An Extension to X.11 for Displays with Multiple Buffers, David S.H. Rosenthal. A Multiple Buffering/Stereo Proposal, Mark Patrick. The authors of this proposal have tried to unify the above documents to yield a proposal that incorporates support for double-buffering, multi-buffering, and stereo in a way that is acceptable to all concerned. Goals Clients should be able to: Associate multiple buffers with a window. Paint in any buffer associated with a window. Display any buffer associated with a window. Display a series of buffers in a window in rapid succession to achieve a smooth animation. Request simultaneous display of different buffers in different windows. In addition, the extension should: Allow existing X applications to run unchanged. Support a range of implementation methods that can capitalize on existing hardware features. Image Buffers Normal windows are created using the standard CreateWindow request: CreateWindow parent : WINDOW w_id : WINDOW depth : CARD8 visual : VISUALID or CopyFromParent x, y : INT16 width, height : INT16 border_width : INT16 value_mask : BITMASK value_list : LISTofVALUE This request allocates a set of window attributes and a buffer into which an image can be drawn. The contents of this image buffer will be displayed when the window is mapped to the screen. To support double-buffering and multi-buffering, we introduce the notion that additional image buffers can be created and bound together to form groups. The following rules will apply: All image buffers in a group will have the same visual type, depth, and geometry (ie: width and height). Only one image buffer per group can be displayed at a time. Draw operations can occur to any image buffer at any time. Window management requests (MapWindow, DestroyWindow, ConfigureWindow, etc...) affect all image buffers associated with a window. Appropriate resize and exposure events will be generated for every image buffer that is affected by a window management operation. By allowing draw operations to occur on any image buffer at any time, a client could, on a multi-threaded multi-processor server, simultaneously build up images for display. To support this, each buffer must have its own resource ID. Since buffers are different than windows and pixmaps (buffers are not hierarchical and pixmaps cannot be displayed) a new resource, Buffer, is introduced. Furthermore, a Buffer is also a Drawable, thus draw operations may also be performed on buffers simply by passing a buffer ID to the existing pixmap/window interface. To allow existing X applications to work unchanged, we assume a window ID passed in a draw request, for a multi-buffered window, will be an alias for the ID of the currently displayed image buffer. Any draw requests (eq: GetImage) on the window will be relative to the displayed image buffer. In window management requests, only a window ID will be accepted. Requests like QueryTree, will continue to return only window ID's. Most events will return just the window ID. Some new events, described in a subsequent section, will return a buffer ID. When a window has backing store the contents of the window are saved off-screen. Likewise, when the contents of an image buffer of a multi-buffer window is saved off-screen, it is said to have backing store. This applies to all image buffers, whether or not they are selected for display. In some multi-buffer implementations, undisplayed buffers might be implemented using pixmaps. Since the contents of pixmaps exist off-screen and are not affected by occlusion, these image buffers in effect have backing store. On the other hand, both the displayed and undisplayed image buffers might be implemented using a subset of the on-screen pixels. In this case, unless the contents of an image buffer are saved off-screen, these image buffers in effect do not have backing store. Output to any image buffer of an unmapped multi-buffered window that does not have backing store is discarded. Output to any image buffer of a mapped multi-buffer window will be performed; however, portions of an image buffer may be occluded or clipped. When an unmapped multi-buffered window becomes mapped, the contents of any image buffer buffer that did not have backing store is tiled with the background and zero or more exposure events are generated. If no background is defined for the window, then the screen contents are not altered and the contents of any undisplayed image buffers are undefined. If backing store was maintained for an image buffer, then no exposure events are generated. New Requests The new request, CreateImageBuffers, creates a group of image buffers and associates them with a normal X window: CreateImageBuffers w_id : WINDOW buffers : LISTofBUFFER update_action : {Undefined,Background,Untouched,Copied} update_hint : {Frequent,Intermittent,Static} => number_buffers : CARD16 (Errors: Window, IDChoice, Value) One image buffer will be associated with each ID passed in buffers. The first buffer of the list is referred to as buffer[0], the next buffer[1], and so on. Each buffer will have the same visual type and geometry as the window. Buffer[0] will refer to the image buffer already associated with the window ID and its contents will not be modified. The displayed image buffer attribute is set to buffer[0]. Image buffers for the remaining ID's (buffer[1],...) are allocated. If the window is mapped, or if these image buffers have backing store, their contents will be tiled with the window background (if no background is defined, the buffer contents are undefined), and zero or more expose events will be generated for each of these buffers. The contents of an image buffer is undefined when the window is unmapped and the buffer does not have backing store. If the window already has a group of image buffers associated with it (ie: from a previous CreateImageBuffers request) the actions described for DestroyImageBuffers are performed first (this will delete the association of the previous buffer ID's and their buffers as well as de-allocate all buffers except for the one already associated with the window ID). To allow a server implementation to efficiently allocate the buffers, the total number of buffers required and the update action (how they will behave during an update) is specified "up front" in the request. If the server cannot allocate all the buffers requested, the total number of buffers actually allocated will be returned. No Alloc errors will be generated \- buffer[0] can always be associated with the existing displayed image buffer. For example, an application that wants to animate a short movie loop may request 64 image buffers. The server may only be able to support 16 image buffers of this type, size, and depth. The application can then decide 16 buffers is sufficient and may truncate the movie loop, or it may decide it really needs 64 and will free the buffers and complain to the user. One might be tempted to provide a request that inquires whether n buffers of a particular type, size, and depth could be allocated. But if the query is decoupled from the actual allocation, another client could sneak in and take the buffers before the original client has allocated them. While any buffer of a group can be selected for display, some applications may display buffers in a predictable order (ie: the movie loop application). The list order (buffer[0], buffer[1], ...) will be used as a hint by the server as to which buffer will be displayed next. A client displaying buffers in this order may see a performance improvement. update_action indicates what should happen to a previously displayed buffer when a different buffer becomes displayed. Possible actions are: Undefined The contents of the buffer that was last displayed will become undefined after the update. This is the most efficient action since it allows the implementation to trash the contents of the buffer if it needs to. Background The contents of the buffer that was last displayed will be set to the background of the window after the update. The background action allows devices to use a fast clear capability during an update. Untouched The contents of the buffer that was last displayed will be untouched after the update. Used primarily when cycling through images that have already been drawn. Copied The contents of the buffer that was last displayed will become the same as those that are being displayed after the update. This is useful when incrementally adding to an image. update_hint indicates how often the client will request a different buffer to be displayed. This hint will allow smart server implementations to choose the most efficient means to support a multi-buffered window based on the current need of the application (dumb implementations may choose to ignore this hint). Possible hints are: Frequent An animation or movie loop is being attempted and the fastest, most efficient means for multi-buffering should be employed. Intermittent The displayed image will be changed every so often. This is common for images that are displayed at a rate slower than a second. For example, a clock that is updated only once a minute. Static The displayed image buffer will not be changed any time soon. Typically set by an application whenever there is a pause in the animation. To display an image buffer the following request can be used: DisplayImageBuffers buffers : LISTofBUFFER min_delay : CARD16 max_delay : CARD16 (Errors: Buffer, Match) The image buffers listed will become displayed as simultaneously as possible and the update action, bound at CreateImageBuffers time, will be performed. A list of buffers is specified to allow the server to efficiently change the display of more than one window at a time (ie: when a global screen swap method is used). Attempting to simultaneously display multiple image buffers from the same window is an error (Match) since it violates the rule that only one image buffer per group can be displayed at a time. If a specified buffer is already displayed, any delays and update action will still be performed for that buffer. In this instance, only the update action of Background (and possibly Undefined) will have any affect on the contents of the displayed buffer. These semantics allow an animation application to successfully execute even when there is only a single buffer available for a window. When a DisplayImageBuffers request is made to an unmapped multi-buffered window, the effect of the update action depends on whether the image buffers involved have backing store. When the target of the update action is an image buffer that does not have backing store, output is discarded. When the target image buffer does have backing store, the update is performed; however, when the source of the update is an image buffer does not have backing store (as in the case of update action Copied), the contents of target image buffer will become undefined. min_delay and max_delay put a bound on how long the server should wait before processing the display request. For each of the windows to be updated by this request, at least min_delay milli-seconds should elapse since the last time any of the windows were updated; conversely, no window should have to wait more than max_delay milli-seconds before being updated. min_delay allows an application to slow down an animation or movie loop so that it appears synchronized at a rate the server can support given the current load. For example, a min_delay of 100 indicates the server should wait at least 1/10 of a second since the last time any of the windows were updated. A min_delay of zero indicates no waiting is necessary. max_delay can be thought of as an additional delay beyond min_delay the server is allowed to wait to facilitate such things as efficient update of multiple windows. If max_delay would require an update before min_delay is satisfied, then the server should process the display request as soon as the min_delay requirement is met. A typical value for max_delay is zero. To implement the above functionality, the time since the last update by a DisplayImageBuffers request for each multi-buffered window needs to be saved as state by the server. The server may delay execution of the DisplayImageBuffers request until the appropriate time (e.g. by requeuing the request after computing the timeout); however, the entire request must be processed in one operation. Request execution indivisibility must be maintained. When a server is implemented with internal concurrency, the extension must adhere to the same concurrency semantics as those defined for the core protocol. To explicitly clear a rectangular area of an image buffer to the window background, the following request can be used: ClearImageBufferArea buffer : BUFFER x, y : INT16 w, h : CARD16 exposures : BOOL (Errors: Buffer, Value) Like the X ClearArea request, x and y are relative to the window's origin and specify the upper-left corner of the rectangle. If width is zero, it is replaced with the current window width minus x. If height is zero it is replaced with the current window height minus y. If the window has a defined background tile, the rectangle is tiled with a plane mask of all ones, a function of Copy, and a subwindow-mode of ClipByChildren. If the window has background None, the contents of the buffer are not changed. In either case, if exposures is true, then one or more exposure events are generated for regions of the rectangle that are either visible or are being retained in backing store. The group of image buffers allocated by a CreateImageBuffers request can be destroyed with the following request: DestroyImageBuffers w_id : WINDOW (Error: Window) The association between the buffer ID's and their corresponding image buffers are deleted. Any image buffers not selected for display are de-allocated. If the window is not multi-buffered, the request is ignored. Attributes The following attributes will be associated with each window that is multi-buffered: displayed_buffer : CARD16 update_action : {Undefined,Background,Untouched,Copied} update_hint : {Frequent,Intermittent,Static} window_mode : {Mono,Stereo} buffers : LISTofBUFFER displayed_buffer is set to the index of the currently displayed image buffer (for stereo windows, this will be the index of the left buffer \- the index of the right buffer is simply index+1). window_mode indicates whether this window is Mono or Stereo. The ID for each buffer associated with the window is recorded in the buffers list. The above attributes can be queried with the following request: GetMultiBufferAttributes w_id : WINDOW => displayed_buffer : CARD16 update_action : {Undefined,Background,Untouched,Copied} update_hint : {Frequent,Intermittent,Static} window_mode : {Mono,Stereo} buffers : LISTofBUFFER (Errors: Window, Access, Value) If the window is not multi-buffered, a Access error will be generated. The only multi-buffer attribute that can be explicitly set is update_hint. Rather than have a specific request to set this attribute, a generic set request is provided to allow for future expansion: SetMultiBufferAttributes w_id : WINDOW value_mask : BITMASK value_list : LISTofVALUE (Errors: Window, Match, Value) If the window is not multi-buffered, a Match error will be generated. The following attributes are maintained for each buffer of a multi-buffered window: window : WINDOW event_mask : SETofEVENT index : CARD16 side : {Mono,Left,Right} window indicates the window this buffer is associated with. event_mask specifies which events, relevant to buffers, will be sent back to the client via the associated buffer ID (initially no events are selected). index is the list position (0, 1, ...) of the buffer. side indicates whether this buffer is associated with the left side or right side of a stereo window. For non-stereo windows, this attribute will be set to Mono. These attributes can be queried with the following request: GetBufferAttributes buffer : BUFFER => window : WINDOW event_mask : SETofEVENT index : CARD16 side : {Mono,Left,Right} (Errors: Buffer, Value) The only buffer attribute that can be explicitly set is event_mask. The only events that are valid are Expose and the new ClobberNotify and UpdateNotify event (see Events section below). A Value error will be generated if an event not selectable for a buffer is specified in an event mask. Rather than have a specific request to set this attribute, a generic set request is provided to allow for future expansion: SetBufferAttributes buffer : BUFFER value_mask : BITMASK value_list : LISTofVALUE (Errors: Buffer, Value) Clients may want to query the server about basic multi-buffer and stereo capability on a per screen basis. The following request returns a large list of information that would most likely be read once by Xlib for each screen, and used as a data base for other Xlib queries: GetBufferInfo root : WINDOW => info : LISTofSCREEN_INFO Where SCREEN_INFO and BUFFER_INFO are defined as: SCREEN_INFO : [ normal_info : LISTofBUFFER_INFO, stereo_info : LISTofBUFFER_INFO ] BUFFER_INFO : [ visual : VISUALID, max_buffers : CARD16, depth : CARD8 ] Information regarding multi-buffering of normal (mono) windows is returned in the normal_info list. The stereo_info list contains information about stereo windows. If the stereo_info list is empty, stereo windows are not supported on the screen. If max_buffers is zero, the maximum number of buffers for the depth and visual is a function of the size of the created window and current memory limitations. The following request returns the major and minor version numbers of this extension: GetBufferVersion => major_number : CARD8 minor_number : CARD8 The version numbers are an escape hatch in case future revisions of the protocol are necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small upward compatible changes. Barring changes, the major version will be 1, and the minor version will be 1. Events All events normally generated for single-buffered windows are also generated for multi-buffered windows. Most of these events (ie: ConfigureNotify) will only be generated for the window and not for each buffer. These events will return a window ID. Expose events will be generated for both the window and any buffer affected. When this event is generated for a buffer, the same event structure will be used but a buffer ID is returned instead of a window ID. Clients, when processing these events, will know whether an ID returned in an event structure is for a window or a buffer by comparing the returned ID to the ones returned when the window and buffer were created. GraphicsExposure and NoExposure are generated using whatever ID is specified in the graphics operation. If a window ID is specified, the event will contain the window ID. If a buffer ID is specified, the event will contain the buffer ID. In some implementations, moving a window over a multi-buffered window may cause one or more of its buffers to get overwritten or become unwritable. To allow a client drawing into one of these buffers the opportunity to stop drawing until some portion of the buffer is writable, the following event is added: ClobberNotify buffer : BUFFER state : {Unclobbered,PartiallyClobbered,FullyClobbered} The ClobberNotify event is reported to clients selecting ClobberNotify on a buffer. When a buffer that was fully or partially clobbered becomes unclobbered, an event with Unclobbered is generated. When a buffer that was unclobbered becomes partially clobbered, an event with PartiallyClobbered is generated. When a buffer that was unclobbered or partially clobbered becomes fully clobbered, an event with FullyClobbered is generated. ClobberNotify events on a given buffer are generated before any Expose events on that buffer, but it is not required that all ClobberNotify events on all buffers be generated before all Expose events on all buffers. The ordering of ClobberNotify events with respect to VisibilityNotify events is not constrained. If multiple buffers were used as an image FIFO between an image server and the X display server, then the FIFO manager would like to know when a buffer that was previously displayed, has been undisplayed and updated, as the side effect of a DisplayImageBuffers request. This allows the FIFO manager to load up a future frame as soon as a buffer becomes available. To support this, the following event is added: UpdateNotify buffer : BUFFER The UpdateNotify event is reported to clients selecting UpdateNotify on a buffer. Whenever a buffer becomes updated (e.g. its update action is performed as part of a DisplayImageBuffers request), an UpdateNotify event is generated. Errors The following error type has been added to support this extension: Buffer A value for a BUFFER argument does not name a defined BUFFER. Double-Buffering Normal Windows The following pseudo-code fragment illustrates how to create and display a double-buffered image: /* * Create a normal window */ CreateWindow( W, ... ) /* * Create two image buffers. Assume after display, buffer * contents become "undefined". Assume we will "frequently" * update the display. Abort if we don't get two buffers, */ n = CreateImageBuffers( W, [B0,B1], Undefined, Frequent ) if (n != 2) <abort> /* * Map window to the screen */ MapWindow( W ) /* * Draw images using alternate buffers, display every * 1/10 of a second. Note we draw B1 first so it will * "pop" on the screen */ while animating { <draw picture using B1> DisplayImageBuffers( [B1], 100, 0 ) <draw picture using B0> DisplayImageBuffers( [B0], 100, 0 ) } /* * Strip image buffers and leave window with * contents of last displayed image buffer. */ DestroyImageBuffers( W ) Multi-Buffering Normal Windows Multi-buffered images are also supported by these requests. The following pseudo-code fragment illustrates how to create a a multi-buffered image and cycle through the images to simulate a movie loop: /* * Create a normal window */ CreateWindow( W, ... ) /* * Create 'N' image buffers. Assume after display, buffer * contents are "untouched". Assume we will "frequently" * update the display. Abort if we don't get all the buffers. */ n = CreateImageBuffers( W, [B0,B1,...,B(N-1)], Untouched, Frequent ) if (n != N) <abort> /* * Map window to screen */ MapWindow( W ) /* * Draw each frame of movie one per buffer */ foreach frame <draw frame using B(i)> /* * Cycle through frames, one frame every 1/10 of a second. */ while animating { foreach frame DisplayImageBuffers( [B(i)], 100, 0 ) } Stereo Windows How stereo windows are supported on a server is implementation dependent. A server may contain specialized hardware that allows left and right images to be toggled at field or frame rates. The stereo affect may only be perceived with the aid of special viewing glasses. The display of a stereo picture should be independent of how often the contents of the picture are updated by an application. Double and multi-buffering of images should be possible regardless of whether the image is displayed normally or in stereo. To achieve this goal, a simple extension to normal windows is suggested. Stereo windows are just like normal windows except the displayed image is made up of a left image buffer and a right image buffer. To create a stereo window, a client makes the following request: CreateStereoWindow parent : WINDOW w_id : WINDOW left, right : BUFFER depth : CARD8 visual : VISUALID or CopyFromParent x, y : INT16 width, height : INT16 border_width : INT16 value_mask : BITMASK value_list : LISTofVALUE (Errors: Alloc, Color, Cursor, Match, Pixmap, Value, Window) This request, modeled after the CreateWindow request, adds just two new parameters: left and right. For stereo, it is essential that one can distinguish whether a draw operation is to occur on the left image or right image. While an internal mode could have been added to achieve this, using two buffer ID's allows clients to simultaneously build up the left and right components of a stereo image. These ID's always refer to (are an alias for) the left and right image buffers that are currently displayed. Like normal windows, the window ID is used whenever a window management operation is to be performed. Window queries would also return this window ID (eg: QueryTree) as would most events. Like the window ID, the left and right buffer ID's each have their own event mask. They can be set and queried using the Set/GetBufferAttributes requests. Using the window ID of a stereo window in a draw request (eg: GetImage) results in pixels that are undefined. Possible semantics are that both left and right images get drawn, or just a single side is operated on (existing applications will have to be re-written to explicitly use the left and right buffer ID's in order to successfully create, fetch, and store stereo images). Having an explicit CreateStereoWindow request is helpful in that a server implementation will know from the onset whether a stereo window is desired and can return appropriate status to the client if it cannot support this functionality. Some hardware may support separate stereo and non-stereo modes, perhaps with different vertical resolutions. For example, the vertical resolution in stereo mode may be half that of non-stereo mode. Selecting one mode or the other must be done through some means outside of this extension (eg: by providing a separate screen for each hardware display mode). The screen attributes (ie: x/y resolution) for a screen that supports normal windows, may differ from a screen that supports stereo windows; however, all windows, regardless of type, displayed on the same screen must have the same screen attributes (ie: pixel aspect ratio). If a screen that supports stereo windows also supports normal windows, then the images presented to the left and right eyes for normal windows should be the same (ie: have no stereo offset). Single-Buffered Stereo Windows The following shows how to create and display a single-buffered stereo image: /* * Create the stereo window, map it the screen, * and draw the left and right images */ CreateStereoWindow( W, L, R, ... ) MapWindow( W ) <draw picture using L,R> Double-Buffering Stereo Windows Additional image buffers may be added to a stereo window to allow double or multi-buffering of stereo images. Simply use the the CreateImageBuffers request. Even numbered buffers (0,2,...) will be left buffers. Odd numbered buffers (1,3,...) will be right buffers. Displayable stereo images are formed by consecutive left/right pairs of image buffers. For example, (buffer[0],buffer[1]) form the first displayable stereo image; (buffer[2],buffer[3]) the next; and so on. The CreateImageBuffers request will only create pairs of left and right image buffers for stereo windows. By always pairing left and right image buffers together, implementations might be able to perform some type of optimization. If an odd number of buffers is specified, a Value error is generated. All the rules mentioned at the start of this proposal still apply to the image buffers supported by a stereo window. To display a image buffer pair of a multi-buffered stereo image, either the left buffer ID or right buffer ID may be specified in a DisplayImageBuffers request, but not both. To double-buffer a stereo window: /* * Create stereo window and map it to the screen */ CreateStereoWindow( W, L, R, ... ) /* * Create two pairs of image buffers. Assume after display, * buffer contents become "undefined". Assume we will "frequently" * update the display. Abort if we did get all the buffers. */ n = CreateImageBuffers( W, [L0,R0,L1,R1], Undefined, Frequently ) if (n != 4) <abort> /* * Map window to the screen */ MapWindow( W ) /* * Draw images using alternate buffers, * display every 1/10 of a second. */ while animating { <draw picture using L1,R1> DisplayImageBuffers( [L1], 100, 0 ) <draw picture using L0,R0> DisplayImageBuffers( [L0], 100, 0 ) } Multi-Buffering Stereo Windows To cycle through N stereo images: /* * Create stereo window */ CreateStereoWindow( W, L, R, ... ) /* * Create N pairs of image buffers. Assume after display, * buffer contents are "untouched". Assume we will "frequently" * update the display. Abort if we don't get all the buffers. */ n = CreateImageBuffers( W, [L0,R0,...,L(N-1),R(N-1)], Untouched, Frequently ) if (n != N*2) <abort> /* * Map window to screen */ MapWindow( W ) /* * Draw the left and right halves of each image */ foreach stereo image <draw picture using L(i),R(i)> /* * Cycle through images every 1/10 of a second */ while animating { foreach stereo image DisplayImageBuffers( [L(i)], 100, 0 ) } Protocol Encoding The official name of this extension is "Multi-Buffering". When this string passed to QueryExtension the information returned should be interpreted as follows: major-opcode Specifies the major opcode of this extension. The first byte of each extension request should specify this value. first-event Specifies the code that will be returned when ClobberNotify events are generated. first-error Specifies the code that will be returned when Buffer errors are generated. The following sections describe the protocol encoding for this extension. TYPES BUFFER_INFO 4 VISUALID visual 2 CARD16 max-buffers 1 CARD8 depth 1 unused SETofBUFFER_EVENT #x00008000 Exposure #x02000000 ClobberNotify #x04000000 UpdateNotify EVENTS ClobberNotify 1 see first-event code 1 unused 2 CARD16 sequence number 4 BUFFER buffer 1 state 0 Unclobbered 1 PartiallyClobbered 2 FullyClobbered 23 unused UpdateNotify 1 first-event+1 code 1 unused 2 CARD16 sequence number 4 BUFFER buffer 24 unused ERRORS Buffer 1 0 Error 1 see first-error code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor-opcode 1 CARD8 major-opcode 21 unused REQUESTS GetBufferVersion 1 see major-opcode major-opcode 1 0 minor-opcode 2 1 request length -> 1 1 Reply 1 unused 2 CARD16 sequencenumber 4 0 reply length 1 CARD8 majorversion number 1 CARD8 minorversion number 22 unused CreateImageBuffers 1 see major-opcode major-opcode 1 1 minor-opcode 2 3+n requestlength 4 WINDOW wid 1 update-action 0 Undefined 1 Background 2 Untouched 3 Copied 1 update-hint 0 Frequent 1 Intermittent 2 Static 2 unused 4n LISTofBUFFER buffer-list -> 1 1 Reply 1 unused 2 CARD16 sequencenumber 4 0 reply length 2 CARD16 number-buffers 22 unused DestroyImageBuffers 1 see major-opcode major-opcode 1 2 minor-opcode 2 2 request length 4 WINDOW wid DisplayImageBuffers 1 see major-opcode major-opcode 2 2+n requestlength 2 CARD16 min-delay 2 CARD16 max-delay 4n LISTofBUFFER buffer-list SetMultiBufferAttributes 1 see major-opcode major-opcode 1 4 minor-opcode 2 3+n requestlength 4 WINDOW wid 4 BITMASK value-mask (has n bits set to 1) #x00000001 update-hint 4n LISTofVALUE value-list VALUEs 1 update-hint 0 Frequent 1 Intermittent 2 Static GetMultiBufferAttributes 1 see major-opcode major-opcode 1 5 minor-opcode 2 2 request length 4 WINDOW wid ® 1 1 Reply 1 unused 2 CARD16 sequencenumber 4 n reply length 2 CARD16 displayed-buffer 1 update-action 0 Undefined 1 Background 2 Untouched 3 Copied 1 update-hint 0 Frequent 1 Intermittent 2 Static 1 window-mode 0 Mono 1 Stereo 19 unused 4n LISTofBUFFER buffer list SetBufferAttributes 1 see major-opcode major-opcode 1 6 minor-opcode 2 3+n requestlength 4 BUFFER buffer 4 BITMASK value-mask (has n bits set to 1) #x00000001 event-mask 4n LISTofVALUE value-list VALUEs 4 SETofBUFFER_EVENT event-mask GetBufferAttributes 1 see major-opcode major-opcode 1 7 minor-opcode 2 2 request length 4 BUFFER buffer -> 1 1 Reply 1 unused 2 CARD16 sequencenumber 4 0 reply length 4 WINDOW wid 4 SETofBUFFER_EVENT event-mask 2 CARD16 index 1 side 0 Mono 1 Left 2 Right 13 unused GetBufferInfo 1 see major-opcode major-opcode 1 8 minor-opcode 2 2 request length 4 WINDOW root ® 1 1 Reply 1 unused 2 CARD16 sequencenumber 4 2(n+m) replylength 2 n number BUFFER_INFO in normal-info 2 m number BUFFER_INFO in stereo-info 20 unused 8n LISTofBUFFER_INFO normal-info 8m LISTofBUFFER_INFO stereo-info CreateStereoWindow 1 see major-opcode major-opcode 1 9 minor-opcode 2 11+n requestlength 3 unused 1 CARD8 depth 4 WINDOW wid 4 WINDOW parent 4 BUFFER left 4 BUFFER right 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 2 class 0 CopyFromParent 1 InputOutput 2 InputOnly 4 VISUALID visual 0 CopyFromParent 4 BITMASK value-mask (has n bits set to 1) encodings are the same as for CreateWindow 4n LISTofVALUE value-list encodings are the same as for CreateWindow ClearImageBufferArea 1 see major-opcode major-opcode 1 10 minor-opcode 2 5 request length 4 WINDOW buffer 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 3 unused 1 BOOL exposures xorgproto-2023.2/specs/xextproto/sync.xml0000644000175000017500000013606014443010026015455 00000000000000 %defs; ]> X Synchronization Extension Protocol X Consortium Standard TimGlauert Olivetti Research MultiWorks Dave Carver Digital Equipment Corporation MIT/Project Athena Jim Gettys Digital Equipment Corporation Cambridge Research Laboratory David P. Wiggins X Consortium, Inc. James Jones NVIDIA Corporation X Version 11, Release &fullrelvers; Version 3.1 1991 Olivetti Research Limited, Cambridge England Digital Equipment Corporation, Maynard, Massachusetts X Consortium 2010NVIDIA Corporation Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies. Olivetti, Digital, MIT, the X Consortium, and NVIDIA make no representations about the suitability for any purpose of the information in this document. This documentation is provided as is without express or implied warranty. 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. Synchronization Protocol The core X protocol makes no guarantees about the relative order of execution of requests for different clients. This means that any synchronization between clients must be done at the client level in an operating system-dependent and network-dependent manner. Even if there was an accepted standard for such synchronization, the use of a network introduces unpredictable delays between the synchronization of the clients and the delivery of the resulting requests to the X server. The core X protocol also makes no guarantees about the time at which requests are executed, which means that all clients with real-time constraints must implement their timing on the host computer. Any such timings are subject to error introduced by delays within the operating system and network and are inefficient because of the need for round-trip requests that keep the client and server synchronized. The synchronization extension provides primitives that allow synchronization between clients to take place entirely within the X server. This removes any error introduced by the network and makes it possible to synchronize clients on different hosts running different operating systems. This is important for multimedia applications, where audio, video, and graphics data streams are being synchronized. The extension also provides internal timers within the X server to which client requests can be synchronized. This allows simple animation applications to be implemented without any round-trip requests and makes best use of buffering within the client, network, and server. Description The mechanism used by this extension for synchronization within the X server is to block the processing of requests from a client until a specific synchronization condition occurs. When the condition occurs, the client is released and processing of requests continues. Multiple clients may block on the same condition to give inter-client synchronization. Alternatively, a single client may block on a condition such as an animation frame marker. The extension adds Counter, Alarm, and Fence to the set of resources managed by the server. A counter has a 64-bit integer value that may be increased or decreased by client requests or by the server internally. A client can block by sending an Await request that waits until one of a set of synchronization conditions, called TRIGGERs, becomes TRUE. Alarms generate events when counter values go through a specified transition. A fence has two possible states: triggered and not triggered. Client requests can put the fence in either of these states. A client can block until one of a set of fences becomes triggered by sending an AwaitFence request. Fences are bound to a particular screen at creation time. The CreateCounter request allows a client to create a Counter that can be changed by explicit SetCounter and ChangeCounter requests. These can be used to implement synchronization between different clients. There are some counters, called System Counters, that are changed by the server internally rather than by client requests. The effect of any change to a system counter is not visible until the server has finished processing the current request. In other words, system counters are apparently updated in the gaps between the execution of requests rather than during the actual execution of a request. The extension provides a system counter that advances with the server time as defined by the core protocol, and it may also provide counters that advance with the real-world time or that change each time the CRT screen is refreshed. Other extensions may provide their own extension-specific system counters. The extension provides an Alarm mechanism that allows clients to receive an event on a regular basis when a particular counter is changed. The CreateFence request allows a client to create a Fence that can be triggered and reset using TriggerFence and ResetFence requests, respectively. CreateFence takes a drawable argument that implies which screen the fence should be created on. The TriggerFence request changes the fence's state only after all previous rendering commands affecting objects owned by the given fence's screen have completed. Note that while fence objects are bound to a screen and the simple trigger operation provided by this extension operates at screen granularity, other extensions may add more fine-grained trigger operations based on any number of events. The screen binding merely establishes an upper bound for the scope of fence operations. Types Please refer to the X11 Protocol specification as this document uses syntactic conventions established there and references types defined there. The following new types are used by the extension. INT64: 64-bit signed integer COUNTER: XID VALUETYPE: {Absolute,Relative}; TESTTYPE: {PositiveTransition,NegativeTransition, PositiveComparison,NegativeComparison} TRIGGER: [ counter:COUNTER, value-type:VALUETYPE, wait-value:INT64, test-type:TESTTYPE ] WAITCONDITION: [ trigger:TRIGGER, event-threshold:INT64 ] SYSTEMCOUNTER: [ name:STRING8, counter:COUNTER, resolution:INT64 ] ALARM: XID ALARMSTATE: {Active,Inactive,Destroyed} FENCE: XID The COUNTER type defines the client-side handle on a server Counter. The value of a counter is an INT64. The TRIGGER type defines a test on a counter that is either TRUE or FALSE. The value of the test is determined by the combination of a test value, the value of the counter, and the specified test-type. The test value for a trigger is calculated using the value-type and wait-value fields when the trigger is initialized. If the value-type field is not one of the named VALUETYPE constants, the request that initialized the trigger will return a Value error. If the value-type field is Absolute, the test value is given by the wait-value field. If the value-type field is Relative, the test value is obtained by adding the wait-value field to the value of the counter. If the resulting test value would lie outside the range for an INT64, the request that initialized the trigger will return a Value error. If counter is None and the value-type is Relative, the request that initialized the trigger will return a Match error. If counter is not None and does not name a valid counter, a Counter error is generated. If the test-type is PositiveTransition, the trigger is initialized to FALSE, and it will become TRUE when the counter changes from a value less than the test value to a value greater than or equal to the test value. If the test-type is NegativeTransition, the trigger is initialize to FALSE, and it will become TRUE when the counter changes from a value greater than the test value to a value less than or equal to the test value. If the test-type is PositiveComparison, the trigger is TRUE if the counter is greater than or equal to the test value and FALSE otherwise. If the test-type is NegativeComparison, the trigger is TRUE if the counter is less than or equal to the test value and FALSE otherwise. If the test-type is not one of the named TESTTYPE constants, the request that initialized the trigger will return a Value error. A trigger with a counter value of None and a valid test-type is always TRUE. The WAITCONDITION type is simply a trigger with an associated event-threshold. The event threshold is used by the Await request to decide whether or not to generate an event to the client after the trigger has become TRUE. By setting the event-threshold to an appropriate value, it is possible to detect the situation where an Await request was processed after the TRIGGER became TRUE, which usually indicates that the server is not processing requests as fast as the client expects. The SYSTEMCOUNTER type provides the client with information about a SystemCounter. The name field is the textual name of the counter that identifies the counter to the client. The counter field is the client-side handle that should be used in requests that require a counter. The resolution field gives the approximate step size of the system counter. This is a hint to the client that the extension may not be able to resolve two wait conditions with test values that differ by less than this step size. A microsecond clock, for example, may advance in steps of 64 microseconds, so a counter based on this clock would have a resolution of 64. The only system counter that is guaranteed to be present is called SERVERTIME, which counts milliseconds from some arbitrary starting point. The least significant 32 bits of this counter track the value of Time used by the server in Events and Requests. Other system counters may be provided by different implementations of the extension. The X Consortium will maintain a registry of system counter names to avoid collisions in the name space. An ALARM is the client-side handle on an Alarm resource. The FENCE type defines the client-side handle on a server Fence. A fence can only be in one of two states, represented by a BOOL. If the value is TRUE, the fence is in the triggered state. Otherwise, the fence is in the not triggered state. Errors Counter This error is generated if the value for a COUNTER argument in a request does not name a defined COUNTER. Alarm This error is generated if the value for an ALARM argument in a request does not name a defined ALARM. Fence This error is generated if the value for a FENCE argument in a request does not name a defined FENCE. Requests Initialize version-major,version-minor: CARD8 => version-major,version-minor: CARD8 This request must be executed before any other requests for this extension. If a client violates this rule, the results of all SYNC requests that it issues are undefined. The request takes the version number of the extension that the client wishes to use and returns the actual version number being implemented by the extension for this client. The extension may return different version numbers to a client depending of the version number supplied by that client. This request should be executed only once for each client connection. Given two different versions of the SYNC protocol, v1 and v2, v1 is compatible with v2 if and only if v1.version_major = v2.version_major and v1.version_minor <= v2.version_minor. Compatible means that the functionality is fully supported in an identical fashion in the two versions. This document describes major version 3, minor version 1 of the SYNC protocol. ListSystemCounters => system-counters: LISTofSYSTEMCOUNTER Errors: Alloc This request returns a list of all the system counters that are available at the time the request is executed, which includes the system counters that are maintained by other extensions. The list returned by this request may change as counters are created and destroyed by other extensions. CreateCounter id: COUNTER initial-value: INT64 Errors: IDChoice,Alloc This request creates a counter and assigns the specified id to it. The counter value is initialized to the specified initial-value and there are no clients waiting on the counter. DestroyCounter counter: COUNTER Errors: Counter,Access This request destroys the given counter and sets the counter fields for all triggers that specify this counter to None. All clients waiting on the counter are released and a CounterNotify event with the destroyed field set to TRUE is sent to each waiting client, regardless of the event-threshold. All alarms specifying the counter become Inactive and an AlarmNotify event with a state field of Inactive is generated. A counter is destroyed automatically when the connection to the creating client is closed down if the close-down mode is Destroy. An Access error is generated if counter is a system counter. A Counter error is generated if counter does not name a valid counter. QueryCounter counter: COUNTER => value: INT64 Errors: Counter This request returns the current value of the given counter or a generates Counter error if counter does not name a valid counter. Await wait-list: LISTofWAITCONDITION Errors: Counter,Alloc,Value When this request is executed, the triggers in the wait-list are initialized using the wait-value and value-type fields, as described in the definition of TRIGGER above. The processing of further requests for the client is blocked until one or more of the triggers becomes TRUE. This may happen immediately, as a result of the initialization, or at some later time, as a result of a subsequent SetCounter, ChangeCounter or DestroyCounter request. A Value error is generated if wait-list is empty. When the client becomes unblocked, each trigger is checked to determine whether a CounterNotify event should be generated. The difference between the counter and the test value is calculated by subtracting the test value from the value of the counter. If the test-type is PositiveTransition or PositiveComparison, a CounterNotify event is generated if the difference is at least event-threshold. If the test-type is NegativeTransition or NegativeComparison, a CounterNotify event is generated if the difference is at most event-threshold. If the difference lies outside the range for an INT64, an event is not generated. This threshold check is made for each trigger in the list and a CounterNotify event is generated for every trigger for which the check succeeds. The check for CounterNotify events is performed even if one of the triggers is TRUE when the request is first executed. Note that a CounterNotify event may be generated for a trigger that is FALSE if there are multiple triggers in the request. A CounterNotify event with the destroyed flag set to TRUE is always generated if the counter for one of the triggers is destroyed. ChangeCounter counter: COUNTER amount: INT64 Errors: Counter,Access,Value This request changes the given counter by adding amount to the current counter value. If the change to this counter satisfies a trigger for which a client is waiting, that client is unblocked and one or more CounterNotify events may be generated. If the change to the counter satisfies the trigger for an alarm, an AlarmNotify event is generated and the alarm is updated. An Access error is generated if counter is a system counter. A Counter error is generated if counter does not name a valid counter. If the resulting value for the counter would be outside the range for an INT64, a Value error is generated and the counter is not changed. It should be noted that all the clients whose triggers are satisfied by this change are unblocked, so this request cannot be used to implement mutual exclusion. SetCounter counter: COUNTER value: INT64 Errors: Counter,Access This request sets the value of the given counter to value. The effect is equivalent to executing the appropriate ChangeCounter request to change the counter value to value. An Access error is generated if counter names a system counter. A Counter error is generated if counter does not name a valid counter. CreateAlarm id: ALARM values-mask: CARD32 values-list: LISTofVALUE left">Errors: IDChoice,Counter,Match,Value,Alloc This request creates an alarm and assigns the identifier id to it. The values-mask and values-list specify the attributes that are to be explicitly initialized. The attributes for an Alarm and their defaults are: Attribute Type Default trigger TRIGGER counter None value-type Absolute value 0 test-type PositiveComparison delta INT64 1 events BOOL TRUE The trigger is initialized as described in the definition of TRIGGER, with an error being generated if necessary. If the counter is None, the state of the alarm is set to Inactive, else it is set to Active. Whenever the trigger becomes TRUE, either as a result of this request or as the result of a SetCounter, ChangeCounter, DestroyCounter, or ChangeAlarm request, an AlarmNotify event is generated and the alarm is updated. The alarm is updated by repeatedly adding delta to the value of the trigger and reinitializing it until it becomes FALSE. If this update would cause value to fall outside the range for an INT64, or if the counter value is None, or if the delta is 0 and test-type is PositiveComparison or NegativeComparison, no change is made to value and the alarm state is changed to Inactive before the event is generated. No further events are generated by an Inactive alarm until a ChangeAlarm or DestroyAlarm request is executed. If the test-type is PositiveComparison or PositiveTransition and delta is less than zero, or if the test-type is NegativeComparison or NegativeTransition and delta is greater than zero, a Match error is generated. The events value enables or disables delivery of AlarmNotify events to the requesting client. The alarm keeps a separate event flag for each client so that other clients may select to receive events from this alarm. An AlarmNotify event is always generated at some time after the execution of a CreateAlarm request. This will happen immediately if the trigger is TRUE, or it will happen later when the trigger becomes TRUE or the Alarm is destroyed. ChangeAlarm id: ALARM values-mask: CARD32 values-list: LISTofVALUE Errors: Alarm,Counter,Value,Match This request changes the parameters of an Alarm. All of the parameters specified for the CreateAlarm request may be changed using this request. The trigger is reinitialized and an AlarmNotify event is generated if appropriate, as explained in the description of the CreateAlarm request. Changes to the events flag affect the event delivery to the requesting client only and may be used by a client to select or deselect event delivery from an alarm created by another client. The order in which attributes are verified and altered is server-dependent. If an error is generated, a subset of the attributes may have been altered. DestroyAlarm alarm: ALARM Errors: Alarm This request destroys an alarm. An alarm is automatically destroyed when the creating client is closed down if the close-down mode is Destroy. When an alarm is destroyed, an AlarmNotify event is generated with a state value of Destroyed. QueryAlarm alarm: ALARM => trigger: TRIGGER delta: INT64 events: ALARMEVENTMASK state: ALARMSTATE Errors: Alarm This request retrieves the current parameters for an Alarm. SetPriority client-resource: XID priority: INT32 Errors: Match This request changes the scheduling priority of the client that created client-resource. If client-resource is None, then the priority for the client making the request is changed. A Match error is generated if client-resource is not None and does not name an existing resource in the server. For any two priority values, A and B, A is higher priority if and only if A is greater than B. The priority of a client is set to 0 when the initial client connection is made. The effect of different client priorities depends on the particular implementation of the extension, and in some cases it may have no effect at all. However, the intention is that higher priority clients will have their requests executed before those of lower priority clients. For most animation applications, it is desirable that animation clients be given priority over nonrealtime clients. This improves the smoothness of the animation on a loaded server. Because a server is free to implement very strict priorities, processing requests for the highest priority client to the exclusion of all others, it is important that a client that may potentially monopolize the whole server, such as an animation that produces continuous output as fast as it can with no rate control, is run at low rather than high priority. GetPriority client-resource: XID => priority: INT32 Errors: Match This request returns the scheduling priority of the client that created client-resource. If client-resource is None, then the priority for the client making the request is returned. A Match error is generated if client-resource is not None and does not name an existing resource in the server. CreateFence drawable: DRAWABLE id: FENCE initially-triggered: BOOL Errors: IDChoice,Alloc This request creates a fence on the screen associated with drawable and assigns the specified id to it. The fence is in the triggered state iff initially-triggered is TRUE. There are no clients waiting on the fence. TriggerFence fence: FENCE Errors: Fence This request puts the given fence in the triggered state after all rendering from previous requests that affects resources owned by the fence's screen has completed. This includes requests from other clients if those requests have been dispatched. This request has no visible effects if the fence was already in the triggered state. A Fence error is generated if fence does not name a valid fence. Note that the given fence's state is not necessarily directly modified by this request. The state change need only be queued to occur after the required rendering has completed. Clients should take care to not assume the fence will be in the triggered state in subsequent requests, such as those that operate on the given fence immediately. AwaitFence should first be issued if subsequent requests require the fence to be in the triggered state. ResetFence fence: FENCE Errors: Fence,Match This request immediately puts the given fence in the not triggered state. A Match error is generated if the fence is not in the triggered state. A Fence error is generated if fence does not name a valid fence. See the warnings above regarding TriggerFence's delayed effect. In particular, a TriggerFence request immediately followed by a ResetFence request is likely to result in a Match error. An AwaitFence request should be issued between the two. DestroyFence fence: FENCE Errors: Fence This request destroys the given fence. All clients waiting on this fence are released. A fence is destroyed automatically when the connection to the client that created the fence is closed if the close-down mode is DestroyAll. A Fence error is generated if fence does not name a valid fence. QueryFence fence: FENCE => triggered: BOOL Errors: Fence This request returns TRUE if the given fence is triggered, or FALSE if it is not triggered. A Fence error is generated if fence does not name a valid fence. AwaitFence fence-list: LISTofFENCE Errors: Fence,Alloc When this request is executed, the processing of further requests for the client is blocked until one or more of the fences in fence-list reaches the triggered state. If any of the fences are already in the triggered state, request processing resumes immediately. A Fence error is generated if any member of fence-list does not name a valid fence. Events CounterNotify counter: COUNTER wait-value: INT64 counter-value: INT64 time: TIME count: CARD16 destroyed: BOOL CounterNotify events may be generated when a client becomes unblocked after an Await request has been processed. The wait-value is the value being waited for, and counter-value is the actual value of the counter at the time the event was generated. The destroyed flag is TRUE if this request was generated as the result of the destruction of the counter and FALSE otherwise. The time is the server time at which the event was generated. When a client is unblocked, all the CounterNotify events for the Await request are generated contiguously. If count is 0, there are no more events to follow for this request. If count is n, there are at least n more events to follow. AlarmNotify alarm: ALARM counter-value: INT64 alarm-value: INT64 state: ALARMSTATE time: TIME An AlarmNotify event is generated when an alarm is triggered. alarm-value is the test value of the trigger in the alarm when it was triggered, counter-value is the value of the counter that triggered the alarm, and time is the server time at which the event was generated. The state is the new state of the alarm. If state is Inactive, no more events will be generated by this alarm until a ChangeAlarm request is executed, the alarm is destroyed, or the counter for the alarm is destroyed. Encoding Please refer to the X11 Protocol Encoding document as this section uses syntactic conventions established there and references types defined there. The name of this extension is "SYNC". Encoding New Types The following new types are used by the extension. ALARM: CARD32 ALARMSTATE: 0 Active 1 Inactive 2 Destroyed COUNTER: CARD32 INT64: 64-bit signed integer SYSTEMCOUNTER: 4 COUNTER counter 8 INT64 resolution 2 n length of name in bytes n STRING8 name p pad,p=pad(n+2) TESTTYPE: 0 PositiveTransition 1 NegativeTransition 2 PositiveComparison 3 NegativeComparison TRIGGER: 4 COUNTER counter 4 VALUETYPE wait-type 8 INT64 wait-value 4 TESTTYPE test-type VALUETYPE: 0 Absolute 1 Relative WAITCONDITION: 20 TRIGGER trigger 8 INT64 event threshold FENCE: CARD32 An INT64 is encoded in 8 bytes with the most significant 4 bytes first followed by the least significant 4 bytes. Within these 4-byte groups, the byte ordering determined during connection setup is used. Encoding Errors Counter 1 0 Error 1 Base + 0 code 2 CARD16 sequence number 4 CARD32 bad counter 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Alarm 1 0 Error 1 Base + 1 code 2 CARD16 sequence number 4 CARD32 bad alarm 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Fence 1 0 Error 1 Base + 2 code 2 CARD16 sequence number 4 CARD32 bad fence 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Encoding Requests Initialize 1 CARD8 major opcode 1 0 minor opcode 2 2 request length 1 CARD8 major version 1 CARD8 minor version 2 unused => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 CARD8 major version 1 CARD8 minor version 2 unused 20 unused ListSystemCounters 1 CARD8 major opcode 1 1 minor opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 INT32 list length 20 unused 4n list of SYSTEMCOUNTER system counters CreateCounter 1 CARD8 major opcode 1 2 minor opcode 2 4 request length 4 COUNTER id 8 INT64 initial value DestroyCounter 1 CARD8 major opcode 1 6 minor opcodeA previous version of this document gave an incorrect minor opcode 2 2 request length 4 COUNTER counter => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 8 INT64 counter value 16 unused Await 1 CARD8 major opcode 1 7 minor opcodeA previous version of this document gave an incorrect minor opcode. 2 1 + 7*n request length 28n LISTofWAITCONDITION wait conditions ChangeCounter 1 CARD8 major opcode 1 4 minor opcodeA previous version of this document gave an incorrect minor opcode. 2 4 request length 4 COUNTER counter 8 INT64 amount SetCounter 1 CARD8 major opcode 1 3 minor opcodeA previous version of this document gave an incorrect minor opcode. 2 4 request length 4 COUNTER counter 8 INT64 value CreateAlarm 1 CARD8 major opcode 1 8 minor opcode 2 3+n request length 4 ALARM id 4 BITMASK values mask #x00000001 counter #x00000002 value-type #x00000004 value #x00000008 test-type #x00000010 delta #x00000020 events 4n LISTofVALUE values VALUES 4 COUNTER counter 4 VALUETYPE value-type 8 INT64 value 4 TESTTYPE test-type 8 INT64 delta 4 BOOL events ChangeAlarm 1 CARD8 major opcode 1 9 minor opcode 2 3+n request length 4 ALARM id 4 BITMASK values mask encodings as for CreateAlarm 4n LISTofVALUE values encodings as for CreateAlarm DestroyAlarm 1 CARD8 major opcode 1 11 minor opcodeA previous version of this document gave an incorrect minor opcode. 2 2 request length 4 ALARM alarm QueryAlarm 1 CARD8 major opcode 1 10 minor opcodeA previous version of this document gave an incorrect minor opcode. 2 2 request length 4 ALARM alarm => 1 1 Reply 1 unused 2 CARD16 sequence number 4 2 reply length 20 TRIGGER trigger 8 INT64 delta 1 BOOL events 1 ALARMSTATE state 2 unused SetPriority 1 CARD8 major opcode 1 12 minor opcode 2 3 request length 4 CARD32 id 4 INT32 priority GetPriority 1 CARD8 major opcode 1 13 minor opcode 2 1 request length 4 CARD32 id => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 INT32 priority 20 unused CreateFence 1 CARD8 major opcode 1 14 minor opcode 2 4 request length 4 DRAWABLE drawable 4 FENCE id 1 BOOL initially triggered 3 unused TriggerFence 1 CARD8 major opcode 1 15 minor opcode 2 2 request length 4 FENCE id ResetFence 1 CARD8 major opcode 1 16 minor opcode 2 2 request length 4 FENCE id DestroyFence 1 CARD8 major opcode 1 17 minor opcode 2 2 request length 4 FENCE id QueryFence 1 CARD8 major opcode 1 18 minor opcode 2 2 request length 4 FENCE id => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 BOOL triggered 23 unused AwaitFence 1 CARD8 major opcode 1 19 minor opcode 2 1 + n request length 4*n LISTofFENCE wait conditions Encoding Events CounterNotify 1 Base + 0 code 1 0 kind 2 CARD16 sequence number 4 COUNTER counter 8 INT64 wait value 8 INT64 counter value 4 TIME timestamp 2 CARD16 count 1 BOOL destroyed 1 unused AlarmNotify 1 Base + 1 code 1 1 kind 2 CARD16 sequence number 4 ALARM alarm 8 INT64 counter value 8 INT64 alarm value 4 TIME timestamp 1 ALARMSTATE state 3 unused xorgproto-2023.2/specs/xextproto/appendix.xml0000644000175000017500000000406514443010026016310 00000000000000 System Window Encodings The AppGroupCreateAssoc request has the following possible variations: AppGroupCreateAssoc (X11) 1 CARD8 opcode 1 6 XC-APPGROUP opcode 2 n length 4 WINDOW window 2 0 window_type 2 4 system_window_len 4 WINDOW Window AppGroupCreateAssoc (Macintosh) 1 CARD8 opcode 1 6 XC-APPGROUP opcode 2 n length 4 WINDOW window 2 1 window_type 2 12 system_window_len 4 CARD32 WindowPtr 2 INT16 Rect.top 2 INT16 Rect.left 2 INT16 Rect.bottom 2 INT16 Rect.right AppGroupCreateAssoc (Win32) 1 CARD8 opcode 1 6 XC-APPGROUP opcode 2 n length 4 WINDOW window 2 2 window_type 2 4 system_window_len 4 CARD32 HWND AppGroupCreateAssoc (Win16) 1 CARD8 opcode 1 6 XC-APPGROUP opcode 2 n length 4 WINDOW window 2 3 window_type 2 4 system_window_len 2 CARD16 HWND offset 2 CARD16 HWND segment xorgproto-2023.2/specs/xextproto/lbx.xml0000644000175000017500000047552214443010026015277 00000000000000 %defs; ]>
Low Bandwidth X Extension X Consortium Standard Donna Converse Jim Fulton David Lemke Ralph Mor Keith Packard Ray Tice Dale Tonogai X Version 11, Release &fullrelvers; Version 1.0 1996X Consortium 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 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The OpenGroup. Introduction Low Bandwidth X (LBX) is a network-transparent protocol for running X Window System applications over transport channels whose bandwidth and latency are significantly worse than that used in local area networks. It combines a variety of caching and reencoding techniques to reduce the volume of data that must be sent over the wire. It can be used with existing clients by placing a proxy between the clients and server, so that the low bandwidth/high latency communication occurs between the proxy and server. This extension was designed and implemented by Jim Fulton, David Lemke, Keith Packard, and Dale Tonogai, all of Network Computing Devices (NCD). Chris Kent Kantarjiev (Xerox PARC) participated in early design discussions. Ralph Mor (X Consortium) designed and implemented additional sections. Donna Converse (X Consortium) authored the protocol description and encoding from design notes and the implementation. Ray Tice (X Consortium) resolved the open issues in the design and specification. Bob Scheifler (X Consortium) helped out in many areas. The extension name is "LBX". Description The design center for LBX is to use a proxy as an intermediary between the client and server. The proxy reencodes and compresses requests, events, replies and errors, as well as the resulting data stream. Additionally, the proxy can cache information from the server to provide low-latency replies to clients. This reply generation by the proxy is known as short-circuiting. A proxy can handle multiple clients for a given server, but does not prevent clients from connecting directly to the server. The design allows the proxy to multiplex multiple clients into a single data stream to the server. Much of LBX is implemented as an extension. The compression and reencoding changes can be isolated to the transport and dispatch portions of the server, while short-circuiting requires minor changes to the server’s colormap and property code. LBX employs several different compression and short-circuiting methods. Use of these methods is negotiable, and in some cases, the algorithm used by a given method is negotiable as well. LBX also provides for negotiation of extensions to LBX. Data Flow The LBX data stream goes through a number of layers: Client requests Read by LBX and potential byte-swapping Request-specific compression Potential byte swapping Multiplexing of client request streams Delta replacement Stream compression Transport Stream decompression Delta substitution Demultiplexing of client request streams Potential byte swapping Reencoding Request processing The reverse process occurs with X server replies, events, and errors. Tags Tags are used to support caching of large data items that are expected to be queried multiple times. Such things as the keyboard map and font metrics are often requested by multiple clients. Rather than send the data each time, the first time the data is sent it includes a tag. The proxy saves this data, so that subsequent requests can send only the tag to refer to that same data. The different types of tags are used for connection information, keyboard maps, modifier maps, fonts information and properties. Tag usage is negotiated as a boolean in the LbxStartProxy message. The proxy controls how many tags are stored in the proxy. The server may wish to observe the proxy’s InvalidateTag behavior to limit how many tags are cached at any one time. Tagged data is not shared across types of tags, but the number space used for the tag ids is. The tag ids are generated by the server. The X server keeps track of what tags are known to the proxy. The proxy can invalidate a tag if no tag bearing replies of that type are pending. The proxy sends an LbxInvalidateTag message to release the tagged data. The proxy must not invalidate connection tags unless instructed to do so by the server. If the server wishes to discard tagged data, it must either have received an LbxInvalidateTag request from the proxy or send an LbxInvalidateTag event to the proxy for that tag. Tag Substitution in Requests Many substitution requests have a tag field, followed by fields marked optional. For these requests, if the optional fields are present, the data in them is stored in the indicated tag, unless the tag is 0. If the optional fields are absent, the tag field indicates the tag that contains the data for the "optional" fields. Property Tags Property data makes special use of tags. A common use of properties is for inter-client communication. If both clients use the proxy, it is wasteful to send the data to the server and then back, when the server may never need it. LbxChangeProperty request does the same work as the core ChangeProperty request, but it does not send the data. The reply to this request contains a tag id corresponding to the data. If the property information is used locally, the server responds to LbxGetProperty with the tag, and the property data need never be sent to the server. If the server does require the data, it can issue an LbxQueryTag message. The proxy can also send the data on at any time if it judges it appropriate (i.e., when the wire goes idle). Since the proxy owns the property data, it must not invalidate the tag before sending the data back to the server via an LbxTagData request. Short-circuiting Short-circuiting is used to handle constant data. This includes atoms, color name/RGB mappings, and AllocColor calls. Atoms and color name/RGB mappings stay constant for the life of the server. AllocColor replies are constant for each colormap. Short-circuiting replaces round-trip requests with one-way requests, and can sometimes use one in place of many. Atoms are used heavily for ICCCM communication. Once the proxy knows the string to atom mapping, it has no need to send subsequent requests for this atom to the server. Colorname/RGB mappings are constant, so once the proxy sees the response from LookupColor , it need not forward any subsequent requests. Clients often use the same color cells, so once a read-only color allocation has occurred, the proxy knows what RGB values should be returned to the client. The proxy doesn't need to forward any AllocColor requests it can resolve, but it must tell the server to modify the color cell's reference count. LbxIncrementPixel is used to support this. For all three classes of short-circuiting, the proxy must still tell the server a request has occurred, so that the request sequence numbers stay in sync. This is done with LbxModifySequence . Sequence numbers cause the major complication with short-circuiting. X guarantees that any replies, events or errors generated by a previous request will be sent before those of a later request. This means that any requests that can be handled by the proxy must have their reply sent after any previous events or errors. If a proxy’s applications do not require strict adherence to the X protocol ordering of errors or events, a proxy might provide further optimization by avoiding the overhead of maintaining this ordering, however, the resulting protocol is not strictly X11 compliant. Graphics Re-encoding The LBX proxy attempts to reencode PolyPoint, PolyLine, PolySegment, PolyRectangle, PolyArc, FillPoly, PolyFillRectangle, PolyFillArc, CopyArea, CopyPlane, PolyText8, PolyText16, ImageText8, and ImageText16 requests. If the request can be reencoded, it may be replaced by an equivalent LBX form of the request. The requests are reencoded by attempting to reduce 2-byte coordinate, length, width and angle fields to 1 byte. Where applicable, the coordinate mode is also converted to Previous to improve the compressibility of the resulting data. In image requests, the image data may also be compressed. Motion events To prevent clogging the wire with MotionNotify events, the server and proxy work together to control the number of events on the wire. This is done with the LbxAllowMotion request. The request adds an amount to an allowed motion count in the server, which is kept on a per-proxy basis. Every motion notify event sent to the proxy decrements the allowed motion counter. If the allowed motion count is less than or equal to zero, motion events not required by the X protocol definition are not sent to the proxy. The allowed motion counter has a minimum value of -2^31. Event Squishing In the core protocol, all events are padded as needed to be 32 bytes long. The LBX extension reduces traffic by removing padding at the end of events, and implying the event length from its type. This is known as squishing. Master Client When the initial X connection between the proxy and the server is converted to LBX mode, the proxy itself becomes the master client. New client requests and some tag messages are sent in the context of the master client. Multiplexing of Clients The LBX proxy multiplexes the data streams of all its clients into one stream, and then splits them apart again when they are received. The LbxSwitch message is used to tell each end which client is using the wire at the time. The server should process delta requests in the order that they appear on the LBX connection. If the server does not maintain the interclient request order for requests sent by the proxy, it must still obey the semantics implied by the interclient request order so that the delta cache functions correctly. The server can affect the multiplexing of clients by the proxy using the LbxListenToOne and LbxListenToAll messages. This is useful during grabs, since the master connection can not be blocked during grabs like other clients. The proxy is responsible for tracking server grabs issued by its clients so that the proxy can multiplex the client streams in an order executable by the server. Replies must be ordered in the multiplexed data stream from the server to the proxy such that the reply carrying tagged data precedes replies that refer to that tagged data. Swapping Swapping is handled as with any X extension, with one caveat. Since a proxy can be supporting clients with different byte orders, and they all share the same wire, the length fields of all messages between the server and proxy are expressed in the proxy byte order. This prevents any problems with length computation that may occur when clients are switched. Delta cache LBX takes advantage of the fact that an X message may be very similar to one that has been previously sent. For example, a KeyPress event may differ from a previous KeyPress event in just a few bytes. By sending just the bytes that differ (or "deltas"), the number of bytes sent over the wire can be substantially reduced. Delta compaction is used on requests being sent by the proxy as well as on replies and events being sent by the server. The server and the proxy each keep per-proxy request and response caches. The response cache contains events, errors and replies. All messages are saved in the appropriate delta cache if they are of an appropriate type and more than 8 bytes long but fit within the delta cache. The number of entries in the delta cache and the maximum saved message size are negotiated in the LbxStartProxy request. The LBX requests that are never stored in the request delta cache are the LbxQueryVersion , LbxStartProxy , LbxSwitch , LbxNewClient , LbxAllowMotion , LbxDelta , LbxQueryExtension , LbxPutImage , LbxGetImage , LbxBeginLargeRequest , LbxLargeRequestData , LbxEndLargeRequest and LbxInternAtoms requests. The responses that are never stored in the response cache are LbxSwitchEvent and LbxDeltaResponse . The message carried by a delta message is also cached, if it meets the other requirements. Messages after the LbxStartProxy request are cached starting at index 0, and incrementing the index, modulo the number of entries, thereafter. The request and response caches are independently indexed. If the current message is cachable and the same length as a message in the corresponding delta cache, a delta message may be substituted in place of the original message in the protocol stream. Stream Compression Before being passed down to the transport layer messages can be passed through a general purpose data compressor. The choice of compression algorithm is negotiated with See LbxStartProxy. The proxy and server are not required to support any specific stream compressor. As an example, however, the X Consortium implementation of a ZLIB based compressor is described below. The XC-ZLIB compressor is presented with a simple byte stream - the X and LBX message boundaries are not apparent. The data is broken up into fixed sized blocks. Each block is compressed using zlib 1.0 (by Gailly & Adler), then a two byte header is prepended, and then the entire packet is transmitted. The header has the following information: out[0] = (length & 0xfff) >> 8 | ((compflag) ? 0x80 : 0); out[1] = length & 0xff; Authentication Protocols The current version of LBX does not support multipass authentication protocols for clients of the proxy. These authentication protocols return an Authenticate message in response to a connection setup request, and require additional authentication data from the client after the LbxNewClient request, and before the reply to LbxNewClient . One example of such a protocol is XC-QUERY-SECURITY-1. C Library Interfaces The C Library routines for LBX are in the Xext library. The prototypes are located in a file named "XLbx.h". Application Library Interfaces In a proxy environment, applications do not need to call these routines to take advantage of LBX. Clients can, however, obtain information about the LBX extension to the server using this interface. Use of this routine may be altered when connected through a proxy, as described in See C Library Interfaces. XLbxQueryVersion To determine the version of LBX supported by the X server, call XLbxQueryVersion . Bool XLbxQueryVersion Display * display int * major_version_return int * minor_version_return display Specifies the connection to the X server. major_version_return Returns the extension major version number. minor_version_return Returns the extension minor version number. The XLbxQueryVersion function determines if the LBX extension is present. If the extension is not present, XLbxQueryVersion returns False ; otherwise, it returns True . If the extension is present, XLbxQueryVersion returns the major and minor version numbers of the extension as supported by the X server. Proxy Library Interfaces The following interfaces are intended for use by the proxy. XLbxQueryExtension To determine the dynamically assigned codes for the extension, use the Xlib function XQueryExtension or the LBX function XLbxQueryExtension . Bool XLbxQueryExtension Display * display int * major_opcode_return int * first_event_return int * first_error_return display Specifies the connection to the X server. major_opcode_return Returns the major opcode. first_event_return Returns the first event code. first_error_return Returns the first error code. The XLbxQueryExtension function determines if the LBX extension is present. If the extension is not present, XLbxQueryExtension returns False ; otherwise, it returns True . If the extension is present, XLbxQueryExtension returns the major opcode for the extension to major_opcode_return, the base event type code to first_event_return, and the base error code to first_error_return; otherwise, the return values are undefined. XLbxGetEventBase To determine the base event type code, use the Xlib function XQueryExtension or the LBX function XLbxGetEventBase. int XLbxGetEventBase Display * display display Specifies the connection to the X server. The XLbxGetEventBase function returns the base event type code if the extension is present; otherwise, it returns -1. Protocol Syntactic Conventions and Common Types Please refer to the X Window System Protocol specification, as this document uses the syntactic conventions established there and references types defined there. The following additional types are defined by this extension: DIFFITEM 1 CARD8 offset 1 CARD8 diff LBXANGLE: CARD8 or 2 BYTE where (in order of precedence): (0 <= in <= A(95)) && !(in % A(5)) out = 0x5a + (in / A(5)) A(105) <= in <= A(360) && !(in % A(15)) out = 0x67 + (in / A(15)) -A(100) <= in <= -A(5) && !(in % A(5)) out = 0xa6 + (in / A(5)) -A(360) < in <= -A(105) && !(in % A(15)) out = 0x98 + (in / A(15)) -A(360) < in <= A(360) out[0] = in >> 8; out[1] = in LBXARC: [x, y: LBXINT16, width, height: LBXCARD16, angle1, angle2: LBXANGLE] Within a list of arcs, after the first arc, x and y are relative to the corresponding fields of the prior arc. LBXCARD16: CARD8 or 2 BYTE where: 0x0000 <= in < 0x00F0 CARD8 0x00F0 <= in < 0x10F0 out[0] = 0xF0 | ((in - 0xF0) >> 8) out[1] = in - 0xF0 LBXGCANDDRAWENT [ gc-cache-index, drawable-cache-index: CARD4 ] LBXGCANDDRAWUPDATE drawable: DRAWABLE /* present only if drawable-cache-index == 0 */ gc: GC] /* present only if gc-cache-index == 0 */ LBXGCANDDRAWABLE cache-entries: LBXGCANDDRAWENT updates: LBXGCANDDRAWUPDATE LBXINT16: INT8 or 2 BYTE where: 0xF790 <= in < 0xFF90 out[0] = 0x80 | (((in + 0x70) >> 8) & 0x0F) out[1] = in + 0x70 0xFF90 <= in < 0x0080 CARD8 0x0080 <= in < 0x0880 out[0] = 0x80 | (((in - 0x80) >> 8) & 0x0F) out[1] = in - 0x80 LBXPINT16: CARD8 or 2 BYTE /* for usually positive numbers */ where: 0xFE00 <= in < 0x0000 out[0] = 0xF0 | (((in + 0x1000) >> 8) & 0x0F) out[1] = in + 0x1000 0x0000 <= in < 0x00F0 CARD8 0x00F0 <= in < 0x0EF0 out[0] = 0xF0 | ((in - 0xF0) >>8) out[1] = in - 0xF0 LBXPOINT: [x, y: LBXINT16] Within a list of points, after the first rectangle, x and y are relative to the corresponding fields of the prior point. LBXRECTANGLE: [x, y: LBXINT16, width, height: LBXCARD16] Within a list of rectangles, after the first rectangle, x and y are relative to the corresponding fields of the prior rectangle. MASK: CARD8 Errors As with the X11 protocol, when a request terminates with an error, the request has no side effects (that is, there is no partial execution). There is one error, LbxClient . This error indicates that the client field of an LBX request was invalid, or that the proxy’s connection was in an invalid state for a start or stop proxy request. Requests There is one request that is expected to be used only by the client: LbxQueryVersion There is one request that is expected to be used by the client or the proxy: LbxQueryExtension . The following requests are expected to be used only by the proxy, and are instigated by the proxy: LbxStartProxy , LbxStopProxy , LbxNewClient , LbxSwitch , LbxCloseClient , LbxModifySequence , LbxAllowMotion , LbxInvalidateTag , LbxTagData and LbxQueryTag . All other requests are sent by the proxy to the LBX server and are instigated by reception of an X request from the client. They replace the X request. Requests Initiated by the Proxy or by the Client LbxQueryVersion =>; majorVersion: CARD16 minorVersion: CARD16 This request returns the major and minor version numbers of the LBX protocol. The encoding of this request is on See LbxQueryVersion. Requests Initiated or Substituted by the Proxy LbxQueryExtension nbytes : CARD32 name : STRING8 => num-requests: CARD8 present: BOOL major-opcode: CARD8 first-event: CARD8 first-error: CARD8 reply-mask: LISTofMASK /* optional */ event-mask:LISTofMASK /* optional */ Errors: Alloc This request is identical to the QueryExtension request, with an additional field, and two optional additional fields. When the client issues an QueryExtension request, the proxy will substitute an LbxQueryExtension request. This request determines if the named extension is present. If so, the major opcode for the extension is returned, if it has one. Otherwise, zero is returned. Any minor opcode and the request formats are specific to the extension. If the extension involves additional event types, the base event type code is returned. Otherwise, zero is returned. The format of events is specific to the extension. If the extension involves additional error codes, the base error code is returned. Otherwise, zero is returned. The format of additional data in the errors is specific to the extension. In addition, the number of requests defined by the named extension is returned. If the number of requests is nonzero, and if the information is available, reply-mask and event-mask will be included in the reply. The reply-mask represents a bit-wise one-to-one correspondence with the extension requests. The least significant bit corresponds to the first request, and the next bit corresponds to the next request, and so on. Each element in the list contains eight meaningful bits, except for the last element, which contains eight or fewer meaningful bits. Unused bits are not guaranteed to be zero. The bit corresponding to a request is set if the request could generate a reply, otherwise it is zero. In the same way, the event-mask represents a bit-wise one-to-one correspondence with the extension requests. A bit is set if the corresponding request could result in the generation of one or more extension or X11 events. If reply-mask is present in the reply, event-mask will also be present. The encoding of this request is on See LbxQueryExtension. Control Requests Initiated by the Proxy LbxStartProxy options : LISTofOPTION => choices: LISTofCHOICE Errors: LbxClient , Alloc where: OPTION [optcode: CARD8, len: OPTLEN, option: (See See StartProxy Options) ] CHOICE [optcode: CARD8, len: OPTLEN, choice: (See See StartProxy Options) ] StartProxy Options optcode option choice default delta-proxy DELTAOPT DELTACHOICE entries=16, maxlen=64 delta-server DELTAOPT DELTACHOICE entries=16, maxlen=64 stream-comp LISTofNAMEDOPT INDEXEDCHOICE No Compression bitmap-comp LISTofSTRING8 LISTofINDEXEDOPT No Compression pixmap-comp LISTofPIXMAPMETHOD LISTofPIXMAPCHOICE No Compression use-squish BOOL BOOL True use-tags BOOL BOOL True colormap LISTofSTRING8 INDEXEDCHOICE No Colormap Grabbing extension NAMEDOPT INDEXEDCHOICE Extension Disabled
  DELTAOPT [minN, maxN, prefN: CARD8 minMaxMsgLen, maxMaxMsgLen, prefMaxMsgLen: CARD8] DELTACHOICE [entries, maxlen: CARD8] INDEXEDCHOICE [index: CARD8, data: LISTofBYTE] INDEXEDOPT [index, opcode: CARD8] NAMEDOPT [name: STRING8, detail: LISTofBYTE] OPTLEN 1 or 3 CARD8 where: (0 < in <= 0xFF): out = in (0 <= in<= 0xFFFF): out[0] = 0; out[1] = in >> 8; out[2] = in& 0xFF; PIXMAPMETHOD [name: STRING8, format-mask: BITMASK, depths: LISTofCARD8] PIXMAPCHOICE [index, opcode: CARD8, format-mask: BITMASK, depths: LISTofCARD8] This request negotiates LBX protocol options, and switches the proxy-server connection from X11 protocol to LBX protocol. The proxy gives the preferred protocol options in the request. The server chooses from the given options and informs the proxy which to use. The options may be listed in any order, and the proxy may choose which options to negotiate. If an option is not successfully negotiated, the default is used. The server delta cache and proxy delta caches can be configured for number of entries, and the length of entries. (See See Delta cache for details.) The delta caches are configured using the delta-server and delta-proxy options. To configure a cache, the proxy sends the minimum, maximum and preferred values for the number of cache entries, ( minN, maxN, prefN ), and the length of the cache entries, ( minMaxMsgLen, maxMaxMsgLen, prefMaxMsgLen ). The server’s reply fields, entries and maxlen , contains the values to use. These values must be within the ranges specified by the proxy. The server may also specify an entries value of 0 to disable delta caching. The cache entry lengths are specified in units of 4 bytes. The stream compression algorithm is selected using the stream-comp option. (Stream compression is described in See Stream Compression.) Each algorithm has a name that follows the naming conventions in See Algorithm Naming. To negotiate using the stream-comp option, the proxy lists its available compressors. For each candidate algorithm, the proxy sends the name in the name field, and uses the detail field to send any additional data specific to each compression algorithm. The reply contains a 0-based index into the list of algorithms to indicate which algorithm to use, followed by data specific to that algorithm. Bitmap compression is negotiated using the bitmap-comp option. The proxy sends a list of names of available algorithms, and the server reply lists the algorithms to use. For each bitmap algorithm in the reply, a 0-based index into the list of algorithms indicates the algorithm, and the opcode field gives the value for use in requests. The algorithm names follow the conventions in See Algorithm Naming. Pixmap compression is negotiated using the pixmap-comp option. The proxy sends a list of available algorithms. For each algorithm, the list includes, the name, a bitmask of supported formats, and a list of depths that the format supports. The server reply lists the algorithms to use. For each pixmap algorithm in the reply, the reply contains a 0-based index into the list of proxy algorithms, the opcode to use in requests when referring to this algorithm, a mask of valid formats, and a list of valid depths. Algorithm names follow the conventions in See Algorithm Naming. Squishing is negotiated using the use-squish option. If the proxy desires squishing, it sends a true value. The reply from the server indicates whether to do squishing, and will indicate squishing only if use-squish is set to true in the request. Tag caching, described in See Tags, is negotiated using the use-tag option. If the proxy desires tag caching, it sends a true value. The reply from the server indicates whether to do tag caching, and will demand caching only if use-tag is set to true in the request. The colormap option is used to negotiate what color matching algorithm will be used by the proxy when the proxy uses the LbxAllocColor request to allocate pixels in a grabbed colormap. To negotiate using the colormap option, the proxy lists the names of available colormap algorithms. The choice in the reply contains a 0-based index into the list of algorithms to indicate which algorithm to use, followed by data specific to that algorithm. If no colormap algorithm is successfully negotiated, then the LbxAllocColor , LbxGrabCmap , and LbxReleaseCmap requests will not be used. The extension option is used to control extensions to LBX. These extensions may, for example, enable other types of compression. To negotiate an extension, the name of the extension is sent, followed by any data specific to that extension. The extension name follows the conventions in See Algorithm Naming. The extension option may occur multiple times in the start proxy message, since multiple extensions can be negotiated. The reply to an extension option contains the zero-based index of the extension option, as counted in the LbxStartProxy message. This index is followed by extension-specific information. The server does not respond to extensions it does not recognize. An LbxClient error is returned when a client which is already communicating through an LBX proxy to the X server sends a LbxStartProxy request. The encoding for this request is on See LbxStartProxy. LbxStopProxy Errors: LbxClient This request terminates the connection between the proxy and X server, and terminates any clients connected through the proxy. The encoding for this request is on See LbxStopProxy. An LbxClient error is returned if the requesting client is not an LBX proxy. LbxNewClient byte-order : CARD8 client-id : CARD32 protocol-major-version : CARD16 protocol-minor-version: CARD16 authorization-protocol-name : STRING8 authorization-protocol-data : STRING8 => Core X reply (if connection is rejected)   OR   success: BOOL change-type: {NoDeltas, NormalClientDeltas, AppGroupDeltas} protocol-major-version: CARD16 protocol-minor-version: CARD16 tag-id: CARD32 length: CARD16 connection-data: CONINFO or CONDIF or CONDIFROOT   where: CONINFO: (the "additional data" portion of the core connection reply for successes) CONDIF: [resource-id-base: CARD32, root-input-masks: LISTofSETofEVENT] CONDIFROOT: [resource-id-base: CARD32, root: WINDOW root-visual: VISUALID default-colormap: COLORMAP white-pixel, black-pixel: CARD32 root-input-masks: LISTofSETofEVENT] Errors: LbxClient, Alloc This request, which is sent by the proxy over the control connection, creates a new virtual connection to the server. Much of the information in the LbxNewClient request and reply is identical to the connection setup and reply information in the core X protocol. For the LbxNewClient request, the field unique to LBX is client-id. For the LbxNewClient reply, tag-id and change-type are fields unique to LBX, and the contents of connection-data may be different in LBX from the core X protocol (see below). The proxy assigns each virtual connection a unique identifier using the client-id field in the LbxNewClient request. This client-id is used in the LBX protocol to specify the current client (see the LbxSwitch request and the LbxSwitchEvent ). client-id 0 is reserved for the proxy control connection. An LbxClient error will result if the LbxNewClient request contains a client-id of 0 or an already in use client-id. If the server rejects this new virtual connection, the server sends a core X connection failure reply to the proxy. The current version of LBX does not support the return of an Authenticate reply. If the change-type field is set to NoDeltas , then connection-data is sent using the CONINFO structure, which is identical to the additional data of the core connection reply. If the tag-id is non-zero, then the connection-data is stored by the proxy using this tag value. Tagged connection data must be stored by the proxy, and can not be invalidated by the proxy until an LbxInvalidateTag event is received for that tag. When the change-type field is not set to NoDeltas , then connection data is sent as changes against connection information previously sent to the proxy. The tag-id field, if non-zero, has the tag of the previously sent data to apply the changes to. A zero tag-id indicates that the changes are with respect to the connection information sent when the proxy connected to the server. If the change-type field is set to NormalClientDeltas , then connection-data is sent using the CONDIF structure. The values in the CONDIF structure are substituted for the identically named fields of the connection information for the new connection. If the change-type field is set to AppGroupDeltas , then connection-data is sent using the CONDIFROOT structure. The root , root-visual , and default-colormap fields, when nonzero, are substituted for the corresponding fields in the reference connection information. The white-pixel and black-pixel fields are substituted only when the default-colormap field of the reply is non-zero. When default-colormap field of the reply is zero, so are white-pixel and black-pixel . The first entry in the root-input-masks field is the current-input-mask for the default root window. The remaining entries in root-input-masks are input masks for non-video screens, as defined by the X Print Extension. The number of non-video screens is one less than the number of entries in root-input-masks . These screens are at the end of screen list in the reference connection information. The encoding for this request is on See The description of this request is on page 13.. LbxCloseClient client : CARD32 Errors: LbxClient This requests the server to close down the connection represented by the specified proxy’s client identifier. If the specified client wasn’t previously registered with the server by a LbxNewClient request, the server will send the LbxClient error. The encoding for this request is on See The description of this request is on page 12.. LbxSwitch client : CARD32 Errors: LbxClient This request causes the X server to treat subsequent requests as being from a connection to the X server represented by the specified client identifier. If the client making the request is not the proxy, or if the client identifier sent in the request was not previously sent in a LbxNewClient request, an LbxClient error is returned. The encoding for this request is on See LbxSwitch. LbxSync => The sync request causes the server to send a reply when all requests before the sync request have been processed. The encoding for this client is on See LbxSync. LbxModifySequence adjust : CARD32 Errors: None This request advances the sequence number of the virtual client connection by the specified amount. The proxy sends the LbxModifySequence request to the server when it replies to a client request without forwarding the client request on to the X server. The encoding for this client is on See The description of this request is on page 13.. LbxAllowMotion num : CARD32 Errors: None This request controls the delivery of optional motion notify events, as described in See Motion events. The num field specifies an increase in the allowed number of motion notify events sent. The encoding for this request is on See The description of this request is on page 14.. LbxInvalidateTag tag : CARD32 The LBX proxy sends this notification to the X server when it refuses to store tagged data, or when it releases tagged data which was previously stored and which was not invalidated by a notification from the X server. The encoding for this request is on See LbxInvalidateTag. LbxTagData tag : CARD32 real-length : CARD32 data : LISTofBYTE This request specifies the data associated with a previously assigned tag. It is sent in two circumstances: in response to receiving a SendTagDataEvent , and spontaneously, when the proxy must rely on the server to store data which was not previously received from the server. The data is carried in the byte order and structure as would have originally been sent in the core protocol request. The encoding for this request is on See LbxTagData. LbxGrabCmap cmap : Colormap => smart-grab : BOOL large-pixel: BOOL /* optional */ auto-release: BOOL /* optional */ three-channels : BOOL /* optional */ bits-per-rgb: CARD4 /* optional */ cells : LISTofCHAN /* optional */   where: CHAN: LISTofLBXPIXEL LBXPIXEL: PIXELPRIVATE or PIXELPRIVATERANGE or PIXELALLOC or PIXELALLOCRANGE PIXEL: CARD8 or CARD16 PIXELPRIVATE: [ pixel: PIXEL ] PIXELPRIVATERANGE: [ first-pixel, last-pixel: PIXEL] PIXELALLOC: [ pixel: PIXEL, color: COLORSINGLE or COLORTRIPLE] PIXELALLOCRANGE: [ first-pixel, last-pixel: PIXEL, colors: LISTofCOLORSINGLE or LISTofCOLORTRIPLE] COLORSINGLE: [ value: CARD8 or CARD16 ] COLORTRIPLE: [ r, g, b: COLORSINGLE] Errors: Colormap This request asks the server for control of allocating new colormap cells in the specified colormap. The server grants control by replying to this request. If no changes have occurred since the last time this proxy grabbed this colormap, then the smart-grab field of the reply is set to true, and the optional fields are not sent. Otherwise, the current contents of the colormap are placed in the reply, as described later in this section. Once the proxy has received the reply, it can use the LbxAllocColor request to allocate new colormap cells without the performance penalty of round trips. The proxy is still permitted to use the normal colormap and LbxIncrementPixel requests while the colormap is grabbed. The grab is valid across all virtual connections of the proxy. The LbxGrabCmap request is limited to colormaps for the visual types negotiated as part of the colormap algorithm negotiation in the start proxy request at connection setup. The server and other proxies may not allocate new colormap cells in the colormap while the colormap is grabbed by this proxy. If the server or another proxy needs to allocate new colormap cells, the server sends a Lbx ReleaseCmap event to the proxy holding the grab, which then issues an LbxReleaseCmap request. The server and other proxies may free colormap cells in a colormap grabbed by a proxy. The server will send an LbxFreeCells event to the proxy that currently has the colormap grabbed when the cell reference count reaches 0. If the colormap is a of a static visual type, such as StaticGray , StaticColor , GrayScale , or TrueColor , then the proxy’s grab is immediately released by the server, and the proxy must use LbxIncrementPixel requests in place of LbxAllocColor requests for this colormap. If the cmap field does not refer to a valid colormap or the colormap is already grabbed by this proxy then a Colormap error is generated. The reply describes the contents of the colormap via several arguments and a descriptive list containing one or three channels, with each channel describing allocations in the colormap. The large-pixel argument, if True, specifies that PIXEL indices will be listed as CARD16 quantities instead of CARD8. The auto-release field, if True, indicates that this colormap is of a static visual type and the proxy’s grab is immediately released by the server. If three-channels is False, a single channel is enclosed and color values are described using COLORTRIPLE, which has fields for red, green and blue. A single channel is used when the visual type is not DirectColor or TrueColor . If three-channels is True, separate red, green and blue channel lists are enclosed, for describing a DirectColor or TrueColor colormap. Color values for entries in each channel are sent using COLORSINGLE and the corresponding PIXEL value refers to the RGB subfield of the current channel, as defined by the corresponding red-mask, green-mask and blue-mask of the visual. The bits-per-rgb value is one less than the bits-per-rgb-value field of the visual that the colormap belongs to. If the value is 7 or less, then COLORSINGLE values in the descriptive list are sent using CARD8 fields. Otherwise these values are sent using CARD16 fields. The list describing current colormap allocations contains entries of the following types: An LBXPIXELPRIVATE entry indicates that the pixel in the pixel field is unavailable for allocation. An LBXPIXELPRIVATERANGE entry indicates that a contiguous range of pixels are unavailable for allocation. The range is first-pixel to last-pixel , and includes last-pixel . An LBXPIXELALLOC entry indicates that the pixel in the pixel field is allocated as a read-only pixel. The color field carries the color information of the pixel. An LBXPIXELALLOCRANGE entry indicates that a contiguous range of pixels are allocated as read-only. The range starts first-pixel to last-pixel , and includes last-pixel . These fields are followed by a list of COLORSINGLE or COLORTRIPLE, depending on the value of three-channels . A NEXTCHANNEL entry indicates that the next channel of the colormap will be described. A LISTEND entry indicates the end of the colormap description. All pixels not described in the reply are unallocated. The encoding for this request is on See LbxGrabCmap. LbxReleaseCmap cmap : Colormap This request releases the specified grabbed colormap. If the cmap field does not refer to a colormap, a BadColormap error is produced. The proxy must remember the state of the colormap when the LbxReleaseCmap request is issued if this proxy may at some future time issue another LbxGrabCmap request on this colormap before the state of the colormap changes. The encoding for this request is on See LbxReleaseCmap. LbxInternAtoms count : CARD16 names: LISTofSTRING8 => atoms : LISTofATOM Errors: Alloc This request allows the proxy to intern a group of atoms in a single round trip. The server will create any atoms that do not exist. The encoding for this request is on See LbxInternAtoms.
Substitution Requests LbxAllocColor cmap : Colormap pixel : CARD32 red , green , blue : CARD16 This request is sent by a proxy that has given colormap grabbed to allocate a new read-only cell in the colormap. The proxy may substitute this request for the core AllocColor and AllocNamedColor requests. The pixel field identifies the colormap cell to allocate. The red , green , and blue fields are the hardware specific color values of the corresponding fields of the core AllocColor request. The mapping to hardware specific colormap values by the proxy is performed using the color algorithm negotiated by LbxStartProxy . For colormaps of static visual types, the LbxIncrementPixel request is used instead of LBX AllocColor . If the cmap field does not identify a grabbed colormap then a BadAccess error is produced. If the pixel field refers to a read-write entry, or the pixel field refers to a pixel outside of the range of this colormap, a BadAlloc error is produced. The encoding for this request is on See LbxAllocColor. LbxIncrementPixel cmap : COLORMAP pixel : CARD32 Errors: None This request replaces the AllocColor request for read-only pixels currently allocated for the current client. If the visual type of the colormap is of a static type, this request may be used on currently unallocated pixels. The colormap is not required to be grabbed to use this request. The encoding for this request is on See The description of this request is on page 14.. LbxDelta count : CARD8 cache-index : CARD8 diffs : LISTofDIFFITEM This request contains a minimal amount of information relative to a similar prior request. The information is in the form of a difference comparison to a prior request. The prior request is specified by an index to a cache, independently maintained by both the proxy and the server. The encoding for this request is on See The description of this request is on page 18.. LbxGetModifierMapping => keyspermod : CARD8 tag : CARD32 keycodes : LISTofKEYCODE /* optional */ This request is identical to the core GetModifierMapping request, with the addition of a tag being returned in the reply. See See Tag Substitution in Requests for a description of the tag field and optional fields. The encoding for this request is on See LbxGetModifierMapping. LbxGetKeyboardMapping firstKeyCode : KEYCODE count : CARD8 => keysperkeycode : CARD8 tag : CARD32 keysyms : LISTofKEYSYM /* optional */ Errors: Value This request is identical to the X GetKeyboardMapping protocol request, with the addition that a tag is returned in the reply. See See Tag Substitution in Requests for a description of the tag field and optional fields. The encoding for this request is on See LbxGetKeyboardMapping. LbxGetWinAttrAndGeom window : WINDOW => visual: VISUALID class: {InputOutput, InputOnly} bit-gravity: BITGRAVITY win-gravity: WINGRAVITY backing-store: {NotUseful, WhenMapped, Always} backing-planes: CARD32 backing-pixel: CARD32 save-under: BOOL colormap: COLORMAP or None map-is-installed: BOOL map-state: {Unmapped, Unviewable, Viewable} all-event-masks, your-event-mask: SETofEVENT do-not-propagate-mask: SETofDEVICEEVENT override-redirect: BOOL root: WINDOW depth: CARD8 x, y: INT16 width, height, border-width: CARD16 Errors: Window GetWindowAttributes and GetGeometry are frequently used together in the X protocol. LbxGetWinAttrAndGeom allows the proxy to request the same information in one round trip. The encoding for this request is on See LbxGetWinAttrAndGeom. LbxQueryFont font : FONTABLE => compression: BOOL tag: CARD32 font-info: FONTINFO /* optional */ char-infos: LISTofCHARINFO or LISTofLBXCHARINFO /* optional */ where: LBXCHARINFO: [left-side-bearing: INT6 right-side-bearing: INT7 character-width: INT6 ascent: INT6 descent: INT7] Errors: Font,Alloc This request is used to replace the core QueryFont request and has identical semantics. See See Tag Substitution in Requests for a description of the tag field and optional fields. The compression field is True if the char-infos field is represented using LBXCHARINFO. The per-character information will be encoded in an LBXCHARINFO when, for every character, the character-width, left-side-bearing, and ascent can each be represented in not more than 6 bits, and the right-side-bearing and descent can each be represented in not more than 7 bits, and the attributes field is identical the attributes field of the max_bounds of the font_info field of the font. The encoding for this request is on See LbxQueryFont. LbxChangeProperty window : WINDOW property : ATOM type : ATOM format : {0,8,16,32} mode : {Replace, Prepend, Append} nUnits : CARD32 => tag: CARD32 This request is sent to the server when the client sends an X ChangeProperty request through the proxy. The size of the data is sent with this request, but not the property data itself. The server reply contains a tag identifier for the data, which is stored in the proxy. The proxy must not discard this data before it is sent to the server, or invalidated by the server. This means that before issuing an LbxStopProxy request, or exiting, the proxy must send Lbx TagData requests for these items. If the server loses the connection before the information is sent back, the server should revert the property value to its last known value, if possible. If the mode field is Prepend or Append , the tag refers only to the prepended or appended data. If the tag in the reply is zero, then the change was ignored by the server, as defined in the security extension. The proxy should dump the associated data, since the server will never ask for it. The encoding for this request is on See LbxChangeProperty. LbxGetProperty window : WINDOW property : ATOM type : ATOM or AnyPropertyType long-offset : CARD32 long-length : CARD32 delete : CARD8 => type: ATOM or None format: {0, 8, 16, 32} bytes-after: CARD32 nItems: CARD32 tag: CARD32 value: LISTofINT8 or LISTofINT16 or LISTofINT32 This request may be used by the proxy as a substitution for a core GetProperty request. It allows tags to be used for property data that is unlikely to change often in value, but is likely to be fetched by multiple clients. The LbxGetProperty request has the same arguments as the core GetProperty request. The reply for LbxGetProperty has all of the fields from the core GetProperty reply, but has the additional fields of nItems and tag . In order to utilize tags in LbxGetProperty for a specific property, the server must first send the complete property data to the proxy and associate this data with a tag. More precisely, the server sends an LbxGetProperty reply with a new tag , nItems set to the number of items in the property, the size of the property data in the reply length field, and the complete property data in value. The proxy stores the property data in its tag cache and associates it with the specified tag. In response to future LbxGetProperty requests for the same property, if the server thinks that the proxy has the actual property data in its tag cache, it may choose to send an LbxGetProperty reply without the actual property data. In this case, the reply would include a non-zero tag , a zero reply length, and no data for value. If the server chooses not to generate a tagged reply to LbxGetProperty , or for some reason is unable to do so, it would send a reply with a tag of zero, the size of the property data in the reply length field, and the complete property data in value. The encoding for this request is on See LbxGetProperty. LbxPolyPoint gc-and-drawable: LBXGCANDDRAWABLE points : LISTofLBXPOINT Errors: Alloc and those given for the corresponding X request. This request replaces the PolyPoint request. Not all PolyPoint requests can be represented as LbxPolyPoint requests. The proxy will convert the representation of the points to be relative to the previous point, as described by previous coordinate mode in the X protocol. The encoding for this request is on See LbxPolyPoint. LbxPolyLine gc-and-drawable: LBXGCANDDRAWABLE points : LISTofLBXPOINT Errors: Alloc and those given for the corresponding X request. This request replaces the PolyLine request. Not all PolyLine requests can be represented as LbxPolyline requests. The proxy will convert the representation of the points to be relative to the previous point, as described by previous coordinate mode in the X protocol. The encoding for this request is on See The description of this request is on page 21.. LbxPolySegment gc-and-drawable: LBXGCANDDRAWABLE segments : LISTofLBXSEGMENT   where: LBXSEGEMENT; [x1, y1, x2, y2: LBXINT16] Errors: Alloc and those given for the corresponding X request. This request replaces the PolySegment request. Not all PolySegment requests can be represented as LbxPolySegment requests. For segments other than the first segment of the request, [x1, y1] is relative to [x1, y1] of the previous segment. For all segments, [x2, y2] is relative to that segment’s [x1, y1]. The encoding for this request is on See LbxPolySegment. LbxPolyRectangle gc-and-drawable: LBXGCANDDRAWABLE rectangles : LISTofLBXRECTANGLE Errors: Alloc and those given for the corresponding X request. This request replaces the PolyRectangle request. Not all PolyRectangle requests can be represented as LbxPolyRectangle requests. The encoding for this request is on See The description of this request is on page 22.. LbxPolyArc gc-and-drawable: LBXGCANDDRAWABLE arcs : LISTofLBXARC Errors: Alloc and those given for the corresponding X request. This request replaces the PolyArc request. Not all PolyArc requests can be represented as LbxPolyArc requests. The encoding for this request is on See LbxPolyArc. LbxPolyFillRectangle gc-and-drawable: LBXGCANDDRAWABLE rectangles : LISTofLBXRECTANGLE Errors: Alloc and those given for the corresponding X request. This request replaces the PolyFillRectangle request. Not all PolyFillRectangle requests can be represented as LbxPolyFillRectangle requests. The encoding for this request is on See LbxPolyFillRectangle. LbxPolyFillArc gc-and-drawable: LBXGCANDDRAWABLE arcs : LISTofLBXARC Errors: Alloc and those given for the corresponding X request. This request replaces the PolyFillArc request. Not all PolyFillArc requests can be represented as LbxPolyFillArc requests. The encoding for this request is on See The description of this request is on page 22.. LbxFillPoly gc-and-drawable: LBXGCANDDRAWABLE shape : BYTE points : LISTofLBXPOINT Errors: Alloc and those given for the corresponding X request. This request replaces the FillPoly request. Not all FillPoly requests can be represented as LbxFillPoly requests. The proxy will convert the representation of the points to be relative to the previous point, as described by previous coordinate mode in the X protocol. The encoding for this request is on See LbxFillPoly. LbxCopyArea srcCache : CARD8 /* source drawable */ gc-and-drawable: LBXGCANDDRAWABLE src-Drawable : CARD32 src-x : LBXPINT16 src-y : LBXPINT16 width : LBXCARD16 height : LBXCARD16 dst-x : LBXPINT16 dst-y : LBXPINT16 Errors: Those given for the corresponding X request. This request replaces the CopyArea request for requests within its encoding range. The encoding for this request is on See LbxCopyArea. LbxCopyPlane bit-plane : CARD32 src-cache : CARD8 /* cache reference for source drawable */ gc-and-drawable: LBXGCANDDRAWABLE src-drawable : CARD32 src-x : LBXPINT16 src-y : LBXPINT16 width : LBXCARD16 height : LBXCARD16 dst-x : LBXPINT16 dst-y : LBXPINT16 Errors: Those given for the corresponding X request. This request replaces the CopyPlane request for requests within its coding range. The encoding for this request is on See LbxCopyPlane. LbxPolyText8 gc-and-drawable: LBXGCANDDRAWABLE x : LBXPINT16 y : LBXPINT16 items : LISTofTEXTITEM8 Errors: Alloc , and those given for the corresponding X request. This request replaces the PolyText8 request for requests within its encoding range. The encoding for this request is on See The description of this request is on page 23.. LbxPolyText16 gc-and-drawable: LBXGCANDDRAWABLE x: LBXPINT16 y : LBXPINT16 items : LISTofTEXTITEM16 Errors: Alloc , and those given for the corresponding X request. This request replaces the PolyText16 request for requests within its encoding range. The encoding for this request is on See The description of this request is on page 24.. LbxImageText8 gc-and-drawable: LBXGCANDDRAWABLE nChars : CARD8 x : LBXPINT16 y : LBXPINT16 string : STRING8 Errors: Alloc , and those given for the corresponding X request. This request replaces the ImageText8 request for requests within its encoding range. The encoding for this request is on See The description of this request is on page 24.. LbxImageText16 nChars : CARD8 gc-and-drawable: LBXGCANDDRAWABLE x: LBXPINT16 y : LBXPINT16 string : STRING16 Errors: Alloc , and those given for the corresponding X request. This request replaces the ImageText16 request for requests within its encoding range. The encoding for this request is on See The description of this request is on page 24.. LbxPutImage compression-method : CARD8 format : { Bitmap , XYPixmap , ZPixmap } /* packed */ gc-and-drawable: LBXGCANDDRAWABLE width , height : LBXCARD16 dst-x , dst-y : LBXPINT16 depth : CARD8 /* packed */ left-pad : CARD8 /* packed */ pad-bytes : CARD8 /* packed */ data :LISTofBYTE Errors: Alloc , Value When the request can be usefully compressed, this request replaces the PutImage request. The compression-method parameter contains the opcode of a compression method returned in the LbxStartProxy reply. The pad-bytes parameter gives the number of unused pad bytes that follow the compressed image data. All other parameters are as in the X request. If the specified compression method is not recognized, the server returns a Value error. The encoding for this request is on See LbxPutImage. LbxGetImage drawable : DRAWABLE x , y : INT16 width , height : CARD16 plane-mask : CARD32 format : {XYPixmap, ZPixmap} => depth: CARD8 x-length: CARD32 visual: VISUALID or None compression-method: CARD8 data: LISTofBYTE Errors: Alloc,Match,Value This request can replace the GetImage request. The same semantics apply, with the following exceptions. The compression-method field contains the opcode of the compression method used in the reply. The compression opcodes are supplied in the LbxStartProxy reply. The x-length field contains the length of the uncompressed version of the reply in 4 byte units. A Value error is returned if the format is not recognized by the X server. A Match error is returned under the same circumstances as described by the GetImage request. The encoding for this request is on See LbxGetImage. LbxBeginLargeRequest large-request-length : CARD32 Errors: Alloc This request, along with the Lbx LargeRequestData and Lbx EndLargeRequest requests, is used to transport a large request in pieces. The smaller size of the resulting requests allows smoother multiplexing of clients on a single low bandwidth connection to the server. The resulting finer-grained multiplexing improves responsiveness for the other clients. After a LbxBeginLargeRequest request is sent, multiple LbxLargeRequestData requests are sent to transport all of the data in the large request, and finally an LbxEndLargeRequest request is sent. The large-request-length field expresses the total length of the transported large request, expressed as the number of bytes in the transported request divided by four. The encoding for this request is on See The description of this request is on page 25.. LbxLargeRequestData data : LISTofBYTE Errors: Alloc This request is used to carry the segments of a larger request, as described in the definition of LbxBeginLargeRequest . The data must be carried in order, starting with the request header, and each segment must be multiples of 4 bytes long. If the LbxLargeRequestData is not preceded by a corresponding LbxBeginLargeRequest , a BadAlloc error is generated. The encoding for this request is on See The description of this request is on page 26.. LbxEndLargeRequest Errors: Length, Alloc As described in the definition of LbxBeginLargeRequest , LbxEndLargeRequest is used to signal the end of a series of LargeRequestData requests. If the total length of the data transported by the LbxLargeRequestData requests does not match the large-request-length field of the preceding LbxBeginLargeRequest request, then a Length error occurs. If the LbxEndLargeRequest is not preceded by a corresponding LbxBeginLargeRequest , a BadAlloc error is generated. The request is executed in order for that client as if it were the request after the request preceding LbxEndLargeRequest . The encoding for this request is on See LbxEndLargeRequest.
Events LbxSwitchEvent client : CARD32 Notify the proxy that the subsequent replies, events, and errors are relative to the specified client. The encoding for this event is on See LbxSwitchEvent. LbxCloseEvent client : CARD32 Notify the proxy that the specified client's connection to the server is closed. The encoding for this event is on See The description of this event is on page 27.. LbxInvalidateTagEvent tag : CARD32 tag-type : {Modmap, Keymap, Property, Font, ConnInfo} This message informs the proxy that the tag and the server data referenced by the tag are obsolete, and should be discarded. The tag type may be one of the following values: LbxTagTypeModmap , LbxTagTypeKeymap , LbxTagTypeProperty , LbxTagTypeFont , LbxTagTypeConnInfo . The encoding for this event is on See LbxInvalidateTagEvent. LbxSendTagDataEvent tag : CARD32 tag-type : {Property} The server sends this event to the proxy to request a copy of tagged data which is being stored by the proxy. The request contains a tag which was previously assigned to the data by the server. The proxy should respond to SendTagData by sending a TagData request to the server. The tag type may be one of the following values: LbxTagTypeProperty . The encoding for this event is on See LbxSendTagDataEvent. LbxListenToOne client : CARD32 or 0xffffffff When the server is grabbed, ListenToOne is sent to the proxy. As an X client, the proxy itself is unaffected by grabs, in order that it may respond to requests for data from the X server. When the client grabbing the server is managed through the proxy, the proxy will permit messages from itself and the grabbing client to be sent immediately to the server, and may buffer requests from other clients of the proxy. The client is identified in the event. When the client grabbing the server is not managed through the proxy, the client field in the event will be 0xffffffff . The proxy will communicate with the server, and it may buffer requests from other clients. The proxy will continue to handle new connections while the server is grabbed. The server will send ListenToAll to the proxy when the server is ungrabbed. There is no time-out for this interval in the protocol. The encoding for this event is on See The description of this event is on page 27.. LbxListenToAll Notify the proxy that the server has been ungrabbed, and that the proxy may now send all buffered client requests on to the server. The encoding for this event is on See The description of this event is on page 27.. LbxQuickMotionDeltaEvent deltaTime : CARD8 deltaX : INT8 deltaY : INT8 This event is used as a replacement for the MotionNotify event when possible. The fields are used as deltas to the most recent MotionNotify event encoded as a MotionNotify event, LbxQuickMotionDeltaEvent , or LbxMotionDeltaEvent . Not every MotionNotify event can be encoded as a LbxQuickMotionDeltaEvent . The encoding for this event is on See LbxQuickMotionDeltaEvent. LbxMotionDeltaEvent deltaX : INT8 deltaY : INT8 deltaTime : CARD16 deltaSequence : CARD16 This event is used as a replacement for the MotionNotify event when possible. The fields are used as deltas to the most recent MotionNotify event encoded as a MotionNotify event, LbxQuickMotionDeltaEvent , or LbxMotionDeltaEvent . Not every MotionNotify event can be encoded as a LbxMotionDeltaEvent . The encoding for this event is on See LbxMotionDeltaEvent. LbxReleaseCmapEvent colormap : Colormap This event notifies the proxy that it must release the grab on this colormap via the ReleaseCmap request. See LbxReleaseCmap The encoding for this event is on See LbxReleaseCmapEvent. LbxFreeCellsEvent colormap : Colormap pixelStart, pixelEnd : CARD32 The LbxFreeCells event is sent to a proxy that has a colormap grabbed to notify the proxy that the reference count of the described cells were decremented to zero by the server or another proxy. The reference count includes those by this proxy. The proxy must update its copy of the colormap state accordingly if the colormap is still grabbed, or if the proxy may in the future grab the colormap using smart-grab mode. See LbxGrabCmap The pixelStart and pixelEnd fields of the event denote a continuous range of cells that were freed. The encoding for this event is on See LbxFreeCellsEvent. Responses Responses are messages from the server to the proxy that not, strictly speaking, events, replies or errors. LbxDeltaResponse count : CARD8 cache-index : CARD8 diffs : LISTofDIFFITEM This response carries an event, reply, or error that has been encoded relative to a message in the response delta cache. The cache-index field is the index into the cache. Each entry in diffs provides a byte offset and replacement value to use in reconstructing the response. The encoding for this event is on See LbxDeltaResponse.
Algorithm Naming To avoid potential clashes between different but similar algorithms for stream, bitmap, and pixmap compression, the following naming scheme will be adhered to: Each algorithm has a unique name, which is a STRING8, of the following form: <organization>-<some-descriptive-name> The organization field above is the organization name as registered in section 1 of the X Registry (the registry is provided as a free service by the X Consortium.) This prevents conflicts among different vendor’s extensions. As an example, the X Consortium defines a zlib-based stream compression algorithm called XC-ZLIB. Encoding The syntax and types used in the encoding are taken from the X protocol encoding. Where LBX defines new types, they are defined earlier in this document. As in the X protocol, in various cases, the number of bytes occupied by a component will be specified by a lowercase single-letter variable name instead of a specific numeric value, and often some other component will have its value specified as a simple numeric expression involving these variables. Components specified with such expressions are always interpreted as unsigned integers. The scope of such variables is always just the enclosing request, reply, error, event, or compound type structure. For unused bytes, the encode-form is: N unused If the number of unused bytes is variable, the encode-form typically is: p unused, p=pad(E) where E is some expression, and pad(E) is the number of bytes needed to round E up to a multiple of four. pad(E) = (4 - (E mod 4)) mod 4 In many of the encodings, the length depends on many variable length fields. The variable L is used to indicate the number of padded 4 byte units needed to carry the request. Similarly, the variable Lpad indicates the number of bytes needed to pad the request to a 4 byte boundary. For counted lists there is a common encoding of NLISTofFOO: NLISTofFOO 1 m num items m LISTofFOO items For cached GC and Drawables: LBXGCANDDRAWUPDATE 4 or 0 DRAWBLE optional drawable 4 or 0 GC optional GC LBXGCANDDRAWABLE 8 LBXGCANDDRAWENT cache-entries 8 unused m LBXGCANDDRAWUPDATE optional GC and Drawable Errors LbxClient 1 0 Error 1 CARD8 error-base + 0 2 CARD16 sequence number 4 unused 2 CARD16 lbx opcode 1 CARD8 major opcode 21 unused Requests LbxQueryVersion 1 CARD8 opcode 1 0 lbx opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 major version 2 CARD16 minor version 20 unused The description of this request is on See LbxQueryVersion. LbxStartProxy 1 CARD8 opcode 1 1 lbx opcode 2 L request length n NLISTofOPTION-REQUEST options p unused, p=pad(n) OPTION-REQUEST 1 OPTCODE option-code m OPTLEN option-request-byte-length, (b=m+a+1) a DELTAOPT or option NLISTofNAMEDOPT or NLISTofSTR or NLISTofPIXMAPMETHOD or BOOL The encoding of the option field depends on the option-code. See See StartProxy Options. 1 OPTCODE option-code 0 LbxOptionDeltaProxy 1 LbxOptionDeltaServer 2 LbxOptionStreamCompression 3 LbxOptionBitmapCompression 4 LbxOptionPixmapCompression 5 LbxOptionMessageCompression /* also known as squishing */ 6 LbxOptionUseTags 7 LbxOptionColormapAllocation 255 LbxOptionExtension OPTLEN has two possible encodings, depending on the size of the value carried: OPTLEN 1 CARD8 b (0 < b <= 255) OPTLEN 1 0 long length header 1 c length0, c = b >> 8 1 d length1, d= b & #xff DELTAOPT 1 CARD8 min-cache-size 1 CARD8 max-cache-size 1 CARD8 preferred-cache-size 1 CARD8 min-message-length 1 CARD8 max-message-length (in 4-byte units) 1 CARD8 preferred-message-length NAMEDOPT f STR type-name 1 g+1 option-data-length g LISTofBYTE option-data (option specific) PIXMAPMETHOD h STR name 1 BITMASK format mask 1 j depth count j LISTofCARD8 depths => => 1 1 Reply 1 CARD8 count 0xff options in request cannot be decoded 2 CARD16 sequence number 4 (a+p-32)/4 reply length a LISTofCHOICE options-reply p unused, if (n<24) p=24-n else p=pad(n) CHOICE 1 CARD8 request-option-index b OPTLEN reply-option-byte-length c DELTACHOICE or choice INDEXEDCHOICE or NLISTofINDEXEDOPT or NLISTofPIXMAPCHOICE or BOOL or INDEXEDCHOICE The encoding of the choice field depends on the option-code. See See StartProxy Options. DELTACHOICE 1 CARD8 preferred cache size 1 CARD8 preferred message length in 4-byte units INDEXEDCHOICE 1 CARD8 index d LISTofBYTE data PIXMAPCHOICE 1 CARD8 index 1 CARD8 opcode 1 BITMASK format mask e NLISTofCARD8 depths The description of this request is on See LbxStartProxy. LbxStopProxy 1 CARD8 opcode 1 2 lbx opcode 2 1 request length The description of this request is on See LbxStopProxy. LbxSwitch 1 CARD8 opcode 1 3 lbx opcode 2 2 request length 4 CARD32 client The description of this request is on See LbxSwitch. LbxNewClient 1 CARD8 opcode 1 4 lbx opcode 2 L request length 4 CARD32 client The remaining bytes of the request are the core connection setup. => If the connection is rejected, a core connection reply is sent. Otherwise the reply has the form: 1 BOOL success 1 change type 0 no-deltas 1 normal-client-deltas 2 app-group-deltas 2 CARD16 major version 2 CARD16 minor version 2 1 + a length 4 CARD32 tag id The remaining bytes depend on the value of change-type and length. For no-deltas, the remaining bytes are the "additional data" bytes of the core reply. (a = length of core reply, in 4 byte quantities). For normal-client-deltas, the additional bytes have the form, with a length (a = 1 +b): 4 CARD32 resource id base 4b LISTofSETofEVENT root input masks For app-group-deltas, the additional bytes have the following form, with a length of (a = 1 + 4c): 4 CARD32 resource id base 4 WINDOW root id base 4 VISUALID visual 4 COLORMAP colormap 4 CARD32 white pixel 4 CARD32 black pixel 4c LISTofSETofEVENT root input masks The description of this request is on See LbxNewClient. LbxCloseClient 1 CARD8 opcode 1 5 lbx opcode 2 2 request length 4 CARD32 client The description of this request is on See LbxCloseClient. LbxModifySequence 1 CARD8 opcode 1 6 lbx opcode 2 2 request length 4 CARD32 offset to sequence number The description of this request is on See LbxModifySequence. LbxAllowMotion 1 CARD8 opcode 1 7 lbx opcode 2 2 request length 4 CARD32 number of MotionNotify events The description of this request is on See LbxAllowMotion. LbxIncrementPixel 1 CARD8 opcode 1 8 lbx opcode 2 3 request length 4 COLORMAP colormap 4 CARD32 pixel The description of this request is on See LbxIncrementPixel. LbxDelta 1 CARD8 opcode 1 9 lbx opcode 2 1+(2n +p+2)/4 request length 1 n count of diffs 1 CARD8 cache index 2n LISTofDIFFITEM offsets and differences p unused, p=pad(2n + 2) The description of this request is on See LbxDelta. LbxGetModifierMapping 1 CARD8 opcode 1 10 lbx opcode 2 1 request length => 1 1 Reply 1 n keycodes-per-modifier 2 CARD16 sequence number 4 2n reply length 4 CARD32 tag 20 unused 8n LISTofKEYCODE keycodes The description of this request is on See LbxGetModifierMapping. LbxInvalidateTag 1 CARD8 opcode 1 12 lbx opcode 2 2 request length 4 CARD32 tag The description of this request is on See LbxInvalidateTag. LbxPolyPoint 1 CARD8 opcode 1 13 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXPOINT points (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolyPoint. LbxPolyLine 1 CARD8 opcode 1 14 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXPOINT points (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolyLine. LbxPolySegment 1 CARD8 opcode 1 15 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXSEGMENT segments (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolySegment. LbxPolyRectangle 1 CARD8 opcode 1 16 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXRECTANGLE rectangles (n is data-dependent) p 0 unused, p=pad(m+n) The description of this request is on See LbxPolyRectangle. LbxPolyArc 1 CARD8 opcode 1 17 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXARCS arcs (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolyArc. LbxFillPoly 1 CARD8 opcode 1 18 lbx opcode 2 1+(3+m+n+p)/4 request length 1 LBXGCANDDRAWENT cache entries 1 shape 0 Complex 1 Nonconvex 2 Convex 1 p pad byte count m LBXGCANDDRAWUPDATE optional gc and drawable n LISTofLBXPOINT points (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxFillPoly. LbxPolyFillRectangle 1 CARD8 opcode 1 19 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXRECTANGLE rectangles (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolyFillRectangle. LbxPolyFillArc 1 CARD8 opcode 1 20 lbx opcode 2 1+(m+n+p)/4 request length m LBXGCANDDRAWABLE cache entries n LISTofLBXARC arcs (n is data-dependent) p 0 unused, p=Lpad The description of this request is on See LbxPolyFillArc. LbxGetKeyboardMapping 1 CARD8 opcode 1 21 lbx opcode 2 2 request length 1 KEYCODE first keycode 1 m count 2 unused => 1 1 Reply 1 n keysyms-per-keycode 2 CARD16 sequence number 4 nm reply length (m = count field from the request) 4 CARD32 tag 20 unused 4nm LISTofKEYSYM keysyms The description of this request is on See LbxGetKeyboardMapping. LbxQueryFont 1 CARD8 opcode 1 22 lbx opcode 2 2 request length 4 FONTABLE font => 1 1 Reply 1 BOOL compression 2 CARD16 sequence number 4 L reply length 4 CARD32 tag 20 unused All of the following is conditional: 12 CHARINFO min-bounds 4 unused 12 CHARINFO max-bounds 4 unused 2 CARD16 min-char-or-byte2 2 CARD16 max-char-or-byte2 2 CARD16 default-char 2 n number of FONTPROPs in properties 1 draw-direction 0 LeftToRight 1 RightToLeft 1 CARD8 min-byte1 1 CARD8 max-byte1 1 BOOL all-chars-exist 2 INT16 font-ascent 2 INT16 font-descent 4 m number of elements in char-infos 8n LISTofFONTPROP properties and either 12m LISTofCHARINFO char-infos or m LISTofLBXCHARINFO char-infos The description of this request is on See LbxQueryFont. LbxChangeProperty 1 CARD8 opcode 1 23 lbx opcode 2 6 request length 4 WINDOW window 4 ATOM property 4 ATOM type 1 CARD8 format 1 mode 0 Replace 1 Preprend 2 Append 2 unused 4 CARD32 length of data in format units (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 tag 20 unused The description of this request is on See LbxChangeProperty. LbxGetProperty 1 CARD8 opcode 1 24 lbx opcode 2 7 request length 4 WINDOW window 4 ATOM property 4 ATOM type 0 AnyPropertyType 1 CARD8 delete 3 unused 4 CARD32 long-offset 4 CARD32 long-length => 1 1 Reply 1 CARD8 format 2 CARD16 sequence number 4 CARD32 reply length 4 ATOM type 0 None 4 CARD32 bytes-after 4 CARD32 length of value in format units (= 0 for format = 0) (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) 4 CARD32 tag 8 unused The description of this request is on See LbxGetProperty. LbxTagData 1 CARD8 opcode 1 25 lbx opcode 2 3+(n+p)/4 request length 4 CARD32 tag 4 CARD32 length of data in bytes n LISTofBYTE data p unused, p=pad(n) The description of this request is on See LbxTagData. LbxCopyArea 1 CARD8 opcode 1 26 lbx opcode 2 L request length 1 CARD8 source drawable cache entry 1 LBXGCANDDRAWENT cache entries 4 or 0 DRAWABLE optional source drawable b LBXGCANDDRAWUPDATE optional gc and dest drawable c LBXPINT16 src-x d LBXPINT16 src-y e LBXPINT16 dst-x f LBXPINT16 dst-y g LBXCARD16 width h LBXCARD16 height p unused, p=Lpad The description of this request is on See LbxCopyArea. LbxCopyPlane 1 CARD8 opcode 1 27 lbx opcode 2 L request length 4 CARD32 bit plane 1 CARD8 source drawable cache entry 1 LBXGCANDDRAWENT cache entries 4 or 0 DRAWABLE optional source drawable b LBXGCANDDRAWUPDATE optional gc and dest drawable c LBXPINT16 src-x d LBXPINT16 src-y e LBXPINT16 dst-x f LBXPINT16 dst-y g LBXCARD16 width h LBXCARD16 height p unused, p=Lpad The description of this request is on See LbxCopyPlane. LbxPolyText8 1 CARD8 opcode 1 28 lbx opcode 2 L request length 1 LBXGCANDDRAWENT cache entries a LBXGCANDDRAWUPDATE optional gc and drawable b LBXPINT16 x c LBXPINT16 y n LISTofTEXTITEM8 items p unused, p=Lpad The description of this request is on See LbxPolyText8. LbxPolyText16 1 CARD8 opcode 1 29 lbx opcode 2 L request length 1 LBXGCANDDRAWENT cache entries a LBXGCANDDRAWUPDATE optional gc and drawable b LBXPINT16 x c LBXPINT16 y 2n LISTofTEXTITEM16 items p unused, p=Lpad The description of this request is on See LbxPolyText16. LbxImageText8 1 CARD8 opcode 1 30 lbx opcode 2 L request length 1 LBXGCANDDRAWENT cache entries a LBXGCANDDRAWUPDATE optional gc and drawable b LBXPINT16 x c LBXPINT16 y n STRING8 string p unused, p=Lpad The description of this request is on See LbxImageText8. LbxImageText16 1 CARD8 opcode 1 31 lbx opcode 2 L request length 1 LBXGCANDDRAWENT cache entries a LBXGCANDDRAWUPDATE optional gc and drawable b LBXPINT16 x c LBXPINT16 y 2n STRING16 string p unused, p=Lpad The description of this request is on See LbxImageText16. LbxQueryExtension 1 CARD8 opcode 1 32 lbx opcode 2 2+(n+p)/4 request length 4 n length of extension name n STRING8 extension name p unused, p=pad(n) => 1 1 Reply 1 n number of requests in the extension 2 CARD16 sequence number 4 0 or 2*(m + p) reply length, m = (n+7)/8 1 BOOL present 1 CARD8 major opcode 1 CARD8 first event 1 CARD8 first error 20 unused m LISTofMASK optional reply-mask p unused, p=pad(m) m LISTofMASK optional event-mask p unused, p=pad(m) The description of this request is on See LbxQueryExtension. LbxPutImage 1 CARD8 opcode 1 33 lbx opcode 2 L request length 1 CARD8 compression method 1 LBXGCANDDRAWENT cache entries a PIPACKED bit-packed b LBXGCANDDRAWUPDATE optional gc and drawable c LBXCARD16 width d LBXCARD16 height e LBXPINT16 x f LBXPINT16 y n LISTofBYTE compressed image data p unused, p=Lpad If there is no left padding and the depth is less than or equal to nine, PIPPACKED is encoded as follows: PIPACKED 1 #x80 | (format << 5) | ((depth -1) << 2) Otherwise PIPACKED is defined as: PIPACKED 1 (depth -1) << 2) 1 (format << 5) | left-pad The description of this request is on See LbxPutImage. LbxGetImage 1 CARD8 opcode 1 34 lbx opcode 2 6 request length 4 DRAWABLE drawable 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 4 CARD32 plane mask 1 CARD8 format 3 unused => 1 1 Reply 1 CARD8 depth 2 CARD16 sequence number 4 (n+p)/4 reply length 4 (m+p)/4 X reply length; if uncompressed, m=n 4 VISUALID visual 0 None 1 compression method 15 unused n LISTofBYTE data p unused, p=pad(n) The description of this request is on See LbxGetImage. LbxBeginLargeRequest 1 CARD8 opcode 1 35 lbx opcode 2 2 request length 4 CARD32 large request length The description of this request is on See LbxBeginLargeRequest. LbxLargeRequestData 1 CARD8 opcode 1 36 lbx opcode 2 1+n request length 4n LISTofBYTE data The description of this request is on See LbxLargeRequestData. LbxEndLargeRequest 1 CARD8 opcode 1 37 lbx opcode 2 1 request length The description of this request is on See LbxEndLargeRequest. LbxInternAtoms 1 CARD8 opcode 1 38 lbx opcode 2 1+(2+m+n+p)/4 request length 2 m num-atoms n LISTofLONGSTR names p pad p=Lpad => 1 1 Reply 1 unused 2 CARD16 sequence number 4 a reply length, a = MAX(m - 6, 0) 4*m LISTofATOM atoms p pad p = MAX(0, 4*(6 - m))   LONGSTR 2 c string length c STRING8 string The description of this request is on See LbxInternAtoms. LbxGetWinAttrAndGeom 1 CARD8 opcode 1 39 lbx opcode 2 2 request length 4 CARD32 window id => 1 1 Reply 1 backing store 0 NotUseful 1 WhenMapped 2 Always 2 CARD16 sequence number 4 7 reply length 4 VISUALID visual id 2 class 1 InputOutput 2 InputOnly 1 BITGRAVITY bit gravity 1 WINGRAVITY window gravity 4 CARD32 backing bit planes 4 CARD32 backing pixel 1 BOOL save under 1 BOOL map installed 1 map state 0 Unmapped 1 Unviewable 2 Viewable 1 BOOL override 4 COLORMAP colormap 4 SETofEVENT all events mask 4 SETofEVENT your event mask 2 SETofDEVICEEVENT do not propagate mask 2 unused 4 WINDOW root 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border width 1 CARD8 depth 1 unused The description of this request is on See LbxGetWinAttrAndGeom. LbxGrabCmap 1 CARD8 opcode 1 40 lbx opcode 2 2 request length 4 COLORMAP colormap => If smart-grab is true, the reply is as follows: 1 1 Reply 1 #x80 flags 2 CARD16 sequence number 4 0 reply length 24 unused If smart-grab is false, the reply is as follows: 1 1 Reply 1 flags (set of) #x40 auto-release #x20 three-channels #x10 two-byte-pixels lower four bits specifies bits-per-pixel 2 CARD16 sequence number 4 L reply length m CHAN or CHANNELS cells (CHAN if !three-channels) p 0 pad(m) CHANNELS a CHAN red 1 5 next channel b CHAN green 1 5 next channel c CHAN blue 1 0 list end CHAN d LISTofLBXPIXEL LBXPIXEL e PIXELPRIVATE or PIXELPRIVATERANGE or PIXELALLOC or PIXELALLOCRANGE PIXELPRIVATE 1 1 pixel-private f PIXEL pixel PIXEL f CARD8 or CARD16 (CARD8 if !two-byte-pixels) PIXELPRIVATERANGE 1 2 pixel-private-range f PIXEL fist-pixel f PIXEL last-pixel PIXELALLOC 1 3 pixel-private f PIXEL pixel g COLORSINGLE or COLORTRIPLE color (COLORSINGLE if three-channels) COLORSINGLE h CARD8 or CARD16 value (CARD8 if bits-per-rgb =< 7) COLORTRIPLE h COLORSINGLE red h COLORSINGLE green h COLORSINGLE blue PIXELALLOCRANGE 1 4 pixel-private f PIXEL first-pixel f PIXEL last-pixel j LISTofCOLORSINGLE or color (COLORSINGLE if three-channels) LISTofCOLORTRIPLE The description of this request is on See LbxGrabCmap. LbxReleaseCmap 1 CARD8 opcode 1 41 lbx opcode 2 2 request length 4 COLORMAP cmap The description of this request is on See LbxReleaseCmap. LbxAllocColor 1 CARD8 opcode 1 42 lbx opcode 2 5 request length 4 COLORMAP colormap 4 CARD32 pixel 2 CARD16 red 2 CARD16 green 2 CARD16 blue 2 unused The description of this request is on See LbxAllocColor. LbxSync 1 CARD8 opcode 1 43 lbx opcode 2 1 request length => 1 1 Reply 1 n unused 2 CARD16 sequence number 4 0 reply length 24 unused The description of this request is on See LbxSync. Events LbxSwitchEvent 1 base + 0 code 1 0 lbx type 2 CARD16 sequence number 4 CARD32 client 24 unused The description of this event is on See LbxSwitchEvent. LbxCloseEvent 1 base + 0 code 1 1 lbx type 2 CARD16 sequence number 4 CARD32 client 24 unused The description of this event is on See LbxCloseEvent. LbxInvalidateTagEvent 1 base + 0 code 1 3 lbx type 2 CARD16 sequence number 4 CARD32 tag 4 tag-type 1 LbxTagTypeModmap 2 LbxTagTypeKeymap 3 LbxTagTypeProperty 4 LbxTagTypeFont 5 LbxTagTypeConnInfo 20 unused The description of this event is on See LbxInvalidateTagEvent. LbxSendTagDataEvent 1 base + 0 code 1 4 lbx type 2 CARD16 sequence number 4 CARD32 tag 4 tag-type 3 LbxTagTypeProperty 20 unused The description of this event is on See LbxSendTagDataEvent. LbxListenToOne 1 base + 0 code 1 5 lbx type 2 CARD16 sequence number 4 CARD32 client #xFFFFFFFF a client not managed by the proxy 24 unused The description of this event is on See LbxListenToOne. LbxListenToAll 1 base + 0 code 1 6 lbx type 2 CARD16 sequence number 28 unused The description of this event is on See LbxListenToAll. LbxQuickMotionDeltaEvent 1 base + 1 code 1 CARD8 delta-time 1 INT8 delta-x 1 INT8 delta-y This event is not padded to 32 bytes. The description of this event is on See LbxQuickMotionDeltaEvent. LbxMotionDeltaEvent 1 base + 0 code 1 7 lbx type 1 INT8 delta-x 1 INT8 delta-y 2 CARD16 delta-time 2 CARD16 delta-sequence This event is not padded to 32 bytes. The description of this event is on See LbxMotionDeltaEvent. LbxReleaseCmapEvent 1 base + 0 code 1 8 lbx type 2 CARD16 sequence number 4 COLORMAP colormap 24 unused The description of this event is on See LbxReleaseCmapEvent. LbxFreeCellsEvent 1 base + 0 code 1 9 lbx type 2 CARD16 sequence number 4 COLORMAP colormap 4 PIXEL pixel start 4 PIXEL pixel end 16 unused The description of this event is on See LbxFreeCellsEvent. Re-encoding of X Events The X protocol requires all X events to be 32 bytes. The LBX server reduces the number of bytes sent between the server and the proxy for some X events by not appending unused pad bytes to the event data. The offsets of X event data are unchanged. The proxy will pad the events to 32 bytes before passing them on to the client. LBX reencodes X event representations into the following sizes, if squishing is enabled: KeyOrButton 32 EnterOrLeave 32 Keymap 32 Expose 20 GraphicsExposure 24 NoExposure 12 VisibilityNotify 12 CreateNotify 24 DestroyNotify 12 UnmapNotify 16 MapNotify 16 MapRequest 12 Reparent 24 ConfigureNotify 28 ConfigureRequest 28 GravityNotify 16 ResizeRequest 12 Circulate 20 Property Notify 20 SelectionClear 20 SelectionRequest 28 SelectionNotify 24 Colormap Notify 16 MappingNotify 8 ClientMessage 32 Unknown 32 Responses LbxDeltaResponse 1 event_base + 0 event code 1 2 lbx type 2 1+(2+2n+p)/4 request length 1 n count of diffs 1 CARD8 cache index 2n LISTofDIFFITEM offsets and differences p unused, p=pad(2n) The description of this response is on See LbxDeltaResponse.
xorgproto-2023.2/specs/xextproto/geproto.xml0000644000175000017500000001201714443010026016153 00000000000000 %defs; ]> X Generic Event Extension Peter Hutterer peter.hutterer@who-t.net X Version 11, Release &fullrelvers; Version 1.0 2007Peter Hutterer 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. Introduction X was designed to provide 64 event opcodes for all extensions. These events are limited to 32 bytes. The Generic Event Extension provides a template event for extensions to re-use a single event opcode. GE only provide headers and the most basic functionality, leaving the extensions to interpret the events in their specific context. GenericEvents may be longer than 32 bytes. If so, the number of 4 byte units following the initial 32 bytes must be specified in the length field of the event. Extension Initialization The name of this extension is "Generic Event Extension" GEQueryVersion client-major-version: CARD16 client-minor-version: CARD16 ==> major-version: CARD16 minor-version: CARD16 The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. As of version 1.0, no other requests are provided by this extension. Events GE defines a single event, to be used by all extensions. The event's structure is similar to a reply. This is a core protocol event, ID 35, and is not itself an extension event. GenericEvent type: BYTE always GenericEvent (35) extension: CARD8 extension offset sequenceNumber: CARD16 low 16 bits of request seq. number length: CARD32 length evtype: CARD16 event type The field 'extension' is to be set to the major opcode of the extension. The 'evtype' field is the actual opcode of the event. The length field specifies the number of 4-byte blocks after the initial 32 bytes. If length is 0, the event is 32 bytes long. Notes Although the wire event is of arbitrary length, the actual size of an XEvent is restricted to sizeof(XEvent) [96 bytes, see Xlib.h]. If an extension converts a wire event to an XEvent > 96 bytes, it will overwrite the space allocated for the event. See struct _XSQEvent in Xlibint.h for details. Extensions need to malloc additional data and fill the XEvent structure with pointers to the malloc'd data. The client then needs to free the data, only the XEvent structure will be released by Xlib. The server must not send GenericEvents longer than 32 bytes until it has verified that the client is able to interpret these events. If a long event is sent to a client unable to process GenericEvents, future interpretation of replies and events by this client will fail. xorgproto-2023.2/specs/xextproto/shape.xml0000644000175000017500000011204114443010026015572 00000000000000 %defs; ]> X Nonrectangular Window Shape Extension Protocol X.Org Standard KeithPackard MIT X Consortium Intel Corporation HidekiHiura SunSoft, Inc. X Version 11, Release &fullrelvers; Version 1.1 19892004The Open Group 2006Keith Packard 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 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the copyright holders 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 copyright holders. Overview This extension provides arbitrary window and border shapes within the X11 protocol. The restriction of rectangular windows within the X protocol is a significant limitation in the implementation of many styles of user interface. For example, many transient windows would like to display a "drop shadow'' to give the illusion of 3 dimensions. As another example, some user interface style guides call for buttons with rounded corners; the full simulation of a nonrectangular shape, particularly with respect to event distribution and cursor shape, is not possible within the core X protocol. As a final example, round clocks and nonrectangular icons are desirable visual addition to the desktop. This extension provides mechanisms for changing both the visible and interactive shape of a window to arbitrary, possibly disjoint, nonrectangular forms. The intent of the extension is to supplement the existing semantics, not replace them. In particular, it is desirable for clients that are unaware of the extension to still be able to cope reasonably with shaped windows. For example, window managers should still be able to negotiate screen real estate in rectangular pieces. Toward this end, any shape specified for a window is clipped by the bounding rectangle for the window as specified by the window's geometry in the core protocol. An expected convention would be that client programs expand their shape to fill the area offered by the window manager. Description Each window (even with no shapes specified) is defined by three regions: the bounding region, the clip region and the input region. The bounding region is the area of the parent window that the window will occupy (including border). The clip region is the subset of the bounding region that is available for subwindows and graphics. The area between the bounding region and the clip region is defined to be the border of the window. The input region is the subset of the bounding region that can "contain" the pointer. A nonshaped window will have a bounding region that is a rectangle spanning the window, including its border; the clip region will be a rectangle filling the inside dimensions (not including the border); the input region will match the bounding region. In this document, these areas are referred to as the default bounding region, the default clip region and the default input region. For a window with inside size of width by height and border width bwidth, the default bounding, clip and input regions are the rectangles (relative to the window origin): bounding.x = -bwidth bounding.y = -bwidth bounding.width = width + 2 * bwidth bounding.height = height + 2 * bwidth clip.x = 0 clip.y = 0 clip.width = width clip.height = height input.x = -bwidth input.y = -bwidth input.width = width + 2 * bwidth input.height = height + 2 * bwidth This extension allows a client to modify any combination of the bounding, clip or input regions by specifying new regions that combine with the default regions. These new regions are called the client bounding region, the client clip region and the client input region. They are specified relative to the origin of the window and are always defined by offsets relative to the window origin (that is, region adjustments are not required when the window is moved). Three mechanisms for specifying regions are provided: a list of rectangles, a bitmap, and an existing bounding or clip region from a window. This is modeled on the specification of regions in graphics contexts in the core protocol and allows a variety of different uses of the extension. When using an existing window shape as an operand in specifying a new shape, the client region is used, unless none has been set, in which case the default region is used instead. The effective bounding region of a window is defined to be the intersection of the client bounding region with the default bounding region. Any portion of the client bounding region that is not included in the default bounding region will not be included in the effective bounding region on the screen. This means that window managers (or other geometry managers) used to dealing with rectangular client windows will be able to constrain the client to a rectangular area of the screen. Construction of the effective bounding region is dynamic; the client bounding region is not mutated to obtain the effective bounding region. If a client bounding region is specified that extends beyond the current default bounding region, and the window is later enlarged, the effective bounding region will be enlarged to include more of the client bounding region. The effective clip region of a window is defined to be the intersection of the client clip region with both the default clip region and the client bounding region. Any portion of the client clip region that is not included in both the default clip region and the client bounding region will not be included in the effective clip region on the screen. Construction of the effective clip region is dynamic; the client clip region is not mutated to obtain the effective clip region. If a client clip region is specified that extends beyond the current default clip region and the window or its bounding region is later enlarged, the effective clip region will be enlarged to include more of the client clip region if it is included in the effective bounding region. The border of a window is defined to be the difference between the effective bounding region and the effective clip region. If this region is empty, no border is displayed. If this region is nonempty, the border is filled using the border-tile or border-pixel of the window as specified in the core protocol. Note that a window with a nonzero border width will never be able to draw beyond the default clip region of the window. Also note that a zero border width does not prevent a window from having a border, since the clip shape can still be made smaller than the bounding shape. All output to the window and visible regions of any subwindows will be clipped to the effective clip region. The server must not retain window contents beyond the effective bounding region with backing store. The window's origin (for graphics operations, background tiling, and subwindow placement) is not affected by the existence of a bounding region or clip region. The effective input region of a window is defined to be the intersection of the client input region with both the default input region and the client bounding region. Any portion of the client input region that is not included in both the default input region and the client bounding region will not be included in the effective input region on the screen. Construction of the effective input region is dynamic; the client input region is not mutated to obtain the effective input region. If a client input region is specified that extends beyond the current default input region and the window or its bounding region is later enlarged, the effective input region will be enlarged to include more of the client input region if it is included in the effective bounding region. Areas that are inside the default bounding region but outside the effective bounding region are not part of the window; these areas of the screen will be occupied by other windows. Input events that occur within the default bounding region but outside the effective bounding region will be delivered as if the window was not occluding the event position. Events that occur in a nonrectangular border of a window will be delivered to that window, just as for events that occur in a normal rectangular border. An InputOnly window can have its bounding or input region set, but it is a Match error to attempt to set a clip region on an InputOnly window or to specify its clip region as a source to a request in this extension. The server must accept changes to the clip and input regions of a root window, but the server is permitted to ignore requested changes to the bounding region of a root window. If the server accepts bounding region changes, the contents of the screen outside the bounding region are implementation dependent. Types The following types are used in the request and event definitions in subsequent sections. SHAPE_KIND: { Bounding, Clip, Input } SHAPE_OP: { Set, Union, Intersect, Subtract, Invert } Set indicates that the region specified as an explicit source in the request is stored unaltered as the new destination client region. Union indicates that the source and destination regions are unioned together to produce the new destination client region. Intersect indicates that the source and destination regions are intersected together to produce the new destination client region. Subtract indicates that the source region is subtracted from the destination region to produce the new destination region. Invert indicates that the destination region is subtracted from the source region to produce the new destination region. Requests ShapeQueryVersion => majorVersion: CARD16 minorVersion: CARD16 This request can be used to ensure that the server version of the SHAPE extension is usable by the client. This document defines major version one (1), minor version one (1). ShapeRectangles dest: WINDOW destKind: SHAPE_KIND op: SHAPE_OP xOff, yOff: INT16 rectangles: LISTofRECTANGLES ordering: { UnSorted, YSorted, YXSorted, YXBanded } Errors: Window, Length, Match, Value This request specifies an array of rectangles, relative to the origin of the window plus the specified offset (xOff and yOff) that together define a region. This region is combined (as specified by the operator op) with the existing client region (specified by destKind) of the destination window, and the result is stored as the specified client region of the destination window. Note that the list of rectangles can be empty, specifying an empty region; this is not the same as passing None to ShapeMask, If known by the client, ordering relations on the rectangles can be specified with the ordering argument. This may provide faster operation by the server. The meanings of the ordering values are the same as in the core protocol SetClipRectangles request. If an incorrect ordering is specified, the server may generate a Match error, but it is not required to do so. If no error is generated, the graphics results are undefined. Except for UnSorted , the rectangles should be nonintersecting, or the resulting region will be undefined. UnSorted means that the rectangles are in arbitrary order. YSorted means that the rectangles are nondecreasing in their Y origin. YXSorted additionally constrains YSorted order in that all rectangles with an equal Y origin are nondecreasing in their X origin. YXBanded additionally constrains YXSorted by requiring that, for every possible Y scanline, all rectangles that include that scanline have identical Y origins and Y extents. ShapeMask dest: WINDOW destKind: SHAPE_KIND op: SHAPE_OP xOff, yOff: INT16 source: PIXMAP or None Errors: Window, Pixmap, Match, Value The source in this request is a 1-bit deep pixmap, or None . If source is None , the specified client region is removed from the window, causing the effective region to revert to the default region. The ShapeNotify event generated by this request and subsequent ShapeQueryExtents will report that a client shape has not been specified. If a valid pixmap is specified, it is converted to a region, with bits set to one included in the region and bits set to zero excluded, and an offset from the window origin as specified by xOff and yOff. The resulting region is then combined (as specified by the operator op) with the existing client region (indicated by destKind) of the destination window, and the result is stored as the specified client region of the destination window. The source pixmap and destination window must have been created on the same screen, or else a Match error results. ShapeCombine dest: WINDOW destKind: SHAPE_KIND op: SHAPE_OP xOff, yOff: INT16 source: WINDOW sourceKind: SHAPE_KIND Errors: Window, Match, Value The client region, indicated by sourceKind, of the source window is offset from the window origin by xOff and yOff and combined with the client region, indicated by destKind, of the destination window. The result is stored as the specified client region of the destination window. The source and destination windows must be on the same screen, or else a Match error results. ShapeOffset dest: WINDOW destKind: SHAPE_KIND xOff, yOff: INT16 Errors: Window, Match, Value The client region, indicated by destKind, is moved relative to its current position by the amounts xOff and yOff. ShapeQueryExtents dest: WINDOW => boundingShaped: BOOL clipShaped: BOOL xBoundingShape: INT16 yBoundingShape: INT16 widthBoundingShape: CARD16 heightBoundingShape: CARD16 xClipShape: INT16 yClipShape: INT16 widthClipShape: CARD16 heightClipShape: CARD16 Errors: Window The boundingShaped and clipShaped results are True if the corresponding client regions have been specified, else they are False . The x, y, width, and height values define the extents of the client regions, when a client region has not been specified, the extents of the corresponding default region are reported. ShapeSelectInput window: WINDOW enable: BOOL Errors: Window, Value Specifying enable as True causes the server to send the requesting client a ShapeNotify event whenever the bounding, clip or input region of the specified window is altered by any client. Specifying enable as False causes the server to stop sending such events. ShapeInputSelected window: WINDOW => enable: BOOL Errors: Window If enable is True, then ShapeNotify events for the window are generated for this client. ShapeGetRectangles window: WINDOW kind: SHAPE_KIND => rectangles: LISTofRECTANGLE ordering: { UnSorted, YSorted, YXSorted, YXBanded } Errors: Window, Match A list of rectangles describing the region indicated by kind, and the ordering of those rectangles, is returned. The meaning of the ordering values is the same as in the ShapeRectangles request. Events ShapeNotify window: WINDOW kind: SHAPE_KIND shaped: BOOL x, y: INT16 width, height: CARD16 time: TIMESTAMP Whenever the client bounding, clip or input shape of a window is modified, a ShapeNotify event is sent to each client that has used ShapeSelectInput to request it. Kind indicates which client region (bounding or clip) has been modified; shaped is True when the window has a client shape of type kind, and is False when the window no longer has a client shape of this type. The x, y, width, and height indicate the extents of the current shape. When shaped is False these will indicate the extents of the default region. The timestamp indicates the server time when the shape was changed. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is "SHAPE". New Types SHAPE_KIND 0 Bounding 1 Clip 2 Input SHAPE_OP 0 Set 1 Union 2 Intersect 3 Subtract 4 Invert Requests ShapeQueryVersion 1 CARD8 opcode 1 0 shape opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 major version 2 CARD16 minor version 20 unused ShapeRectangles 1 CARD8 opcode 1 1 shape opcode 2 4+2n request length 1 SHAPE_OP operation 1 SHAPE_KIND destination kind 1 ordering 0 UnSorted 1 YSorted 2 YXSorted 3 YXBanded 1 unused 4 WINDOW destination window 2 INT16 x offset 2 INT16 y offset 8n LISTofRECTANGLE rectangles ShapeMask 1 CARD8 opcode 1 2 shape opcode 2 5 request length 1 SHAPE_OP operation 1 SHAPE_KIND destination kind 2 unused 4 WINDOW destination window 2 INT16 x offset 2 INT16 y offset 4 PIXMAP source bitmap 0 None ShapeCombine 1 CARD8 opcode 1 3 shape opcode 2 5 request length 1 SHAPE_OP operation 1 SHAPE_KIND destination kind 1 SHAPE_KIND source kind 1 unused 4 WINDOW destination window 2 INT16 x offset 2 INT16 y offset 4 WINDOW source window ShapeOffset 1 CARD8 opcode 1 4 shape opcode 2 4 request length 1 SHAPE_KIND destination kind 3 unused 4 WINDOW destination window 2 INT16 x offset 2 INT16 y offset ShapeQueryExtents 1 CARD8 opcode 1 5 shape opcode 2 2 request length 4 WINDOW destination window => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 BOOL bounding shaped 1 BOOL clip shaped 2 unused 2 INT16 bounding shape extents x 2 INT16 bounding shape extents y 2 CARD16 bounding shape extents width 2 CARD16 bounding shape extents height 2 INT16 clip shape extents x 2 INT16 clip shape extents y 2 CARD16 clip shape extents width 2 CARD16 clip shape extents height 4 unused ShapeSelectInput 1 CARD8 opcode 1 6 shape opcode 2 3 request length 4 WINDOW destination window 1 BOOL enable 3 unused ShapeInputSelected 1 CARD8 opcode 1 7 shape opcode 2 2 request length 4 WINDOW destination window => 1 1 Reply 1 BOOL enabled 2 CARD16 sequence number 4 0 reply length 24 unused ShapeGetRectangles 1 CARD8 opcode 1 8 shape opcode 2 3 request length 4 WINDOW window 1 SHAPE_KIND source kind 3 unused => 1 1 Reply 1 ordering 0 UnSorted 1 YSorted 2 YXSorted 3 YXBanded 2 CARD16 sequence number 4 2n reply length 4 CARD32 nrects 20 unused 8n LISTofRECTANGLE rectangles Events ShapeNotify 1 CARD8 type (0 + extension event base) 1 SHAPE_KIND shape kind 2 CARD16 sequence number 4 WINDOW affected window 2 INT16 x value of extents 2 INT16 y value of extents 2 CARD16 width of extents 2 CARD16 height of extents 4 TIMESTAMP server time 1 BOOL shaped 11 unused Glossary bounding region The area of the parent window that this window will occupy. This area is divided into two parts: the border and the interior. clip region The interior of the window, as a subset of the bounding region. This region describes the area that will be painted with the window background when the window is cleared, will contain all graphics output to the window, and will clip any subwindows. input region The subset of the bounding region which can ``contain'' the pointer. default bounding region The rectangular area, as described by the core protocol window size, that covers the interior of the window and its border. default clip region The rectangular area, as described by the core protocol window size, that covers the interior of the window and excludes the border. default input region The rectangular area, as described by the core protocol window size, that covers the interior of the window and its border. client bounding region The region associated with a window that is directly modified via this extension when specified by ShapeBounding . This region is used in conjunction with the default bounding region to produce the effective bounding region. client clip region The region associated with a window that is directly modified via this extension when specified by ShapeClip . This region is used in conjunction with the default clip region and the client bounding region to produce the effective clip region. client input region The region associated with a window that is directly modified via this extension when specified by ShapeInput . This region is used in conjunction with the default input region and the client bounding region to produce the effective input region. effective bounding region The actual shape of the window on the screen, including border and interior (but excluding the effects of overlapping windows). When a window has a client bounding region, the effective bounding region is the intersection of the default bounding region and the client bounding region. Otherwise, the effective bounding region is the same as the default bounding region. effective clip region The actual shape of the interior of the window on the screen (excluding the effects of overlapping windows). When a window has a client clip region or a client bounding region, the effective clip region is the intersection of the default clip region, the client clip region (if any) and the client bounding region (if any). Otherwise, the effective clip region is the same as the default clip region. effective input region The actual shape of the window on the screen (excluding the effects of overlapping windows) which can ``contain'' the pointer. When a window has a client input region or a client bounding region, the effective input region is the intersection of the default input region, the client input region (if any) and the client bounding region (if any). Otherwise, the effective input region is the same as the default input region. xorgproto-2023.2/specs/xextproto/xtest.xml0000644000175000017500000004633014443010026015650 00000000000000 %defs; ]> XTEST Extension Protocol X Consortium Standard KieronDrake UniSoft Ltd. X Version 11, Release &fullrelvers; Version 2.2 1992UniSoft Group Ltd. 19921994X Consortium Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. UniSoft makes no representations about the suitability for any purpose of the information in this document. This documentation is provided "as is" without express or implied warranty. 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. Overview This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not intended to support general journaling and playback of user actions. This is a difficult area [XTrap, 89] as it attempts to synchronize synthetic user interactions with their effects; it is at the higher level of dialogue recording/playback rather than at the strictly lexical level. We are interested only in the latter, simpler, case. A more detailed discussion and justification of the extension functionality is given in [Drake, 91]. We are aiming only to provide a minimum set of facilities that solve immediate testing and validation problems. The testing extension itself needs testing, where possible, and so should be as simple as possible. We have also tried to: Confine the extension to an appropriate high level within the server to minimize portability problems. In practice this means that the extension should be at the DIX level or use the DIX/DDX interface, or both. This has effects, in particular, on the level at which "input synthesis" can occur. Minimize the changes required in the rest of the server. Minimize performance penalties on normal server operation. Description The functions provided by this extension fall into two groups: Client Operations These routines manipulate otherwise hidden client-side behavior. The actual implementation will depend on the details of the actual language binding and what degree of request buffering, GContext caching, and so on, is provided. In the C binding, defined in "XTEST Extension Library", routines are provided to access the internals of two opaque data structures -- GCs and Visuals -- and to discard any requests pending within the output buffer of a connection. The exact details can be expected to differ for other language bindings. Server Requests The first of these requests is similar to that provided in most extensions: it allows a client to specify a major and minor version number to the server and for the server to respond with major and minor versions of its own. The remaining two requests allow the following: Access to an otherwise "write-only" server resource: the cursor associated with a given window Perhaps most importantly, limited synthesis of input device events, almost as if a cooperative user had moved the pointing device or pressed a key or button. Types The following types are used in the request and event definitions in subsequent sections: FAKE_EVENT_TYPE { KeyPress, KeyRelease, MotionNotify, ButtonPress, ButtonRelease } FAKE_EVENT [type: FAKE_EVENT_TYPE, detail: BYTE, time: TIME, root: WINDOW, rootX, rootY: INT16] CURSOR { CurrentCursor, None } or a cursor as defined by the X11 Protocol. Client Operations These are abstract definitions of functionality. They refer to client-side objects such as "GC" and "VISUAL" that are quoted to denote their abstract nature. Concrete versions of these functions are defined only for particular language bindings. In some circumstances a particular language binding may not implement the relevant abstract type or may provide it as a transparent, rather than opaque, type, with the result that the corresponding function does not make sense or is not required, respectively. XTestSetGContextOfGC gc: "GC" gid: GCONTEXT Sets the GCONTEXT within the "GC" gc to have the value specified by gid. XTestSetVisualIDOfVisual visual: "VISUAL" visualid: VISUALID Sets the VISUALID within the "VISUAL" visual to have the value specified by visualid. XTestDiscard dpy: "CONNECTION" => status: BOOL Discards any requests that are present in the request buffer associated with the "CONNECTION" dpy. The status returned is True if there were one or more requests in the buffer and False otherwise. Server Requests XTestGetVersion clientMajorVersion: CARD16 clientMinorVersion: CARD16 => serverMajorVersion: CARD16 serverMinorVersion: CARD16 Errors: Length This request can be used to ensure that the server version of the XTEST extension is usable by the client. This document defines major version two (2), minor version one (1). XTestCompareCursor window: WINDOW cursor-id: CURSOR or CurrentCursor or None => same: BOOL Errors: Window, Length, Cursor This request looks up the cursor associated with the window and compares it with either the null cursor if cursor-id is None , or the current cursor (that is, the one being displayed), or the cursor whose ID is cursor-id, and returns the result of the comparison in same. XTestFakeInput events: LISTofFAKE_EVENT Errors: Window, Length, Alloc, Value This request simulates the limited set of core protocol events within the set FAKE_EVENT_TYPE. Only the following event fields, defined in FAKE_EVENT, are interpreted: type This must be one of KeyPress, KeyRelease, MotionNotify, ButtonPress, or ButtonRelease, or else a Value error occurs. detail For key events, this field is interpreted as the physical keycode. If the keycode is less than min-keycode or greater than max-keycode, as returned in the connection setup, then a Value error occurs. For button events, this field is interpreted as the physical (or core) button, meaning it will be mapped to the corresponding logical button according to the most recent SetPointerMapping request. If the button number is less than one or greater than the number of physical buttons, then a Value error occurs. For motion events, if this field is True , then rootX and rootY are relative distances from the current pointer location; if this field is False, then they are absolute positions. time This is either CurrentTime (meaning no delay) or the delay in milliseconds that the server should wait before simulating this event. No other requests from this client will be processed until this delay, if any, has expired and subsequent processing of the simulated event has been completed. root In the case of motion events this field is the ID of the root window on which the new motion is to take place. If None is specified, the root window of the screen the pointer is currently on is used instead. If this field is not a valid window, then a Window error occurs. rootX & rootY In the case of motion events these fields indicate relative distance or absolute pointer coordinates, according to the setting of detail. If the specified coordinates are off-screen, the closest on-screen coordinates will be substituted. When the simulated event(s) are processed, they cause event propagation, passive grab activation, and so on, just as if the corresponding input device action had occurred. However, motion events might not be recorded in the motion history buffer. For the currently supported event types, the event list must have length one, otherwise a BadLength error occurs. XTestGrabControl impervious: BOOL If impervious is True, then the executing client becomes impervious to server grabs; that is, it can continue executing requests even if another client grabs the server. If impervious is False, then the executing client returns to the normal state of being susceptible to server grabs. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is "XTEST". New Types FAKE_EVENT_TYPE 2 KeyPress 3 KeyRelease 4 ButtonPress 5 ButtonRelease 6 MotionNotify NOTE that the above values are defined to be the same as those for the corresponding core protocol event types. Requests XTestGetVersion 1 CARD8 opcode 1 0 xtest opcode 2 2 request length 1 CARD8 client major version 1 unused 2 CARD16 client minor version => 1 1 Reply 1 CARD8 server major version 2 CARD16 sequence number 4 0 reply length 2 CARD16 server minor version 22 unused XTestCompareCursor 1 CARD8 opcode 1 1 xtest opcode 2 3 request length 4 WINDOW window 4 CURSOR cursor-id 0 None 1 CurrentCursor => 1 1 Reply 1 BOOL cursors are the same 2 CARD16 sequence number 4 0 reply length 24 unused XTestFakeInput 1 CARD8 opcode 1 2 xtest opcode 2 1+(1*8) request length 1 FAKE_EVENT_TYPE fake device event type 1 BYTE detail: button or keycode 2 unused 4 TIME delay (milliseconds) 0 CurrentTime 4 WINDOW root window for MotionNotify 0 None 8 unused 2 INT16 x position for MotionNotify 2 INT16 y position for MotionNotify 8 unused XTestGrabControl 1 CARD8 opcode 1 3 xtest opcode 2 2 request length 1 BOOL impervious 3 unused References Annicchiarico, D., et al., XTrap: The XTrap Architecture. Digital Equipment Corporation, July 1991. Drake, K. J., Some Proposals for a Minimum X11 Testing Extension. UniSoft Ltd., June 1991. xorgproto-2023.2/specs/xextproto/Makefile.am0000644000175000017500000000105114443010026016002 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = \ appgrp.xml \ dbe.xml \ dpms.xml \ evi.xml \ geproto.xml \ lbx.xml \ multibuf.xml \ security.xml \ shape.xml \ shm.xml \ sync.xml \ tog-cup.xml \ xtest.xml # Included chapters, appendix, images chapters = appendix.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/xextproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/xextproto/appgrp.xml0000644000175000017500000010766714443010026016005 00000000000000 %defs; ]>
Application Group Extension to the X Protocol X Consortium Standard Kaleb S. KEITHLEY X Consortium, Inc kaleb@x.org X Version 11, Release &fullrelvers; Version 1.0 1996X Consortium, Inc. All Rights Reserved. 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 X CONSORTIUM 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 OF OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The OpenGroup. 27 September 1996 The Application Group Extension to the X protocol is intended to provide a framework to allow more than one program to manage X applications on the desktop. The initial use of this extension will be to insert or embed the windows of X programs into the windows of another program, such as a web browser. This extension is not intended to address larger embedding issues that, for example, OpenDoc does, such as shared menu bars, etc. Purpose and Goals The Application Group Extension to the X protocol is intended to provide a framework to allow more than one program to manage X applications on the desktop. The initial use of this extension will be to insert or embed the windows of X programs into the windows of another program, such as a web browser. This extension is not intended to address larger embedding issues that, for example, OpenDoc does, such as shared menu bars, etc. Using X programs on the World Wide Web allows for greater control of the presentation and takes advantage of the existing body of X programs rather than re-implement them in another language. In addition it allows the embedding of non-X programs into web browsers by using third party products like Wabi, MAE, and WinCenter. Wabi is a trademark of Sun Microsystems, Inc. MAE is a trademark of Apple Computer, Inc. WinCenter is a trademark of Network Computing Devices, Inc. Overview of the protocol. This extension introduces the concept of an Application Group. An Application Group is a set of one or more applications that are primarily managed by a special application known as the Application Group Leader, which, for example, might be a web browser. The primary purpose of Application Groups is to provide a means of sharing the Substructure-Redirect attribute of the root window between the window manager and one or more Application Group Leaders. To join an Application Group an application must present the proper authorization during the connection setup. Authorizations are generated by the X server at the request of an Application Group Leader, and are then stored for the application to use to establish its connection to the X server. To generate an authorization the Application Group Leader sends a request to the server naming the Application Group to which the authorization will be bound, and any applications that connect using that authorization will automatically become part of the associated Application Group. The protocol to generate an authorization is defined in the Security Extension specification. As a member of an Application Group, when an application creates and maps a window as a child of the root window, the MapRequest and ConfigureRequest events are delivered to the Application Group Leader instead of the window manager. The Application Group Leader may then reparent the window into its own window hierarchy; or reissue the map request, in which case the window comes under the control of the window manager. Requests AppGroupQueryVersion client_major_version: CARD16 client_minor_version: CARD16 => server_major_version: CARD16 server_minor_version: CARD16 If supplied, the client_major_version and client_minor_version indicate what version of the protocol the application wants the server to implement. The server version numbers returned indicate the version of the protocol the X server actually supports. This may not match the versions requested by the application. An implementation may (but need not) support more than one version simultaneously. The server_major_version and server_minor_version numbers are a mechanism to support any future revisions of the Application Group extension protocol which may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small, upward-compatible changes. X servers that support the protocol defined in this document will return a server_major_version of 1 and a server_minor_version of 0. AppGroupCreate app_group: APPGROUP value_mask: BITMASK value_list: LISTofVALUE This request creates an Application Group using app_group as the Application Group ID.   The value_mask and value_list specify attributes of the Application Group that are to be explicitly initialized. The attributes, their types, and the default values are: Attribute Type Default app_group_leader Bool True single_screen Bool True default_root Window None root_visual VisualID None default_colormap Colormap None black_pixel Pixel 0 white_pixel Pixel 0 If the single_screen attribute is True then the number of video screens returned to a program in the Application Group in the connection setup message is one, irrespective of how many video screens the server actually has. If a server supports both video and print screens, then all print screens will always be returned. If single_screen is specified as True then the connection setup message will contain only the information about the video screen which has default_root as its root window, plus any print screens. The intent is to allow an embedding manager to ensure that it will be able to reparent any top-level windows that Application Group members create. By hiding the fact that there are other screens it can be reasonably assured that applications will only create top-level windows on the same screen that it itself appears on. An embedding manager should take care not to supply an invalid display, e.g. :0.1, to a program that will be in an Application Group where the single_screen attribute is True. If single_screen is set to True default_root specifies which screen will be returned as screen zero in the connection setup message for applications in the Application Group. If set to None, then the real screen zero is used, otherwise the screen which has default_root as its root window will be used. If single_screen is set to True the root_visual and default_colormap attributes may be used to over-ride the default values that are returned in the connection setup information returned to new programs in the Application Group. If None is specified for root_visual or default_colormap then the normal default values for the screen (possibly specified by default_root) are used, otherwise the specified values are used. If root_visual and/or default_colormap are specified they must be valid, i.e. root_visual must be a visual type available on the screen, and the colormap, if specified, must be a valid colormap for the visual that is used. IF single_screen is set to True and default_colormap is not specified as None, the black_pixel and white_pixel attributes must be specified, and they will over-ride the default values that are returned in the connection setup returned to new programs in the Application Group. If default_colormap is specified as None and black_pixel and/or white_pixel are specified, they will be ignored. The app_group_leader attribute is used to identify the Application Group Leader program for the app_group. By specifying True the server will identify the program making the request as the Application Group Leader for the application group. The Application Group Leader receives MapRequest and ConfigureRequest events from the server when an attempt is made to map or configure top-level windows of a program in an Application Group, instead of being sent to a window manager that has selected SubstructureRedirect events on the root window. The parent window field in these events will contain the Application Group ID. AppGroupDestroy app_group: APPGROUP This request destroys the app_group. If the app_group_leader attribute for the app_group is True, then any applications in the Application Group that are still connected will be killed as if a KillClient request had been received for that application. If the application that created a non-embedded Application Group exits, and therefore any Authorizations to be cancelled, and any applications that attempt to open new connections to the X server using one of those Authorizations will be unable to do so. AppGroupGetAttr >app_group: APPGROUP => LISTofVALUE This request returns the application group attributes for app_group. AppGroupQuery resource: XID => app_group: APPGROUP This request returns the Application Group ID of the application that created resource or None if that application is not associated with any Application Group. The resource value may be the resource base of the application. AppGroupCreateAssociation window: WINDOW window_type: CARD32 system_window: LISTofCARD8 This request associates window with system_window. The window_type indicates the native window system of the application making the request. For non-X window_types both the embedding manager and the server must be executing on the same host. When system_window is Microsoft Windows or OS/2 Presentation Manager, the system_window is an HWND; when the native window system is Macintosh, the system_window is a WindowPtr and a Rect. The window may be used for any X request that takes a Window. AppGroupDestroyAssociation window: WINDOW This request destroys the association created with AppGroupCreateAssociation. The window is destroyed. The system_window that was specified in the AppGroupCreateAssociation request is not affected. Changes to Existing Requests MapWindow If the override-redirect attribute of the window is False and if the window is a child of a root window and if the window belongs to an application that is in an application group and if some other application is the application group leader for that group, then a MapRequest event is generated and the window remains unmapped. Otherwise, the core protocol semantics apply. ConfigureWindow If the override-redirect attribute of the window is False and if the window is a child of a root window and if the window belongs to an application that is in an application group and if some other application is the application group leader for that group, then a ConfigureRequest event is generated and the window remains unchanged. Otherwise, the core protocol semantics apply. CreateWindow When a program in an Application Group creates a window that is a child of a root window and specifies CopyFromParent for the Visual, if the single_screen attribute is True and the root_visual attribute is set to something other than None, then the window will be created using the Application Group’s root_visual, otherwise core protocol semantics apply. When a program in an Application Group creates a window that is a child of a root window and specifies CopyFromParent for the Colormap, if the single_screen attribute is True, the default_colormap attribute is set to something other than None, and the window’s Visual is the same as the Application Group’s root_visual attribute, then the window will be created using the Application Group’s default_colormap, otherwise core protocol semantics apply. ChangeWindowAttributes When a program in an Application Group changes the attributes of a window that is a child of a root window and specifies CopyFromParent for the Colormap, if the single_screen attribute is True, the default_colormap attribute is set to something other than None, and the window’s Visual is the same as the Application Group’s root_visual attribute, then the window will be created using the Application Group’s default_colormap, otherwise core protocol semantics apply. Changes to Existing Events When the top-level window of an application that is a member of an Application Group is the target of a MapWindow or ConfigureWindow request, if there is an Application Group Leader then MapRequest and ConfigureRequest events are automatically delivered to it, otherwise the core protocol semantics apply, i.e. they are delivered to the client, if any, that has SubstructureRedirect set in its root-window event mask, e.g. the window manager. The Application Group Leader must not select SubstructuRedirect events on a root window as doing so would result in a core protocol error; only one client is permitted to do so, and that is usually the window manager. MapRequest When a MapWindow request is received for a window whose override-redirect attribute is set to False and whose parent is the root window and the window belongs to an application that is in an application group and there is an application group leader for the group, then this event is delivered to the Application Group Leader with the parent field in the event set to the AppGroup ID. Otherwise the core protocol semantics apply. ConfigureRequest When a ConfigureWindow request is received for a window whose override-redirect attribute is set to False and whose parent is the root window and the window belongs to an application that is in an application group and there is an application group leader for the group, then this event is delivered to the Application Group Leader with the parent field in the event set to the AppGroup ID. Otherwise the core protocol semantics apply. Errors AppGroupQueryVersion There are no errors for AppGroupQueryVersion. AppGroupCreate A Window error is returned if default_root is specified and is not a valid root window.. A Color error is returned default_colormap is specified but default_colormap is not a valid colormap for the screen of default_root. A Match error is returned if root_visual and default_colormap are both specified, but default_colormap’s visual is not root_visual. A Match error is returned if root_visual does not exist for the screen of the default_root. AppGroupDestroy An AppGroup error is returned if app_group is not a valid Application Group. An Access error is returned if an untrusted application attempts to destroy an Application Group created by a trusted application. AppGroupGetAttr An AppGroup error is returned if app_group is not a valid Application Group. An Access error is returned if an untrusted application attempts to get the attributes of an Application Group created by a trusted application. AppGroupQuery An Access error is returned if an untrusted application attempts to query the Application Group of a trusted application. AppGroupCreateAssociation A Match error is returned if the X server does not support the window_type. An Access error may be returned if the X server only supports the window_type on the local host and the program making the request is on a non-local host. A Window error may be returned for system-specific errors related to system_window, e.g. system_window does not represent a valid native window. AppGroupDestroyAssociation A Window error is returned if window was not specified in a previous AppGroupCreateAssociation request. Encoding Please refer to the X11 Protocol encoding document as this document uses conventions established there. The name of this extension is XC-APPGROUP AppGroupQueryVersion 1 CARD8 opcode 1 0 XC-APPGROUP opcode 2 3 length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 Reply 1 unused 2 CARD16 sequence_number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_version 20 unused AppGroupCreate 1 CARD8 opcode 1 1 XC-APPGROUP opcode 2 8+n length 4 XID app_group 4 BITMASK attrib_mask #x00000001 app_group_leader #x00000002 single_screen #0x0000004 default_root #x00000008 root_visual #x00000010 default_colormap #x00000020 black_pixel #x00000040 white_pixel n LISTofVALUE value-list VALUEs 4 BOOL app_group_leader 4 BOOL single_screen 4 WINDOW default_root 4 VISUALID root_visual 4 COLORMAP default_colormap 4 CARD32 black_pixel 4 CARD32 white_pixel AppGroupDestroy 1 CARD8 opcode 1 2 XC-APPGROUP opcode 2 2 length 4 XID app_group AAppGroupGetAttr 1 CARD8 opcode 1 4 XC-APPGROUP opcode 2 2 length 4 XID app_group => 1 1 Reply 1 unused 2 CARD16 sequence_number 4 0 length 4 WINDOW default_root 4 VISUALID root_visual 4 COLORMAP default_colormap 4 CARD32 black_pixel 4 CARD32 whte_pixel 1 BOOL single_screen 1 BOOL app_group_leader 2 unused AppGroupQuery 1 CARD8 opcode 1 5 XC-APPGROUP opcode 2 2 length 4 XID resource => 1 1 Reply 1 unused 2 CARD16 sequence_number 4 0 length 4 XID app_group 20 unused AppGroupCreateAssoc 1 CARD8 opcode 1 6 XC-APPGROUP opcode 2 n length 4 WINDOW window 2 CARD16 window_type #0 X11 #1 Macintosh #2 Win32, OS/2 PM 2.x #3 Win16, OS/2 PM 1.x 2 n system_window_len n LISTofCARD8 system_window AppGroupDestroyAssoc 1 CARD8 opcode 1 7 XC-APPGROUP opcode 2 2 length 4 WINDOW window Library API Status XagQueryVersion ( xkb, keycode) /* macro */ Display dpy; int * major_version_return; int * minor_version_return; XagQueryVersion sets major_version_return and minor_version_return to the major and minor Application Group protocol version supported by the server. If the Xag library is compatible with the version returned by the server it returns non-zero. If dpy does not support the Application Group extension, or if the server and library protocol versions are incompatible, or if there was an error during communication with the server, it returns zero. No other Xag functions may be called before this function. If a program violates this rule, the effects of all subsequent Xag calls that it makes are undefined. An embedding manager in, e.g. a Personal Computer Web Browser, will need to open a connection to the Personal Computer X server by calling XOpenDisplay() before using the Application Group extension. An embedding manager such as a web browser that intends to embed programs in an Application Group should create the Application Group with XagCreateEmbeddedApplicationGroup. Status XagCreateEmbeddedApplicationGroup( Display* dpy, VisualID root_visual, Colormap default_colormap, unsigned long black_pixel, unsigned long white_pixel, XAppGroup* app_group_return); XagCreateEmbeddedApplicationGroup creates an Application Group for an embedding manager with the attributes specified. It also sets the default_root attribute to DefaultRoot(dpy, DefaultsScreen(dpy)) and the single_screen and app_group_leader attributes to True. It returns the Application Group ID in app_group_return. You can create an Application Group without intending to do embedding. One reason for doing this is to give a group of clients their own font-path. A special font-path can be created by creating an Application Group, getting an Authorization using XSecurityGenerateAuthorization, and then running ‘xset fp+ <new font path>’ as a member of the Application Group. Font-path elements added in this way will be "private" to the Application Group. Status XagCreateNonembeddedApplicationGroup( Display* dpy, XAppGroup* app_group_return); An Application Group created with XagCreateNonembeddedApplicationGroup will have the default_root, root_visual, and default_colormap attributes all set to None; the single_screen and app_group_leader attributes are set to False, and the black_pixel and white_pixel attributes are not used since the default_colormap attribute is None. To destroy an Application Group use XagDestroyApplicationGroup. Status XagDestroyApplicationGroup( Display* dpy, XAppGroup app_group); The Application Group specified by app_group is destroyed. If the Application Group was created using XagCreateEmbeddingApplicationGroup, i.e. and therefore the app_group_leader attribute is True, all programs that are members of the Application Group are killed as if a KillClient request had been issued. To retrieve the attributes of an Application Group use XagGetApplicationGroupAttributes. Status XagGetApplicationGroupAttributes( Display* dpy, XAppGroup app_group, ...); XagGetApplicationGroupAttributes is a varargs function that retrieves the Application Group’s attributes specified in the vararg parameter list. The attributes that may be specified are: XagNappGroupLeader, XagNsingleScreen, XagNdefaultRoot, XagNrootVisual, XagNdefaultColormap, XagNblackPixel, and XagNwhitePixel; which correspond to app_group_leader, single_screen, default_root, root_visual, default_colormap, black_pixel, and white_pixel respectively. See AppGroupCreate in Section 3 for a description of each attribute. The types for each of the parameters are pointers to the following: single_screen Bool default_root Window root_visual VisualID default_colormap Colormap black_pixel unsigned long white_pixel unsigned long app_group_leader Bool Example: ... Boolean app_group_leader, single_screen; Window default_root; VisualID root_visual; Colormap default_colormap; Pixel black_pixel, white_pixel; ... status = XagGetApplicationGroupAttributes(dpy, app_group, XagNappGroupLeader, &app_group_leader, XagNsingleScreen, &single_screen, XagNdefault_root, &default_root, XagNrootVisual, &root_visual, XagNdefaultColormap, &default_colormap, XagNblackPixel, &black_pixel, XagNwhitePixel, &white_pixel, NULL); ... To determine which Application Group a resource (such as a window) belongs to, use XagQueryApplicationGroup. Status XagQueryApplicationGroup( Display* dpy, XID resource, XAppGroup* app_group_return); The Application Group is returned in app_group_return, if the resource is not in any Application Group then app_group_return will be set to None. To associate an X Window ID with a system-specific window ID, such as a HWND or a WindowPtr, use XagCreateAssociation. Status XagCreateAssociation( Display* dpy, Window* window_return, void* system_window); The window_ret may be used as the target for a ReparentWindow request. Because XReparentWindow is not constrained in the same way that Win32’s SetParent and the Macintosh are, there is no reason to call XagCreateAssociation in an X-based embedding manager. As such if XagCreateAssociation is called in a native X program, the window_return will be the same as the system_window, and the implementation may even elect to not generate any protocol. To create an association on the Macintosh: struct { WindowPtr win; Rect rect; } system_window; system_window.win = win_ptr; system_window.rect.top = system_window.rect.left = 20; system_window.rect.bottom = 180; system_window.rect.right = 380; status = XagCreateAssociation (dpy, &window, (void*)&system_window); To create an association using a Win16, Win32, or OS/2 PM: HWND system_window; status = XagCreateAssociation (dpy, &window, (void*)&system_window); To destroy the association created with XagCreateAssociation use XagDestroyAssociation. Status XagDestroyAssociation( Display* dpy, Window window); After calling XagDestroyAssociation the window may no longer be used to reparent windows with XReparentWindow. Like XagCreateAssociation, if the native window system is X11 the implementation may elect to not generate any protocol as a result of this function call in order to avoid unintentionally destroying the the system_window that was specified in the prior XagCreateAssociation call.
xorgproto-2023.2/specs/xextproto/dpms.xml0000644000175000017500000005250314443010026015443 00000000000000 %defs; ]> X Display Power Management Signaling (DPMS) Extension Protocol Specification X Project Team Standard Rob Lembree Digital Equipment Corporation lembree@zk3.dec.com X Version 11, Release &fullrelvers; Version 1.0 1996Digital Equipment Corporation Permission to use, copy, modify, distribute, and sell this documentation for any purpose is hereby granted without fee, provided that the above copyright notice and this permission notice appear in all copies. Digital Equipment Corporation makes no representations about the suitability for any purpose of the information in this document. This documentation is provided “as is” without express or implied warranty. Overview This extension provides X Protocol control over the VESA Display Power Management Signaling (DPMS) characteristics of video boards under control of the X Window System. X Window System is a trademark of The Open Group. Traditionally, the X Window System has provided for both blanking and non-blanking screen savers. Timeouts associated with these built-in screen saver mechanisms are limited to idle (dwell) time, and a change timeout that specifies the change interval for non-blanking screen savers. The United States' Environmental Protection Agency (EPA) Energy Star program requires that monitors power down after some idle time by default. While it is possible to simply overload the existing screen saver timeouts, this solution leaves the non-privileged user little to no control over the DPMS characteristics of his or her system. For example, disabling DPMS would require some unintended side effect in the core screen saver, such as disabling the changing of a non-blanking screen saver. Providing clients with this control requires an extension to the core X Window System Protocol, and this extension seeks to fill this gap. The design goal of the DPMS extension is to be a logical extension to the traditional screen saver. The protocol and sample implementation is designed to use the same date types and time units as the screen saver. The sample implementation works independently from the screen saver so that policy as it pertains to the interaction between screen saver and DPMS can be deferred to the user or screen saver application. The extension has been tested with and shown to work correctly with both the internal blanking and non-blanking screen savers, as well as with screen saver extension clients. The DPMS extension is designed to be simple, yet export sufficient VESA DPMS information to enable full function clients to be written. Included is the ability to sense DPMS capability, set and get DPMS timeouts, enable and disable individual DPMS modes, enable and disable DPMS (without destroying timeout values), and sense current DPMS on/off state and power level. There are four power levels specified by the Video Electronics Standards Association (VESA) Display Power Management Signaling (DPMS) standard. These are: DPMS Extension Power Levels 0 DPMSModeOn In use 1 DPMSModeStandby Blanked, low power 2 DPMSModeSuspend Blanked, lower power 3 DPMSModeOff Shut off, awaiting activity It is logical to assume that successive DPMS modes be chronologically at the same time or later than one another, and the protocol is designed to enforce this rule. Note however that a conscious decision is made to decouple the timeouts associated with screen saver from the DPMS timeouts. While it might be considered logical to require that the first non-zero DPMS timeout be greater than or equal to the screen saver timeout, this is intentionally omitted, leaving this policy decision to the user or the screen saver application. In the case of a laptop where power may be scarce, the importance of power savings should supersede the screen saver. If the laptop user plugs the unit in and power is no longer a scarce commodity, it may be decided to make DPMS less aggressive, or disable it completely. Requests DPMSGetVersion client_major_version: CARD16 client_minor_version: CARD16 => server_major_version: CARD16 server_minor_version: CARD16 If supplied, the client_major_version and client_minor_version indicate what version of the protocol the client wants the server to implement. The server version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server_major_version and the server_minor_version are a mechanism to support future revisions of the Display Power Management Signaling protocol which may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small, upward-compatible changes. Servers that support the protocol defined in this document will return a server_major_version of one (1), and a server_minor_version of two (2). DPMSCapable => capable: BOOL This request is used to determine whether or not the currently running server's devices are capable of DPMS operations. The truth value of this request is implementation defined, but is generally based on the capabilities of the graphic card and monitor combination. Also, the return value in the case of heterogeneous multi-head servers is implementation defined. DPMSGetTimeouts => standby_timeout: CARD16 suspend_timeout: CARD16 off_timeout: CARD16 This request returns the current values of the DPMS timeout values. All values are in units of seconds. standby_timeout is the amount of time of inactivity before standby mode is invoked. The actual effects of this mode are implementation defined, but in the case of DPMS compliant hardware, it is implemented by shutting off the horizontal sync signal, and pulsing the vertical sync signal. Standby mode provides the quickest monitor recovery time. Note also that many monitors implement this mode identically to suspend mode. A value of zero indicates that this mode is disabled. suspend_timeout is the amount of time of inactivity before the second level of power savings is invoked. Suspend mode's physical and electrical characteristics are implementation defined, but in DPMS compliant hardware, results in the pulsing of the horizontal sync signal, and shutting off of the vertical sync signal. Suspend mode recovery is considered to be slower than standby mode, but faster than off mode, however this is monitor dependent. As noted above, many monitors implement this mode identically to standby mode. A value of zero indicates that this mode is disabled. off_timeout is the amount of time of inactivity before the third and final level of power savings is invoked. Off mode's physical and electrical characteristics are implementation defined, but in DPMS compliant hardware, is implemented by shutting off both horizontal and vertical sync signals, resulting in the power-down of the monitor. Recovery time is implementation dependent, but frequently is similar to the power-up time of the monitor. A value of zero indicates that this mode is disabled. DPMSSetTimeouts standby_timeout: CARD16 suspend_timeout: CARD16 off_timeout: CARD16 => All values are in units of seconds. standby_timeout is the amount of time of inactivity before standby mode will be invoked. This is the lightest level of power savings, and the monitor is generally immediately ready upon detection of user activity. This is most often implemented by shutting off the horizontal sync signal to the monitor. A value of zero disables this mode. The suspend_timeout specifies the amount of time of inactivity before the screen is placed into suspend mode. Suspend mode is the middle level of power savings, resulting in a slightly longer recovery upon detection of activity. Suspend mode is most often implemented by pulsing the horizontal sync signal, and removing the vertical sync signal. A value of zero disables this mode. The off_timeout specifies the amount of time of inactivity before the monitor is shut off. Off mode is the deepest level of power management, resulting in the greatest power savings and the longest recovery time. Off mode is most often implemented by removing both the horizontal and vertical signals. A value of zero disables this mode. The values of successive power levels must be greater than or equal to the value of the previous (non-zero) level. A BadValue error is generated if an illegal combination is detected. DPMSEnable => This request enables the DPMS characteristics of the server, using the server's currently stored timeouts. If DPMS is already enabled, no change is effected. DPMSDisable => This request disables the DPMS characteristics of the server. It does not affect the core or extension screen savers. If DPMS is already disabled, no change is effected. This request is provided so that DPMS may be disabled without damaging the server's stored timeout values. DPMSForceLevel power_level: CARD16 => This request forces a specific DPMS level on the server. If DPMS is disabled, a BadMatch error is generated. If an erroneous power level is specified, a BadValue error is returned, and the error value contains the bad value. If the power level specified is already in effect, no changes occur. Power Level must be one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend or DPMSModeOff. DPMSInfo => power_level: CARD16 state: BOOL This request returns information about the current DPMS state of the display. state is one of DPMSEnabled or DPMSDisabled. If state is DPMSEnabled, power_level is returned as one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend or DPMSModeOff, otherwise it is undefined. DPMSSelectInput event_mask: CARD32 => This request specifies whether DPMS extension events should be generated for this client. If DPMSInfoNotifyMask is set in event-mask, then DPMSInfoNotifyEvent events will be generated whenever the current DPMS on/off state or power level changes. If no bits are set, then no events will be generated. Events The DPMS extension adds one event: DPMSInfoNotifyEvent timestamp: TIMESTAMP power_level: CARD16 state: BOOL This event is delivered to clients that have requested DPMSInfoNotifyMask events using the DPMSSelectInput request whenever the current DPMS on/off state or power level changes. state is one of DPMSEnabled or DPMSDisabled. If state is DPMSEnabled, power_level is one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend or DPMSModeOff, otherwise it is undefined. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is "DPMS". DPMSGetVersion 1 CARD8 opcode 1 0 DPMS opcode 2 2 request length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_version 20 unused DPMSCapable 1 CARD8 opcode 1 1 DPMS opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 1 BOOL capable 23 unused DPMSGetTimeouts 1 CARD8 opcode 1 2 DPMS opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 standby_timeout 2 CARD16 suspend_timeout 2 CARD16 off_timeout 18 unused DPMSSetTimeouts 1 CARD8 opcode 1 3 DPMS opcode 2 3 request length 2 CARD16 standby_timeout 2 CARD16 suspend_timeout 2 CARD16 off_timeout 2 unused => DPMSEnable 1 CARD8 opcode 1 4 DPMS opcode 2 1 request length => DPMSDisable 1 CARD8 opcode 1 5 DPMS opcode 2 1 request length => DPMSForceLevel 1 CARD8 opcode 1 6 DPMS opcode 2 2 request length 2 power_level 0 DPMSModeOn 1 DPMSModeStandby 2 DPMSModeSuspend 3 DPMSModeOff 2 unused => DPMSInfo 1 CARD8 opcode 1 7 DPMS opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 2 power_level 0 DPMSModeOn 1 DPMSModeStandby 2 DPMSModeSuspend 3 DPMSModeOff 1 BOOL state 21 unused DPMSSelectInput 1 CARD8 opcode 1 8 DPMS opcode 2 2 request length 4 event mask 0 no events 1 DPMSInfoNotifyMask DPMSInfoNotifyEvent 1 GenericEvent type 1 CARD8 DPMS extension offset 2 CARD16 sequence number 4 0 length 2 DPMSInfoNotify evtype 2 unused 4 TIMESTAMP timestamp 2 power_level 0 DPMSModeOn 1 DPMSModeStandby 2 DPMSModeSuspend 3 DPMSModeOff 1 BOOL state 13 unused xorgproto-2023.2/specs/xextproto/Makefile.in0000644000175000017500000005662514443010031016030 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/xextproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = appgrp.xml dbe.xml dpms.xml evi.xml \ geproto.xml lbx.xml multibuf.xml security.xml shape.xml \ shm.xml sync.xml tog-cup.xml xtest.xml appendix.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = \ @ENABLE_SPECS_TRUE@ appgrp.xml \ @ENABLE_SPECS_TRUE@ dbe.xml \ @ENABLE_SPECS_TRUE@ dpms.xml \ @ENABLE_SPECS_TRUE@ evi.xml \ @ENABLE_SPECS_TRUE@ geproto.xml \ @ENABLE_SPECS_TRUE@ lbx.xml \ @ENABLE_SPECS_TRUE@ multibuf.xml \ @ENABLE_SPECS_TRUE@ security.xml \ @ENABLE_SPECS_TRUE@ shape.xml \ @ENABLE_SPECS_TRUE@ shm.xml \ @ENABLE_SPECS_TRUE@ sync.xml \ @ENABLE_SPECS_TRUE@ tog-cup.xml \ @ENABLE_SPECS_TRUE@ xtest.xml # Included chapters, appendix, images @ENABLE_SPECS_TRUE@chapters = appendix.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/xextproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/xextproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/xextproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/xextproto/evi.xml0000644000175000017500000003427114443010026015265 00000000000000 %defs; ]> Extended Visual Information Extension X Project Team Standard PeterDaifuku Silicon Graphics, Inc. X Version 11, Release &fullrelvers; Version 1.0 1986-1997The Open Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to use the Software without restriction, including, without limitation, the rights to copy, modify, merge, publish, distribute and sublicense the Software, to make, have made, license and distribute derivative works thereof, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and the following permission notice shall be included in all copies 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 NON- INFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER USEABILITIY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the use or other dealings in this Software without prior written authorization from The Open Group. X Window System is a trademark of The Open Group. Introduction EVI (Extended Visual Information extension) allows a client to determine information about core X visuals beyond what the core protocol provides. Goals As the X Window System has evolved, it has become clear that the information returned by the core X protocol regarding Visuals is often insufficient for a client to determine which is the most appropriate visual for its needs. This extension allows clients to query the X server for additional visual information, specifically as regards colormaps and framebuffer levels. This extension is meant to address the needs of pure X clients only. It is specifically and purposefully not designed to address the needs of X extensions. Extensions that have an impact on visual information should provide their own mechanisms for delivering that information. For example, the Double Buffering Extension (DBE) provides its own mechanism for determining which visuals support double-buffering. Requests GetVersion client_major_version: CARD8 client_minor_version: CARD8 => server_major_version: CARD8 server_minor_version: CARD8 If supplied, the client_major_version and client_minor_version indicate what version of the protocol the client wants the server to implement. The server version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server_major_version and the server_minor_version are a mechanism to support future revisions of the EVI protocol that may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small upward-compatible changes. Servers that support the protocol defined in this document will return a server_major_version of one (1), and a server_minor_version of zero (0). GetVisualInfo visual_list: LISTofVISUALID => per_visual_info: LISTofVISUALINFO where: VISUALINFO: [core_visual_id: VISUALID screen: CARD8 level: INT8 transparency_type: CARD8 unused: CARD8 transparency_value: CARD32 min_hw_colormaps: CARD8 max_hw_colormaps: CARD8 num_colormap_conflicts: CARD16 colormap_conflicts: LISTofVISUALID] level is 0 for normal planes, > 0 for overlays, < 0 for underlays. transparency_type is 0 for none, 1 for transparent pixel, 2 for transparent mask. transparency_value: value to get transparent pixel if transparency supported. min_hw_colormaps: minimum number of hardware colormaps backing up the visual. max_hw_colormaps: maximum number of hardware colormaps backing up the visual. (architectures with static colormap allocation/reallocation would have min = max) num_colormap_conflicts: number of elements in colormap_conflicts. colormap_conflicts: list of visuals that may conflict with this one. For example, if a 12-bit colormap is overloaded to support 8-bit visuals, the 8-bit visuals would conflict with the 12-bit visuals. Events and Errors No new events or errors are defined by this extension. Changes to existing protocol. None. Encoding The name of this extension is "Extended-Visual-Information". The conventions used here are the same as those for the core X11 Protocol Encoding. GetVersion 1 CARD8 opcode 1 0 EVI opcode 2 2 request length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_version 20 unused GetVisualInfo 1 CARD8 opcode 1 1 EVI opcode 2 2+n request length 4 CARD32 n_visual 4n CARD32 visual_ids => 1 1 reply 1 unused 2 CARD16 sequence number 4 n length 4 CARD32 n_info 4 CARD32 n_conflicts 16 unused 16n LISTofVISUALINFO items VISUALINFO 4 VisualID core_visual_id 1 INT8 screen 1 INT8 level 1 CARD8 transparency_type 1 CARD8 unused 4 CARD32 transparency_value 1 CARD8 min_hw_colormaps 1 CARD8 max_hw_colormaps 2 CARD16 num_colormap_conflicts C Language Binding The C functions provide direct access to the protocol and add no additional semantics. For complete details on the effects of these functions, refer to the appropriate protocol request, which can be derived by deleting Xevi at the start of the function. All functions that have return type Status will return nonzero for success and zero for failure. The include file for this extension is: < X11/extensions/XEVI.h>. Bool XeviQueryVersion Display *display int *major_version_return int *minor_version_return display Specifies the connection to the X server. major_version_return Returns the major version supported by the server. minor_version_return Returns the minor version supported by the server. XeviQueryVersion sets major_version_return and minor_version_return to the major and minor EVI protocol version supported by the server. If the EVI library is compatible with the version returned by the server, it returns nonzero. If dpy does not support the EVI extension, or if there was an error during communication with the server, or if the server and library protocol versions are incompatible, it returns zero. No other Xevi functions may be called before this function. If a client violates this rule, the effects of all subsequent Xevi calls that it makes are undefined. To get the extended information for any subset of visuals use XeviGetVisualInfo. int XeviGetVisualInfo Display *display VisualID *visual int n_visual ExtendedVisualInfo **evi_return int *n_info_return display Specifies the connection to the X server. visual If NULL, then information for all visuals of all screens is returned. Otherwise, a pointer to a list of visuals for which extended visual information is desired. n_visual If 0, then information for all visuals of all screens is returned. Otherwise, the number of elements in the array visual. evi_return Returns a pointer to a list of ExtendedVisualInfo. When done, the client should free the list using XFree. n_info_return Returns the number of elements in the list of ExtendedVisualInfo. XeviGetVisualInfo returns a list of ExtendedVisualInfo structures that describe visual information beyond that supported by the core protocol. This includes layer information relevant for systems supporting overlays and/or underlay planes, and information that allows applications better to determine the level of hardware support for multiple colormaps. XeviGetVisualInfo returns Success if successful, or an X error otherwise. xorgproto-2023.2/specs/xcmiscproto/0000755000175000017500000000000014443010036014330 500000000000000xorgproto-2023.2/specs/xcmiscproto/xc-misc.xml0000644000175000017500000002030414443010026016333 00000000000000 %defs; ]> XC-MISC Extension X Consortium Standard BobScheifler X Consortium DavidP.Wiggins X Consortium X Version 11, Release &fullrelvers; Version 1.1 1994X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The Open Group. Overview When an X client connects to an X server, it receives a fixed range of resource IDs to use to identify the client's resources inside the X server. Xlib hands these out sequentially as needed. When it overruns the end of the range, an IDChoice protocol error results. Long running clients, or clients that use resource IDs at a rapid rate, may encounter this circumstance. When it happens, there are usually many resource IDs available, but Xlib doesn't know about them. One approach to solving this problem would be to have Xlib notice when a resource is freed and recycle its ID for future use. This strategy runs into difficulties because sometimes freeing one resource causes others to be freed (for example, when a window is destroyed, so are its children). To do a complete job, Xlib would have to maintain a large amount of state that currently resides only in the server (the entire window tree in the above example). Even if a less comprehensive strategy was adopted, such as recycling only those IDs that Xlib can identify without maintaining additional state, the additional bookkeeping at resource creation and destruction time would likely introduce unacceptable overhead. To avoid the problems listed above, the server's complete knowledge of all resource IDs in use by a client is leveraged. This extension provides two ways for Xlib to query the server for available resource IDs. Xlib can use these extension requests behind the scenes when it has exhausted its current pool of resource IDs. Requests XCMiscGetVersion client_major_version: CARD16 client_minor_version: CARD16 => client_major_version: CARD16 client_minor_version: CARD16 If supplied, the client_major_version and client_minor_version indicate what version of the protocol the client wants the server to implement. The server version numbers returned indicate the protocol this extension actually supports. This might not equal the version sent by the client. An implementation can (but need not) support more than one version simultaneously. The server_major_version and the server_minor_version are a mechanism to support future revisions of the XC-MISC protocol which may be necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small, upward-compatible changes. Servers that support the protocol defined in this document will return a server_major_version of one (1), and a server_minor_version of one (1). XCMiscGetXIDRange => start_id: XID count: CARD32 This request returns a range of available resource IDs for the client issuing the request. start_id is the first ID in the range. count is the number of IDs in the range. The returned range may or may not be the largest possible range. XCMiscGetXIDList count: CARD32 => ids: LISTofXID This request returns the a list of individual resource IDs in ids. count is the number of resource IDs requested. The number returned may be smaller than the number requested. Events and Errors No new events or errors are defined by this extension. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is “XC-MISC”. XCMiscGetVersion 1 CARD8 opcode 1 0 XC-MISC opcode 2 2 request length 2 CARD16 client_major_version 2 CARD16 client_minor_version => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 2 CARD16 server_major_version 2 CARD16 server_minor_version 20 unused XCMiscGetXIDRange 1 CARD8 opcode 1 1 XC-MISC opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 4 XID start_id 4 CARD32 count 16 unused XCMiscGetXIDList 1 CARD8 opcode 1 2 XC-MISC opcode 2 2 request length 4 CARD32 count => 1 1 Reply 1 unused 2 CARD16 sequence number 4 CARD32 length 4 CARD32 number of XIDs in ids 20 unused 4n LISTofXID ids xorgproto-2023.2/specs/xcmiscproto/Makefile.am0000644000175000017500000000051014443010026016277 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = xc-misc.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/xcmiscproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/xcmiscproto/Makefile.in0000644000175000017500000005544714443010031016327 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/xcmiscproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = xc-misc.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = xc-misc.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/xcmiscproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/xcmiscproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/xcmiscproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/kbproto/0000755000175000017500000000000014443010036013436 500000000000000xorgproto-2023.2/specs/kbproto/ch02.xml0000644000175000017500000003400414443010026014634 00000000000000 Keyboard State The core protocol description of keyboard state consists of eight modifiers ( Shift , Lock , Control , and Mod1 - Mod5 ). A modifier reports the state of one or modifier keys, which are similar to qualifier keys as defined by the ISO9995 standard: Qualifier key A key whose operation has no immediate effect, but which, for as long as it is held down, modifies the effect of other keys. A qualifier key may be, for example, a shift key or a control key. Whenever a modifier key is physically or logically depressed, the modifier it controls is set in the keyboard state. The protocol implies that certain modifier keys lock (i.e. affect modifier state after they have been physically released) but does not explicitly discuss locking keys or their behavior. The current modifier state is reported to clients in a number of core protocol events and can be determined using the QueryPointer request. The XKB extension retains the eight "real" modifiers defined by the core protocol but extends the core protocol notion of keyboard state to include up to four keysym groups , as defined by the ISO9995 standard: Group: A logical state of a keyboard providing access to a collection of characters. A group usually contains a set of characters which logically belong together and which may be arranged on several shift levels within that group. For example, keyboard group can be used to select between multiple alphabets on a single keyboard, or to access less-commonly used symbols within a character set. Locking and Latching Modifiers and Groups With the core protocol, there is no way to tell whether a modifier is set due to a lock or because the user is actually holding down a key; this can make for a clumsy user-interface as locked modifiers or group state interfere with accelerators and translations. XKB adds explicit support for locking and latching modifiers and groups. Locked modifiers or groups apply to all future key events until they are explicitly changed. Latched modifiers or groups apply only to the next key event that does not change keyboard state. Fundamental Components of XKB Keyboard State The fundamental components of XKB keyboard state include: The locked modifiers and group The latched modifiers and group The base modifiers and group (for which keys are physically or logically down) The effective modifiers and group (the cumulative effect of the base, locked and latched modifier and group states). State of the core pointer buttons. The latched and locked state of modifiers and groups can be changed in response to keyboard activity or under application control using the XkbLatchLockState request. The base modifier, base group and pointer button states always reflect the logical state of the keyboard and pointer and change only in response to keyboard or pointer activity. Computing Effective Modifier and Group The effective modifiers and group report the cumulative effects of the base, latched and locked modifiers and group respectively, and cannot be directly changed. Note that the effective modifiers and effective group are computed differently. The effective modifiers are simply the bitwise union of the base, latched and locked modifiers. The effective group is the arithmetic sum of the base, latched and locked groups. The locked and effective keyboard group must fall in the range Group1 - Group4 , so they are adjusted into range as specified by the global GroupsWrap control as follows: If the RedirectIntoRange flag is set, the four least significant bits of the groups wrap control specify the index of a group to which all illegal groups correspond. If the specified group is also out of range, all illegal groups map to Group1. If the ClampIntoRange flag is set, out-of-range groups correspond to the nearest legal group. Effective groups larger than the highest supported group are mapped to the highest supported group; effective groups less than Group1 are mapped to Group1 . For example, a key with two groups of symbols uses Group2 type and symbols if the global effective group is either Group3 or Group4. If neither flag is set, group is wrapped into range using integer modulus. For example, a key with two groups of symbols for which groups wrap uses Group1 symbols if the global effective group is Group3 or Group2 symbols if the global effective group is Group4. The base and latched keyboard groups are unrestricted eight-bit integer values and are not affected by the GroupsWrap control. Computing A State Field from an XKB State Many events report the keyboard state in a single state field. Using XKB, a state field combines modifiers, group and the pointer button state into a single sixteen bit value as follows: Bits 0 through 7 (the least significant eight bits) of the effective state comprise a mask of type KEYMASK which reports the state modifiers. Bits 8 through 12 comprise a mask of type BUTMASK which reports pointer button state. Bits 13 and 14 are interpreted as a two-bit unsigned numeric value and report the state keyboard group. Bit 15 (the most significant bit) is reserved and must be zero. It is possible to assemble a state field from any of the components of the XKB keyboard state. For example, the effective keyboard state would be assembled as described above using the effective keyboard group, the effective keyboard modifiers and the pointer button state. Derived Components of XKB Keyboard State In addition to the fundamental state components, XKB keeps track of and reports a number of state components which are derived from the fundamental components but stored and reported separately to make it easier to track changes in the keyboard state. These derived components are updated automatically whenever any of the fundamental components change but cannot be changed directly. The first pair of derived state components control the way that passive grabs are activated and the way that modifiers are reported in core protocol events that report state. The server uses the ServerInternalModifiers , IgnoreLocksModifiers and IgnoreGroupLock controls, described in Server Internal Modifiers and Ignore Locks Behavior, to derive these two states as follows: The lookup state is the state used to determine the symbols associated with a key event and consists of the effective state minus any server internal modifiers. The grab state is the state used to decide whether a particular event triggers a passive grab and consists of the lookup state minus any members of the ignore locks modifiers that are not either latched or logically depressed. If the ignore group locks control is set, the grab state does not include the effects of any locked groups. Server Internal Modifiers and Ignore Locks Behavior The core protocol does not provide any way to exclude certain modifiers from client events, so there is no way to set up a modifier which affects only the server. The modifiers specified in the mask of the InternalMods control are not reported in any core protocol events, are not used to determine grabs and are not used to calculate compatibility state for XKB-unaware clients. Server internal modifiers affect only the action applied when a key is pressed. The core protocol does not provide any way to exclude certain modifiers from grab calculations, so locking modifiers often have unanticipated and unfortunate side-effects. XKB provides another mask which can help avoid some of these problems. The locked state of the modifiers specified in mask of the IgnoreLockMods control is not reported in most core protocol events and is not used to activate grabs. The only core events which include the locked state of the modifiers in the ignore locks mask are key press and release events that do not activate a passive grab and which do not occur while a grab is active. If the IgnoreGroupLock control is set, the locked state of the keyboard group is not considered when activating passive grabs. Without XKB, the passive grab set by a translation (e.g. Alt<KeyPress>space ) does not trigger if any modifiers other than those specified by the translation are set, with the result that many user interface components do not react when either Num Lock or when the secondary keyboard group are active. The ignore locks mask and the ignore group locks control make it possible to avoid this behavior without exhaustively grabbing every possible modifier combination. Compatibility Components of Keyboard State The core protocol interpretation of keyboard modifiers does not include direct support for multiple groups, so XKB reports the effective keyboard group to XKB-aware clients using some of the reserved bits in the state field of some core protocol events, as described in Computing A State Field from an XKB State. This modified state field would not be interpreted correctly by XKB-unaware clients, so XKB provides a group compatibility mapping (see Group Compatibility Map) which remaps the keyboard group into a core modifier mask that has similar effects, when possible. XKB maintains three compatibility state components that are used to make non-XKB clients work as well as possible: The compatibility state corresponds to the effective modifier and effective group state. The compatibility lookup state is the core-protocol equivalent of the lookup state. The compatibility grab state is the nearest core-protocol equivalent of the grab state. Compatibility states are essentially the corresponding XKB state, but with keyboard group possibly encoded as one or more modifiers; Group Compatibility Map describes the group compatibility map, which specifies the modifier(s) that correspond to each keyboard group. The compatibility state reported to XKB-unaware clients for any given core protocol event is computed from the modifier state that XKB-capable clients would see for that same event. For example, if the ignore group locks control is set and group 2 is locked, the modifier bound to Mode_switch is not reported in any event except (Device)KeyPress and (Device)KeyRelease events that do not trigger a passive grab. Referring to clients as "XKB-capable is somewhat misleading in this context. The sample implementation of XKB invisibly extends the X library to use the keyboard extension if it is present. This means that most clients can take advantage of all of XKB without modification, but it also means that the XKB state can be reported to clients that have not explicitly requested the keyboard extension. Clients that directly interpret the state field of core protocol events or that interpret the keymap directly may be affected by some of the XKB differences; clients that use library or toolkit routines to interpret keyboard events automatically use all of the XKB features. XKB-aware clients can query the keyboard state at any time or request immediate notification of a change to any of the fundamental or derived components of the keyboard state. xorgproto-2023.2/specs/kbproto/ch09.xml0000644000175000017500000004047714443010026014656 00000000000000 Keyboard Indicators Although the core X protocol supports thirty-two LEDs on a keyboard, it does not provide any way to link the state of the LEDs and the logical state of the keyboard. For example, most keyboards have a "Caps Lock" LED, but X does not provide any standard way to make the LED automatically follow the logical state of the modifier bound to the Caps Lock key. The core protocol also gives no way to determine which bits in the led_mask field of the keyboard state map to the particular LEDs on the keyboard. For example, X does not provide a method for a client to determine which bit to set in the led_mask to turn on the "Scroll Lock" LED, or even if the keyboard has a "Scroll Lock" LED. Most X servers implement some kind of automatic behavior for one or more of the keyboard LEDs, but the details of that automatic behavior are implementation-specific and can be difficult or impossible to control. XKB provides indicator names and programmable indicators to help solve these problems. Using XKB, clients can determine the names of the various indicators, determine and control the way that the individual indicators should be updated to reflect keyboard changes, and determine which of the 32 keyboard indicators reported by the protocol are actually present on the keyboard. Clients may also request immediate notification of changes to the state of any subset of the keyboard indicators, which makes it straightforward to provide an on-screen "virtual" LED panel. Global Information About Indicators XKB provides only two pieces of information about the indicators as a group. The physical indicators mask reports which of the 32 logical keyboard indicators supported by the core protocol and XKB corresponds to some actual indicator on the keyboard itself. Because the physical indicators mask describes a physical characteristic of the keyboard, it cannot be directly changed under program control. It is possible, however, for the set of physical indicators to be change if a new keyboard is attached or if a completely new keyboard description is loaded by the XkbGetKeyboardByName request (see Using the Server’s Database of Keyboard Components). The indicator state mask reports the current state of the 32 logical keyboard indicators. This field and the core protocol indicator state (as reported by the led-mask field of the core protocol GetKeyboardControl request) are always identical. Per-Indicator Information Each of the thirty-two keyboard indicators has a symbolic name, of type ATOM. The XkbGetNames request reports the symbolic names for all keyboard components, including the indicators. Use the XkbSetNames request to change symbolic names. Both requests are described in Querying and Changing Symbolic Names. Indicator Maps XKB also provides an indicator map for each of the thirty-two keyboard indicators; an indicator map specifies: The conditions under which the keyboard modifier state affects the indicator. The conditions under which the keyboard group state affects the indicator. The conditions under which the state of the boolean controls affects the indicator. The effect (if any) of attempts to explicitly change the state of the indicator using the core protocol SetKeyboardControl request. If IM_NoAutomatic is set in the flags field of an indicator map, that indicator never changes in response to changes in keyboard state or controls, regardless of the values for the other fields of the indicator map. If IM_NoAutomatic is not set in flags , the other fields of the indicator map specify the automatic changes to the indicator in response to changes in the keyboard state or controls. The which_groups and the groups fields of an indicator map determine how the keyboard group state affects the corresponding indicator. The which_groups field controls the interpretation of groups and may contain any one of the following values: Value Interpretation of the Groups Field IM_UseNone The groups field and the current keyboard group state are ignored. IM_UseBase If groups is non-zero, the indicator is lit whenever the base keyboard group is non-zero. If groups is zero, the indicator is lit whenever the base keyboard group is zero. IM_UseLatched If groups is non-zero, the indicator is lit whenever the latched keyboard group is non-zero. If groups is zero, the indicator is lit whenever the latched keyboard group is zero. IM_UseLocked The groups field is interpreted as a mask. The indicator is lit when the current locked keyboard group matches one of the bits that are set in groups . IM_UseEffective The groups field is interpreted as a mask. The indicator is lit when the current effective keyboard group matches one of the bits that are set in groups . The which_mods and mods fields of an indicator map determine how the state of the keyboard modifiers affect the corresponding indicator. The mods field is an XKB modifier definition, as described in Modifier Definitions, which can specify both real and virtual modifiers. The mods field takes effect even if some or all of the virtual indicators specified in mods are unbound. The which_mods field can specify one or more components of the XKB keyboard state. The corresponding indicator is lit whenever any of the real modifiers specified in the mask field of the mods modifier definition are also set in any of the current keyboard state components specified by the which_mods . The which_mods field may have any combination of the following values: Value Keyboard State Component To Be Considered IM_UseBase Base modifier state IM_UseLatched Latched modifier state IM_UseLocked Locked modifier state IM_UseEffective Effective modifier state IM_UseCompat Modifier compatibility state The controls field specifies a subset of the boolean keyboard controls (see "Boolean" Controls and The EnabledControls Control). The indicator is lit whenever any of the boolean controls specified in controls are enabled. An indicator is lit whenever any of the conditions specified by its indicator map are met, unless overridden by the IM_NoAutomatic flag (described above) or an explicit indicator change (described below). Effects of Explicit Changes on Indicators If the IM_NoExplicit flag is set in an indicator map, attempts to change the state of the indicator are ignored. If both IM_NoExplicit and IM_NoAutomatic are both absent from an indicator map, requests to change the state of the indicator are honored but might be immediately superseded by automatic changes to the indicator state which reflect changes to keyboard state or controls. If the IM_LEDDrivesKB flag is set and the IM_NoExplicit flag is not, the keyboard state and controls are changed to reflect the other fields of the indicator map, as described in the remainder of this section. Attempts to explicitly change the value of an indicator for which IM_LEDDrivesKB is absent or for which IM_NoExplicit is present do not affect keyboard state or controls. The effect on group state of changing an explicit indicator which drives the keyboard is determined by the value of which_groups and groups , as follows: which_groups New State Effect on Keyboard Group State IM_UseNone , or IM_UseBase On or Off No Effect IM_UseLatched On The groups field is treated as a group mask. The keyboard group latch is changed to the lowest numbered group specified in groups ; if groups is empty, the keyboard group latch is changed to zero. IM_UseLatched Off The groups field is treated as a group mask. If the indicator is explicitly extinguished, keyboard group latch is changed to the lowest numbered group not specified in groups ; if groups is zero, the keyboard group latch is set to the index of the highest legal keyboard group. IM_UseLocked , or IM_UseEffective On If the groups mask is empty, group is not changed, otherwise the locked keyboard group is changed to the lowest numbered group specified in groups . IM_UseLocked , or IM_UseEffective Off Locked keyboard group is changed to the lowest numbered group that is not specified in the groups mask, or to Group1 if the groups mask contains all keyboard groups. The effect on the keyboard modifiers of changing an explicit indicator which drives the keyboard is determined by the values that are set in of which_mods and mods , as follows: Set in which_mods New State Effect on Keyboard Modifiers IM_UseBase On or Off No Effect IM_UseLatched On Any modifiers specified in the mask field of mods are added to the latched modifiers. IM_UseLatched Off Any modifiers specified in the mask field of mods are removed from the latched modifiers. IM_UseLocked , IM_UseCompat , or IM_UseEffective On Any modifiers specified in the mask field of mods are added to the locked modifiers. IM_UseLocked Off Any modifiers specified in the mask field of mods are removed from the locked modifiers. IM_UseCompat , or IM_UseEffective Off Any modifiers specified in the mask field of mods are removed from both the locked and latched modifiers. Lighting an explicit indicator which drives the keyboard also enables all of the boolean controls specified in the controls field of its indicator map. Explicitly extinguishing such an indicator disables all of the boolean controls specified in controls . The effects of changing an indicator which drives the keyboard are cumulative; it is possible for a single change to affect keyboard group, modifiers and controls simultaneously. If an indicator for which both the IM_LEDDrivesKB and IM_NoAutomatic flags are specified is changed, the keyboard changes specified above are applied and the indicator is changed to reflect the state that was explicitly requested. The indicator will remain in the new state until it is explicitly changed again. If the IM_NoAutomatic flag is not set for an indicator which drives the keyboard, the changes specified above are applied and the state of the indicator is set to the values specified by the indicator map. Note that it is possible in this case for the indicator to end up in a different state than the one that was explicitly requested. For example, an indicator with which_mods of IM_UseBase and mods of Shift is not extinguished if one of the Shift keys is physically depressed when the request to extinguish the indicator is processed. xorgproto-2023.2/specs/kbproto/XKBproto-2.svg0000644000175000017500000005665714443010026015770 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/XKBproto-9.svg0000644000175000017500000001451114443010026015756 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/XKBproto-7.svg0000644000175000017500000005305614443010026015763 00000000000000 image/svg+xml Key: Keycode: 13 NumLock 15 Enter 12 1 End 9 è ö 8 Q q @ 10 A a æ 11 ? \ ? Ï xorgproto-2023.2/specs/kbproto/ch13.xml0000644000175000017500000003244014443010026014640 00000000000000 The Server Database of Keyboard Components The X server maintains a database of keyboard components and common keyboard mappings. This database contains five kinds of components; when combined, these five components provide a complete description of a keyboard and its behavior. The X Keyboard Extension provides requests to list the contents of this database, to assemble and complete keyboard descriptions by merging the current keyboard description with the contents of this database, or to replace the current keyboard description with a complete keyboard description assembled as described below. Component Names Component and keymap names have the form " class ( member )" where class describes a subset of the available components for a particular type and the optional member identifies a specific component from that subset. For example, the name "atlantis(acme)" might specify the symbols used for the atlantis national keyboard layout by the vendor "acme." Each class has an optional default member — references which specify a class but not a member refer to the default member of the class, if one exists. The class and member names are both specified using characters from the Latin-1 character set. XKB implementations must accept all alphanumeric characters, minus (‘-’) and underscore (‘_’) in class or member names, and must not accept parentheses, plus, vertical bar, percent sign, asterisk, question mark or white space. The use of other characters is implementation-dependent. Partial Components and Combining Multiple Components Some of the elements in the server database contain describe only a piece of the corresponding keyboard component. These partial components should be combined with other components of the same type to be useful. For example, a partial symbols map might describe the differences between a common ASCII keyboard and some national layout. Such a partial map is not useful on its own because it does not include those symbols that are the same on both the ASCII and national layouts (such as function keys). On the other hand, this partial map can configure any ASCII keyboard to use a national layout. Two components can be combined in two ways: If the second component overrides the first, any definitions that are present in both components are taken from the second. If the second component augments the first, any definitions that are present in both components are taken from the first. Applications can use a component expression to combine multiple components of some time into a complete description of some aspect of the keyboard. A component expression is a string which lists the components to be combined separated by operators which specify the rules for combining them. A complete description is assembled from the listed components, left to right, as follows: If the new elements are being merged with an existing map, the special component name ‘%’ refers to the unmodified value of the map. The ‘+’ operator specifies that the next specified component should override the current assembled definition. The ‘|’ operator specifies that the next specified component should augment the currently assembled definition. If the new elements are being merged with an existing map and the component expression begins with an operator, a leading ‘%’ is implied. If any unknown or illegal characters appear anywhere in the string, the entire expression is invalid and is ignored. For example, the component expression "+de" specifies that the default element of the "de" map should be applied to the current keyboard mapping, overriding any existing definitions. A slightly more involved example: the expression "acme(ascii)+de(basic)|iso9995-3" constructs a German (de) mapping for the ASCII keyboard supplied by the "acme" vendor. The new definition begins with the symbols for the default ASCII keyboard for Acme, overrides them with any keys that are defined for the default German keyboard layout and then applies the definitions from the iso9995-3 to any undefined keys or groups of keys (part three of the iso9995 standard defines a common set of bindings for the secondary group, but allows national layouts to override those definitions where necessary). Component Hints Each component has a set of flags that provide some additional hints about that component. XKB provides these hints for clients that present the keyboard database to users and specifies their interpretation only loosely. Clients can use these hints to constrain the list of components or to control the way that components are presented to the user. Hints for a component are reported with its name. The least significant byte of the hints field has the same meaning for all five types of keyboard components, and can contain any combination of the following values: Flag Meaning LC_Hidden Indicates a component that should not normally be presented to the user. LC_Default Indicates a component that is the default member of its class. LC_Partial Indicates a partial component. The interpretation of the most significant byte of the hints field is dependent on the type of component. The hints defined for each kind of component are listed in the section below that describes that kind of component. Keyboard Components The five types of components stored in the server database of keyboard components correspond to the symbols , geometry , keycodes , compat and types symbolic names associated with a keyboard. The Keycodes Component The keycodes component of a keyboard mapping specifies the range and interpretation of the raw keycodes reported by the device. It sets the keycodes symbolic name, the minimum and maximum legal keycodes for the keyboard, and the symbolic name for each key. The keycodes component might also contain aliases for some keys, symbolic names for some indicators, and a description of which indicators are physically present. The special keycodes component named "computed" indicates that XKB should assign unused keycodes to any unknown keys referenced by name by any of the other components. The computed keycodes component is useful primarily when browsing keymaps because it makes it possible to use the symbols and geometry components without having to find a set of keycodes that includes keycode definitions for all of the keys listed in the two components. XKB defines no hints that are specific to the keycodes component. The Types Component The types component of a keyboard mapping specifies the key types that can be associated with the various keyboard keys. It affects the types symbolic name and the list of types associated with the keyboard (see Key Types). The types component of a keyboard mapping can also optionally contain real modifier bindings and symbolic names for one or more virtual modifiers. The special types component named "canonical" always contains the types and definitions listed in Canonical Key Types of this document. XKB defines no hints that are specific to the types component. The Compatibility Map Component The compatibility map component of a keyboard mapping primarily specifies the rules used to assign actions to keysyms. It affects the compat symbolic name, the symbol compatibility map and the group compatibility map. The compat component might also specify maps for some indicators and the real modifier bindings and symbolic names of some virtual modifiers. XKB defines no hints that are specific to the compatibility map component. The Symbols Component The symbols component of a keyboard mapping specifies primarily the symbols bound to each keyboard key. It affects the symbols symbolic name, a key symbol mapping for each key, they keyboard modifier mapping, and the symbolic names for the keyboard symbol groups. Optionally, the symbols component can contain explicit actions and behaviors for some keys, or the real modifier bindings and symbolic names for some virtual modifiers. XKB defines the following additional hints for the symbols component: Flag Meaning LC_AlphanumericKeys Indicates a symbol component that contains bindings primarily for an alphanumeric section of the keyboard. LC_ModifierKeys Indicates a symbol component that contains bindings primarily for modifier keys. LC_KeypadKeys Indicates a symbol component that contains bindings primarily for numeric keypad keys. LC_FunctionKeys Indicates a symbol component that contains bindings primarily for function keys. LC_AlternateGroup Indicates a symbol component that contains bindings for an alternate keyboard group. These hints only apply to partial symbols components; full symbols components are assumed to specify all of the pieces listed above. The alphanumeric, modifier, keypad or function keys hints should describe the primary intent of the component designer and should not simply an exhaustive list of the kinds of keys that are affected. For example, national keyboard layouts affect primarily alphanumeric keys, but many affect a few modifier keys too; such mappings should set only LC_AlphanumericKeys hint. In general, symbol components should set only one of those four flags (though LC_AlternateGroup may be combined with any of the other flags). The Geometry Component The geometry component of a keyboard mapping specifies primarily the geometry of the keyboard. It contains the geometry symbolic name and the keyboard geometry description. The geometry component might also contain aliases for some keys or symbolic names for some indicators and might affect the set of indicators that are physically present. Key aliases defined in the geometry component of a keyboard mapping override those defined in the keycodes component. XKB defines no hints that are specific to the geometry component. Complete Keymaps The X server also reports a set of fully specified keymaps. The keymaps specified in this list are usually assembled from the components stored in the rest of the database and typically represent the most commonly used keymaps for a particular system. XKB defines no hints that are specific to complete keymaps. xorgproto-2023.2/specs/kbproto/XKBproto-6.svg0000644000175000017500000010676214443010026015765 00000000000000 image/svg+xml Core Symbols A a L1 L2 L1 L2 G1 G2 Xkb Symbols A a L1 L2 G1 G2 Symbols a G1L1 = A G1L2 = G2L1 = G2L2 = Physical Key Shift Level Group a A xorgproto-2023.2/specs/kbproto/appA.xml0000644000175000017500000005353114443010026014767 00000000000000 Default Symbol Transformations Interpreting the Control Modifier If the Control modifier is not consumed by the symbol lookup process, routines that determine the symbol and string that correspond to an event should convert the symbol to a string as defined in the table below. Only the string to be returned is affected by the Control modifier; the symbol is not changed. This table lists the decimal value of the standard control characters that correspond to some keysyms for ASCII characters. Control characters for symbols not listed in this table are application-specific. Keysyms Value Keysyms Value Keysyms Value Keysyms Value atsign 0 h, H 8 p, P 16 x, X 24 a, A 1 i, I 9 q, Q 17 y, Y 25 b, B 2 j, J 10 r, R 18 z, Z 26 c, C 3 k, K 11 s, S 19 left_bracket 27 d, D 4 l, L 12 t, T 20 backslash 28 e, E 5 m, M 13 u, U 21 right_bracket 29 f, F 6 n, N 14 v, V 22 asciicircum 30 g, G 8 o, O 15 w, W 23 underbar 31 Interpreting the Lock Modifier If the Lock modifier is not consumed by the symbol lookup process, routines that determine the symbol and string that correspond to an event should capitalize the result. Unlike the transformation for Control , the capitalization transformation changes both the symbol and the string returned by the event. Locale-Sensitive Capitalization If Lock is set in an event and not consumed, applications should capitalize the string and symbols that result from an event according to the capitalization rules in effect for the system on which the application is running, taking the current state of the user environment (e.g. locale) into account. Locale-Insensitive Capitalization XKB recommends but does not require locale-sensitive capitalization. In cases where the locale is unknown or where locale-sensitive capitalization is prohibitively expensive, applications can capitalize according to the rules defined in this extension. The following tables list all of the keysyms for which XKB defines capitalization behavior. Any keysyms not explicitly listed in these tables are not capitalized by XKB when locale-insensitive capitalization is in effect and are not automatically assigned the ALPHABETIC type as described in the Alphabetic Key Type. Capitalization Rules for Latin-1 Keysyms This table lists the Latin-11 keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Lower Case Upper Case Lower Case Upper Case a A o O acircumflex Acircumflex eth ETH b B p P adiaeresis Adiaeresis ntilde Ntilde c C q Q atilde Atilde ograve Ograve d D r R aring Aring oacute Oacute e E s S ae AE ocircumflex Ocircumflex f F t T ccedilla Ccedilla otilde Otilde g G u U egrave Egrave odiaeresis Odiaeresis h H v V eacute Eacute oslash Ooblique i I w W ecircumflex Ecircumflex ugrave Ugrave j J x X ediaeresis Ediaeresis uacute Uacute k K y Y igrave Igrave ucircumflex Ucircumflex l L z Z iacute Iacute udiaeresis Udiaeresis m M agrave Agrave icircumflex Icircumflex yacute Yacute n N aacute Aacute idiaeresis Idiaeresis thorn THORN Capitalization Rules for Latin-2 Keysyms This table lists the Latin-2 keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Lower Case Upper Case aogonek Aogonek zabovedot Zabovedot dstroke Dstroke lstroke Lstroke racute Racute nacute Nacute lcaron Lcaron abreve Abreve ncaron Ncaron sacute Sacute lacute Lacute odoubleacute Odoubleacute scaron Scaron cacute Cacute rcaron Rcaron scedilla Scedilla ccaron Ccaron uabovering Uabovering tcaron Tcaron eogonek Eogonek udoubleacute Udoubleacute zacute Zacute ecaron Ecaron tcedilla Tcedilla zcaron Zcaron dcaron Dcaron Capitalization Rules for Latin-3 Keysyms This table lists the Latin-3 keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Lower Case Upper Case hstroke Hstroke jcircumflex Jcircumflex gcircumflex Gcircumflex hcircumflex Hcircumflex cabovedot Cabovedot ubreve Ubreve idotless Iabovedot ccircumflex Ccircumflex scircumflex Scircumflex gbreve Gbreve gabovedot Gabovedot Capitalization Rules for Latin-4 Keysyms This table lists the Latin-4 keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Lower Case Upper Case rcedilla Rcedilla eng ENG omacron Omacron itilde Itilde amacron Amacron kcedilla Kcedilla lcedilla Lcedilla iogonek Iogonek uogonek Uogonek emacron Emacron eabovedot eabovedot utilde Utilde gcedilla Gcedilla imacron Imacron umacron Umacron tslash Tslash ncedilla Ncedilla Capitalization Rules for Cyrillic Keysyms This table lists the Cyrillic keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Serbian_dje Serbian_DJE Cyrillic_i Cyrillic_I Macedonia_gje Macedonia_GJE Cyrillic_shorti Cyrillic_SHORTI Cyrillic_io Cyrillic_IO Cyrillic_ka Cyrillic_KA Ukrainian_ie Ukrainian_IE Cyrillic_el Cyrillic_EL Macedonia_dse Macedonia_DSE Cyrillic_em Cyrillic_EM Ukrainian_i Ukrainian_I Cyrillic_en Cyrillic_EN Ukrainian_yi Ukrainian_YI Cyrillic_o Cyrillic_O Cyrillic_je Cyrillic_JE Cyrillic_pe Cyrillic_PE Cyrillic_lje Cyrillic_LJE Cyrillic_ya Cyrillic_YA Cyrillic_nje Cyrillic_NJE Cyrillic_er Cyrillic_ER Serbian_tshe Serbian_TSHE Cyrillic_es Cyrillic_ES Macedonia_kje Macedonia_KJE Cyrillic_te Cyrillic_TE Byelorussian_shortu Byelorussian_SHORTU Cyrillic_u Cyrillic_U Cyrillic_dzhe Cyrillic_DZHE Cyrillic_zhe Cyrillic_ZHE Cyrillic_yu Cyrillic_YU Cyrillic_ve Cyrillic_VE Cyrillic_a Cyrillic_A Cyrillic_softsign Cyrillic_SOFTSIGN Cyrillic_be Cyrillic_BE Cyrillic_yeru Cyrillic_YERU Cyrillic_tse Cyrillic_TSE Cyrillic_ze Cyrillic_ZE Cyrillic_de Cyrillic_DE Cyrillic_sha Cyrillic_SHA Cyrillic_ie Cyrillic_IE Cyrillic_e Cyrillic_E Cyrillic_ef Cyrillic_EF Cyrillic_shcha Cyrillic_SHCHA Cyrillic_ghe Cyrillic_GHE Cyrillic_che Cyrillic_CHE Cyrillic_ha Cyrillic_HA Cyrillic_hardsign Cyrillic_HARDSIGN Capitalization Rules for Greek Keysyms This table lists the Greek keysyms for which XKB defines upper and lower case: Lower Case Upper Case Lower Case Upper Case Greek_omegaaccent Greek_OMEGAACCENT Greek_iota Greek_IOTA Greek_alphaaccent Greek_ALPHAACCENT Greek_kappa Greek_KAPPA Greek_epsilonaccent Greek_EPSILONACCENT Greek_lamda Greek_LAMDA Greek_etaaccent Greek_ETAACCENT Greek_lambda Greek_LAMBDA Greek_iotaaccent Greek_IOTAACCENT Greek_mu Greek_MU Greek_iotadieresis Greek_IOTADIERESIS Greek_nu Greek_NU Greek_omicronaccent Greek_OMICRONACCENT Greek_xi Greek_XI Greek_upsilonaccent Greek_UPSILONACCENT Greek_omicron Greek_OMICRON Greek_upsilondieresis Greek_UPSILONDIERESIS Greek_pi Greek_PI Greek_alpha Greek_ALPHA Greek_rho Greek_RHO Greek_beta Greek_BETA Greek_sigma Greek_SIGMA Greek_gamma Greek_GAMMA Greek_tau Greek_TAU Greek_delta Greek_DELTA Greek_upsilon Greek_UPSILON Greek_epsilon Greek_EPSILON Greek_phi Greek_PHI Greek_zeta Greek_ZETA Greek_chi Greek_CHI Greek_eta Greek_ETA Greek_psi Greek_PSI Greek_theta Greek_THETA Greek_omega Greek_OMEGA Capitalization Rules for Other Keysyms XKB defines no capitalization rules for symbols in any other set of keysyms provided by the consortium. Applications are free to apply additional rules for private keysyms or for other keysyms not covered by XKB. xorgproto-2023.2/specs/kbproto/ch14.xml0000644000175000017500000000622714443010026014645 00000000000000 Replacing the Keyboard "On-the-Fly" XKB supports the XkbNewKeyboardNotify event, which reports a change in keyboard geometry or the range of supported keycodes. The server can generate an XkbNewKeyboardNotify event when it detects a new keyboard, or in response to an XkbGetKeyboardByName request (see Using the Server’s Database of Keyboard Components) which loads a new keyboard description. When a client opens a connection to the X server, the server reports the minimum and maximum keycodes. If the range of supported keycodes is changed, XKB keeps track of the minimum and maximum keycodes that were reported to each client and filters out any events that fall outside of that range. Note that these events are simply ignored; they are not delivered to some other client. When the server sends an XkbNewKeyboardNotify event to a client to inform it of the new keycode range, XKB resets the stored range of legal keycodes to the keycode range reported in the event. Non-XKB clients and XKB-aware clients that do not request XkbNewKeyboardNotify events never receive events from keys that fall outside of the legal range that XKB maintains for that client. When a client requests XkbNewKeyboardNotify events, the server compares the range of keycodes for the current keyboard to the range of keycodes that are valid for the client. If they are not the same, the server immediately sends that client an XkbNewKeyboardNotify event. Even if the "new" keyboard is not new to the server, it is new to this particular client. In addition to filtering out-of-range key events, XKB: Adjusts core protocol MappingNotify events to refer only to keys that match the stored legal range. Reports keyboard mappings for keys that match the stored legal range to clients that issue a core protocol GetKeyboardMapping request. Reports modifier mappings only for keys that match the stored legal range to clients that issue a core protocol GetModifierMapping request. Restricts the core protocol ChangeKeyboardMapping and SetModifierMapping requests to keys that fall inside the stored legal range. In short, XKB does everything possible to hide the fact that the range of legal keycodes has changed from clients non-XKB clients, which cannot be expected to deal with it. The corresponding XKB events and requests do not pay attention to the legal keycode range in the same way because XKB makes it possible for clients to track changes to the keycode range for a device and respond to them. xorgproto-2023.2/specs/kbproto/ch16.xml0000644000175000017500000067373214443010026014662 00000000000000 XKB Protocol Requests This document uses the syntactic conventions and common types defined by the specification of the core X protocol with a number of additions, which are detailed below. Errors If a client attempts to use any other XKB request except XkbUseExtension before the extension is properly initialized, XKB reports an Access error and ignores the request. XKB is properly initialized once XkbUseExtension reports that the client has asked for a supported or compatible version of the extension. Keyboard Errors In addition to all of the errors defined by the core protocol, the X Keyboard Extension defines a single error, Keyboard , which indicates that some request specified an illegal device identifier or an extension device that is not a member of an appropriate. Unless otherwise noted, any request with an argument of type KB_DEVICESPEC can cause Keyboard errors if an illegal or inappropriate device is specified. When the extension reports a Keyboard error, the most significant byte of the resource_id is a further refinement of the error cause, as defined in the table below. The least significant byte contains the device, class, or feedback id as indicated: high-order byte value meaning low-order byte XkbErr_BadDevice 0xff device not found device id XkbErr_BadClass 0xfe device found, but is the wrong class class id XkbErr_BadId 0xfd device found, class ok, but device does not have a feedback with the indicated id feedback id Side-Effects of Errors With the exception of Alloc or Implementation errors, which might result in an inconsistent internal state, no XKB request that reports an error condition has any effect. Unless otherwise stated, requests which update some aspect of the keyboard description will not apply only part of a request — if part of a request fails, the whole thing is ignored. Common Types The following types are used in the request and event definitions in subsequent sections: Name Value LISTofITEMs The type LISTofITEMs is special. It is similar to the LISTofVALUE defined by the core protocol, but the elements of a LISTofITEMs are not necessarily all the same size. The use of a BITMASK to indicate which members are present is optional for a LISTofITEMs — it is possible for the set of elements to be derived from one or more fields of the request. KB_DEVICESPEC 8 bit unsigned integer, UseCoreKbd, or UseCorePtr KB_LEDCLASSSPEC { KbdFeedbackClass , LedFeedbackClass , DfltXIClass , AllXIClasses , XINone } KB_BELLCLASSSPEC { KbdFeedbackClass , BellFeedbackClass , DfltXIClass , AllXIClasses } KB_IDSPEC 8 bit unsigned integer or DfltXIId KB_VMODMASK CARD16, each bit corresponds to a virtual modifier KB_GROUPMASK { Group1 , Group2 , Group3 , Group4 } KB_GROUPSWRAP { WrapIntoRange , ClampIntoRange , RedirectIntoRange } KB_GROUPINFO { groupsWrap: KB_GROUPSWRAP redirectGroup: 1…4, numGroups: 1…4 } KB_NKNDETAILSMASK { NKN_Keycodes , NKN_Geometry, NKN_DeviceID } KB_STATEMASK KEYBUTMASK or KB_GROUPMASK KB_STATEPARTMASK { ModifierState , ModifierBase , ModifierLatch , ModifierLock , GroupState , GroupBase , GroupLatch , GroupLock , CompatState , GrabMods , CompatGrabMods , LookupMods , CompatLookupMods , PointerButtons } KB_BOOLCTRLMASK { RepeatKeys , SlowKeys , BounceKeys , StickyKeys , MouseKeys , MouseKeysAccel , AccessXKeys , AccessXTimeout , AccessXFeedback , AudibleBell , Overlay1 , Overlay2 , IgnoreGroupLock } KB_CONTROLSMASK { GroupsWrap, InternalMods , IgnoreLockMods , PerKeyRepeat , ControlsEnabled } or KB_BOOLCTRLMASK KB_MAPPARTMASK { KeyTypes , KeySyms , ModifierMap , ExplicitComponents , KeyActions , KeyBehaviors , VirtualMods , VirtualModMap } KB_CMDETAILMASK { SymInterp , GroupCompat } KB_NAMEDETAILMASK { KeycodesName , GeometryName , SymbolsName , PhysSymbolsName , TypesName , CompatName , KeyTypeNames , KTLevelNames , IndicatorNames , KeyNames , KeyAliases , VirtualModNames , GroupNames , RGNames } KB_AXNDETAILMASK { AXN_SKPress , AXN_SKAccept , AXN_SKReject , AXN_SKRelease, AXN_BKAccept, AXN_BKReject, AXN_AXKWarning } KB_AXSKOPTSMASK { AX_TwoKeys , AX_LatchToLock } KB_AXFBOPTSMASK { AX_SKPressFB , AX_SKAcceptFB , AX_FeatureFB , AX_SlowWarnFB , AX_IndicatorFB , AX_StickyKeysFB , AX_SKReleaseFB , AX_SKRejectFB , AX_BKRejectFB , AX_DumbBellFB } KB_AXOPTIONSMASK KB_AXFBOPTSMASK or KB_AXSKOPTSMASK KB_GBNDETAILMASK { GBN_Types , GBN_CompatMap , GBN_ClientSymbols , GBN_ServerSymbols , GBN_IndicatorMap , GBN_KeyNames , GBN_Geometry , GBN_OtherNames } KB_BELLDETAILMASK { XkbAllBellNotifyEvents } KB_MSGDETAILMASK { XkbAllActionMessages } KB_EVENTTYPE { XkbNewKeyboardNotify , XkbMapNotify , XkbStateNotify , XkbControlsNotify , XkbIndicatorStateNotify , XkbIndicatorMapNotify , XkbNamesNotify , XkbCompatMapNotify , XkbBellNotify , XkbActionMessage , XkbAccessXNotify , XkbExtensionDeviceNotify } KB_ACTION [ type: CARD8 data: LISTofCARD8 ] KB_BEHAVIOR [ type: CARD8, data: CARD 8 ] KB_MODDEF [ mask: KEYMASK, mods: KEYMASK, vmods: KB_VMODMASK ] KB_KTMAPENTRY [ active: BOOL, level: CARD8, mods: KB_MODDEF ] KB_KTSETMAPENTRY [ level: CARD8, mods: KB_MODDEF ] KB_KEYTYPE [ mods: KB_MODDEF, numLevels: CARD8, map: LISTofKB_KTMAPENTRY, preserve: LISTofKB_MODDEF ] KB_SETKEYTYPE [ realMods: KEYMASK, vmods: CARD16, numLevels: CARD8, map: LISTofKB_KTSETMAPENTRY, preserve: LISTofKB_MODDEF ] KB_KEYSYMMAP [ ktIndex: LISTofCARD8, width: CARD8 numGroups: 0…4, groupsWrap: KB_GROUPSWRAP, redirectGroup: 0…3, syms: LISTofKEYSYM ] KB_KEYVMODMAP [ key: KEYCODE, vmods: CARD16 ] KB_KEYMODMAP [ key: KEYCODE, mods: KEYMASK ] KB_EXPLICITMASK { ExplicitKeyType1 , ExplicitKeyType2 , ExplicitKeyType3 , ExplicitKeyType4 , ExplicitInterpret , ExplicitAutoRepeat , ExplicitBehavior , ExplicitVModMap } KB_INDICATORMASK CARD32, each bit corresponds to an indicator KB_IMFLAGS { IM_NoExplicit , IM_NoAutomatic , IM_LEDDrivesKB } KB_IMMODSWHICH { IM_UseNone , IM_UseBase , IM_UseLatched , IM_UseLocked , IM_UseEffective , IM_UseCompat } KB_IMGROUPSWHICH { IM_UseNone , IM_UseBase , IM_UseLatched , IM_UseLocked , IM_UseEffective } KB_INDICATORMAP [ flags: CARD8, mods: KB_MODDEF, whichMods: groups: KB_GROUPMASK, whichGroups: ctrls: KB_BOOLCTRLMASK ] KB_SYMINTERPMATCH { SI_NoneOf , SI_AnyOfOrNone , SI_AnyOf , SI_AllOf , SI_Exactly } KB_SYMINTERP [ sym: KEYSYM, mods; KEYMASK, levelOneOnly: BOOL, match: KB_SYMINTERPMATCH, virtualMod: CARD8, autoRepeat: BOOL, lockingKey: BOOL ] KB_PCFMASK { PCF_DetectableAutorepeat , PCF_GrabsUseXkbState , PCF_AutoResetControls , PCF_LookupStateWhenGrabbed , PCF_SendEventUsesXKBState } KB_LCFLAGSMASK { LC_Hidden , LC_Default , LC_Partial } KB_LCSYMFLAGSMASK { LC_AlphanumericKeys , LC_ModifierKeys , LC_KeypadKeys , LC_FunctionKeys , LC_AlternateGroup } These types are used by the XkbGetGeometry and XkbSetGeometry requests: Name Value KB_PROPERTY [ name, value: STRING8 ] KB_POINT [ x, y: CARD16 ] KB_OUTLINE [ cornerRadius: CARD8, points: LISTofKB_POINT ] KB_SHAPE [ name: ATOM, outlines: LISTofKB_OUTLINE primaryNdx, approxNdx: CARD8 ] KB_KEYNAME [ name: LISTofCHAR ] KB_KEYALIAS [ real: LISTofCHAR, alias: LISTofCHAR ] KB_KEY [ name: KB_KEYNAME, gap: INT16, shapeNdx, colorNdx: CARD8 ] KB_ROW [ top, left: INT16, vertical: BOOL, keys LISTofKB_KEY ] KB_OVERLAYKEY [ over, under: KB_KEYNAME ] KB_OVERLAYROW [ rowUnder: CARD8, keys: LISTofKB_OVERLAYKEY ] KB_OVERLAY [ sectionUnder: CARD8, rows: LISTofKB_OVERLAYROW ] KB_SHAPEDOODAD [ name: ATOM, priority: CARD8, top, left: INT16, type: { SolidDoodad, OutlineDoodad }, angle: INT16, width, height: CARD16 colorNdx, shapeNdx: CARD8 ] KB_TEXTDOODAD [ name: ATOM, priority: CARD8, top, left: INT16, angle: INT16, width, height: CARD16, colorNdx: CARD8, text: STRING8, font: STRING8 ] KB_INDICATORDOODAD [ name: ATOM, priority: CARD8, top, left: INT16, angle: INT16, shapeNdx, onColorNdx, offColorNdx: CARD8 ] KB_LOGODOODAD [ name: ATOM, priority: CARD8, top, left: INT16, angle: INT16, colorNdx, shapeNdx: CARD8, logoName: STRING8 ] KB_DOODAD KB_SHAPEDOODAD, or KB_TEXTDOODAD, or KB_INDICATORDOODAD, or KB_LOGODOODAD KB_SECTION [ name: ATOM, top, left, angle: INT16, width, height: CARD16, priority: CARD8, rows: LISTofKB_ROW, doodads: LISTofKB_DOODAD, overlays: LISTofKB_OVERLAY ] These types are used by XkbGetDeviceInfo and XkbSetDeviceInfo : Name Value KB_XIDEVFEATUREMASK { XI_ButtonActions , XI_IndicatorNames , XI_IndicatorMaps , XI_IndicatorState } KB_XIFEATUREMASK { KB_XIDEVFEATURES or XI_Keyboards KB_XIDETAILMASK { KB_XIFEATURES or XI_UnsupportedFeature } KB_DEVICELEDINFO [ ledClass: KB_LEDCLASSSPEC, ledID: KB_IDSPEC, physIndicators: CARD32, state: CARD32, names: LISTofATOM, maps: LISTofKB_INDICATORMAP ] Requests This section lists all of the requests supported by the X Keyboard Extension, separated into categories of related requests. Initializing the X Keyboard Extension XkbUseExtension wantedMajor, wantedMinor: CARD16 supported: BOOL serverMajor, serverMinor: CARD16 This request enables XKB extension capabilities for the client that issues the request; the wantedMajor and wantedMinor fields specify the extension version in use by the requesting client. The supported field is True if the server supports a compatible version, False otherwise. The serverMajor and serverMinor fields return the actual version supported by the server. Until a client explicitly and successfully requests the XKB extension, an XKB capable server reports compatibility state in all core protocol events and requests. Once a client asks for XKB extension semantics by issuing this request, the server reports the extended XKB keyboard state in some core protocol events and requests, as described in the overview section of this specification. Clients should issue an XkbUseExtension request before using any other extension requests. Selecting Events XkbSelectEvents deviceSpec: KB_DEVICESPEC affectWhich, clear, selectAll: KB_EVENTTYPE affectMap, map: KB_MAPPARTMASK details: LISTofITEMs Errors: Keyboard , Match , Value This request updates the event masks of the keyboard indicated by deviceSpec for this client. If deviceSpec specifies an illegal device, a Keyboard error results. The affectMap and map fields specify changes to the event details mask for the XkbMapNotify event. If any map components are set in map but not in affectMap , a Match error results. Otherwise, any map components that are set in affectMap are set or cleared in the map notify details mask, depending on the value of the corresponding field in map . The affectWhich , clear , and selectAll fields specify changes to any other event details masks. If any event types are set in both clear and selectAll , a Match error results; if any event types are specified in either clear or selectAll but not in affectWhich , a Match error results. Otherwise, the detail masks for any event types specified in the affectWhich field of this request are changed as follows: If the event type is also set in clear , the detail mask for the corresponding event is set to 0 or False , as appropriate. If the event type is also set in selectAll , the detail mask for the corresponding event is set to include all legal detail values for that type. If the event type is not set in either clear or selectAll , the corresponding element of details lists a set of explicit changes to the details mask for the event, as described below. Each entry of the details list specifies changes to the event details mask for a single type of event, and consists of an affects mask and a values mask. All details that are specified in affects are set to the corresponding value from values ; if any details are listed in values but not in affects , a Match error results. The details list contains entries only for those event types, if any, that are listed in the affectWhich mask and not in either clear or selectAll . When present, the items of the details list appear in the following order: Event Type Legal Details Type XkbNewKeyboardNotify KB_NKNDETAILSMASK CARD16 XkbStateNotify KB_STATEPARTMASK CARD16 XkbControlsNotify KB_CONTROLMASK CARD32 XkbIndicatorMapNotify KB_INDICATORMASK CARD32 XkbIndicatorStateNotify KB_INDICATORMASK CARD32 XkbNamesNotify KB_NAMEDETAILMASK CARD16 XkbCompatMapNotify KB_CMDETAILMASK CARD8 XkbBellNotify KB_BELLDETAILMASK CARD8 XkbActionMessage KB_MSGDETAILMASK CARD8 XkbAccessXNotify KB_AXNDETAILMASK CARD16 XkbExtensionDeviceNotify KB_XIDETAILMASK CARD16 Detail masks for event types that are not specified in affectWhich are not changed. If any components are specified in a client’s event masks, the X server sends the client an appropriate event whenever any of those components change state. Unless explicitly modified, all event detail masks are empty. Events describes all XKB events and the conditions under which the server generates them. Generating Named Keyboard Bells XkbBell deviceSpec: KB_DEVICESPEC bellClass: KB_BELLCLASSSPEC bellID: KB_IDSPEC percent: INT8 forceSound: BOOL eventOnly: BOOL pitch, duration: INT16 name: ATOM window: WINDOW Errors: Keyboard , Value , Match This request generates audible bells and/or XkbBellNotify events for the bell specified by the bellClass and bellID on the device specified by deviceSpec at the specified pitch , duration and volume ( percent ). If deviceSpec specifies a device that does not have a bell or keyboard feedback, a Keyboard error results. If both forceSound and eventOnly are set, this request yields a Match error. Otherwise, if forceSound is True , this request always generates a sound and never generates an event; if eventOnly is True , it causes an event but no sound. If neither forceSound nor eventOnly are True , this request always generates an event; if the keyboard’s global AudibleBell control is enabled, it also generates a sound. Any bell event generated by this request contains all of the information about the bell that was requested, including the symbolic name specified by name and the event window specified by window. The name and window are not directly interpreted by XKB, but they must have the value None or specify a legal Atom or Window, respectively. XkbBellNotify events generated in response to core protocol or X input extension bell requests always report None as their name . The bellClass , bellID , and percent fields are interpreted as for the X input extension DeviceBell request. If pitch and duration are zero, the server uses the corresponding values for that bell from the core protocol or input extension, otherwise pitch and duration are interpreted as for the core protocol ChangeKeyboardControl request; if they do not include legal values, a Value error results. The window field must specify a legal Window or have the value None , or a Value error results. The name field must specify a legal Atom or have the value None , or an Atom error results. If an error occurs, this request has no other effect (i.e. does not cause a sound or generate an event). The pitch , volume , and duration are suggested values for the bell, but XKB does not require the server to honor them. Querying and Changing Keyboard State XkbGetState deviceSpec: KB_DEVICESPEC deviceID: CARD8 mods, baseMods, latchedMods, lockedMods: KEYMASK group, lockedGroup: KB_GROUP baseGroup, latchedGroup: INT16 compatState: KEYMASK grabMods, compatGrabMods: KB_GROUP lookupMods, compatLookupMods: KEYMASK ptrBtnState: BUTMASK Errors: Keyboard This request returns a detailed description of the current state of the keyboard specified by deviceSpec . The deviceID return value contains the input extension identifier for the specified device, or 0 if the server does not support the input extension. The baseMods return value reports the modifiers that are set because one or more modifier keys are logically down. The latchedMods and lockedMods return values report the modifiers that are latched or locked respectively. The mods return value reports the effective modifier mask which results from the current combination of base, latched and locked modifiers. The baseGroup return value reports the group state selected by group shift keys that are logically down. The latchedGroup and lockedGroup return values detail the effects of latching or locking group shift keys and XkbLatchLockState requests. The group return value reports the effective keyboard group which results from the current combination of base, latched and locked group values. The lookupMods return value reports the lookup modifiers, which consist of the current effective modifiers minus any server internal modifiers. The grabMods return value reports the grab modifiers, which consist of the lookup modifiers minus any members of the ignore locks mask that are not either latched or logically depressed. Keyboard State describes the lookup modifiers and grab modifiers in more detail. The ptrBtnState return value reports the current logical state of up to five buttons on the core pointer device. The compatState return value reports the compatibility state that corresponds to the effective keyboard group and modifier state. The compatLookupMods and compatGrabMods return values report the core protocol compatibility states that correspond to the XKB lookup and grab state. All of the compatibility states are computed by applying the group compatibility mapping to the corresponding XKB modifier and group states, as described in Group Compatibility Map. XkbLatchLockState deviceSpec: KB_DEVICESPEC affectModLocks, modLocks: KEYMASK lockGroup: BOOL groupLock: KB_GROUP affectModLatches,modLatches: KEYMASK latchGroup: BOOL groupLatch: INT16 Errors: Keyboard , Value This request locks or latches keyboard modifiers and group state for the device specified by deviceSpec . If deviceSpec specifies an illegal or non-keyboard device, a Keyboard error occurs. The locked state of any modifier specified in the affectModLocks mask is set to the corresponding value from modLocks . If lockGroup is True , the locked keyboard group is set to the group specified by groupLock . If any modifiers are set in modLocks but not affectModLocks , a Match error occurs. The latched state of any modifier specified in the affectModLatches mask is set to the corresponding value from modLatches . If latchGroup is True , the latched keyboard group is set to the group specified by groupLatch . if any modifiers are set in modLatches but not in affectModLatches , a Match error occurs. If the locked group exceeds the maximum number of groups permitted for the specified keyboard, it is wrapped or truncated back into range as specified by the global GroupsWrap control. No error results from an out-of-range group specification. After changing the locked and latched modifiers and groups as specified, the X server recalculates the effective and compatibility keyboard state and generates XkbStateNotify events as appropriate if any state components have changed. Changing the keyboard state might also turn indicators on or off which can cause XkbIndicatorStateNotify events as well. If any errors occur, this request has no effect. Querying and Changing Keyboard Controls XkbGetControls deviceSpec: KB_DEVICESPEC deviceID: CARD8 mouseKeysDfltBtn: CARD8 numGroups: CARD8 groupsWrap: KB_GROUPINFO internalMods,ignoreLockMods: KB_MODDEF repeatDelay,repeatInterval: CARD16 slowKeysDelay, debounceDelay: CARD16 mouseKeysDelay, mouseKeysInterval: CARD16 mouseKeysTimeToMax, mouseKeysMaxSpeed: CARD16 mouseKeysCurve: INT16 accessXOptions: KB_AXOPTIONMASK accessXTimeout: CARD16 accessXTimeoutOptionsMask, accessXTimeoutOptionValues: CARD16 accessXTimeoutMask,accessXTimeoutValues: CARD32 enabledControls: KB_BOOLCTRLMASK perKeyRepeat: LISTofCARD8 Errors: Keyboard This request returns the current values and status of all controls for the keyboard specified by deviceSpec . If deviceSpec specifies an illegal device a Keyboard error results. On return, the deviceID specifies the identifier of the requested device or zero if the server does not support the input extension. The numGroups return value reports the current number of groups, and groupsWrap reports the treatment of out-of-range groups, as described in Key Symbol Map. The internalMods and ignoreLockMods return values report the current values of the server internal and ignore locks modifiers as described in Keyboard State. Both are modifier definitions ( Modifier Definitions) which report the real modifiers, virtual modifiers, and the resulting combination of real modifiers that are bound to the corresponding control. The repeatDelay , repeatInterval , slowKeysDelay and debounceDelay fields report the current values of the for the autorepeat delay, autorepeat interval, slow keys delay and bounce keys timeout, respectively. The mouseKeysDelay , mouseKeysInterval , mouseKeysTimeToMax and mouseKeysMaxSpeed and mouseKeysCurve return values report the current acceleration applied to mouse keys, as described in The MouseKeysAccel Control. All times are reported in milliseconds. The mouseKeysDfltBtn return value reports the current default pointer button for which events are synthesized by the mouse keys server actions. The accessXOptions return value reports the current settings of the various AccessX options flags which govern the behavior of the StickyKeys control and of AccessX feedback. The accessXTimeout return value reports the length of time, in seconds, that the keyboard must remain idle before AccessX controls are automatically changed; an accessXTimeout of 0 indicates that AccessX controls are not automatically changed. The accessXTimeoutMask specifies the boolean controls to be changed if the AccessX timeout expires; the accessXTimeoutValues field specifies new values for all of the controls in the timeout mask. The accessXTimeoutOptionsMask field specifies the AccessX options to be changed when the AccessX timeout expires; the accessXTimeoutOptionValues return value reports the values to which they will be set. The enabledControls return value reports the current state of all of the global boolean controls. The perKeyRepeat array consists of one bit per key and reports the current autorepeat behavior of each keyboard key; if a bit is set in perKeyRepeat , the corresponding key repeats if it is held down while global keyboard autorepeat is enabled. This array parallels the core protocol and input extension keyboard controls, if the autorepeat behavior of a key is changed via the core protocol or input extension, those changes are automatically reflected in the perKeyRepeat array. XkbSetControls deviceSpec: KB_DEVICESPEC affectInternalRealMods, internalRealMods: KEYMASK affectInternalVirtualMods,internalVirtualMods: KB_VMODMASK affectIgnoreLockRealMods,ignoreLockRealMods: KB_MODMASK affectIgnoreLockVirtualMods,ignoreLockVirtualMods: KB_VMODMASK mouseKeysDfltBtn: CARD8 groupsWrap: KB_GROUPINFO accessXOptions: CARD16 affectEnabledControls: KB_BOOLCTRLMASK enabledControls: KB_BOOLCTRLMASK changeControls: KB_CONTROLMASK repeatDelay,repeatInterval: CARD16 slowKeysDelay, debounceDelay: CARD16 mouseKeysDelay, mouseKeysInterval: CARD16 mouseKeysTimeToMax, mouseKeysMaxSpeed: CARD16 mouseKeysCurve: INT16 accessXTimeout: CARD16 accessXTimeoutMask, accessXTimeoutValues: KB_BOOLCTRLMASK accessXTimeoutOptionsMask,accessXTimeoutOptionsValues: CARD16 perKeyRepeat: LISTofCARD8 Errors: Keyboard , Value This request sets the keyboard controls indicated in changeControls for the keyboard specified by deviceSpec . Each bit that is set in changeControls indicates that one or more of the other request fields should be applied, as follows: Bit in changeControls Field(s) to be Applied XkbRepeatKeysMask repeatDelay , repeatInterval XkbSlowKeysMask slowKeysDelay XkbStickyKeysMask accessXOptions (only the XkbAX_TwoKeys and the XkbAX_LatchToLock options are affected) XkbBounceKeysMask debounceDelay XkbMouseKeysMask mouseKeysDfltBtn XkbMouseKeysAccelMask mouseKeysDelay , mouseKeysInterval , mouseKeysCurve , mouseKeysTimeToMax , mouseKeysMaxSpeed XkbAccessXKeysMask accessXOptions (all options) XkbAccessXTimeoutMask accessXTimeout , accessXTimeoutMask , accessXTimeoutValues , accessXTimeoutOptionsMask , accessXTimeoutOptionsValues XkbAccessXFeedbackMask accessXOptions (all options except those affected by the XkbStickyKeysMask bit) XkbGroupsWrapMask groupsWrap XkbInternalModsMask affectInternalRealMods , internalRealMods , affectInternalVirtualMods , internalVirtualMods XkbIgnoreLockModsMask affectIgnoreLockRealMods , ignoreLockRealMods , affectIgnoreLockVirtualMods , ignoreLockVirtualMods XkbPerKeyRepeatMask perKeyRepeat XkbControlsEnabledMask affectEnabledControls , enabledControls If any other bits are set in changeControls , a Value error results. If any of the bits listed above are not set in changeControls , the corresponding fields must have the value 0 , or a Match error results. If applied, repeatDelay and repeatInterval change the autorepeat characteristics of the keyboard, as described in The RepeatKeys Control. If specified, repeatDelay and repeatInterval must both be non-zero or a Value error results. If applied, the slowKeysDelay field specifies a new delay for the SlowKeys control, as defined in The SlowKeys Control. If specified, slowKeysDelay must be non-zero, or a Value error results. If applied, the debounceDelay field specifies a new delay for the BounceKeys control, as described in The BounceKeys Control. If present, the debounceDelay must be non-zero or a Value error results. If applied, the mouseKeysDfltBtn field specifies the core pointer button for which events are generated whenever a SA_PtrBtn or SA_LockPtrBtn key action is activated. If present, mouseKeysDfltBtn must specify a legal button for the core pointer device, or a Value error results. Key Actions describes the SA_PtrBtn and SA_LockPtrBtn actions in more detail. If applied, the mouseKeysDelay , mouseKeysInterval , mouseKeysTimeToMax , mouseKeysMaxSpeed and mouseKeysCurve fields change the rate at which the pointer moves when a key which generates a SA_MovePtr action is held down. The MouseKeysAccel Control describes these MouseKeysAccel parameters in more detail. If defined, the mouseKeysDelay , mouseKeysInterval , mouseKeysTimeToMax and mouseKeysMaxSpeed values must all be greater than zero, or a Value error results. The mouseKeysCurve value must be greater than -1000 or a Value error results. If applied, the accessXOptions field sets the AccessX options, which are described in detail in The AccessXKeys Control. If either one of XkbStickyKeysMask and XkbAccessXFeedbackMask are set in changeControls and XkbAccessXKeysMask is not, only a subset of the AccessX options are changed, as described in the table above; if both are set or if the AccessXKeys bit is set in changeControls , all of the AccessX options are updated. Any bit in accessXOptions whose interpretation is undefined must be zero, or a Value error results. If applied, the accessXTimeout , accessXTimeoutMask , accessXTimeoutValues , accessXTimeoutOptionsMask and accessXTimeoutOptionsValues fields change the behavior of the AccessX Timeout control, as described in The AccessXTimeout Control. The accessXTimeout must be greater than zero, or a Value error results. The accessXTimeoutMask or accessXTimeoutValues fields must specify only legal boolean controls, or a Value error results. The accessXTimeoutOptionsMask and accessXTimeoutOptionsValues fields must contain only legal AccessX options or a Value error results. If any bits are set in either values field but not in the corresponding mask, a Match error results. If present, the groupsWrap field specifies the treatment of out-of-range keyboard groups, as described in Key Symbol Map. If the groupsWrap field does not specify a legal treatment for out-of-range groups, a Value error results. If present, the affectInternalRealMods field specifies the set of real modifiers to be changed in the internal modifier definition and the internalRealMods field specifies new values for those modifiers. The affectInternalVirtualMods and internalVirtualMods fields update the virtual modifier component of the modifier definition that describes the internal modifiers in the same way. If any bits are set in either values field but not in the corresponding mask field, a Match error results. If present, the affectIgnoreLockRealMods field specifies the set of real modifiers to be changed in the ignore locks modifier definition and the ignoreLockRealMods field specifies new values for those modifiers. The affectIgnoreLockVirtualMods and ignoreLockVirtualMods fields update the virtual modifier component of the ignore locks modifier definition in the same way. If any bits are set in either values field but not in the corresponding mask field, a Match error results. If present, the perKeyRepeat array specifies the repeat behavior of the individual keyboard keys. The corresponding core protocol or input extension per-key autorepeat information is updated to reflect any changes specified in perKeyRepeat . If the bits that correspond to any out-of-range keys are set in perKeyRepeat , a Value error results. If present, the affectEnabledControls and enabledControls field enable and disable global boolean controls. Any controls set in both fields are enabled; any controls that are set in affectEnabledControls but not in enabledControls are disabled. Controls that are not set in either field are not affected. If any controls are specified in enabledControls but not in affectEnabledControls , a Match error results. If either field contains anything except boolean controls, a Value error results. Querying and Changing the Keyboard Mapping XkbGetMap deviceSpec: KB_DEVICESPEC full, partial: KB_MAPPARTMASK firstType, nTypes: CARD8 firstKeySym, firstKeyAction: KEYCODE nKeySyms, nKeyActions: CARD8 firstKeyBehavior,firstKeyExplicit: KEYCODE nKeyBehaviors,nKeyExplicit: CARD8 firstModMapKey,firstVModMapKey: KEYCODE nModMapKeys, nVModMapKeys: CARD8 virtualMods: KB_VMODMASK deviceID: CARD8 minKeyCode, maxKeyCode: KEYCODE present: KB_MAPPARTMASK firstType, nTypes, nTotalTypes: CARD8 firstKeySym, firstKeyAction: KEYCODE nKeySyms, nKeyActions: CARD8 totalSyms, totalActions: CARD16 firstKeyBehavior, firstKeyExplicit: KEYCODE nKeyBehaviors, nKeyExplicit: CARD8 totalKeyBehaviors, totalKeyExplicit: CARD8 firstModMapKey, firstVModMapKey: KEYCODE nModMapKeys, nVModMapKeys: CARD8 totalModMapKeys, totalVModMapKeys: CARD8 virtualMods: KB_VMODMASK typesRtrn: LISTofKB_KEYTYPE symsRtrn: LISTofKB_KEYSYMMAP actsRtrn: { count: LISTofCARD8, acts: LISTofKB_ACTION } behaviorsRtrn: LISTofKB_SETBEHAVIOR vmodsRtrn: LISTofSETofKEYMASK explicitRtrn: LISTofKB_SETEXPLICIT modmapRtrn: LISTofKB_KEYMODMAP vmodMapRtrn: LISTofKB_KEYVMODMAP Errors: Keyboard , Value , Match , Alloc This request returns the indicated components of the server and client maps of the keyboard specified by deviceSpec . The full mask specifies the map components to be returned in full; the partial mask specifies the components for which some subset of the legal elements are to be returned. The server returns a Match error if any component is specified in both full and partial , or a Value error if any undefined bits are set in either full or partial . Each bit in the partial mask controls the interpretation of one or more of the other request fields, as follows: Bit in the Partial Mask Type Corresponding Field(s) XkbKeyTypesMask key types firstType , nTypes XkbKeySymsMask keycodes firstKeySym , nKeySyms XkbKeyActionsMask keycodes firstKeyAction , nKeyActions XkbKeyBehaviorsMask keycodes firstKeyBehavior , nKeyBehaviors XkbExplicitComponentsMask keycodes firstKeyExplicit , nKeyExplicit XkbModifierMapMask keycodes firstModMapKey , nModMapKeys XkbVirtualModMapMask keycodes firstVModMapKey , nVModMapKeys XkbVirtualModsMask virtual modifiers virtualMods If any of these keyboard map components are specified in partial , the corresponding values must specify a valid subset of the requested components or this request reports a Value error. If a keyboard map component is not specified in partial , the corresponding fields must contain zeroes, or a Match error results. If any error is generated, the request aborts and does not report any values. On successful return, the deviceID field reports the X input extension device ID of the keyboard for which information is being returned, or 0 if the server does not support the X input extension. The minKeyCode and maxKeyCode return values report the minimum and maximum keycodes that are legal for the keyboard in question. The present return value lists all of the keyboard map components contained in the reply. The bits in present affect the interpretation of the other return values as follows: If XkbKeyTypesMask is set in present : firstType and nTypes specify the types reported in the reply. nTotalTypes reports the total number of types defined for the keyboard typesRtrn has nTypes elements of type KB_KEYTYPE which describe consecutive key types starting from firstType . If XkbKeySymsMask is set in present : firstKeySym and nKeySyms specify the subset of the keyboard keys for which symbols will be reported. totalSyms reports the total number of keysyms bound to the keys returned in this reply. symsRtrn has nKeySyms elements of type KB_KEYSYMMAP, which describe the symbols bound to consecutive keys starting from firstKeySym . If XkbKeyActionsMask is set in present : firstKeyAction and nKeyActions specify the subset of the keys for which actions are reported. totalActions reports the total number of actions bound to the returned keys. The count field of the actsRtrn return value has nKeyActions entries of type CARD8, which specify the number of actions bound to consecutive keys starting from firstKeyAction . The acts field of actsRtrn has totalActions elements of type KB_ACTION and specifies the actions bound to the keys. If XkbKeyBehaviorsMask is set in present : The firstKeyBehavior and nKeyBehaviors return values report the range of keyboard keys for which behaviors will be reported. The totalKeyBehaviors return value reports the number of keys in the range to be reported that have non-default values. The behaviorsRtrn value has totalKeyBehaviors entries of type KB_BEHAVIOR. Each entry specifies a key in the range for which behaviors are being reported and the behavior associated with that key. Any keys in that range that do not have an entry in behaviorsRtrn have the default behavior, KB_Default . If XkbExplicitComponentsMask is set in present : The firstKeyExplicit and nKeyExplicit return values report the range of keyboard keys for which the set of explicit components is to be returned. The totalKeyExplicit return value reports the number of keys in the range specified by firstKeyExplicit and nKeyExplicit that have one or more explicit components. The explicitRtrn return value has totalKeyExplicit entries of type KB_KEYEXPLICIT. Each entry specifies the a key in the range for which explicit components are being reported and the explicit components that are bound to it. Any keys in that range that do not have an entry in explicitRtrn have no explicit components. If XkbModifierMapMask is set in present : The firstModMapKey and nModMapKeys return values report the range of keyboard keys for which the modifier map is to be reported. The totalModMapKeys return value reports the number of keys in the range specified by firstModMapKey and nModMapKeys that are bound with to one or more modifiers. The modmapRtrn return value has totalModMapKeys entries of type KB_KEYMODMAP. Each entry specifies the a key in the range for which the modifier map is being reported and the set of modifiers that are bound to that key. Any keys in that range that do not have an entry in modmapRtrn are not associated with any modifiers by the modifier mapping. If XkbVirtualModMapMask is set in present : The firstVModMapKey and nVModMapKeys return values report the range of keyboard keys for which the virtual modifier map is to be reported. The totalVModMapKeys return value reports the number of keys in the range specified by firstVModMapKey and nVModMapKeys that are bound with to or more virtual modifiers. The vmodmapRtrn return value has totalVModMapKeys entries of type KB_KEYVMODMAP. Each entry specifies the a key in the range for which the virtual modifier map is being reported and the set of virtual modifiers that are bound to that key. Any keys in that range that do not have an entry in vmodmapRtrn are not associated with any virtual modifiers, If XkbVirtualModsMask is set in present : The virtualMods return value is a mask with one bit per virtual modifier which specifies the virtual modifiers for which a set of corresponding real modifiers is to be returned. The vmodsRtrn return value is a list with one entry of type KEYBUTMASK for each virtual modifier that is specified in virtualMods . The entries in vmodsRtrn contain the real modifier bindings for the specified virtual modifiers, beginning with the lowest-numbered virtual modifier that is present in virtualMods and proceeding to the highest. If any of these bits are not set in present , the corresponding numeric fields all have the value zero, and the corresponding lists are all of length zero. XkbSetMap deviceSpec: KB_DEVICESPEC flags: { SetMapResizeTypes, SetMapRecomputeActions } present: KB_MAPPARTMASK minKeyCode, maxKeyCode: KEYCODE firstType, nTypes: CARD8 firstKeySym, firstKeyAction: KEYCODE nKeySyms, nKeyActions: CARD8 totalSyms, totalActions: CARD16 firstKeyBehavior, firstKeyExplicit: KEYCODE nKeyBehaviors, nKeyExplicit: CARD8 totalKeyBehaviors, totalKeyExplicit: CARD8 firstModMapKey, firstVModMapKey: KEYCODE nModMapKeys, nVModMapKeys: CARD8 totalModMapKeys, totalVModMapKeys: CARD8 virtualMods: VMODMASK types: LISTofKB_KEYTYPE syms: LISTofKB_KEYSYMMAP actions: { count: LISTofCARD8, actions: LISTofKB_ACTION } behaviors: LISTofKB_BEHAVIOR vmods: LISTofKEYMASK explicit: LISTofKB_EXPLICIT modmap: LISTofKB_KEYMODMAP vmodmap: LISTofKB_KEYVMODMAP Errors: Keyboard , Value , Match , Alloc This request changes the indicated parts of the keyboard specified by deviceSpec . With XKB, the effect of a key release is independent of the keyboard mapping at the time of the release, so this request can be processed regardless of the logical state of the modifier keys at the time of the request. The present field specifies the keyboard map components contained to be changed. The bits in present affect the interpretation of the other fields as follows: If XkbKeyTypesMask is set in present , firstType and nTypes specify a subset of the key types bound to the keyboard to be changed or created. The index of the first key type to be changed must be less than or equal to the unmodified length of the list of key types or a Value error results. If XkbKeyTypesMask is set in present and SetMapResizeTypes is set in flags , the server resizes the list of key types bound to the keyboard so that the last key type specified by this request is the last element in the list. If the list of key types is shrunk, any existing key definitions that use key types that eliminated are automatically assigned key types from the list of canonical key types as described in Assigning Types To Groups of Symbols for a Key. The list of key types bound to a keyboard must always include the four canonical types and cannot have more than XkbMaxTypesPerKey (32) types; any attempt to reduce the number of types bound to a keyboard below four or above XkbMaxTypesPerKey causes a Value error. Symbolic names for newly created key types or levels within a key type are initialized to None . If XkbKeyTypesMask is set in present , the types list has nTypes entries of type KB_KEYTYPE.Each key type specified in types must be valid or a Value error results. To be valid a key type definition must meet the following criteria: The numLevels for the type must be greater than zero. If the key type is ONE_LEVEL (i.e. index zero in the list of key types), numLevels must be one. If the key type is TWO_LEVEL or KEYPAD , or ALPHABETIC (i.e. index one, two, or three in the lest of key types) group width must be two. Each key type in types must also be internally consistent, or a Match error results. To be internally consistent, a key type definition must meet the following criteria: Each map entry must specify a resulting level that is legal for the type. Any real or virtual modifiers specified in any of the map entries must also be specified in the mods for the type. If XkbKeySymsMask is set in present , firstKeySym and nKeySyms specify a subset of the keyboard keys to which new symbols are to be assigned and totalSyms specifies the total number of symbols to be assigned to those keys. If any of the keys specified by firstKeySym and nKeySyms are not legal, a Match error results. The syms list has nKeySyms elements of type KB_KEYSYMMAP. Each key in the resulting key symbol map must be valid and internally consistent or a Value error results. To be valid and internally consistent, a key symbol map must meet the following criteria: The key type indices must specify legal result key types. The number of groups specified by groupInfo must be in the range 0…4 . The width of the key symbol map must be equal to numLevels of the widest key type bound to the key. The number of symbols, nSyms , must equal the number of groups times width . If XkbKeyActionsMask is set in present , firstKeyAction and nKeyActions specify a subset of the keyboard keys to which new actions are to be assigned and totalActions specifies the total number of actions to be assigned to those keys. If any of the keys specified by firstKeyAction and nKeyActions are not legal, a Match error results. The count field of the actions return value has nKeyActions elements of type CARD8; each element of count specifies the number of actions bound to the corresponding key. The actions list in the actions field has totalActions elements of type KB_ACTION. These actions are assigned to each target key in turn, as specified by count . The list of actions assigned to each key must either be empty or have exactly as many actions as the key has symbols, or a Match error results. If XkbKeyBehaviorsMask is set in present , firstKeyBehavior and nKeyBehaviors specify a subset of the keyboard keys to which new behaviors are to be assigned, and totalKeyBehaviors specifies the total number of keys in that range to be assigned non-default behavior. If any of the keys specified by firstKeyBehavior and nKeyBehaviors are not legal, a Match error results. The behaviors list has totalKeyBehaviors elements of type KB_BEHAVIOR; each entry of behaviors specifies a key in the specified range and a new behavior for that key; any key that falls in the range specified by firstBehavior and nBehaviors for which no behavior is specified in behaviors is assigned the default behavior, KB_Default . The new behaviors must be legal, or a Value error results. To be legal, the behavior specified in the XkbSetMap request must: Specify a key in the range indicated by firstKeyBehavior and nKeyBehaviors . Not specify the permanent flag; permanent behaviors cannot be set or changed using the XkbSetMap request. If present, the KB_Overlay1 and KB_Overlay2 behaviors must specify a keycode for the overlay key that is valid for the current keyboard. If present, the KB_RadioGroup behavior must specify a legal index (0…31) for the radio group to which the key belongs. Key behaviors that are not recognized by the server are accepted but ignored. Attempts to replace a "permanent" behavior are silently ignored; the behavior is not replaced, but not error is generated and any other components specified in the XkbSetMap request are updated, as appropriate. If XkbVirtualModsMask is set in present , virtualMods is a mask which specifies the virtual modifiers to be rebound. The vmods list specifies the real modifiers that are bound to each of the virtual modifiers specified in virtualMods , starting from the lowest numbered virtual modifier and progressing upward. Any virtual modifier that is not specified in virtualMods has no corresponding entry in vmods , so the vmods list has one entry for each bit that is set in virtualMods . If XkbExplicitComponentsMask is set in present , firstKeyExplicit and nKeyExplicit specify a subset of the keyboard keys to which new explicit components are to be assigned, and totalKeyExplicit specifies the total number of keys in that range that have at least one explicit component. The explicit list has totalKeyExplicit elements of type KB_KEYEXPLICIT; each entry of explicit specifies a key in the specified range and a new set of explicit components for that key. Any key that falls in the range specified by firstKeyExplicit and nKeyExplicit that is not assigned some value in explicit has no explicit components. If XkbModifierMapMask is set in present , firstModMapKey and nModMapKeys specify a subset of the keyboard keys for which new modifier mappings are to be assigned, and totalModMapKeys specifies the total number of keys in that range to which at least one modifier is bound. The modmap list has totalModMapKeys elements of type KB_KEYMODMAP; each entry of modmap specifies a key in the specified range and a new set of modifiers to be associated with that key. Any key that falls in the range specified by firstModMapKey and nModMapKeys that is not assigned some value in modmap has no associated modifiers. If the modifier map is changed by the XkbSetMap request, any changes are also reflected in the core protocol modifier mapping. Changes to the core protocol modifier mapping are reported to XKB-unaware clients via MappingNotify events and can be retrieved with the core protocol GetModifierMapping request. If XkbVirtualModMapMask is set in present , firstVModMapKey and nVModMapKeys specify a subset of the keyboard keys for which new modifier mappings are to be assigned, and totalVModMapKeys specifies the total number of keys in that range to which at least one virtual modifier is bound. The vmodmap list has totalVModMapKeys elements of type KB_KEYVMODMAP; each entry of vmodmap specifies a key in the specified range and a new set of virtual modifiers to be associated with that key. Any key that falls in the range specified by firstVModMapKey and nVModMapKeys that is not assigned some value in vmodmap has no associated virtual modifiers. If the resulting keyboard map is legal, the server updates the keyboard map. Changes to some keyboard components have indirect effects on others: If the XkbSetMapRecomputeActions bit is set in flags , the actions associated with any keys for which symbol or modifier bindings were changed by this request are recomputed as described in Assigning Actions To Keys. Note that actions are recomputed after any actions specified in this request are bound to keys, so the actions specified in this request might be clobbered by the automatic assignment of actions to keys. If the group width of an existing key type is changed, the list of symbols associated with any keys of the changed type might be resized accordingly. If the list increases in size, any unspecified new symbols are initialized to NoSymbol . If the list of actions associated with a key is not empty, changing the key type of the key resizes the list. Unspecified new actions are calculated by applying any keyboard symbol interpretations to the corresponding symbols. The number of groups global to the keyboard is always equal to the largest number of groups specified by any of the key symbol maps. Changing the number of groups in one or more key symbol maps may change the number of groups global to the keyboard. Assigning key behavior KB_RadioGroup to a key adds that key as a member of the specified radio group. Changing a key with the existing behavior KB_RadioGroup removes that key from the group. Changing the elements of a radio group can cause synthetic key press or key release events if the key to be added or removed is logically down at the time of the change. Changing a key with behavior KB_Lock causes a synthetic key release event if the key is logically but not physically down at the time of the change. This request sends an XkbMapNotify event which reflects both explicit and indirect map changes to any interested clients. If any symbolic names are changed, it sends a XkbNamesNotify reflecting the changes to any interested clients. XKB-unaware clients are notified of keyboard changes via core protocol MappingNotify events. Key press and key release events caused by changing key behavior may cause additional XkbStateNotify or XkbIndicatorStateNotify events. Querying and Changing the Compatibility Map XkbGetCompatMap deviceSpec: KB_DEVICESPEC groups: KB_GROUPMASK getAllSI: BOOL firstSI, nSI: CARD16 deviceID: CARD8 groupsRtrn: KB_GROUPMASK firstSIRtrn, nSIRtrn, nTotalSI: CARD16 siRtrn: LISTofKB_SYMINTERP groupRtrn: LISTofKB_MODDEF Errors: Keyboard , Match , Alloc This request returns the listed compatibility map components for the keyboard specified by deviceSpec . If deviceSpec does not specify a valid keyboard device, a Keyboard Error results. On return, deviceID reports the input extension identifier of the keyboard device or 0 if the server does not support the input extension. If getAllSI is False , firstSI and nSI specify a subset of the symbol interpretations to be returned; if used, nSI must be greater than 0 and all of the elements specified by firstSI and nSI must be defined or a Value error results. If getAllSyms is True , the server ignores firstSym and nSyms and returns all of the symbol interpretations defined for the keyboard. The groups mask specifies the groups for which compatibility maps are to be returned. The nTotalSI return value reports the total number of symbol interpretations defined for the keyboard. On successful return, the siRtrn return list contains the definitions for nSIRtrn symbol interpretations beginning at firstSIRtrn . The groupRtrn return values report the entries in the group compatibility map for any groups specified in the groupsRtrn return value. XkbSetCompatMap deviceSpec: KB_DEVICESPEC recomputeActions: BOOL truncateSI: BOOL groups: KB_GROUPMASK firstSI, nSI: CARD16 si: LISTofKB_SYMINTERPRET groupMaps: LISTofKB_MODDEF Errors: Keyboard , Match , Value , Alloc This request changes a specified subset of the compatibility map of the keyboard indicated by deviceSpec . If deviceSpec specifies an invalid device, a Keyboard error results and nothing is changed. The firstSI and nSI fields specify a subset of the keyboard symbol interpretations to be changed. The si list specifies new values for each of the interpretations in that range. The first symbol interpretation to be changed, firstSI , must be less than or equal to the unchanged length of the list of symbol interpretations, or a Value error results. If the resulting list would be larger than the unchanged list, it server list of symbol interpretations is automatically increased in size. Otherwise, if truncateSyms is True , the server deletes any symbol interpretations after the last element changed by this request, and reduces the length of the list accordingly. The groupMaps fields contain new definitions for a subset of the group compatibility map; groups specifies the group compatibility map entries to be updated from groupMaps . All changed compatibility maps and symbol interpretations must either ignore group state or specify a legal range of groups, or a Value error results. If the recomputeActions field is True , the server regenerates recalculates the actions bound to all keyboard keys by applying the new symbol interpretations to the entire key symbol map, as described in Assigning Actions To Keys. Querying and Changing Indicators XkbGetIndicatorState deviceSpec: KB_DEVICESPEC deviceID: CARD8 state: KB_INDICATORMASK Errors: Keyboard This request reports the current state of the indicators for the keyboard specified by deviceSpec . If deviceSpec does not specify a valid keyboard, a Keyboard error results. On successful return, the deviceID field reports the input extension identifier of the keyboard or 0 if the server does not support the input extension. The state return value reports the state of each of the thirty-two indicators on the specified keyboard. The least-significant bit corresponds to indicator 0, the most significant bit to indicator 31; if a bit is set, the corresponding indicator is lit. XkbGetIndicatorMap deviceSpec: KB_DEVICESPEC which: KB_INDICATORMASK deviceID: CARD8 which: KB_INDICATORMASK realIndicators: KB_INDICATORMASK nIndicators: CARD8 maps: LISTofKB_INDICATORMAP Errors: Keyboard , Value This request returns a subset of the maps for the indicators on the keyboard specified by deviceSpec . If deviceSpec does not specify a valid keyboard device, a Keyboard error results. The which field specifies the subset to be returned; a set bit in the which field indicates that the map for the corresponding indicator should be returned. On successful return, the deviceID field reports the input extension identifier of the keyboard or 0 if the server does not support the input extension. Any indicators specified in realIndicators are actually present on the keyboard; the rest are virtual indicators. Virtual indicators do not directly cause any visible or audible effect when they change state, but they do cause XkbIndicatorStateNotify events. The maps return value reports the requested indicator maps. Indicator maps are described in Indicator Maps XkbSetIndicatorMap deviceSpec: KB_DEVICESPEC which: KB_INDICATORMASK maps: LISTofKB_INDICATORMAP Errors: Keyboard , Value This request changes a subset of the maps on the keyboard specified by deviceSpec . If deviceSpec does not specify a valid keyboard device, a Keyboard error results. The which field specifies the subset to be changed; the maps field contains the new definitions. If successful, the new indicator maps are applied immediately. If any indicators change state as a result of the new maps, the server generates XkbIndicatorStateNotify events as appropriate. XkbGetNamedIndicator deviceSpec: KB_DEVICESPEC ledClass: KB_LEDCLASSSPEC ledID: KB_IDSPEC indicator: ATOM deviceID: CARD8 supported: BOOL indicator: ATOM found: BOOL on: BOOL realIndicator: BOOL ndx: CARD8 map: KB_INDICATORMAP Errors: Keyboard , Atom , Value This request returns information about the indicator specified by ledClass , ledID , and indicator on the keyboard specified by deviceSpec . The indicator field specifies the name of the indicator for which information is to be returned. If deviceSpec does not specify a device with indicators, a Keyboard error results. If ledClass does not have the value DfltXIClass , LedFeedbackClass , or KbdFeedbackClass , a Value error results. If ledID does not have the value DfltXIId or specify the identifier of a feedback of the class specified by ledClass on the device specified by deviceSpec , a Match error results. If indicator is not a valid ATOM other than None , an Atom error results. This request is always supported with default class and identifier on the core keyboard device. If the request specifies a device other than the core keyboard device or a feedback class and identifier other than the defaults, and the server does not support indicator names or indicator maps for extension devices, the supported return value is False and the values of the other fields in the reply are undefined. If the client which issued the unsupported request has also selected to do so, it will also receive an XkbExtensionDeviceNotify event which reports the attempt to use an unsupported feature, in this case one or both of XkbXI_IndicatorMaps or XkbXI_IndicatorNames . Otherwise, supported is True and the deviceID field reports the input extension identifier of the keyboard or 0 if the server does not support the input extension. The indicator return value reports the name for which information was requested and the found return value is True if an indicator with the specified name was found on the device. If a matching indicator was found: The on return value reports the state of the indicator at the time of the request. The realIndicator return value is True if the requested indicator is actually present on the keyboard or False if it is virtual. The ndx return value reports the index of the indicator in the requested feedback. The map return value reports the indicator map used by to automatically change the state of the specified indicator in response to changes in keyboard state or controls. If no matching indicator is found, the found return value is False , and the on , realIndicator , ndx , and map return values are undefined. XkbSetNamedIndicator deviceSpec: KB_DEVICESPEC ledClass: KB_LEDCLASSSPEC ledID: KB_IDSPEC indicator: ATOM setState: BOOL on: BOOL setMap: BOOL createMap: BOOL map: KB_SETINDICATORMAP Errors: Keyboard , Atom , Access This request changes various aspects of the indicator specified by ledClass , ledID , and indicator on the keyboard specified by deviceSpec . The indicator argument specifies the name of the indicator to be updated. If deviceSpec does not specify a device with indicators, a Keyboard error results. If ledClass does not have the value DfltXIClass , LedFeedbackClass , or KbdFeedbackClass , a Value error results. If ledID does not have the value DfltXIId or specify the identifier of a feedback of the class specified by ledClass on the device specified by deviceSpec , a Match error results. If indicator is not a valid ATOM other than None , an Atom error results. This request is always supported with default class and identifier on the core keyboard device. If the request specifies a device other than the core keyboard device or a feedback class and identifier other than the defaults, and the server does not support indicator names or indicator maps for extension devices, the supported return value is False and the values of the other fields in the reply are undefined. If the client which issued the unsupported request has also selected to do so, it will also receive an XkbExtensionDeviceNotify event which reports the attempt to use an unsupported feature, in this case one or both of XkbXI_IndicatorMaps and XkbXI_IndicatorNames . Otherwise, supported is True and the deviceID field reports the input extension identifier of the keyboard or 0 if the server does not support the input extension. The indicator return value reports the name for which information was requested and the found return value is True if an indicator with the specified name was found on the device. If no indicator with the specified name is found on the specified device, and the createMap field is True , XKB assigns the specified name to the lowest-numbered indicator that has no name (i.e. whose name is None ) and applies the rest of the fields in the request to the newly named indicator. If no unnamed indicators remain, this request reports no error and has no effect. If no matching indicator is found or new indicator assigned this request reports no error and has no effect. Otherwise, it updates the indicator as follows: If setMap is True , XKB changes the map for the indicator (see Indicator Maps) to reflect the values specified in map . If setState is True , XKB attempts to explicitly change the state of the indicator to the state specified in on . The effects of an attempt to explicitly change the state of an indicator depend on the values in the map for that indicator and are not guaranteed to succeed. If this request affects both indicator map and state, it updates the indicator map before attempting to change its state, so the success of the explicit change depends on the indicator map values specified in the request. If this request changes the indicator map, it applies the new map immediately to determine the appropriate state for the indicator given the new indicator map and the current state of the keyboard. Querying and Changing Symbolic Names XkbGetNames deviceSpec: KB_DEVICESPEC which: KB_NAMEDETAILMASK deviceID: CARD8 which: KB_NAMESMASK minKeyCode, maxKeyCode: KEYCODE nTypes: CARD8 nKTLevels: CARD16 groupNames: KB_GROUPMASK virtualMods: KB_VMODMASK firstKey: KEYCODE nKeys: CARD8 indicators: KB_INDICATORMASK nRadioGroups, nKeyAliases: CARD8 present: KB_NAMEDETAILMASK valueList: LISTofITEMs Errors: Keyboard , Value This request returns the symbolic names for various components of the keyboard mapping for the device specified by deviceSpec . The which field specifies the keyboard components for which names are to be returned. If deviceSpec does not specify a valid keyboard device, a Keyboard error results. If any undefined bits in which are non-zero, a Value error results. The deviceID return value contains the X Input Extension device identifier of the specified device or 0 if the server does not support the input extension. The present and valueList return values specify the components for which names are being reported. If a component is specified in present , the corresponding element is present in the valueList , otherwise that component has length 0 . The components of the valueList appear in the following order, when present:. Component Size Type XkbKeycodesName 1 ATOM XkbGeometryName 1 ATOM XkbSymbolsName 1 ATOM XkbPhysSymbolsName 1 ATOM XkbTypesName 1 ATOM XkbCompatName 1 ATOM XkbKeyTypeNames nTypes LISTofATOM XkbKTLevelNames nTypes , nKTLevels { count: LISTofCARD8, names: LISTofATOM } XkbIndicatorNames One per bit set in indicators LISTofATOM XkbVirtualModNames One per bit set in virtualMods LISTofATOM XkbGroupNames One per bit set in groupNames LISTofATOM XkbKeyNames nKeys LISTofKB_KEYNAME XkbKeyAliases nKeyAliases LISTofKB_KEYALIAS XkbRGNames nRadioGroups LISTofATOM If type names are reported, the nTypes return value reports the number of types defined for the keyboard, and the list of key type names in valueList has nTypes elements. If key type level names are reported, the list of key type level names in the valueList has two parts: The count array has nTypes elements, each of which reports the number of level names reported for the corresponding key type. The names array has nKTLevels atoms and reports the names of each type sequentially. The nKTLevels return value is always equal to the sum of all of the elements of the count array. If indicator names are reported, the indicators mask specifies the indicators for which names are defined; any indicators not specified in indicators have the name None . The list of indicator names in valueList contains the names of the listed indicators, beginning with the lowest-numbered indicator for which a name is defined and proceeding to the highest. If virtual modifier names are reported, the virtualMods mask specifies the virtual modifiers for which names are defined; any virtual modifiers not specified in virtualMods have the name None . The list of virtual modifier names in valueList contains the names of the listed virtual modifiers, beginning with the lowest-numbered virtual modifier for which a name is defined and proceeding to the highest. If group names are reported, the groupNames mask specifies the groups for which names are defined; any groups not specified in groupNames have the name None . The list of group names in valueList contains the names of the listed groups, beginning with the lowest-numbered group for which a name is defined and proceeding to the highest. If key names are reported, the firstKey and nKeys return values specify a range of keys which includes all keys for which names are defined; any key that does not fall in the range specified by firstKey and nKeys has the name NullKeyName . The list of key names in the valueList has nKeys entries and specifies the names of the keys beginning at firstKey . If key aliases are reported, the nKeyAliases return value specifies the total number of key aliases defined for the keyboard. The list of key aliases in valueList has nKeyAliases entries, each of which reports an alias and the real name of the key to which it corresponds. If radio group names are reported, the nRadioGroups return value specifies the number of radio groups on the keyboard for which names are defined. The list of radio group names in valueList reports the names of each group and has nRadioGroups entries. XkbSetNames deviceSpec: KB_DEVICESPEC which: KB_NAMEDETAILMASK virtualMods: KB_VMODMASK firstType, nTypes: CARD8 firstKTLevel, nKTLevels: CARD8 totalKTLevelNames: CARD16 indicators: KB_INDICATORMASK groupNames: KB_GROUPMASK nRadioGroups: CARD8 firstKey: KEYCODE nKeys, nKeyAliases: CARD8 valueList: LISTofITEMs Errors: Keyboard , Atom , Value , Match , Alloc This request changes the symbolic names for the requested components of the keyboard specified by deviceSpec . The which field specifies the components for which one or more names are to be updated. If deviceSpec does not specify a valid keyboard device, a Keyboard error results. If any undefined bits in which are non-zero, a Value error results. If any error (other than Alloc or Implementation ) occurs, this request returns without modifying any names. The which and valueList fields specify the components to be changed; the type of each valueList entry, the order in which components appear in the valueList when specified, and the correspondence between components in which and the entries in the valueList are as specified for the XkbGetNames request. If keycodes, geometry, symbols, physical symbols, types or compatibility map names are to be changed, the corresponding entries in the valueList must have the value None or specify a valid ATOM, else an Atom error occurs. If key type names are to be changed, the firstType and nTypes fields specify a range of types for which new names are supplied, and the list of key type names in valueList has nTypes elements. Names for types that fall outside of the range specified by firstType and nTypes are not affected. If this request specifies names for types that are not present on the keyboard, a Match error results. All of the type names in the valueList must be valid ATOMs or have the value None , or an Atom error results. The names of the first four keyboard types are specified by the XKB extension and cannot be changed; including any of the canonical types in this request causes an Access error, as does trying to assign the name reserved for a canonical type to one of the other key types. If key type level names are to be changed, the firstKTLevel and nKTLevels fields specify a range of key types for which new level names are supplied, and the list of key type level names in the valueList has two parts: The count array has nKTLevels elements, each of which specifies the number of levels for which names are supplied on the corresponding key type; any levels for which no names are specified are assigned the name None . The names array has totalKTLevels atoms and specifies the names of each type sequentially. The totalKTLevels field must always equal the sum of all of the elements of the count array. Level names for types that fall outside of the specified range are not affected. If this request specifies level names for types that are not present on the keyboard, or if it specifies more names for a type than the type has levels, a Match error results. All specified type level names must be None or a valid ATOM or an Atom error results. If indicator names are to be changed, the indicators mask specifies the indicators for which new names are specified; the names for indicators not specified in indicators are not affected. The list of indicator names in valueList contains the new names for the listed indicators, beginning with the lowest-numbered indicator for which a name is defined and proceeding to the highest. All specified indicator names must be a valid ATOM or None , or an Atom error results. If virtual modifier names are to be changed, the virtualMods mask specifies the virtual modifiers for which new names are specified; names for any virtual modifiers not specified in virtualMods are not affected. The list of virtual modifier names in valueList contains the new names for the specified virtual modifiers, beginning with the lowest-numbered virtual modifier for which a name is defined and proceeding to the highest. All virtual modifier names must be valid ATOMs or None , or an Atom error results. If group names are to be changed, the groupNames mask specifies the groups for which new names are specified; the name of any group not specified in groupNames is not changed. The list of group names in valueList contains the new names for the listed groups, beginning with the lowest-numbered group for which a name is defined and proceeding to the highest. All specified group names must be a valid ATOM or None , or an Atom error results. If key names are to be changed, the firstKey and nKeys fields specify a range of keys for which new names are defined; the name of any key that does not fall in the range specified by firstKey and nKeys is not changed. The list of key names in the valueList has nKeys entries and specifies the names of the keys beginning at firstKey . If key aliases are to be changed, the nKeyAliases field specifies the length of a new list of key aliases for the keyboard. The list of key aliases can only be replaced in its entirety; it cannot be replaced. The list of key aliases in valueList has nKeyAliases entries, each of which reports an alias and the real name of the key to which it corresponds. XKB does not check key names or aliases for consistency and validity, so applications should take care not to assign duplicate names or aliases If radio group names are to be changed, the nRadioGroups field specifies the length of a new list of radio group names for the keyboard. There is no way to edit the list of radio group names; it can only be replaced in its entirety. The list of radio group names in valueList reports the names of each group and has nRadioGroups entries. If the list of radio group names specifies names for more radio groups than XKB allows (32), a Match error results. All specified radio group names must be valid ATOMs or have the value None , or an Atom error results. Querying and Changing Keyboard Geometry XkbGetGeometry deviceSpec: KB_DEVICESPEC name: ATOM deviceID: CARD8 name: ATOM found: BOOL widthMM, heightMM: CARD16 baseColorNdx, labelColorNdx: CARD8 properties: LISTofKB_PROPERTY colors: LISTofSTRING8 shapes: LISTofKB_SHAPE sections: LISTofKB_SECTION doodads: LISTofKB_DOODAD keyAliases: LISTofKB_KEYALIAS Errors: Keyboard This request returns a description of the physical layout of a keyboard. If the name field has the value None , or if name is identical to the name of the geometry for the keyboard specified by deviceSpec , this request returns the geometry of the keyboard specified by deviceSpec ; otherwise, if name is a valid atom other than None , the server returns the keyboard geometry description with that name in the server database of keyboard components (see The Server Database of Keyboard Components) if one exists. If deviceSpec does not specify a valid keyboard device, a Keyboard error results. If name has a value other than None or a valid ATOM, an Atom error results. On successful return, the deviceID field reports the X Input extension identifier of the keyboard device specified in the request, or 0 if the server does not support the input extension. The found return value reports whether the requested geometry was available. If found is False , no matching geometry was found and the remaining fields in the request reply are undefined; if found is True , the remaining fields of the reply describe the requested keyboard geometry. The interpretation of the components that make up a keyboard geometry is described in detail in Keyboard Geometry XkbSetGeometry deviceSpec: KB_DEVICESPEC name: ATOM widthMM, heightMM, CARD16 baseColorNdx, labelColorNdx: CARD8 shapes: LISTofKB_SHAPE sections: LISTofKB_SECTION properties: LISTofKB_PROPERTY colors: LISTofSTRING8 doodads: LISTofKB_DOODAD keyAliases: LISTofKB_KEYALIAS Errors: Keyboard , Atom , Value This request changes the reported description of the geometry for the keyboard specified by deviceSpec . If deviceSpec does not specify a valid keyboard device, a Keyboard error results. The name field specifies the name of the new keyboard geometry and must be a valid ATOM or an Atom error results. The new geometry is not added to the server database of keyboard components, but it can be retrieved using the XkbGetGeometry request for as long as it is bound to the keyboard. The keyboard geometry symbolic name is also updated from the name field, and an XkbNamesNotify event is generated, if necessary. The list of colors must include at least two definitions, or a Value error results. All color definitions in the geometry must specify a legal color (i.e. must specify a valid index for one of the entries of the colors list) or a Match error results. The baseColorNdx and the labelColorNdx must be different or a Match error results. The list of shapes must include at least one shape definition, or a Value error results. If any two shapes have the same name, a Match error result. All doodads and keys which specify shape must specify a valid index for one of the elements of the shapes list, or a Match error results. All section, shape and doodad names must be valid ATOMs or an Atom error results; the constant None is not permitted for any of these components. All doodads must be of a known type; XKB does not support "private" doodad types. If, after rotation, any keys or doodads fall outside of the bounding box for a section, the bounding box is automatically adjusted to the minimum size which encloses all of its components. If, after adjustment and rotation, the bounding box of any section or doodad extends below zero on either the X or Y axes, the entire geometry is translated so that the minimum extent along either axis is zero. If, after rotation and translation, any keyboard components fall outside of the rectangle specified by widthMM and heightMM , the keyboard dimensions are automatically resized to the minimum bounding box that surrounds all components. Otherwise, the width and height of the keyboard are left as specified. The under field of any overlay key definitions must specify a key that is in the section that contains the overlay key, or a Match error results. This request does not check the value of the over field of an overlay key definition, so applications must be careful to avoid conflicts with actual keys. This request does not verify that key names or aliases are unique. It also does not verify that all key names specified in the geometry are bound to some keycode or that all keys that are named in the keyboard definition are also available in the geometry. Applications should make sure that keyboard geometry has no internal conflicts and is consistent with the other components of the keyboard definition, but XKB does not check for or guarantee it. Querying and Changing Per-Client Flags XkbPerClientFlags deviceSpec: KB_DEVICESPEC change: KB_PCFMASK value: KB_PCFMASK ctrlsToChange: KB_BOOLCTRLMASK autoCtrls: KB_BOOLCTRLMASK autoCtrlValues: KB_BOOLCTRLMASK deviceID: CARD8 supported: KB_PCFMASK value: KB_PCFMASK autoCtrls: KB_BOOLCTRLMASK autoCtrlValues: KB_BOOLCTRLMASK where: KB_PCFMASK: Errors: Keyboard , Value , Match , Alloc Changes the client specific flags for the keyboard specified by deviceSpec . Reports a Keyboard error if deviceSpec does not specify a valid keyboard device. Any flags specified in change are set to the corresponding values in value , provided that the server supports the requested control. Legal per-client-flags are: Flag… Described in… XkbPCF_DetectableAutorepeat Detectable Autorepeat XkbPCF_GrabsUseXKBStateMask Setting a Passive Grab for an XKB State XkbPCF_AutoResetControlsMask Automatic Reset of Boolean Controls XkbPCF_LookupStateWhenGrabbed Effects of XKB on Core Protocol Events XkbPCF_SendEventUsesXKBState Sending Events to Clients If PCF_AutoResetControls is set in both change and value , the client’s mask of controls to be changed is updated from ctrlsToChange , autoCtrls , and autoCtrlValues . Any controls specified in ctrlsToChange are modified in the auto-reset controls mask for the client; the corresponding bits from the autoCtrls field are copied into the auto-reset controls mask and the corresponding bits from autoCtrlValues are copied into the auto-reset controls state values. If any controls are specified in autoCtrlValues but not in autoCtrls , a Match error results. If any controls are specified in autoCtrls but not in ctrlsToChange , a Match error results. If PCF_AutoResetControls is set in change but not in value , the client’s mask of controls to be changed is reset to all zeroes (i.e. the client does not change any controls when it exits). This request reports a Match error if a bit is set in any of the value masks but not in the control mask that governs it or a Value error if any undefined bits are set in any of the masks. On successful return, the deviceID field reports the X Input extension identifier of the keyboard, or 0 if the server does not support the X Input Extension. The supported return value reports the set of per-client flags that are supported by the server; in this version of XKB, only the XkbPCF_DetectableAutorepeat per-client flag is optional; all other per-client flags must be supported. The value return value reports the current settings of all per-client flags for the specified keyboard. The autoCtrls return value reports the current set of controls to be reset when the client exits, while the autoCtrlValues return value reports the state to which they should be set. Using the Server’s Database of Keyboard Components XkbListComponents deviceSpec: KB_DEVICESPEC maxNames: CARD16 keymapsSpec: STRING8 keycodesSpec: STRING8 typesSpec: STRING8 compatMapSpec: STRING8 symbolsSpec: STRING8 geometrySpec: STRING8 deviceID: CARD8 extra: CARD16 keymaps,keycodes,types,compatMaps: LISTofKB_COMPONENTNAME symbols, geometries: LISTofKB_COMPONENTNAME Where: KB_COMPONENTNAME { hints: CARD8, name: STRING8 } Errors: Keyboard , Alloc This request returns one or more lists of keyboard components that are available from the X server database of keyboard components for the device specified by deviceSpec . The X server is allowed, but not required or expected, to maintain separate databases for each keyboard device. A Keyboard error results if deviceSpec does not specify a valid keyboard device. The maxNames field specifies the maximum number of component names to be reported, in total, by this request. The keymapsSpec , keycodesSpec , typesSpec , compatMapSpec , symbolsSpec and geometrySpec request fields specify a pattern to be matched against the names of all components of the corresponding type in the server database of keyboard components. Each pattern uses the ISO Latin-1 encoding and should contain only parentheses, the wildcard characters "?" and "*" or characters that are permitted in a component class or member name (see Component Names). Illegal characters in a pattern are simply ignored; no error results if a pattern contains illegal characters. Comparison is case-sensitive and, in a pattern, the "?" wildcard character matches any single character except parentheses while the "*" character matches any number of characters except parentheses. If an implementation accepts characters other than those required by XKB, whether or not those characters match either wildcard is also implementation dependent. An empty pattern does not match any component names. On successful return, the deviceID return value reports the X Input Extension device identifier of the specified device, or 0 if the server does not support the X input extension. The extra return value reports the number of matching component names that could not be returned due to the setting of the maxNames field in the request. The keymaps , keycodes , types , compatMaps , symbols and geometries return the hints (see Component Hints) and names of any components from the server database that match the corresponding pattern. The Server Database of Keyboard Components describes the X server database of keyboard components in more detail. XkbGetKbdByName deviceSpec: KB_DEVICESPEC need, want: KB_GBNDETAILMASK load: BOOL keymapsSpec: STRING8 keycodesSpec, typesSpec: STRING8 compatMapSpec, symbolsSpec: STRING8 geometrySpec: STRING8 deviceID: CARD8 minKeyCode, maxKeyCode: KEYCODE loaded, newKeyboard: BOOL found, reported: KB_GBNDETAILMASK map: optional XkbGetMap reply compat: optional XkbGetCompatMap reply indicators: optional XkbGetIndicatorMap reply names: optional XkbGetNames reply geometry: optional XkbGetGeometry reply Errors: Keyboard , Access , Alloc Assembles and returns a keymap from the current mapping and specified elements from the server database of keymap components for the keyboard specified by deviceSpec , and optionally replaces the current keyboard mapping with the newly generated description. If deviceSpec does not specify a valid keyboard device, a Keyboard error results. The keymapsSpec , keycodesSpec , typesSpec , compatMapSpec , symbolsSpec and geometrySpec component expressions (see Partial Components and Combining Multiple Components) specify the database components to be used to assemble the keyboard description. The want field lists the pieces of the keyboard description that the client wants to have reported for the newly constructed keymap. The need field lists all of the pieces that must be reported. If any of the pieces in need cannot be loaded from the specified names, no description of the keyboard is returned. The want and need fields can include any combinations of these XkbGetMapByName (GBN) components: XkbGetMapByName Keyboard Component… Database Component… Components of Keyboard Description XkbGBN_Types types key types XkbGBN_CompatMap compat symbol interpretations, group compatibility map XkbGBN_ClientSymbols symbols, types, keycodes key types, key symbol mappings, modifier mapping XkbGBN_ServerSymbols symbols, types, keycodes key behaviors, key actions, key explicit components, virtual modifiers, virtual modifier mapping XkbGBN_IndicatorMap compat indicator maps, indicator names XkbGBN_KeyNames keycodes key names, key aliases XkbGBN_Geometry geometry keyboard geometry XkbGBN_OtherNames all key types, symbol interpretations, indicator maps, names, geometry If either field contains a GBN component that depends on some database component for which the request does not supply an expression, XKB automatically substitutes the special pattern "%" which copies the corresponding component from the current keyboard description, as described in Partial Components and Combining Multiple Components. The load flag asks the server to replace the current keyboard description for deviceSpec with the newly constructed keyboard description. If load is True , the request must include component expressions for all of the database components; if any are missing, XKB substitutes "%" as described above. If all necessary components are both specified and found, the new keyboard description is loaded. If the new keyboard description has a different geometry or keycode range than the previous keyboard description, XKB sends XkbNewKeyboardNotify events to all interested clients. See Replacing the Keyboard "On-the-Fly" for more information about the effects of replacing the keyboard description on the fly. If the range of keycodes changes, clients that have requested XkbNewKeyboardNotify events are not sent any other change notification events by this request. Clients that do not request XkbNewKeyboardNotify events are sent other XKB change notification events (e.g. XkbMapNotify , XkbNamesNotify ) as necessary to alert them to as many of the keyboard changes as possible. If no error occurs, the request reply reports the GBN components that were found and sends a description of any of the resulting keyboard that includes and of the components that were requested. The deviceID return value reports the X Input extension device identifier of the keyboard that was used, or 0 if the server does not support the X input extension. The minKeyCode and maxKeyCode return values report the legal range of keycodes for the keyboard description that was created. If the resulting keyboard description does not include at least one of the key names, client symbols or server symbols components, minKeyCode and maxKeyCode are both 0 . The loaded return value reports whether or not the existing keyboard definition was replaced with the newly created one. If loaded is True , the newKeyboard return value reports whether or not the new map changed the geometry or range of keycodes and caused XkbNewKeyboardNotify events for clients that have requested them. The found return value reports the GBN components that were present in the keymap that was constructed by this request. The reported return value lists the subset of those components for which descriptions follow. if any of the components specified in the need field of the request were not found, reported is empty, otherwise it contains the intersection of the found return value with the union of the need and want request fields. If any of GBN_Types , GBN_ClientSymbols or GBN_ServerSymbols are set in reported , the map return value has the same format as the reply to an XkbGetMap request and reports the corresponding pieces of the newly constructed keyboard description. If GBN_CompatMap is set in reported , the compat return value has the same format as the reply to an XkbGetCompatMap request and reports the symbol interpretations and group compatibility map for the newly constructed keyboard description. If GBN_IndicatorMap is set in reported , the indicators return value has the same format as the reply to an XkbGetIndicatorMap request and reports the physical indicators and indicator maps for the newly constructed keyboard description. If GBN_KeyNames or GBN_OtherNames are set in reported , the names return value has the same format as the reply to an XkbGetNames reply and reports the corresponding set of symbolic names for the newly constructed keyboard description. If GBN_Geometry is set in reported , the geometry return value has the same format as the reply to an XkbGetGeometryMap request and reports the keyboard geometry for the newly constructed keyboard description. Querying and Changing Input Extension Devices XkbGetDeviceInfo deviceSpec: KB_DEVICESPEC wanted: KB_XIDEVFEATUREMASK ledClass: KB_LEDCLASSSPEC ledID: KB_IDSPEC allButtons: BOOL firstButton, nButtons: CARD8 deviceID: CARD8 present: KB_XIDEVFEATUREMASK supported: KB_XIFEATUREMASK unsupported: KB_XIFEATUREMASK firstBtnWanted: CARD8 nBtnsWanted: CARD8 firstBtnRtrn: CARD8 nBtnsRtrn: CARD8 totalBtns: CARD8 hasOwnState: BOOL dfltKbdFB, dfltLedFB: KB_IDSPEC devType: ATOM name: STRING btnActions: LISTofKB_ACTION leds: LISTofKB_DEVICELEDINFO Errors: Device , Match , Access , Alloc Reports a subset of the XKB-supplied information about the input device specified by deviceSpec . Unlike most XKB requests, the device specified for XkbGetDeviceInfo need not be a keyboard device. Nonetheless, a Keyboard error results if deviceSpec does not specify a valid core or input extension device. The wanted field specifies the types of information to be returned, and controls the interpretation of the other request fields. If the server does not support assignment of XKB actions to extension device buttons, the allButtons , firstButton and nButtons fields are ignored. Otherwise, if the XkbXI_ButtonActions flag is set in wanted , the allButtons , firstButton and nButtons fields specify the device buttons for which actions should be returned. Setting allButtons to True requests actions for all device buttons; if allButtons is False , firstButton and nButtons specify a range of buttons for which actions are requested. If the device has no buttons or if firstButton and nButtons specify illegal buttons, a Match error results. If allButtons is True , firstButton and nButtons are ignored. If the server does not support XKB access to any aspect of the indicators on extension devices, or if the wanted field does not include any of the indicator flags, the ledClass and ledID fields are ignored. Otherwise, ledClass and ledID specify one or more feedback(s) for which indicator information is requested. If ledClass or ledID have illegal values, a Value error results. If they have legal values but do not specify a keyboard or indicator class feedback for the device in question, a Match error results. The ledClass field can specify either KbdFeedbackClass , LedFeedbackClass , XkbDfltXIClass , or XkbAllXIClasses . If at least one keyboard feedback is defined for the specified device, XkbDfltXIClass is equivalent to KbdFeedbackClass , otherwise it is equivalent to LedFeedbackClass . If XkbAllXIClasses is specified, this request returns information about both indicator and keyboard class feedbacks which match the requested identifier, as described below. The ledID field can specify any valid input extension feedback identifier, XkbDfltXIId , or XkbAllXIIds . The default keyboard feedback is the one that is affected by core protocol requests; the default led feedback is implementation-specific. If XkbAllXIIds is specified, this request returns indicator information about all feedbacks of the class(es) specified by ledClass . If no error results, the deviceID return value reports the input extension device identifier of the device for which values are being returned. The supported return value reports the set of optional XKB extension device features that are supported by this implementation (see Interactions Between XKB and the X Input Extension) for the specified device, and the unsupported return value reports any unsupported features. If hasOwnState is True , the device is also a keyboard, and any indicator maps bound to the device use the current state and control settings for this device to control automatic changes. If hasOwnState is False , the state and control settings of the core keyboard device control automatic indicator changes. The name field reports the X Input Extension name for the device. The devType field reports the X Input Extension device type. Both fields are provided merely for convenience and are not interpreted by XKB. The present return value reports the kinds of device information being returned, and controls the interpretation of the remaining fields. The present field consists of the wanted field from the original request minus the flags for any unsupported features. If XkbXI_ButtonActions is set in present , the totalBtns return value reports the total number of buttons present on the device, firstBtnWanted and nBtnsWanted specify the range of buttons for which actions were requested, and the firstBtnRtrn and nBtnsRtrn values specify the range of buttons for which actions are reported. The actionsRtrn list has nButtonsRtrn entries which contain the actions bound to the specified buttons on the device. Any buttons for which actions were requested but not returned have the action NoAction() . If any indicator information is reported, the leds list contains one element for each requested feedback. For example, if ledClass is XkbAllXIClasses and ledID is XkbAllXIIds , leds describes all of the indicators on the device and has one element for each keyboard or led class feedback defined for the device. If any information at all is reported about a feedback, the set of physical indicators is also reported in the physIndicators field of the corresponding element of leds . If the server supports assignment of indicator maps to extension device indicators, and if the XkbXI_IndicatorMaps flag is set in wanted , each member of leds reports any indicators on the corresponding feedback to which names have been assigned. Any indicators for which no map is reported have the default map, which allows explicit changes and does not request any automatic changes. If the server supports assignment of indicator names to extension device indicators, and the XkbXI_IndicatorNames flag is set in wanted , each member of leds reports any indicators on the corresponding feedback to which names have been assigned. Any indicators for which no name is reported have the name None . If the server supports XKB access to the state of extension device indicators, and the XkbXI_IndicatorState flag is set in wanted, each member of leds reports the state of the indicators on the corresponding feedback. If any unsupported features are requested, and the requesting client has selected for them, the server sends the client an XkbExtensionDeviceNotify event which indicates that an unsupported feature was requested. This event is only generated if the client which issued the unsupported request has selected for it and, if generated, is not sent to any other clients. XkbSetDeviceInfo deviceSpec: KB_DEVICESPEC change: KB_XIDEVFEATUREMASK firstBtn, nBtns: CARD8 btnActions:LISTofKB_ACTION leds: LISTofKB_DEVICELEDINFO Errors: Device , Match , Access , Alloc Changes a subset of the XKB-supplied information about the input device specified by deviceSpec . Unlike most XKB requests, the device specified for XkbGetDeviceInfo need not be a keyboard device. Nonetheless, a Keyboard error results if deviceSpec does not specify a valid core or input extension device The change field specifies the features for which new values are supplied, and controls the interpretation of the other request fields. If the server does not support assignment of XKB actions to extension device buttons, the firstButton and nButtons fields are ignored. Otherwise, if the XkbXI_ButtonActions flag is set in change , the firstBtn and nBtns fields specify a range of buttons for which actions are specified in this request. If the device has no buttons or if firstBtn and nBtns specify illegal buttons, a Match error results. Each element of the leds list describes the changes for a single keyboard or led feedback. If the ledClass field of any element of leds contains any value other than KbdFeedbackClass , LedFeedbackClass or XkbDfltXIClass , a Value error results. If the ledId field of any element of leds contains any value other than a valid input extension feedback identifier or XkbDfltXIId , a Value error results. If both fields are valid, but the device has no matching feedback, a Match error results. The fields of each element of leds are interpreted as follows: If XkbXI_IndicatorMaps is set in change and the server supports XKB assignment of indicator maps to the corresponding feedback, the maps for all indicators on the corresponding feedback are taken from leds . If the server does not support this feature, any maps specified in leds are ignored. If XkbXI_IndicatorNames is set in change , and the server supports XKB assignment of names to indicators for the corresponding feedback, the names for all indicators on the corresponding feedback are taken from leds . If the server does not support this feature, any names specified in leds are ignored. Regardless of whether they are used, any names be a valid Atom or None , or an Atom error results. If XkbXI_IndicatorState is set in change, and the server supports XKB changes to extension device indicator state, the server attempts to change the indicators on the corresponding feedback as specified by leds . Any indicator maps bound to the feedback are applied, so state changes might be blocked or have side-effects. If any unsupported features are requested, and the requesting client has selected for them, the server sends the client an XkbExtensionDeviceNotify event which indicates that an unsupported feature was requested. This event is only generated if the client which issued the unsupported request has selected for it and, if generated, is not sent to any other clients. Debugging the X Keyboard Extension XkbSetDebuggingFlags affectFlags, flags: CARD32 affectCtrls, ctrls: CARD32 message: STRING currentFlags, supportedFlags: CARD32 currentCtrls, supportedCtrls: CARD32 This request sets up various internal XKB debugging flags and controls. It is intended for developer use and may be disabled in production servers. If disabled, XkbSetDebuggingFlags has no effect but returns Success . The affectFlags field specifies the debugging flags to be changed, the flags field specifies new values for the changed flags. The interpretation of the debugging flags is implementation-specific, but flags are intended to control debugging output and should not otherwise affect the operation of the server. The affectCtrls field specifies the debugging controls to be changed, the ctrls field specifies new values for the changed controls. The interpretation of the debugging controls is implementation-specific, but debugging controls are allowed to affect the behavior of the server. The message field provides a message that the X server can print in any logging or debugging files before changing the flags. The server must accept this field but it is not required to actually display it anywhere. The X Test Suite makes some assumptions about the implementation of locking modifier keys that do not apply when XKB is present. The XkbDF_DisableLocks debugging control provides a simple workaround to these test suite problems by simply disabling all locking keys. If XkbDF_DisableLocks is enabled, the SA_LockMods and SA_LockGroup actions behave like SA_SetMods and SA_LockMods , respectively. If it is disabled, SA_LockMods and SA_LockGroup actions behave normally. Implementations are free to ignore the XkbDF_DisableLocks debugging control or to define others. The currentFlags return value reports the current setting for the debugging flags, if applicable. The currentCtrls return value reports the setting for the debugging controls, if applicable. The supportedFlags and supportedCtrls fields report the flags and controls that are recognized by the implementation. Attempts to change unsupported fields or controls are silently ignored. If the XkbSetDebuggingFlags request contains more data than expected, the server ignores the extra data, but no error results. If the request has less data than expected, a Length error results. If the XkbSetDebuggingFlags reply contains more data than expected, the client just ignores any uninterpreted data without reporting an error. If the reply has less data than expected, a Length error results. Events All XKB events report the time at which they occurred in a field named time and the device on which they occurred in a field named deviceID . XKB uses a single X event code for all events and uses a common field to distinguish XKB event type. Tracking Keyboard Replacement XkbNewKeyboardNotify time: TIMESTAMP deviceID: CARD8 changed: KB_NKNDETAILMASK minKeyCode, maxKeyCode: KEYCODE oldDeviceID: CARD8 oldMinKeyCode, oldMaxKeyCode: KEYCODE requestMajor, requestMinor: CARD8 An XkbNewKeyboardNotify event reports that a new core keyboard has been installed. New keyboard notify events can be generated: When the X server detects that the keyboard was changed. When a client installs a new extension device as the core keyboard using the X Input Extension ChangeKeyboardDevice request. When a client issues an XkbGetMapByName request which changes the keycodes range or geometry. The changed field of the event reports the aspects of the keyboard that have changed, and can contain any combination of the event details for this event: Bit in Changed Meaning NKN_Keycodes The new keyboard has a different minimum or maximum keycode. NKN_Geometry The new keyboard has a different keyboard geometry. NKN_DeviceID The new keyboard has a new X Input Extension device identifier The server sends an XkbNewKeyboardNotify event to a client only if at least one of the bits that is set in the changed field of the event is also set in the appropriate event details mask for the client. The minKeyCode and maxKeyCode fields report the minimum and maximum keycodes that can be returned by the new keyboard. The oldMinKeyCode and oldMaxKeyCode fields report the minimum and maximum values that could be returned before the change. This event always reports all four values, but the old and new values are the same unless NKN_Keycodes is set in changed . Once a client receives a new keyboard notify event which reports a new keycode range, the X server reports events from all keys in the new range to that client. Clients that do not request or receive new keyboard notify events receive events only from keys that fall in the last range for legal keys reported to that client. See Replacing the Keyboard "On-the-Fly" for a more detailed explanation. If NKN_Keycodes is set in changed , the XkbNewKeyboardNotify event subsumes all other change notification events (e.g. XkbMapNotify , XkbNamesNotify ) that would otherwise result from the keyboard change. Clients who receive an XkbNewKeyboardNotify event should assume that all other aspects of the keyboard mapping have changed and regenerate the entire local copy of the keyboard description. The deviceID field reports the X Input Extension device identifier of the new keyboard device; oldDeviceID reports the device identifier before the change. This event always includes both values, but they are the same unless NKN_DeviceID is set in changed . If the server does not support the X Input Extension, both fields have the value 0 . The requestMajor and requestMinor fields report the major and minor opcode of the request that caused the keyboard change. If the keyboard change was not caused by some client request, both fields have the value 0 . Tracking Keyboard Mapping Changes XkbMapNotify time: TIMESTAMP deviceID: CARD8 ptrBtnActions: CARD8 changed: KB_MAPPARTMASK minKeyCode, maxKeyCode: KEYCODE firstType, nTypes: CARD8 firstKeySym, firstKeyAction: KEYCODE nKeySyms, nKeyActions: CARD8 firstKeyBehavior, firstKeyExplicit: KEYCODE nKeyBehaviors, nKeyExplicit: CARD8 virtualMods: KB_VMODMASK firstModMapKey, firstVModMapKey: KEYCODE nModMapKeys, nVModMapKeys: CARD8 An XkbMapNotify event reports that some aspect of XKB map for a keyboard has changed. Map notify events can be generated whenever some aspect of the keyboard map is changed by an XKB or core protocol request. The deviceID field reports the keyboard for which some map component has changed and the changed field reports the components with new values, and can contain any of the values that are legal for the full and partial fields of the XkbGetMap request. The server sends an XkbMapNotify event to a client only if at least one of the bits that is set in the changed field of the event is also set in the appropriate event details mask for the client. The minKeyCode and maxKeyCode fields report the range of keycodes that are legal on the keyboard for which the change is being reported. If XkbKeyTypesMask is set in changed , the firstType and nTypes fields report a range of key types that includes all changed types. Otherwise, both fields are 0 . If XkbKeySymsMask is set in changed , the firstKeySym and nKeySyms fields report a range of keycodes that includes all keys with new symbols. Otherwise, both fields are 0 . If XkbKeyActionsMask is set in changed , the firstKeyAction and nKeyActions fields report a range of keycodes that includes all keys with new actions. Otherwise, both fields are 0 . If XkbKeyBehaviorsMask is set in changed , the firstKeyBehavior and nKeyBehaviors fields report a range of keycodes that includes all keys with new key behavior. Otherwise, both fields are 0 . If XkbVirtualModsMask is set in changed , virtualMods contains all virtual modifiers to which a new set of real modifiers is bound. Otherwise, virtualMods is 0 . If XkbExplicitComponentsMask is set in changed , the firstKeyExplicit and nKeyExplicit fields report a range of keycodes that includes all keys with changed explicit components. Otherwise, both fields are 0 . If XkbModifierMapMask is set in changed , the firstModMapKey and nModMapKeys fields report a range of keycodes that includes all keys with changed modifier bindings. Otherwise, both fields are 0 . If XkbVirtualModMapMask is set in changed , the firstVModMapKey and nVModMapKeys fields report a range of keycodes that includes all keys with changed virtual modifier mappings. Otherwise, both fields are 0 . Tracking Keyboard State Changes XkbStateNotify time: TIMESTAMP deviceID: CARD8 mods, baseMods, latchedMods, lockedMods: KEYMASK group, lockedGroup: CARD8 baseGroup, latchedGroup: INT16 compatState: KEYMASK grabMods, compatGrabMods: KEYMASK lookupMods, compatLookupMods: KEYMASK ptrBtnState: BUTMASK changed: KB_STATEPARTMASK keycode: KEYCODE eventType: CARD8 requestMajor, requestMinor: CARD8 An XkbStateNotify event reports that some component of the XKB state (see Keyboard State) has changed. State notify events are usually caused by key or pointer activity, but they can also result from explicit state changes requested by the XkbLatchLockState request or by other extensions. The deviceID field reports the keyboard on which some state component changed. The changed field reports the XKB state components (see Keyboard State) that have changed and contain any combination of: Bit in changed Event field Changed component ModifierState mods The effective modifiers ModifierBase baseMods The base modifiers ModifierLatch latchedMods The latched modifiers ModifierLock lockedMods The locked modifiers GroupState group The effective keyboard group GroupBase baseGroup The base keyboard group GroupLatch latchedGroup The latched keyboard group GroupLock lockedGroup The locked keyboard group PointerButtons ptrBtnState The state of the core pointer buttons GrabMods grabMods The XKB state used to compute grabs LookupMods lookupMods The XKB state used to look up symbols CompatState compatState Default state for non-XKB clients CompatGrabMods compatGrabMods The core state used to compute grabs CompatLookupMods compatLookupMods The core state used to look up symbols The server sends an XkbStateNotify event to a client only if at least one of the bits that is set in the changed field of the event is also set in the appropriate event details mask for the client. A state notify event reports current values for all state components, even those with unchanged values. The keycode field reports the key or button which caused the change in state while the eventType field reports the exact type of event (e.g. KeyPress ). If the change in state was not caused by key or button activity, both fields have the value 0 . The requestMajor and requestMinor fields report the major and minor opcodes of the request that caused the change in state and have the value 0 if it was resulted from key or button activity. Tracking Keyboard Control Changes XkbControlsNotify time: TIMESTAMP deviceID: CARD8 numGroups: CARD8 changedControls: KB_CONTROLMASK enabledControls,enabledControlChanges: KB_BOOLCTRLMASK keycode: KEYCODE eventType: CARD8 requestMajor: CARD8 requestMinor: CARD8 An XkbControlsNotify event reports a change in one or more of the global keyboard controls (see Global Keyboard Controls) or in the internal modifiers or ignore locks masks (see Server Internal Modifiers and Ignore Locks Behavior). Controls notify events are usually caused by and XkbSetControls request, but they can also be caused by keyboard activity or certain core protocol and input extension requests. The deviceID field reports the keyboard for which some control has changed, and the changed field reports the controls that have new values. The changed field can contain any of the values that are permitted for the changeControls field of the XkbSetControls request. The server sends an XkbControlsNotify event to a client only if at least one of the bits that is set in the changed field of the event is also set in the appropriate event details mask for the client. The numGroups field reports the total number of groups defined for the keyboard, whether or not the number of groups has changed. The enabledControls field reports the current status of all of the boolean controls, whether or not any boolean controls changed state. If EnabledControls is set in changed , the enabledControlChanges field reports the boolean controls that were enabled or disabled; if a control is specified in enabledControlChanges , the value that is reported for that control in enabledControls represents a change in state. The keycode field reports the key or button which caused the change in state while the eventType field reports the exact type of event (e.g. KeyPress ). If the change in state was not caused by key or button activity, both fields have the value 0 . The requestMajor and requestMinor fields report the major and minor opcodes of the request that caused the change in state and have the value 0 if it was resulted from key or button activity. Tracking Keyboard Indicator State Changes XkbIndicatorStateNotify time: TIMESTAMP deviceID: CARD8 stateChanged, state: KB_INDICATORMASK An XkbIndicatorStateNotify event indicates that one or more of the indicators on a keyboard have changed state. Indicator state notify events can be caused by: Automatic update to reflect changes in keyboard state (keyboard activity, XkbLatchLockState requests). Automatic update to reflect changes in keyboard controls ( XkbSetControls , keyboard activity, certain core protocol and input extension requests). Explicit attempts to change indicator state (core protocol and input extension requests, XkbSetNamedIndicator requests). Changes to indicator maps ( XkbSetIndicatorMap and XkbSetNamedIndicator requests). The deviceID field reports the keyboard for which some indicator has changed, and the state field reports the new state for all indicators on the specified keyboard. The stateChanged field specifies which of the values in state represent a new state for the corresponding indicator. The server sends an XkbIndicatorStateNotify event to a client only if at least one of the bits that is set in the stateChanged field of the event is also set in the appropriate event details mask for the client. Tracking Keyboard Indicator Map Changes XkbIndicatorMapNotify time: TIMESTAMP deviceID: CARD8 state: KB_INDICATORMASK mapChanged: KB_INDICATORMASK An XkbIndicatorMapNotify event indicates that the maps for one or more keyboard indicators have been changed. Indicator map notify events can be caused by XkbSetIndicatorMap and XkbSetNamedIndicator requests. The deviceID field reports the keyboard for which some indicator map has changed, and the mapChanged field reports the indicators with changed maps. The server sends an XkbIndicatorMapNotify event to a client only if at least one of the bits that is set in the mapChanged field of the event is also set in the appropriate event details mask for the client. The state field reports the current state of all indicators on the specified keyboard. Tracking Keyboard Name Changes XkbNamesNotify time: TIMESTAMP deviceID: CARD8 changed: KB_NAMEDETAILMASK firstType, nTypes: CARD8 firstLevelName, nLevelNames: CARD8 firstKey: KEYCODE nKeys, nKeyAliases, nRadioGroups: CARD8 changedGroupNames: KB_GROUPMASK changedVirtualMods: KB_VMODMASK changedIndicators: KB_INDICATORMASK An XkbNamesNotify event reports a change to one or more of the symbolic names associated with a keyboard. Symbolic names can change when: Some client explicitly changes them using XkbSetNames . The list of key types or radio groups is resized The group width of some key type is changed The deviceID field reports the keyboard on which names were changed. The changed mask lists the components for which some names have changed and can have any combination of the values permitted for the which field of the XkbGetNames request. The server sends an XkbNamesNotify event to a client only if at least one of the bits that is set in the changed field of the event is also set in the appropriate event details mask for the client. If KeyTypeNames is set in changed , the firstType and nTypes fields report a range of types that includes all types with changed names. Otherwise, both fields are 0 . If KTLevelNames is set in changed , the firstLevelName and nLevelNames fields report a range of types that includes all types with changed level names. Otherwise, both fields are 0 . If IndicatorNames is set in changed , the changedIndicators field reports the indicators with changed names. Otherwise, changedIndicators is 0 . If VirtualModNames is set in changed , the changedVirtualMods field reports the virtual modifiers with changed names. Otherwise, changedVirtualMods is 0 . If GroupNames is set in changed , the changedGroupNames field reports the groups with changed names. Otherwise, changedGroupNames is 0 . If KeyNames is set in changed , the firstKey and nKeys fields report a range of keycodes that includes all keys with changed names. Otherwise, both fields are 0 . The nKeyAliases field reports the total number of key aliases associated with the keyboard, regardless of whether KeyAliases is set in changed . The nRadioGroups field reports the total number of radio group names associated with the keyboard, regardless of whether RGNames is set in changed . Tracking Compatibility Map Changes XkbCompatMapNotify time: TIMESTAMP deviceID: CARD8 changedGroups: KB_GROUPMASK firstSI, nSI: CARD16 nTotalSI: CARD16 An XkbCompatMapNotify event indicates that some component of the compatibility map for a keyboard has been changed. Compatibility map notify events can be caused by XkbSetCompatMap and XkbGetMapByName requests. The deviceID field reports the keyboard for which the compatibility map has changed; if the server does not support the X input extension, deviceID is 0 . The changedGroups field reports the keyboard groups, if any, with a changed entry in the group compatibility map. The firstSI and nSI fields specify a range of symbol interpretations in the symbol compatibility map that includes all changed symbol interpretations; if the symbol compatibility map is unchanged, both fields are 0 . The nTotalSI field always reports the total number of symbol interpretations present in the symbol compatibility map, regardless of whether any symbol interpretations have been changed. The server sends an XkbCompatMapNotify event to a client only if at least one of the following conditions is met: The nSI field of the event is non-zero, and the XkbSymInterpMask bit is set in the appropriate event details mask for the client. The changedGroups field of the event contains at least one group, and the XkbGroupCompatMask bit is set in the appropriate event details mask for the client. Tracking Application Bell Requests XkbBellNotify time: TIMESTAMP deviceID: CARD8 bellClass: { KbdFeedbackClass, BellFeedbackClass } bellID: CARD8 percent: CARD8 pitch: CARD16 duration: CARD16 eventOnly: BOOL name: ATOM window: WINDOW An XkbBellNotify event indicates that some client has requested a keyboard bell. Bell notify events are usually caused by Bell , DeviceBell , or XkbBell requests, but they can also be generated by the server (e.g. if the AccessXFeedback control is active). The server sends an XkbBellNotify event to a client if the appropriate event details field for the client has the value True . The deviceID field specifies the device for which a bell was requested, while the bellClass and bellID fields specify the input extension class and identifier of the feedback for which the bell was requested. If the reporting server does not support the input extension, all three fields have the value 0. The percent , pitch and duration fields report the volume, tone and duration requested for the bell as specified by the XkbBell request. Bell notify events caused by core protocol or input extension requests use the pitch and duration specified in the corresponding bell or keyboard feedback control. If the bell was caused by an XkbBell request or by the X server, name reports an optional symbolic name for the bell and the window field optionally reports the window for which the bell was generated. Otherwise, both fields have the value None . If the eventOnly field is True , the server did not generate a sound in response to the request, otherwise the server issues the beep before sending the event. The eventOnly field can be True if the AudibleBell control is disabled or if a client explicitly requests eventOnly when it issues an XkbBell request. Tracking Messages Generated by Key Actions XkbActionMessage time: TIMESTAMP deviceID: CARD8 keycode: KEYCODE press: BOOL mods: KEYMASK group: KB_GROUP keyEventFollows: BOOL message: LISTofCARD8 An XkbActionMessage event is generated when the user operates a key to which an SA_ActionMessage message is bound under the appropriate state and group. The server sends an XkbActionMessage event to a client if the appropriate event details field for the client has the value True . The deviceID field specifies the keyboard device that contains the key which activated the event. The keycode field specifies the key whose operation caused the message and press is True if the message was caused by the user pressing the key. The mods and group fields report the effective keyboard modifiers and group in effect at the time the key was pressed or released. If keyEventFollows is True , the server will also send a key press or release event, as appropriate, for the key that generated the message. If it is False , the key causes only a message. Note that the key event is delivered normally with respect to passive grabs, keyboard focus, and cursor position, so that keyEventFollows does not guarantee that any particular client which receives the XkbActionMessage notify event will also receive a key press or release event. The message field is NULL -terminated string of up to ActionMessageLength ( 6 ) bytes, which reports the contents of the message field in the action that caused the message notify event. Tracking Changes to AccessX State and Keys XkbAccessXNotify time: TIMESTAMP deviceID: CARD8 detail: KB_AXNDETAILMASK keycode: KEYCODE slowKeysDelay: CARD16 debounceDelay: CARD16 An XkbAccessXNotify event reports on some kinds of keyboard activity when any of the SlowKeys , BounceKeys or AccessXKeys controls are active. Compatibility map notify events can only be caused by keyboard activity. The deviceID and keycode fields specify the keyboard and key for which the event occurred. The detail field describes the event that occurred and has one of the following values: Detail Control Meaning AXN_SKPress SlowKeys Key pressed AXN_SKAccept SlowKeys K ey held until it was accepted. AXN_SKReject SlowKeys Key released before it was accepted. AXN_SKRelease SlowKeys Key released after it was accepted. AXN_BKAccept BounceKeys Key pressed while it was active. AXN_BKReject BounceKeys Key pressed while it was still disabled. AXN_AXKWarning AccessXKeys Shift key held down for four seconds Each subclass of the AccessX notify event is generated only when the control specified in the table above is enabled. The server sends an XkbAccessXNotify event to a client only if the bit which corresponds to the value of the detail field for the event is set in the appropriate event details mask for the client. Regardless of the value of detail , the slowKeysDelay and debounceDelay fields always reports the current slow keys acceptance delay (see The SlowKeys Control) and debounce delay (see The BounceKeys Control) for the specified keyboard. Tracking Changes To Extension Devices XkbExtensionDeviceNotify time: TIMESTAMP deviceID: CARD16 ledClass: { KbdFeedbackClass, LedFeedbackClass } ledID: CARD16 reason: KB_XIDETAILMASK supported: KB_XIFEATUREMASK unsupported: KB_XIFEATUREMASK ledsDefined: KB_INDICATORMASK ledState: KB_INDICATORMASK firstButton, nButtons: CARD8 An XkbExtensionDeviceNotify event reports: A change to some part of the XKB information for an extension device. An attempt to use an XKB extension device feature that is not supported for the specified device by the current implementation. The deviceID field specifies the X Input Extension device identifier of some device on which an XKB feature was requested, or XkbUseCorePtr if the request affected the core pointer device. The reason field explains why the event was generated in response to the request, and can contain any combination of XkbXI_UnsupportedFeature and the values permitted for the change field of the XkbSetDeviceInfo request. If XkbXI_ButtonActions is set in reason , this event reports a successful change to the XKB actions bound to one or more buttons on the core pointer or an extension device. The firstButton and nButtons fields report a range of device buttons that include all of the buttons for which actions were changed. If any combination of XkbXI_IndicatorNames , XkbXI_IndicatorMaps , or XkbXI_IndicatorState is set in either reason or unsupported , the ledClass and ledID fields specify the X Input Extension feedback class and identifier of the feedback for which the change is reported. If this event reports any changes to an indicator feedback, the ledsDefined field reports all indicators on that feedback for which either a name or a indicator map are defined, and ledState reports the current state of all of the indicators on the specified feedback. If XkbXI_IndicatorNames is set in reason , this event reports a successful change to the symbolic names bound to one or more extension device indicators by XKB. If XkbXI_IndicatorMaps is set in reason , this event reports a successful change to the indicator maps bound to one or more extension device indicators by XKB. If XkbXI_IndicatorState is set in reason, this event reports that one or more indicators in the specified device and feedback have changed state. If XkbXI_UnsupportedFeature is set in reason, this event reports an unsuccessful attempt to use some XKB extension device feature that is not supported by the XKB implementation in the server for the specified device. The unsupported mask reports the requested features that are not available on the specified device. See Interactions Between XKB and the X Input Extension for more information about possible XKB interactions with the X Input Extension. The server sends an XkbExtensionDeviceNotify event to a client only if at least one of the bits that is set in the reason field of the event is also set in the appropriate event details mask for the client. Events that report a successful change to some extension device feature are reported to all clients that have expressed interest in the event; events that report an attempt to use an unsupported feature are reported only to the client which issued the request. Events which report a partial success are reported to all interested clients, but only the client that issued the request is informed of the attempt to use unsupported features. xorgproto-2023.2/specs/kbproto/XKBproto-3.svg0000644000175000017500000005717314443010026015763 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/acknowledgements.xml0000644000175000017500000000526714443010026017443 00000000000000 Acknowledgments I am grateful for all of the comments and suggestions I have received over the years. I could not possibly list everyone who has helped, but a few people have gone well above and beyond the call of duty and simply must be listed here. My managers here at SGI, Tom Paquin (now at Netscape) and Gianni Mariani were wonderful. Rather than insisting on some relatively quick, specialized proprietary solution to the keyboard problems we were having, both Tom and Gianni understood the importance of solving them in a general way and for the community as a whole. That was a difficult position to take and it was even harder to maintain when the scope of the project expanded beyond anything we imagined was possible. Gianni and Tom were unflagging in their support and their desire to “do the right thing†despite the schedule and budget pressure that intervened from time to time. Will Walker, at Digital Equipment Corporation, has been a longtime supporter of XKB. His help and input was essential to ensure that the extension as a whole fits and works together well. His focus was AccessX but the entire extension has benefited from his input and hard work. Without his unflagging good cheer and willingness to lend a hand, XKB would not be where it is today. Matt Landau, at the X Consortium, stood behind XKB during some tough spots in the release and standardization process. Without Matt’s support, XKB would likely not be a standard for a long time to come. When it became clear that we had too much to do for the amount of time we had remaining, Matt did a fantastic job of finding people to help finish the work needed for standardization. One of those people was George Sachs, at Hewlett-Packard, who jumped in to help out. His help was essential in getting the extension into this release. Another was Donna Converse, who helped figure out how to explain all of this stuff to someone who hadn’t had their head buried in it for years. Amber Benson and Gary Aitken were simply phenomenal. They jumped into a huge and complicated project with good cheer and unbelievable energy. They were “up to speed†and contributing within days. I stand in awe of the amount that they managed to achieve in such a short time. Thanks to Gary and Amber, the XKB library specification is a work of art and a thousand times easier to use and more useful than it would otherwise be. I truly cannot express my gratitude to all of you, without whom this would not have been possible. Erik Fortune Silicon Graphics, Inc. 5 February 1996 xorgproto-2023.2/specs/kbproto/XKBproto-10.svg0000644000175000017500000001203614443010026016026 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/appB.xml0000644000175000017500000000564514443010026014773 00000000000000 Canonical Key Types Canonical Key Types The ONE_LEVEL Key Type The ONE_LEVEL key type describes groups that have only one symbol. The default ONE_LEVEL type has no map entries and does not pay attention to any modifiers. The TWO_LEVEL Key Type The TWO_LEVEL key type describes groups that have two symbols but are neither alphabetic nor numeric keypad keys. The default TWO_LEVEL type uses only the Shift modifier. It returns level two if Shift is set, level one if it is not. The ALPHABETIC Key Type The ALPHABETIC key type describes groups that consist of two symbols — the lowercase form of a symbol followed by the uppercase form of the same symbol. The default ALPHABETIC type implements locale-sensitive "shift cancels caps lock" behavior using both the Shift and Lock modifiers as follows: If Shift and Lock are both set, the default ALPHABETIC type yields level one. If Shift alone is set, it yields level two. If Lock alone is set, it yields level one but preserves the Lock modifier. If neither Shift nor Lock are set, it yields level one. The KEYPAD Key Type The KEYPAD key type describes that consist of two symbols, at least one of which is a numeric keypad symbol. The default KEYPAD type implements "shift cancels numeric lock" behavior using the Shift modifier and the real modifier bound to the virtual modifier named "NumLock" (the "NumLock" modifier) as follows: If Shift and the "NumLock" modifier are both set, the default KEYPAD type yields level one. If either Shift or the "NumLock" modifier alone are set, it yields level two. If neither Shift nor the "NumLock" modifier are set, it yields level one. xorgproto-2023.2/specs/kbproto/ch04.xml0000644000175000017500000006223414443010026014644 00000000000000 Global Keyboard Controls The X Keyboard Extension supports a number of global key controls , which affect the way that XKB handles the keyboard as a whole. Many of these controls make the keyboard more accessible to the physically impaired and are based on the AccessDOS package AccessDOS provides access to the DOS operating system for people with physical impairments and was developed by the Trace R&D Center at the University of Wisconsin. For more information on AccessDOS, contact the Trace R&D Center, Waisman Center and Department of Industrial Engineering, University of Wisconsin-Madison WI 53705-2280. Phone: 608-262-6966. e-mail: info@trace.wisc.edu.. The RepeatKeys Control The core protocol only allows control over whether or not the entire keyboard or individual keys should autorepeat when held down. The RepeatKeys control extends this capability by adding control over the delay until a key begins to repeat and the rate at which it repeats. RepeatKeys is also coupled with the core autorepeat control; changes to one are always reflected in the other. The RepeatKeys control has two parameters. The autorepeat delay specifies the delay between the initial press of an autorepeating key and the first generated repeat event in milliseconds. The autorepeat interval specifies the delay between all subsequent generated repeat events in milliseconds. The PerKeyRepeat Control When RepeatKeys are active, the PerKeyRepeat control specifies whether or not individual keys should autorepeat when held down. XKB provides the PerKeyRepeat for convenience only, and it always parallels the auto-repeats field of the core protocol GetKeyboardControl request — changes to one are always reflected in the other. Detectable Autorepeat The X server usually generates both press and release events whenever an autorepeating key is held down. If an XKB-aware client enables the DetectableAutorepeat per-client option for a keyboard, the server sends that client a key release event only when the key is physically released. For example, holding down a key to generate three characters without detectable autorepeat yields: Press -> Release -> Press -> Release -> Press -> Release If detectable autorepeat is enabled, the client instead receives: Press-> Press -> Press -> Release Note that only clients that request detectable autorepeat are affected; other clients continue to receive both press and release events for autorepeating keys. Also note that support for detectable autorepeat is optional; servers are not required to support detectable autorepeat, but they must correctly report whether or not it is supported. Querying and Changing Per-Client Flags describes the XkbPerClientFlags request, which reports or changes values for all of the per-client flags, and which lists the per-client flags that are supported. The SlowKeys Control Some users often bump keys accidentally while moving their hand or typing stick toward the key they want. Usually, the keys that are bumped accidentally are hit only for a very short period of time. The SlowKeys control helps filter these accidental bumps by telling the server to wait a specified period, called the SlowKeys acceptance delay , before delivering key events. If the key is released before this period elapses, no key events are generated. The user can then bump any number of keys on their way to the one they want without generating unwanted characters. Once they have reached the key they want, they can then hold it long enough for SlowKeys to accept it. The SlowKeys control has one parameter; the slow keys delay specifies the length of time, in milliseconds, that a key must be held down before it is accepted. When SlowKeys are active, the X Keyboard Extension reports the initial press, acceptance, rejection or release of any key to interested clients using AccessXNotify events. The AccessXNotify event is described in more detail in Events. The BounceKeys Control Some people with physical impairments accidentally "bounce" on a key when they press it. That is, they press it once, then accidentally press it again immediately. The BounceKeys control temporarily disables a key after it has been pressed, effectively "debouncing" the keyboard. The BounceKeys has a single parameter. The BounceKeys delay specifies the period of time, in milliseconds, that the key is disabled after it is pressed. When BounceKeys are active, the server reports the acceptance or rejection of any key to interested clients by sending an AccessXNotify event. The AccessXNotify event is described in more detail in Events. The StickyKeys Control Some people find it difficult or impossible to press two keys at once. The StickyKeys control makes it easier for them to type by changing the behavior of the modifier keys. When StickyKeys are enabled, a modifier is latched when the user presses it just once, so the user can first press a modifier, release it, then press another key. For example, to get an exclamation point (!) on a PC-style keyboard, the user can press the Shift key, release it, then press the 1 key. By default, StickyKeys also allows users to lock modifier keys without requiring special locking keys. The user can press a modifier twice in a row to lock it, and then unlock it by pressing it one more time. Modifiers are automatically unlatched when the user presses a non-modifier key. For instance, to enter the sequence Shift + Ctrl + Z the user could press and release the Shift key to latch the Shift modifier, then press and release the Ctrl key to latch the Control modifier — the Ctrl key is a modifier key, so pressing it does not unlatch the Shift modifier, but leaves both the Shift and Control modifiers latched, instead. When the user presses the Z key, it will be as though the user pressed Shift + Ctrl + Z simultaneously. The Z key is not a modifier key, so the Shift and Control modifiers are unlatched after the event is generated. A locked a modifier remains in effect until the user unlocks it. For example, to enter the sequence ("XKB") on a PC-style keyboard with a typical US/ASCII layout, the user could press and release the Shift key twice to lock the Shift modifier. Then, when the user presses the 9 , ‘ , x , k , b , ‘ , and 0 keys in sequence, it will generate ("XKB"). To unlock the Shift modifier, the user can press and release the Shift key. Two option flags modify the behavior of the StickyKeys control: If the XkbAX_TwoKeys flag is set, XKB automatically turns StickyKeys off if the user presses two or more keys at once. This serves to automatically disable StickyKeys when a user who does not require sticky keys is using the keyboard. The XkbAX_LatchToLock controls the locking behavior of StickyKeys ; the StickyKeys control only locks modifiers as described above if the XkbAX_LatchToLock flag is set. The MouseKeys Control The MouseKeys control lets a user control all the mouse functions from the keyboard. When MouseKeys are enabled, all keys with MouseKeys actions bound to them generate core pointer events instead of normal key press and release events. The MouseKeys control has a single parameter, the mouse keys default button , which specifies the core pointer button to be used by mouse keys actions that do not explicitly specify a button. The MouseKeysAccel Control If the MouseKeysAccel control is enabled, the effect of a pointer motion action changes as a key is held down. The mouse keys delay specifies the amount of time between the initial key press and the first repeated motion event. The mouse keys interval specifies the amount of time between repeated mouse keys events. The steps to maximum acceleration field specifies the total number of events before the key is travelling at maximum speed. The maximum acceleration field specifies the maximum acceleration. The curve parameter controls the ramp used to reach maximum acceleration. When MouseKeys are active and a SA_MovePtr key action (see Key Actions) is activated, a pointer motion event is generated immediately. If MouseKeysAccel is enabled and if acceleration is enabled for the key in question, a second event is generated after mouse keys delay milliseconds, and additional events are generated every mouse keys interval milliseconds for as long as the key is held down. Relative Pointer Motion If the SA_MovePtr action specifies relative motion, events are generated as follows: The initial event always moves the cursor the distance specified in the action; after steps to maximum acceleration events have been generated, all subsequent events move the pointer the distance specified in the action times the maximum acceleration. Events after the first but before maximum acceleration has been achieved are accelerated according to the formula: Where action_delta is the offset specified by the mouse keys action, max_accel and steps_to_max are parameters to the MouseKeysAccel ctrl, and the curveFactor is computed using the MouseKeysAccel curve parameter as follows: With the result that a curve of 0 causes the distance moved to increase linearly from action_delta to , and the minimum legal curve of - 1000 causes all events after the first move at max_accel . A negative curve causes an initial sharp increase in acceleration which tapers off, while a positive curve yields a slower initial increase in acceleration followed by a sharp increase as the number of pointer events generated by the action approaches steps_to_max . Absolute Pointer Motion If an SA_MovePtr action specifies an absolute position for one of the coordinates but still allows acceleration, all repeated events contain any absolute coordinates specified in the action. The AccessXKeys Control If AccessXKeys is enabled many controls can also be turned on or off from the keyboard by entering the following standard key sequences: Holding down a shift key by itself for eight seconds toggles the SlowKeys control. Pressing and releasing a shift key five times in a row without any intervening key events and with less than 30 seconds delay between consecutive presses toggles the state of the StickyKeys control. Simultaneously operating two or more modifier keys deactivates the StickyKeys control. Some of these key sequences optionally generate audible feedback of the change in state, as described in The AccessXFeedback Control, or cause XkbAccessXNotify events as described in Events. The AccessXTimeout Control In environments where computers are shared, features such as SlowKeys present a problem: if SlowKeys is on, the keyboard can appear to be unresponsive because keys have no effect unless they are held for a certain period of time. To help address this problem, XKB provides an AccessXTimeout control to automatically change the value of any global controls or AccessX options if the keyboard is idle for a specified period of time. The AccessXTimeout control has a number of parameters which affect the duration of the timeout and the features changed when the timeout expires. The AccessX Timeout field specifies the number of seconds the keyboard must be idle before the global controls and AccessX options are modified. The AccessX Options Mask field specifies which values in the AccessX Options field are to be changed, and the AccessX Options Values field specifies the new values for those options. The AccessX Controls Mask field specifies which controls are to be changed in the global set of enabled controls , and the AccessX Controls Values field specifies the new values for those controls. The AccessXFeedback Control If AccessXFeedback is enabled, special beep-codes indicate changes in keyboard controls (or some key events when SlowKeys or StickyKeys are active). Many beep codes sound as multiple tones, but XKB reports a single XkbBellNotify event for the entire sequence of tones. All feedback tones are governed by the AudibleBell control. Individual feedback tones can be explicitly enabled or disabled using the accessX options mask or set to deactivate after an idle period using the accessX timeout options mask . XKB defines the following feedback tones: Feedback Name Bell Name Default Sound Indicates FeatureFB AX_FeatureOn rising tone Keyboard control enabled AX_FeatureOff falling tone Keyboard control disabled AX_FeatureChange two tones Several controls changed state IndicatorFB AX_IndicatorOn high tone Indicator Lit AX_IndicatorOff low tone Indicator Extinguished AX_IndicatorChange two high tones Several indicators changed state SlowWarnFB AX_SlowKeysWarning three high tones Shift key held for four seconds SKPressFB AX_SlowKeyPress single tone Key press while SlowKeys are on SKReleaseFB AX_SlowKeyRelease single tone Key release while SlowKeys are on SKAcceptFB AX_SlowKeyAccept single tone Key event accepted by SlowKeys SKRejectFB AX_SlowKeyReject low tone Key event rejected by SlowKeys StickyKeysFB AX_StickyLatch low tone then high tone Modifier latched by StickyKeys AX_StickyLock high tone Modifier locked by StickyKeys AX_StickyUnlock low tone Modifier unlocked by StickyKeys BKRejectFB AX_BounceKeysReject low tone Key event rejected by BounceKeys Implementations that cannot generate continuous tones may generate multiple beeps instead of falling and rising tones; for example, they can generate a high-pitched beep followed by a low-pitched beep instead of a continuous falling tone. If the physical keyboard bell is not very capable, attempts to simulate a continuous tone with multiple bells can sound horrible. Set the DumbBellFB AccessX option to inform the server that the keyboard bell is not very capable and that XKB should use only simple bell combinations. Keyboard capabilities vary wildly, so the sounds generated for the individual bells when the DumbBellFB option is set are implementation specific. The Overlay1 and Overlay2 Controls A keyboard overlay allows some subset of the keyboard to report alternate keycodes when the overlay is enabled. For example a keyboard overlay can be used to simulate a numeric or editing keypad on keyboard that does not actually have one by generating alternate of keycodes for some keys when the overlay is enabled. This technique is very common on portable computers and embedded systems with small keyboards. XKB includes direct support for two keyboard overlays, using the Overlay1 and Overlay2 controls. When Overlay1 is enabled, all of the keys that are members of the first keyboard overlay generate an alternate keycode. When Overlay2 is enabled, all of the keys that are members of the second keyboard overlay generate an alternate keycode. To specify the overlay to which a key belongs and the alternate keycode it should generate when that overlay is enabled, assign it either the KB_Overlay1 or KB_Overlay2 key behaviors, as described in Key Behavior. "Boolean" Controls and The EnabledControls Control All of the controls described above, along with the AudibleBell control (described in Disabling Server Generated Bells) and the IgnoreGroupLock control (described in Server Internal Modifiers and Ignore Locks Behavior) comprise the boolean controls . In addition to any parameters listed in the descriptions of the individual controls, the boolean controls can be individually enabled or disabled by changing the value of the EnabledControls control. The following non-boolean controls are always active and cannot be changed using the EnabledControls control or specified in any context that accepts only boolean controls: GroupsWrap (Computing Effective Modifier and Group), EnabledControls , InternalMods (Server Internal Modifiers and Ignore Locks Behavior), and IgnoreLockMods (Server Internal Modifiers and Ignore Locks Behavior) and PerKeyRepeat (The RepeatKeys Control) Automatic Reset of Boolean Controls The auto-reset controls are a per-client value which consist of two masks that can contain any of the boolean controls (see "Boolean" Controls and The EnabledControls Control). Whenever the client exits for any reason, any boolean controls specified in the auto-reset mask are set to the corresponding value from the auto-reset values mask. This makes it possible for clients to "clean up after themselves" automatically, even if abnormally terminated. For example, a client that replace the keyboard bell with some other audible cue might want to turn off the AudibleBell control (Disabling Server Generated Bells) to prevent the server from also generating a sound and thus avoid cacophony. If the client were to exit without resetting the AudibleBell control, the user would be left without any feedback at all. Setting AudibleBell in both the auto-reset mask and auto-reset values guarantees that the audible bell will be turned back on when the client exits. xorgproto-2023.2/specs/kbproto/ch08.xml0000644000175000017500000001244014443010026014642 00000000000000 Symbolic Names The core protocol does not provide any information to clients other than that actually used to interpret events. This makes it difficult to write a client which presents the keyboard to a user in an easy-to-understand way. Such applications have to examine the vendor string and keycodes to determine the type of keyboard connected to the server and have to examine keysyms and modifier mappings to determine the effects of most modifiers (the Shift , Lock and Control modifiers are defined by the core protocol but no semantics are implied for any other modifiers). This extension provides such applications with symbolic names for most components of the keyboard extension and a description of the physical layout of the keyboard. The keycodes name describes the range and meaning of the keycodes returned by the keyboard in question; the keyboard geometry name describes the physical location, size and shape of the various keys on the keyboard. As an example to distinguish between these two names, consider function keys on PC-compatible keyboards. Function keys are sometimes above the main keyboard and sometimes to the left of the main keyboard, but the same keycode is used for the key that is logically F1 regardless of physical position. Thus, all PC-compatible keyboards might share a keycodes name but different geometry names. The keycodes name is intended to be a very general description of the keycodes returned by a keyboard; A single keycodes name might cover keyboards with differing numbers of keys provided that the keys that all keys have the same semantics when present. For example, 101 and 102 key PC keyboards might use the same name. Applications can use the keyboard geometry to determine which subset of the named keyboard type is in use. The symbols name identifies the symbols bound to the keys. The symbols name is a human or application-readable description of the intended locale or usage of the keyboard with these symbols. The physical symbols name describes the symbols actually engraved on the keyboard, which might be different than the symbols currently being used. The types name provides some information about the set of key types that can be associated with the keyboard keys. The compat name provides some information about the rules used to bind actions to keys changed using core protocol requests. The compat , types , keycodes , symbols and geometry names typically correspond to the keyboard components from which the current keyboard description was assembled. These components are stored individually in the server’s database of keyboard components, described in The Server Database of Keyboard Components, and can be combined to assemble a complete keyboard description. Each key has a four-byte symbolic name. The key name links keys with similar functions or in similar positions on keyboards that report different scan codes. Key aliases allow the keyboard layout designer to assign multiple names to a single key, to make it easier to refer to keys using either their position or their "function." For example, consider the common keyboard customizations: Set the "key to the left of the letter a" to be a control key. Change the "caps lock" key, wherever it might be, to a control key. If we specify key names by position, the first customization is simple but the second is impossible; if we specify key names by function, the second customization is simple but the first is impossible. Using key aliases, we can specify both function and position for "troublesome" keys, and both customizations are straightforward. Key aliases can be specified both in the symbolic names component and in the keyboard geometry (see Keyboard Geometry). Both sets of aliases are always valid, but key alias definitions in the keyboard geometry have priority; if both symbolic names and geometry include aliases, applications should consider the definitions from the geometry before considering the definitions from the symbolic names section. XKB provides symbolic names for each of the four keyboard groups, sixteen virtual modifiers, thirty-two keyboard indicators, and up to MaxRadioGroups (32) radio groups. XKB allows keyboard layout designers or editors to assign names to each key type and to each of the levels in a key type. For example, the second position on an alphabetic key might be called the "Caps" level while the second position on a numeric keypad key might be called the "Num Lock" level. xorgproto-2023.2/specs/kbproto/xkbproto.xml0000644000175000017500000000771314443010026015757 00000000000000 %defs; ]> The X Keyboard Extension: Protocol Specification X Consortium Standard Erik Fortune Silicon Graphics, Inc X Version 11, Release &fullrelvers; Version 1.0 19951996 X Consortium Inc. Silicon Graphics Inc. Hewlett-Packard Company Digital Equipment Corporation 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 X CONSORTIUM 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 X Consortium, Silicon Graphics Inc., Hewlett-Packard Company, and Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. xorgproto-2023.2/specs/kbproto/appC.xml0000644000175000017500000003673714443010026015002 00000000000000 New KeySyms New KeySyms KeySyms Used by the ISO9995 Standard Byte 3 Byte 4 Character Name 254 1 ISO LOCK 254 2 ISO LATCHING LEVEL TWO SHIFT 254 3 ISO LEVEL THREE SHIFT 254 4 ISO LATCHING LEVEL THREE SHIFT 254 5 ISO LEVEL THREE SHIFT LOCK 254 6 ISO LATCHING GROUP SHIFT 254 7 ISO GROUP SHIFT LOCK 254 8 ISO NEXT GROUP 254 9 ISO LOCK NEXT GROUP 254 10 ISO PREVIOUS GROUP 254 11 ISO LOCK PREVIOUS GROUP 254 12 ISO FIRST GROUP 254 13 ISO LOCK FIRST GROUP 254 14 ISO LAST GROUP 254 15 ISO LOCK LAST GROUP 254 32 LEFT TAB 254 33 MOVE LINE UP 254 34 MOVE LINE DOWN 254 35 PARTIAL LINE UP 254 36 PARTIAL LINE DOWN 254 37 PARTIAL SPACE LEFT 254 38 PARTIAL SPACE RIGHT 254 39 SET MARGIN LEFT 254 40 SET MARGIN RIGHT 254 41 RELEASE MARGIN LEFT 254 42 RELEASE MARGIN RIGHT 254 43 RELEASE MARGIN LEFT AND RIGHT 254 44 FAST CURSOR LEFT 254 45 FAST CURSOR RIGHT 254 46 FAST CURSOR UP 254 47 FAST CURSOR DOWN 254 48 CONTINUOUS UNDERLINE 254 49 DISCONTINUOUS UNDERLINE 254 50 EMPHASIZE 254 51 CENTER OBJECT 254 52 ISO_ENTER KeySyms Used to Control The Core Pointer Byte 3 Byte 4 Character Name 254 224 POINTER LEFT 254 225 POINTER RIGHT 254 226 POINTER UP 254 227 POINTER DOWN 254 228 POINTER UP AND LEFT 254 229 POINTER UP AND RIGHT 254 230 POINTER DOWN AND LEFT 254 231 POINTER DOWN AND RIGHT 254 232 DEFAULT POINTER BUTTON 254 233 POINTER BUTTON ONE 254 234 POINTER BUTTON TWO 254 235 POINTER BUTTON THREE 254 236 POINTER BUTTON FOUR 254 237 POINTER BUTTON FIVE 254 238 DEFAULT POINTER BUTTON DOUBLE CLICK 254 239 POINTER BUTTON ONE DOUBLE CLICK 254 240 POINTER BUTTON TWO DOUBLE CLICK 254 241 POINTER BUTTON THREE DOUBLE CLICK 254 242 POINTER BUTTON FOUR DOUBLE CLICK 254 243 POINTER BUTTON FIVE DOUBLE CLICK 254 244 DRAG DEFAULT POINTER BUTTON 254 245 DRAG POINTER BUTTON ONE 254 246 DRAG POINTER BUTTON TWO 254 247 DRAG POINTER BUTTON THREE 254 248 DRAG POINTER BUTTON FOUR 254 249 ENABLE POINTER FROM KEYBOARD 254 250 ENABLE KEYBOARD POINTER ACCEL 254 251 SET DEFAULT POINTER BUTTON NEXT 254 252 SET DEFAULT POINTER BUTTON PREVIOUS 254 253 DRAG POINTER BUTTON FIVE KeySyms Used to Change Keyboard Controls Byte 3 Byte 4 Character Name 254 112 ENABLE ACCESSX KEYS 254 113 ENABLE ACCESSX FEEDBACK 254 114 TOGGLE REPEAT KEYS 254 115 TOGGLE SLOW KEYS 254 116 ENABLE BOUNCE KEYS 254 117 ENABLE STICKY KEYS 254 118 ENABLE MOUSE KEYS 254 119 ENABLE MOUSE KEYS ACCELERATION 254 120 ENABLE OVERLAY1 254 121 ENABLE OVERLAY2 254 122 ENABLE AUDIBLE BELL KeySyms Used To Control The Server Byte Byte Character Name 254 208 FIRST SCREEN 254 209 PREVIOUS SCREEN 254 210 NEXT SCREEN 254 211 LAST SCREEN 254 212 TERMINATE SERVER KeySyms for Non-Spacing Diacritical Keys Byte Byte Character Name 254 80 DEAD GRAVE ACCENT 254 81 DEAD ACUTE ACCENT 254 82 DEAD CIRCUMFLEX 254 83 DEAD TILDE 254 84 DEAD MACRON 254 85 DEAD BREVE 254 86 DEAD DOT ABOVE 254 87 DEAD DIAERESIS 254 88 DEAD RING ABOVE 254 89 DEAD DOUBLE ACUTE ACCENT 254 90 DEAD CARON 254 91 DEAD CEDILLA 254 92 DEAD OGONEK 254 93 DEAD IOTA 254 94 DEAD VOICED SOUND 254 95 DEAD SEMI VOICED SOUND 254 96 DEAD DOT BELOW xorgproto-2023.2/specs/kbproto/ch11.xml0000644000175000017500000003202614443010026014636 00000000000000 Keyboard Geometry The XKB description of a keyboard includes an optional keyboard geometry which describes the physical appearance of the keyboard. Keyboard geometry describes the shape, location and color of all keyboard keys or other visible keyboard components such as indicators. The information contained in a keyboard geometry is sufficient to allow a client program to draw an accurate two-dimensional image of the keyboard. The components of the keyboard geometry include the following: A symbolic name to help users identify the keyboard. The width and height of the keyboard, in . For non-rectangular keyboards, the width and height describe the smallest bounding-box that encloses the outline of the keyboard. A list of up to MaxColors ( 32 ) color names . A color name is a string whose interpretation is not specified by XKB. Other geometry components refer to colors using their indices in this list. The base color of the keyboard is the predominant color on the keyboard and is used as the default color for any components whose color is not explicitly specified. The label color is the color used to draw the labels on most of the keyboard keys. The label font is a string which describes the font used to draw labels on most keys; XKB does not specify a format or name space for font names. A list of geometry properties . A geometry property associates an arbitrary string with an equally arbitrary name. Geometry properties can be used to provide hints to programs that display images of keyboards, but they are not interpreted by XKB. No other geometry structures refer to geometry properties. A list of key aliases , as described in Symbolic Names. A list of shapes ; other keyboard components refer to shapes by their index in this list. A shape consists of a name and one or more closed-polygons called outlines . Shapes and outlines are described in detail in Shapes and Outlines. Unless otherwise specified, geometry measurements are in units. The origin (0,0) is in the top left corner of the keyboard image. Some geometry components can be drawn rotated; all such objects rotate about their origin in increments. All geometry components include a priority , which indicates the order in which overlapping objects should be drawn. Objects are drawn in order from highest priority ( 0 ) to lowest ( 255 ). The description of the actual appearance of the keyboard is subdivided into named sections of related keys and doodads . A a doodad describes some visible aspect of the keyboard that is not a key. A section is a collection of keys and doodads that are physically close together and logically related. Shapes and Outlines An outline is a list of one or more points which describes a single closed-polygon, as follows: A list with a single point describes a rectangle with one corner at the origin of the shape ( 0 , 0 ) and the opposite corner at the specified point. A list of two points describes a rectangle with one corner at the position specified by the first point and the opposite corner at the position specified by the second point. A list of three or more points describes an arbitrary polygon. If necessary, the polygon is automatically closed by connecting the last point in the list with the first. A non-zero value for the cornerRadius field specifies that the corners of the polygon should be drawn as circles with the specified radius. All points in an outline are specified relative to the origin of the enclosing shape. Points in an outline may have negative values for the X and Y coordinate. One outline (usually the first) is the primary outline; a keyboard display application can generate a simpler but still accurate keyboard image by displaying only the primary outlines for each shape. Non-rectangular keys must include a rectangular approximation as one of the outlines associated with the shape; the approximation is not normally displayed but can be used by very simple keyboard display applications to generate a recognizable but degraded image of the keyboard. Sections Each section has its own coordinate system — if a section is rotated, the coordinates of any components within the section are interpreted relative to the edges that were on the top and left before rotation. The components that make up a section include: A list of rows . A row is a list of horizontally or vertically adjacent keys. Horizontal rows parallel the (pre-rotation) top of the section and vertical rows parallel the (pre-rotation) left of the section. All keys in a horizontal row share a common top coordinate; all keys in a vertical row share a left coordinate. A key description consists of a key name , a shape , a key color , and a gap . The key name should correspond to one of the keys named in the keyboard names description, the shape specifies the appearance of the key, and the key color specifies the color of the key (not the label on the key). Keys are normally drawn immediately adjacent to one another from left-to-right (or top-to-bottom) within a row. The gap field specifies the distance between a key and its predecessor. An optional list of doodads; any type of doodad can be enclosed within a section. Position and angle of rotation are relative to the origin and angle of rotation of the sections that contain them. Priority is relative to the other components of the section, not to the keyboard as a whole. An optional list of overlay keys . Each overlay key definition indicates a key that can yield multiple scan codes and consists of a field named under , which specifies the primary name of the key and a field named over , which specifies the name for the key when the overlay keycode is selected. The key specified in under must be a member of the section that contains the overlay key definition, while the key specified in over must not. Doodads Doodads can be global to the keyboard or part of a section. Doodads have symbolic names of arbitrary length. The only doodad name whose interpretation is specified by XKB is "Edges", which describes the outline of the entire keyboard, if present. All doodads report their origin in fields named left and top . XKB supports five kinds of doodads: An indicator doodad describes one of the physical keyboard indicators. Indicator doodads specify the shape of the indicator, the indicator color when it is lit ( on_color ) and the indicator color when it is dark ( off_color ). An outline doodad describes some aspect of the keyboard to be drawn as one or more hollow, closed polygons. Outline doodads specify the shape, color, and angle of rotation about the doodad origin at which they should be drawn. A solid doodad describes some aspect of the keyboard to be drawn as one or more filled polygons. Solid doodads specify the shape, color and angle of rotation about the doodad origin at which they should be drawn. A text doodad describes a text label somewhere on the keyboard. Text doodads specify the label string, the font and color to use when drawing the label, and the angle of rotation of the doodad about its origin. A logo doodad is a catch-all, which describes some other visible element of the keyboard. A logo doodad is essentially an outline doodad with an additional symbolic name that describes the element to be drawn. If a keyboard display program recognizes the symbolic name, it can draw something appropriate within the bounding region of the shape specified in the doodad. If the symbolic name does not describe a recognizable image, it should draw an outline using the specified shape, outline, and angle of rotation. The XKB extension does not specify the interpretation of logo names. Keyboard Geometry Example Consider the following example keyboard: This keyboard has six sections: The left and right function sections (at the very top) each have one horizontal row with eight keys. The left and right alphanumeric sections (the large sections in the middle) each have six vertical rows, with four or five keys in each row. The left and right editing sections each have three vertical rows with one to three keys per row; the left editing section is rotated 20° clockwise about its origin while the right editing section is rotated 20° counterclockwise. This keyboard has four global doodads: Three small, round indicators and a rectangular logo. The program which generated this image did not recognize the logo, so it displays an outline with an appropriate shape in its place. This keyboard has seven shapes: All of the keys in the two function sections use the "FKEY" shape. Most of the keys in the alphanumeric sections, as well as four of the keys in each of the editing sections use the "NORM" shape. The keys in the first column of the left alphanumeric section and the last column of the right alphanumeric section all use the "WIDE" shape. Two keys in each of the editing sections use the "TALL" shape. The "LED" shape describes the three small, round indicators between the function and alphabetic sections. The "LOGO" shape describes the keyboard logo, and the "EDGE" shape describes the outline of the keyboard as a whole. The keyboard itself is white, as are all of the keys except for the eight keys that make up the home row, which use the "grey20" color. It isn’t really visible in this picture, but the three indicators have an "on" color of "green" and are "green30" when they are turned off. The keys in the alphanumeric and editing sections all have a (vertical) gap of 0.5mm; the keys in the two function sections have a (horizontal) gap of 3mm. Many of the keys in the right alphanumeric section, and the rightmost key in the right editing section are drawn with two names in this image. Those are overlay keys; the bottom key name is the normal name while the overlay name is printed at the top. For example, the right editing section has a single overlay key entry, which specifies an under name of <SPCE> and an over name of <KP0> , which indicates that the key in question is usually the shift key, but can behave like the 0 key on the numeric keypad when an overlay is active. xorgproto-2023.2/specs/kbproto/ch07.xml0000644000175000017500000004710614443010026014650 00000000000000 Key Event Processing in the Client The XKB client map for a keyboard is the collection of information a client needs to interpret key events that come from that keyboard. It contains a global list of key types , described in Key Types, and an array of key symbol map s, each of which describes the symbols bound to one particular key and the rules to be used to interpret those symbols. Notation and Terminology XKB associates a two-dimensional array of symbols with each key. Symbols are addressed by keyboard group (see Keyboard State) and shift level, where level is defined as in the ISO9995 standard: Level One of several states (normally 2 or 3) which govern which graphic character is produced when a graphic key is actuated. In certain cases the level may also affect function keys. Note that shift level is derived from the modifier state, but not necessarily in the same way for all keys. For example, the Shift modifier selects shift level 2 on most keys, but for keypad keys the modifier bound to Num_Lock (i.e. the NumLock virtual modifier) also selects shift level 2.gray symbols on a key We use the notation G n L n to specify the position of a symbol on a key or in memory: The gray characters indicate symbols that are implied or expected but are not actually engraved on the key. Unfortunately, the "natural" orientation of symbols on a key and the natural orientation in memory are reversed from one another, so keyboard group refers to a column on the key and a row in memory. There’s no real help for it, but we try to minimize confusion by using "group" and "level" (or "shift level") to refer to symbols regardless of context. Determining the KeySym Associated with a Key Event To look up the symbol associated with an XKB key event, we need to know the group and shift level that correspond to the event. Group is reported in bits 13-14 of the state field of the key event, as described in Computing A State Field from an XKB State. The keyboard group reported in the event might be out-of-range for any particular key because the number of groups can vary from key to key. The XKB description of each key contains a group info field which is interpreted identically to the global groups wrap control (see Computing Effective Modifier and Group) and which specifies the interpretation of groups that are out-of-range for that key. Once we have determined the group to be used for the event, we have to determine the shift level. The description of a key includes a key type for each group of symbols bound to the key. Given the modifiers from the key event, this key type yields a shift level and a set of "leftover" modifiers, as described in Key Types below. Finally, we can use the effective group and the shift level returned by the type of that group to look up a symbol in a two-dimensional array of symbols associated with the key. Key Types Each entry of a key type’s map field specifies the shift level that corresponds to some XKB modifier definition; any combination of modifiers that is not explicitly listed somewhere in the map yields shift level one. Map entries which specify unbound virtual modifiers (see Inactive Modifier Definitions) are not considered; each entry contains an automatically-updated active field which indicates whether or not it should be used. Each key type includes a few fields that are derived from the contents of the map and which report some commonly used values so they don’t have to be constantly recalculated. The numLevels field contains the highest shift level reported by any of its map entries; XKB uses numLevels to insure that the array of symbols bound to a key is large enough (the number of levels reported by a key type is also referred to as its width). The modifiers field reports all real modifiers considered by any of the map entries for the type. Both modifiers and numLevels are updated automatically by XKB and neither can be changed explicitly. Any modifiers specified in modifiers are normally consumed (see Transforming the KeySym Associated with a Key Event), which means that they are not considered during any of the later stages of event processing. For those rare occasions that a modifier should be considered despite having been used to look up a symbol, key types include an optional preserve field. If a preserve list is present, each entry corresponds to one of the key type’s map entries and lists the modifiers that should not be consumed if the matching map entry is used to determine shift level. For example, the following key type implements caps lock as defined by the core protocol (using the second symbol bound to the key): type "ALPHABETIC" { modifiers = Shift+Lock; map[Shift]= Level2; map[Lock]= Level2; map[Shift+Lock]= Level2; }; The problem with this kind of definition is that we could assign completely unrelated symbols to the two shift levels, and "Caps Lock" would choose the second symbol. Another definition for alphabetic keys uses system routines to capitalize the keysym: type "ALPHABETIC" { modifiers= Shift; map[Shift]= Level2; }; When caps lock is applied using this definition, we take the symbol from shift level one and capitalize it using system-specific capitalization rules. If shift and caps lock are both set, we take the symbol from shift level two and try to capitalize it, which usually has no effect. The following key type implements shift-cancels-caps lock behavior for alphabetic keys: type "ALPHABETIC" { modifiers = Shift+Lock; map[Shift] = Level2; preserve[Lock]= Lock; }; Consider the four possible states that can affect alphabetic keys: no modifiers, shift alone, caps lock alone or shift and caps lock together. The map contains no explicit entry for None (no modifiers), so if no modifiers are set, any group with this type returns the first keysym. The map entry for Shift reports Level2 , so any group with this type returns the second symbol when Shift is set. There is no map entry for Lock alone, but the type specifies that the Lock modifier should be preserved in this case, so Lock alone returns the first symbol in the group but first applies the capitalization transformation, yielding the capital form of the symbol. In the final case, there is no map entry for Shift+Lock , so it returns the first symbol in the group; there is no preserve entry, so the Lock modifier is consumed and the symbol is not capitalized. Key Symbol Map The key symbol map for a key contains all of the information that a client needs to process events generated by that key. Each key symbol mapping reports: The number of groups of symbols bound to the key ( numGroups ). The treatment of out-of-range groups ( groupInfo ). The index of the key type to for each possible group ( kt_index[MaxKbdGroups] ). The width of the widest type associated with the key ( groupsWidth ). The two-dimensional (numGroups × groupsWidth) array of symbols bound to the key. It is legal for a key to have zero groups, in which case it also has zero symbols and all events from that key yield NoSymbol . The array of key types is of fixed width and is large enough to hold key types for the maximum legal number of groups ( MaxKbdGroups , currently four); if a key has fewer than MaxKbdGroups groups, the extra key types are reported but ignored. The groupsWidth field cannot be explicitly changed; it is updated automatically whenever the symbols or set of types bound to a key are changed. If, when looking up a symbol, the effective keyboard group is out-of-range for the key, the groupInfo field of the key symbol map specifies the rules for determining the corresponding legal group as follows: If the RedirectIntoRange flag is set, the two least significant bits of groupInfo specify the index of a group to which all illegal groups correspond. If the specified group is also out of range, all illegal groups map to Group1 . If ClampIntoRange flag is set, out-of-range groups correspond to the nearest legal group. Effective groups larger than the highest supported group are mapped to the highest supported group; effective groups less than Group1 are mapped to Group1 . For example, a key with two groups of symbols uses Group2 type and symbols if the global effective group is either Group3 or Group4 . If neither flag is set, group is wrapped into range using integer modulus. For example, a key with two groups of symbols for which groups wrap uses Group1 symbols if the global effective group is Group3 or Group2 symbols if the global effective group is Group4 . The client map contains an array of key symbol mappings, with one entry for each key between the minimum and maximum legal keycodes, inclusive. All keycodes which fall in that range have key symbol mappings, whether or not any key actually yields that code. Transforming the KeySym Associated with a Key Event Any modifiers that were not used to look up the keysym, or which were explicitly preserved, might indicate further transformations to be performed on the keysym or the character string that is derived from it. For example, If the Lock modifier is set, the symbol and corresponding string should be capitalized according to the locale-sensitive capitalization rules specified by the system. If the Control modifier is set, the keysym is not affected, but the corresponding character should be converted to a control character as described in Default Symbol Transformations. This extension specifies the transformations to be applied when the Control or Lock modifiers are active but were not used to determine the keysym to be used: Modifier Transformation Control Report the control character associated with the symbol. This extension defines the control characters associated with the ASCII alphabetic characters (both upper and lower case) and for a small set of punctuation characters (see Default Symbol Transformations). Applications are free to associate control characters with any symbols that are not specified by this extension. Lock Capitalize the symbol either according to capitalization rules appropriate to the application locale or using the capitalization rules defined by this extension (see Default Symbol Transformations). Interpretation of other modifiers is application dependent. This definition of capitalization is fundamentally different from the core protocol’s, which uses the lock modifier to select from the symbols bound to the key. Consider key 9 in the client map example; the core protocol provides no way to generate the capital form of either symbol bound to this key. XKB specifies that we first look up the symbol and then capitalize, so XKB yields the capital form of the two symbols when caps lock is active. XKB specifies the behavior of Lock and Control , but interpretation of other modifiers is left to the application. Client Map Example Consider a simple, if unlikely, keyboard with the following keys (gray characters indicate symbols that are implied or expected but are not actually engraved on the key): The core protocol represents this keyboard as a simple array with one row per key and four columns (the widest key, key 10, determines the width of the entire array). Key G1L1 G1L2 G2L1 G2L2 8 Q NoSymbol at NoSymbol 9 odiaeresis egrave NoSymbol NoSymbol 10 A NoSymbol Æ NoSymbol 11 ssharp question backslash questiondown 12 KP_End KP_1 NoSymbol NoSymbol 13 Num_Lock NoSymbol NoSymbol NoSymbol 14 NoSymbol NoSymbol NoSymbol NoSymbol 15 Return NoSymbol NoSymbol NoSymbol The row to be used for a given key event is determined by keycode; the column to be used is determined by the symbols bound to the key, the state of the Shift and Lock Modifiers and the state of the modifiers bound to the Num_Lock and Mode_switch keys as specified by the core protocol. The XKB description of this keyboard consists of six key symbol maps, each of which specifies the types and symbols associated with each keyboard group for one key: Key Group: Type L1 L2 8 G1: ALPHABETIC q Q G2: ONE_LEVEL @ NoSymbol 9 G1: TWO_LEVEL odiaeresis egrave 10 G1: ALPHABETIC a A G2: ALPHABETIC ae AE 11 G1: TWO_LEVEL ssharp question G2: ONE_LEVEL backslash questiondown 12 G1: KEYPAD KP_End KP_1 13 G1: ONE_LEVEL Num_Lock 14 No Groups 15 G1: ONE_LEVEL Return The keycode reported in a key event determines the row to be used for that event; the effective keyboard group determines the list of symbols and key type to be used. The key type determines which symbol is chosen from the list. Determining the KeySym Associated with a Key Event details the procedure to map from a key event to a symbol and/or a string. xorgproto-2023.2/specs/kbproto/ch10.xml0000644000175000017500000001217614443010026014641 00000000000000 Keyboard Bells The core protocol provides requests to control the pitch, volume and duration of the keyboard bell and a request to explicitly sound the bell. The X Keyboard Extension allows clients to disable the audible bell, attach a symbolic name to a bell request or receive an event when the keyboard bell is rung. Client Notification of Bells Clients can ask to receive XkbBellNotify event when a bell is requested by a client or generated by the server. Bells can be sounded due to core protocol Bell requests, X Input Extension DeviceBell requests, X Keyboard Extension XkbBell requests or for reasons internal to the server such as the XKB AccessXFeedback control. Bell events caused by the XkbBell request or by the AccessXFeedback control include an optional window and symbolic name for the bell. If present, the window makes it possible to provide some kind of visual indication of which window caused the sound. The symbolic name can report some information about the reason the bell was generated and makes it possible to generate a distinct sound for each type of bell. Disabling Server Generated Bells The global AudibleBell boolean control for a keyboard indicates whether bells sent to that device should normally cause the server to generate a sound. Applications which provide "sound effects" for the various named bells will typically disable the server generation of bells to avoid burying the user in sounds. When the AudibleBell control is active, all bells caused by core protocol Bell and X Input Extension DeviceBell requests cause the server to generate a sound, as do all bells generated by the XKB AccessXFeedback control. Bells requested via the X kbBell request normally cause a server-generated sound, but clients can ask the server not to sound the default keyboard bell. When the AudibleBell control is disabled, the server generates a sound only for bells that are generated using the XkbBell request and which specify forced delivery of the bell. Generating Named Bells The XkbBell request allows clients to specify a symbolic name which is reported in the bell events they cause. Bells generated by the AccessXFeedback control of this extension also include a symbolic name, but all kinds of feedback cause a single event even if they sound multiple tones. The X server is permitted to use symbolic bell names (when present) to generate sounds other than simple tones, but it is not required to do so. Aside from those used by the XKB AccessXFeedback control (see The AccessXFeedback Control), this extension does not specify bell names or their interpretation. Generating Optional Named Bells Under some circumstances, some kind of quiet audio feedback is useful, but a normal keyboard bell is not. For example, a quiet "launch effect" can be helpful to let the user know that an application has been started, but a loud bell would simply be annoying. To simplify generation of these kinds of effects, the XkbBell request allows clients to specify "event only" bells. The X server never generates a normal keyboard bell for "event only" bells, regardless of the setting of the global AudibleBell control. If the X server generates different sounds depending bell name, it is permitted to generate a sound even for "event only" bells. This field is intended simply to weed out "normal" keyboard bells. Forcing a Server Generated Bell Occasionally, it is useful to force the server to generate a sound. For example, a client could "filter" server bells, generating sound effects for some but sounding the normal server bell for others. Such a client needs a way to tell the server that the requested bell should be generated regardless of the setting of the AudibleBell control. To simplify this process, clients which call the XkbBell request can specify that a bell is forced. A forced bell always causes a server generated sound and never causes a XkbBellNotify event. Because forced bells do not cause bell notify events, they have no associated symbolic name or event window. xorgproto-2023.2/specs/kbproto/ch12.xml0000644000175000017500000010211114443010026014630 00000000000000 Interactions Between XKB and the Core Protocol In addition to providing a number of new requests, XKB replaces or extends existing core protocol requests and events. Some aspects of the this extension, such as the ability to lock any key or modifier, are visible even to clients that are unaware of the XKB extension. Other capabilities, such as control of keysym selection on a per-key basis, are available only to XKB-aware clients. Though they do not have access to some advanced extension capabilities, the XKB extension includes compatibility mechanisms to ensure that non-XKB clients behave as expected and operate at least as well with an XKB-capable server as they do today. There are a few significant areas in which XKB state and mapping differences might be visible to XKB-unaware clients: The core protocol uses a modifier to choose between two keyboard groups, while this extension provides explicit support for multiple groups. The order of the symbols associated with any given key by XKB might not match the ordering demanded by the core protocol. To minimize problems that might result from these differences, XKB includes ways to specify the correspondence between core protocol and XKB modifiers and symbols. This section describes the differences between the core X protocol’s notion of a keyboard mapping and XKB and explains the ways they can interact. Group Compatibility Map As described in Keyboard State, the current keyboard group is reported to XKB-aware clients in bits 13-14 of the state field of many core protocol events. XKB-unaware clients cannot interpret those bits, but they might use a keyboard modifier to implement support for a single keyboard group. To ensure that pre-XKB clients continue to work when XKB is present, XKB makes it possible to map an XKB state field, which includes both keyboard group and modifier state into a pre-XKB state field which contains only modifiers. A keyboard description includes one group compatibility map per keyboard group (four in all). Each such map is a modifier definition (i.e. specifies both real and virtual modifiers) which specifies the modifiers to be set in the compatibility states when the corresponding keyboard group is active. Here are a few examples to illustrate the application of the group compatibility map: Group GroupCompat Map Effective Modifiers State for XKB Clients Compatibility Modifiers State for non-XKB Clients 1 Group1=None Shift x00xxxxx00000001 Shift xxxxxxxx00000001 2 Group2=Mod3 None x01xxxxx00000000 Mod3 xxxxxxxx00100000 3 Group3=Mod2 Shift x10xxxxx00000001 Shift+Mod2 xxxxxxxx00010001 4 Group4=None Control x11xxxxx00000100 Control xxxxxxxx00000100 Note that non-XKB clients (i.e. clients that are linked with a version of the X library that does not support XKB) cannot detect the fact that Group4 is active in this example because the group compatibility map for Group4 does not specify any modifiers. Setting a Passive Grab for an XKB State The fact that the state field of an event might look different when XKB is present can cause problems with passive grabs. Existing clients specify the modifiers they wish to grab using the rules defined by the core protocol, which use a normal modifier to indicate keyboard group. If we used an XKB state field, the high bits of the state field would be non-zero whenever the keyboard was in any group other than Group1 , and none of the passive grabs set by clients could ever be triggered. To avoid this behavior, the X server normally uses the compatibility grab state to decide whether or not to activate a passive grab, even for XKB-aware clients. The group compatibility map attempts to encode the keyboard group in one or more modifiers of the compatibility state, so existing clients continue to work exactly the way they do today. By default, there is no way to directly specify a keyboard group in a Grabbed or GrabButton request, but groups can be specified indirectly by correctly adjusting the group compatibility map. Clients that wish to specify an XKB keyboard state, including a separate keyboard group, can set the GrabsUseXKBState per-client flag which indicates that all subsequent key and button grabs from the requesting clients are specified using an XKB state. Whether the XKB or core state should be used to trigger a grab is determined by the setting of the GrabsUseXKBState flag for the requesting client at the time the key or button is grabbed. There is no way to change the state to be used for a grab that is already registered or for grabs that are set by some other client. Changing the Keyboard Mapping Using the Core Protocol An XKB keyboard description includes a lot of information that is not present in the core protocol description of a keyboard. Whenever a client remaps the keyboard using core protocol requests, XKB examines the map to determine likely default values for the components that cannot be specified using the core protocol. Some aspects of this automatic mapping are configurable, and make it fairly easy to take advantage of many XKB features using existing tools like xmodmap , but much of the process of mapping a core keyboard description into an XKB description is designed to preserve compatible behavior for pre-XKB clients and cannot be redefined by the user. Clients or users that want behavior that cannot be described using this mapping should use XKB functions directly. Explicit Keyboard Mapping Components This automatic remapping might accidentally replace definitions that were explicitly requested by an application, so the XKB keyboard description defines a set of explicit components for each key; any components that are listed in the explicit components for a key are not changed by the automatic keyboard mapping. The explicit components field for a key can contain any combination of the following values: Bit in Explicit Mask Protects Against ExplicitKeyType1 Automatic determination of the key type associated with Group1 (see Assigning Types To Groups of Symbols for a Key) ExplicitKeyType2 Automatic determination of the key type associated with Group2 (see Assigning Types To Groups of Symbols for a Key) ExplicitKeyType3 Automatic determination of the key type associated with Group3 (see Assigning Types To Groups of Symbols for a Key). ExplicitKeyType4 Automatic determination of the key type associated with Group4 (see Assigning Types To Groups of Symbols for a Key). ExplicitInterpret Application of any of the fields of a symbol interpretation to the key in question (see Assigning Actions To Keys). ExplicitAutoRepeat Automatic determination of autorepeat status for the key, as specified in a symbol interpretation (see Assigning Actions To Keys). ExplicitBehavior Automatic assignment of the KB_Lock behavior to the key, if the LockingKey flag is set in a symbol interpretation (see Assigning Actions To Keys). ExplicitVModMap Automatic determination of the virtual modifier map for the key based on the actions assigned to the key and the symbol interpretations which match the key (see Assigning Actions To Keys). Assigning Symbols To Groups The first step in applying the changes specified by a core protocol ChangeKeyboardMapping request to the XKB description of a keyboard is to determine the number of groups that are defined for the key and the width of each group. The XKB extension does not change key types in response to core protocol SetModifierMapping requests, but it does choose key actions as described in Assigning Actions To Keys. Determining the number of symbols required for each group is straightforward. If the key type for some group is not protected by the corresponding ExplicitKeyType component, that group has two symbols. If any of the explicit components for the key include ExplicitKeyType3 or ExplicitKeyType4 , the width of the key type currently assigned to that group determines the number of symbols required for the group in the core protocol keyboard description. The explicit type components for Group1 and Group2 behave similarly, but for compatibility reasons the first two groups must have at least two symbols in the core protocol symbol mapping. Even if an explicit type assigned to either of the first two keyboard groups has fewer than two symbols, XKB requires two symbols for it in the core keyboard description. If the core protocol request contains fewer symbols than XKB needs, XKB adds trailing NoSymbol keysyms to the request to pad it to the required length. If the core protocol request includes more symbols than it needs, XKB truncates the list of keysyms to the appropriate length. Finally, XKB divides the symbols from the (possibly padded or truncated) list of symbols specified by the core protocol request among the four keyboard groups. In most cases, the symbols for each group are taken from the core protocol definition in sequence (i.e. the first pair of symbols is assigned to Group1 , the second pair of symbols is assigned to Group2 , and so forth). If either Group1 or Group2 has an explicitly defined key type with a width other than two, it gets a little more complicated. Assigning Symbols to Groups One and Two with Explicitly Defined Key Types The server assigns the first four symbols from the expanded or truncated map to the symbol positions G1L1 , G1L2, G2L1 and G2L2, respectively. If the key type assigned to Group1 reports more than two shift levels, the fifth and following symbols contain the extra keysyms for Group2 . If the key type assigned to Group2 reports more than two shift levels, the extra symbols follow the symbols (if any) for Group1 in the core protocol list of symbols. Symbols for Group3 and Group4 are contiguous and follow the extra symbols, if any, for Group1 and Group2 . For example, consider a key with a key type that returns three shift levels bound to each group. The symbols bound to the core protocol are assigned in sequence to the symbol positions: G1L1, G1L2, G2L1, G2L2, G1L3, G2L3, G3L1, G3L2, G3L3, G4L1, G4L2, and G4L3 For a key with a width one key type on group one, a width two key type on group two and a width three key type on group three, the symbols bound to the key by the core protocol are assigned to the following key positions: G1L1, (G1L2), G2L1, G2L2, G3L1, G3L2, G3L3 Note that the second and fourth symbols (positions G1L2 and G2L2 ) can never be generated if the key type associated with the group yields only one symbol. XKB accepts and ignores them in order to maintain compatibility with the core protocol. Assigning Types To Groups of Symbols for a Key Once the symbols specified by ChangeKeyboardMapping have been assigned to the four keyboard groups for a key, the X server assigns a key type to each group on the key from a canonical list of key types. The first four key types in any keyboard map are reserved for these standard key types: Key Type Name Standard Definition ONE_LEVEL Describes keys that have exactly one symbol per group. Most special or function keys (such as Return ) are ONE_LEVEL keys. Any combination of modifiers yields level 0 . Index 0 in any key symbol map specifies key type ONE_LEVEL . TWO_LEVEL Describes non-keypad and non-alphabetic keys that have exactly two symbols per group. By default, the TWO_LEVEL type yields column 1 if the Shift modifier is set, column 0 otherwise. Index 1 in any key symbol map specifies key type TWO_LEVEL . ALPHABETIC Describes alphabetic keys that have exactly two symbols per group. The default definition of the ALPHABETIC type provides shift-cancels-caps behavior as described in Key Types. Index 2 in any key symbol map specifies key type ALPHABETIC . KEYPAD Describes numeric keypad keys with two symbols per group. Yields column 1 if either of the Shift modifier or the real modifier bound to the virtual modifier named NumLock are set. Yields column 0 if neither or both modifiers are set. Index 3 in any key symbol map specifies key type KEYPAD . Users or applications may change these key types to get different default behavior (to make shift cancel caps lock, for example) but they must always have the specified number of symbols per group. Before assigning key types to groups, the X server expands any alphanumeric symbol definitions as follows: If the second symbol of either group is NoSymbol and the first symbol of that group is an alphabetic keysym for which both lowercase and uppercase forms are defined, the X server treats the key as if the first element of the group were the lowercase form of the symbol and the second element were the uppercase form of the symbol. For the purposes of this expansion, XKB ignores the locale and uses the capitalization rules defined in Default Symbol Transformations. For each keyboard group that does not have an explicit type definition, XKB chooses a key type from the canonical key types. If the second symbol assigned to a group is NoSymbol (after alphabetic expansion), the server assigns key type ONE_LEVEL . If the group contains the lowercase and uppercase forms of a single glyph (after alphanumeric expansion), the server assigns key type ALPHABETIC . If either of the symbols in a group is a numeric keypad keysym ( KP_* ), the server assigns key type KEYPAD . Otherwise, it assigns key type TWO_LEVEL . Finally, XKB determines the number of groups of symbols that are actually defined for the key. Trailing empty groups (i.e. groups that have NoSymbol in all symbol positions) are ignored. There are two last special cases for compatibility with the core protocol: If, after trailing empty groups are excluded, all of the groups of symbols bound to the key have identical type and symbol bindings, XKB assigns only one group to the key. If Group2 is empty and either of Group3 or Group4 are not, and if neither Group1 nor Group2 have explicit key types, XKB copies the symbols and key type from Group1 into Group2 . Assigning Actions To Keys Once symbols have been divided into groups and key types chosen for the keys affected by a ChangeKeyboardMapping request, XKB examines the symbols and modifier mapping for each changed key and assigns server actions where appropriate. XKB also automatically assigns server actions to changed keys if the client issues a core protocol SetModifierMapping request, and does so optionally in response to XkbSetMap and XkbSetCompatMap requests. The compatibility map includes a list of symbol interpretations , which XKB compares to each symbol associated with any changed keys in turn, unless the ExplicitInterp component is set for a key. Setting the ExplicitInterp component prevents the application of symbol interpretations to that key. If the modifiers and keysym specified in a symbol interpretation match the modifier mapping and a symbol bound to a changed key that is not protected by ExplicitInterp , the server applies the symbol interpretation to the symbol position. The server considers all symbol interpretations which specify an explicit keysym before considering any that do not. The server uses the first interpretation which matches the given combination of keysym and modifier mapping; other matching interpretations are ignored. XKB uses four of the fields of a symbol interpretation to decide if it matches one of the symbols bound to some changed key: The symbol field is a keysym which matches if it has the value NoSymbol or is identical to the symbol in question. The modifiers specified in the mods field are compared to the modifiers affected by the key in question as indicated by match . The match field can specify any of the comparisons: NoneOf , AnyOfOrNone , AnyOf , AllOf or Exactly . The levelOneOnly setting, indicates that the interpretation in question should only use the modifiers bound to this key by the modifier mapping if the symbol that matches in level one of its group. Otherwise, if the symbol being considered is not in shift level one of its group, the server behaves as if the modifier map for the key were empty. Note that it is still possible for such an interpretation to apply to a symbol in a shift level other than one if it matches a key without modifiers; the levelOneOnly flag only controls the way that matches are determined and that the key modifiers are applied when an interpretation does match. Applying a symbol interpretation can affect several aspects of the XKB definition of the key symbol mapping to which it is applied: The action specified in the symbol interpretation is bound to the symbol position; any key event which yields that symbol will also activate the new action. If the matching symbol is in position G1L1, the autorepeat behavior of the key is set from the autorepeat field of the symbol interpretation. The ExplicitAutoRepeat component protects the autorepeat status of a key from symbol interpretation initiated changes. If the symbol interpretation specifies an associated virtual modifier, that virtual modifier is added to the virtual modifier map for the key. The ExplicitVModMap component guards the virtual modifier map for a key from automatic changes. If the levelOneOnly flag is set for the interpretation, and the symbol in question is not in position G1L1, the virtual modifier map is not updated. If the matching symbol is in position G1L1, and the locking key field is set in the symbol interpretation, the behavior of the key is changed to KB_Lock (see Key Behavior). The ExplicitBehavior component prevents this change. If no interpretations match a given symbol or key, the server uses: SA_NoAction , autorepeat enabled, non-locking key. with no virtual modifiers. If all of the actions computed for a key are SA_NoAction , the server assigns an length zero list of actions to the key. If the core protocol modifier mapping is changed, the server regenerates actions for the affected keys. The XkbSetMap and XkbSetCompatMap requests can also cause actions for some or all keyboard keys to be recomputed. Updating Everything Else Changes to the symbols or modifier mapping can affect the bindings of virtual modifiers. If any virtual modifiers change, XKB updates all of its data structures to reflect the change. Applying virtual modifier changes to the keyboard mapping night result in changes to types, the group compatibility map, indicator maps, internal modifiers or ignore locks modifiers. Effects of XKB on Core Protocol Events After applying server actions which modify the base, latched or locked modifier or group state of the keyboard, the X server recomputes the effective group and state. Several components of the keyboard state are reported to XKB-aware clients depending on context (see Keyboard State for a detailed description of each of the keyboard state components): The effective modifier state is reported in XkbStateNotify events and in response to XkbGetState requests. The symbol lookup state is reported to XKB-aware clients in the state field of core protocol and input extension key press and release events that do not activate passive grabs. Unless the LookupStateWhenGrabbed per-client flag is set, the lookup state is only reported in these events when no grabs are active. The grab state is reported to XKB-aware clients in the state field of all core protocol events that report keyboard state, except KeyPress and KeyRelease events that do not activate passive grabs. The effective group is the sum of the base, latched and locked keyboard groups. An out of range effective group is wrapped or truncated into range according to the setting of the groupsWrap flag for the keyboard. The server reports compatibility states to any clients that have not issued a successful XkbUseExtension request. The server computes the compatibility symbol lookup state and the compatibility effective grab state by applying the compatibility modifier map to the corresponding computed XKB states. The compatibility symbol lookup state is reported to non-XKB clients whenever an XKB-aware client would receive the XKB lookup state. The compatibility grab state is reported to XKB-unaware clients whenever an XKB client would receive the XKB grab state. If the GrabsUseXKBState per-client option is not set, even XKB-aware clients receive the compatibility grab state in events that trigger or terminate passive grabs. If this flag is not set, XKB clients also receive the compatibility grab or lookup state whenever any keyboard grab is active. If the LookupStateWhenGrabbed per-client option is set, clients receive either the XKB or compatibility lookup state when the keyboard is grabbed, otherwise they receive either the XKB or compatibility grab state. All non-XKB clients receive the compatibility form of the appropriate state component; the form that is sent to an XKB-aware client depends on the setting of the GrabsUseXKBState option for that client. Effect of XKB on Core Protocol Requests Whenever a client updates the keyboard mapping using a core protocol request, the server saves the requested core protocol keyboard mapping and reports it to any clients that issue GetKeyboardMapping or GetModifierMapping requests. Whenever a client updates the keyboard mapping using XKB requests, the server discards the affected portion of the stored core keyboard description and regenerates it based on the XKB description of the keyboard. The symbols associated with the XKB keyboard description appear in the order: G1L1 G1L2 G2L1 G2L2 G1L3-n G2L3-n G3L* G4L* If the type associated with Group1 is width one, the second symbol is NoSymbol ; if the type associated with Group2 is width one, the fourth symbol is NoSymbol . If a key has only one group but the keyboard has several, the symbols for Group1 are repeated for each group. For example, given a keyboard with three groups and a key with one group that contains the symbols { a A }, the core protocol description would contain the six symbols: { a A a A a A }. As a slightly more complicated example, an XKB key which had a single width three group with the symbols { a b c } would show up in the generated core protocol keyboard description with the symbols { a b a b c c a b c } for a keyboard with three groups. The generated modifier mapping for a key contains all of the modifiers affected by all of the actions associated with the key plus all of the modifiers associated with any virtual modifiers bound to the key by the virtual modifier mapping. If any of the actions associated with a key affect any component of the keyboard group, any modifiers specified in any entry of the group compatibility map (see Group Compatibility Map) are reported in the modifier mask. The SA_ISOLock action can theoretically affect any modifier, but the modifier map of an SA_ISOLock key contains only the modifiers or group state that it sets by default. The server notifies interested clients of keyboard map changes in one of two ways. It sends XkbMapNotify to clients that have explicitly selected them and core protocol MappingNotify events to clients that have not. Once a client requests XkbMapNotify events, the server stops sending it MappingNotify events to inform it of keyboard changes. Sending Events to Clients XKB normally assumes that events sent to clients using the core protocol SendEvent request contain a core protocol state, if applicable. If the client which will receive the event is not XKB-capable, XKB attempts to convert the core state to an XKB state as follows: if any of the modifiers bound to Group2 in the group compatibility map are set in the event state, XKB clears them in the resulting event but sets the effective group in the event state to Group2 . If the PCF_SendEventUsesXKBState per-client flag is set at the time of the SendEvent request, XKB instead assumes that the event reported in the event is an XKB state. If the receiving client is not XKB-aware, the extension converts the XKB state (which contains the effective state in bits 13-14) to a core state by applying the group compatibility map just as it would for actual key events. xorgproto-2023.2/specs/kbproto/appD.xml0000644000175000017500000020316714443010026014774 00000000000000 Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the encoding of the core X protocol, with the following additions: A LISTofITEMs contains zero or more items of variable type and size. The encode form for a LISTofITEMs is: v LISTofITEMs NAME TYPE MASK-EXPRESSION value1 corresponding field(s) ... valuen corresponding field(s) The MASK-EXPRESSION is an expression using C-style boolean operators and fields of the request which specifies the bitmask used to determine whether or not a member of the LISTofITEMs is present. If present, TYPE specifies the interpretation of the resulting bitmask and the values are listed using the symbolic names of the members of the set. If TYPE is blank, the values are numeric constants. It is possible for a single bit in the MASK-EXPRESSION to control more than one ITEM — if the bit is set, all listed ITEMs are present. It is also possible for multiple bits in the MASK-EXPRESSION to control a single ITEM — if any of the bits associated with an ITEM are set, it is present in the LISTofITEMs. The size of a LISTofITEMS is derived from the items that are present in the list, so it is always given as a variable in the request description, and the request is followed by a section of the form: ITEMs encode-form ... encode-form listing an encode-form for each ITEM. The NAME in each encode-form keys to the fields listed as corresponding to each bit in the MASK-EXPRESSION. Items are not necessarily the same size, and the size specified in the encoding form is the size that the item occupies if it is present. Some types are of variable size. The encode-form for a list of items of a single type but variable size is: S0+..Ss LISTofTYPE name Which indicates that the list has s elements of variable size and that the size of the list is the sum of the sizes of all of the elements that make up the list. The notation Sn refers to the size of the n th element of the list and the notation S* refers to the size of the list as a whole. The definition of a type of variable size includes an expression which specifies the size. The size is specified as a constant plus a variable expression; the constant specifies the size of the fields that are always present and the variables which make up the variable expression are defined in the constant portion of the structure. For example, the following definition specifies a counted string with a two-byte length field preceding the string: TYPE 2+n+p 2 n length n STRING8 string p unused,p=pad(n) Some fields are optional. The size of an optional field has the form: "[ expr ]" where expr specifies the size of the field if it is present. An explanation of the conditions under which the field is present follows the name in the encode form: 1 BOOL more 3 unused [4] CARD32 optData, if more==TRUE This portion of the structure is four bytes long if more is FALSE or eight bytes long if more is TRUE. This notation can also be used in size expressions; for example, the size of the previous structure is written as "4+[4]" bytes. Common Types SETofKB_EVENTTYPE #x0001 XkbNewKeyboardNotify #x0002 XkbMapNotify #x0004 XkbStateNotify #x0008 XkbControlsNotify #x0010 XkbIndicatorStateNotify #x0020 XkbIndicatorMapNotify #x0040 XkbNamesNotify #x0080 XkbCompatMapNotify #x0100 XkbBellNotify #x0200 XkbActionMessage #x0400 XkbAccessXNotify #x0800 XkbExtensionDeviceNotify SETofKB_NKNDETAIL #x01 XkbNKN_Keycodes #x02 XkbNKN_Geometry #x04 XkbNKN_DeviceID SETofKB_AXNDETAIL #x01 XkbAXN_SKPress #x02 XkbAXN_SKAccept #x04 XkbAXN_SKReject #x08 XkbAXN_SKRelease #x10 XkbAXN_BKAccept #x20 XkbAXN_BKReject #x40 XkbAXN_AXKWarning SETofKB_MAPPART #x0001 XkbKeyTypes #x0002 XkbKeySyms #x0004 XkbModifierMap #x0008 XkbExplicitComponents #x0010 XkbKeyActions #x0020 XkbKeyBehaviors #x0040 XkbVirtualMods #x0080 XkbVirtualModMap SETofKB_STATEPART #x0001 XkbModifierState #x0002 XkbModifierBase #x0004 XkbModifierLatch #x0008 XkbModifierLock #x0010 XkbGroupState #x0020 XkbGroupBase #x0040 XkbGroupLatch #x0080 XkbGroupLock #x0100 XkbCompatState #x0200 XkbGrabMods #x0400 XkbCompatGrabMods #x0800 XkbLookupMods #x1000 XkbCompatLookupMods #x2000 XkbPointerButtons SETofKB_BOOLCTRL #x00000001 XkbRepeatKeys #x00000002 XkbSlowKeys #x00000004 XkbBounceKeys #x00000008 XkbStickyKeys #x00000010 XkbMouseKeys #x00000020 XkbMouseKeysAccel #x00000040 XkbAccessXKeys #x00000080 XkbAccessXTimeoutMask #x00000100 XkbAccessXFeedbackMask #x00000200 XkbAudibleBellMask #x00000400 XkbOverlay1Mask #x00000800 XkbOverlay2Mask #x00001000 XkbIgnoreGroupLockMask SETofKB_CONTROL Encodings are the same as for SETofKB_BOOLCTRL, with the addition of: #x080000000 XkbGroupsWrap #x100000000 XkbInternalMods #x200000000 XkbIgnoreLockMods #x400000000 XkbPerKeyRepeat #x800000000 XkbControlsEnabled SETofKB_AXFBOPT #x0001 XkbAX_SKPressFB #x0002 XkbAX_SKAcceptFB #x0004 XkbAX_FeatureFB #x0008 XkbAX_SlowWarnFB #x0010 XkbAX_IndicatorFB #x0020 XkbAX_StickyKeysFB #x0100 XkbAX_SKReleaseFB #x0200 XkbAX_SKRejectFB #x0400 XkbAX_BKRejectFB #x0800 XkbAX_DumbBell SETofKB_AXSKOPT #x0040 XkbAX_TwoKeys #x0080 XkbAX_LatchToLock SETofKB_AXOPTION Encoding same as the bitwise union of : SETofKB_AXFBOPT SETofKB_AXSKOPT KB_DEVICESPEC 0..255 input extension device id #x100 XkbUseCoreKbd #x200 XkbUseCorePtr KB_LEDCLASSRESULT 0 KbdFeedbackClass 4 LedFeedbackClass KB_LEDCLASSSPEC Encoding same as KB_LEDCLASSRESULT, with the addition of: #x0300 XkbDfltXIClass #x0500 XkbAllXIClasses KB_BELLCLASSRESULT 0 KbdFeedbackClass 5 BellFeedbackClass KB_BELLCLASSSPEC Encoding same as KB_BELLCLASSRESULT, with the addition of: #x0300 XkbDfltXIClass KB_IDSPEC 0..255 input extension feedback id #x0400 XkbDfltXIId KB_IDRESULT Encoding same as KB_IDSPEC, with the addition of: #xff00 XkbXINone KB_MULTIIDSPEC encodings same as KB_IDSPEC, with the addition of: #x0500 XkbAllXIIds KB_GROUP 0 XkbGroup1 1 XkbGroup2 2 XkbGroup3 3 XkbGroup4 KB_GROUPS Encoding same as KB_GROUP, with the addition of: 254 XkbAnyGroup 255 XkbAllGroups SETofKB_GROUP #x01 XkbGroup1 #x02 XkbGroup2 #x04 XkbGroup3 #x08 XkbGroup4 SETofKB_GROUPS Encoding same as SETofKB_GROUP, with the addition of: #x80 XkbAnyGroup KB_GROUPSWRAP #x00 XkbWrapIntoRange #x40 XkbClampIntoRange #x80 XkbRedirectIntoRange SETofKB_VMODSHIGH #x80 virtual modifier 15 #x40 virtual modifier 14 #x20 virtual modifier 13 #x10 virtual modifier 12 #x08 virtual modifier 11 #x04 virtual modifier 10 #x02 virtual modifier 9 #x01 virtual modifier 8 SETofKB_VMODSLOW #x80 virtual modifier 7 #x40 virtual modifier 6 #x20 virtual modifier 5 #x10 virtual modifier 4 #x08 virtual modifier 3 #x04 virtual modifier 2 #x02 virtual modifier 1 #x01 virtual modifier 0 SETofKB_VMOD #x8000 virtual modifier 15 #x4000 virtual modifier 14 #x2000 virtual modifier 13 #x1000 virtual modifier 12 #x0800 virtual modifier 11 #x0400 virtual modifier 10 #x0200 virtual modifier 9 #x0100 virtual modifier 8 #x0080 virtual modifier 7 #x0040 virtual modifier 6 #x0020 virtual modifier 5 #x0010 virtual modifier 4 #x0008 virtual modifier 3 #x0004 virtual modifier 2 #x0002 virtual modifier 1 #x0001 virtual modifier 0 SETofKB_EXPLICIT #x80 XkbExplicitVModMap #x40 XkbExplicitBehavior #x20 XkbExplicitAutoRepeat #x10 XkbExplicitInterpret #x08 XkbExplicitKeyType4 #x04 XkbExplicitKeyType3 #x02 XkbExplicitKeyType2 #x01 XkbExplicitKeyType1 KB_SYMINTERPMATCH #x80 XkbSI_LevelOneOnly #x7f operation, one of the following: 0 XkbSI_NoneOf 1 XkbSI_AnyOfOrNone 2 XkbSI_AnyOf 3 XkbSI_AllOf 4 XkbSI_Exactly SETofKB_IMFLAG #x80 XkbIM_NoExplicit #x40 XkbIM_NoAutomatic #x20 XkbIM_LEDDrivesKB SETofKB_IMMODSWHICH #x10 XkbIM_UseCompat #x08 XkbIM_UseEffective #x04 XkbIM_UseLocked #x02 XkbIM_UseLatched #x01 XkbIM_UseBase SETofKB_IMGROUPSWHICH #x10 XkbIM_UseCompat #x08 XkbIM_UseEffective #x04 XkbIM_UseLocked #x02 XkbIM_UseLatched #x01 XkbIM_UseBase KB_INDICATORMAP 1 SETofKB_IMFLAGS flags 1 SETofKB_IMGROUPSWHICH whichGroups 1 SETofKB_GROUP groups 1 SETofKB_IMMODSWHICH whichMods 1 SETofKEYMASK mods 1 SETofKEYMASK realMods 2 SETofKB_VMOD vmods 4 SETofKB_BOOLCTRL ctrls SETofKB_CMDETAIL #x01 XkbSymInterp #x02 XkbGroupCompat SETofKB_NAMEDETAIL #x0001 XkbKeycodesName #x0002 XkbGeometryName #x0004 XkbSymbolsName #x0008 XkbPhysSymbolsName #x0010 XkbTypesName #x0020 XkbCompatName #x0040 XkbKeyTypeNames #x0080 XkbKTLevelNames #x0100 XkbIndicatorNames #x0200 XkbKeyNames #x0400 XkbKeyAliases #x0800 XkbVirtualModNames #x1000 XkbGroupNames #x2000 XkbRGNames SETofKB_GBNDETAIL #x01 XkbGBN_Types #x02 XkbGBN_CompatMap #x04 XkbGBN_ClientSymbols #x08 XkbGBN_ServerSymbols #x10 XkbGBN_IndicatorMaps #x20 XkbGBN_KeyNames #x40 XkbGBN_Geometry #x80 XkbGBN_OtherNames SETofKB_XIEXTDEVFEATURE #x02 XkbXI_ButtonActions #x04 XkbXI_IndicatorNames #x08 XkbXI_IndicatorMaps #x10 XkbXI_IndicatorState SETofKB_XIFEATURE Encoding same as SETofKB_XIEXTDEVFEATURE, with the addition of: #x01 XkbXI_Keyboards SETofKB_XIDETAIL Encoding same as SETofKB_XIFEATURE, with the addition of: #x8000 XkbXI_UnsupportedFeature SETofKB_PERCLIENTFLAG #x01 XkbDetectableAutorepeat #x02 XkbGrabsUseXKBState #x04 XkbAutoResetControls #x08 XkbLookupStateWhenGrabbed #x10 XkbSendEventUsesXKBState KB_MODDEF 1 SETofKEYMASK mask 1 SETofKEYMASK realMods 2 SETofVMOD vmods KB_COUNTED_STRING8 1 l length l STRING8 string KB_COUNTED_STRING16 2 l length l STRING8 string KB_COUNTED_STRING16 p unused,p=pad(2+l) Errors 1 0 Error 2 ?? code 2 CARD16 sequence 4 CARD32 error value most significant 8 bits of error value have the meaning: 0xff XkbErrBadDevice 0xfe XkbErrBadClass 0xfd XkbErrBadId the least significant 8 bits of the error value contain the device id, class, or feedback id which failed. 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Key Actions 1 0 type 7 unused 1 1 type 1 BITMASK flags #x01 XkbSA_ClearLocks #x02 XkbSA_LatchToLock #x04 XkbSA_UseModMapMods 1 SETofKEYMASK mask 1 SETofKEYMASK real modifiers 1 SETofKB_VMODSHIGH virtual modifiers high 1 SETofKB_VMODSLOW virtual modifiers low 2 unused 1 2 type 1 BITMASK flags #x01 XkbSA_ClearLocks #x02 XkbSA_LatchToLock #x04 XkbSA_UseModMapMods 1 SETofKEYMASK mask 1 SETofKEYMASK real modifiers 1 SETofKB_VMODSHIGH virtual modifiers high 1 SETofKB_VMODSLOW virtual modifiers low 2 unused 1 3 type 1 BITMASK flags #x01 XkbSA_LockNoLock #x02 XkbSA_LockNoUnlock #x04 XkbSA_UseModMapMods 1 SETofKEYMASK mask 1 SETofKEYMASK real modifiers 1 SETofKB_VMODSHIGH virtual modifiers high 1 SETofKB_VMODSLOW virtual modifiers low 2 unused 1 4 type 1 BITMASK flags #x01 XkbSA_ClearLocks #x02 XkbSA_LatchToLock #x04 XkbSA_GroupAbsolute 1 INT8 group 5 unused 1 5 type 1 BITMASK flags #x01 XkbSA_ClearLocks #x02 XkbSA_LatchToLock #x04 XkbSA_GroupAbsolute 1 INT8 group 5 unused 1 6 type 1 BITMASK flags #x01 XkbSA_LockNoLock #x02 XkbSA_LockNoUnlock #x04 XkbSA_GroupAbsolute 1 INT8 group 5 unused 1 7 type 1 BITMASK flags #x01 XkbSA_NoAcceleration #x02 XkbSA_MoveAbsoluteX #x04 XkbSA_MoveAbsoluteY 1 INT8 x high 1 CARD8 x low 1 INT8 y high 1 CARD8 y low 2 unused 1 8 type 1 BITMASK flags 1 CARD8 count 1 CARD8 button 4 unused 1 9 type 1 BITMASK flags 1 unused 1 CARD8 button 4 unused 1 10 type 1 BITMASK flags #x04 XkbSA_DfltBtnAbsolute 1 BITMASK affect #x01 XkbSA_AffectDfltBtn 1 INT8 value 4 unused 1 11 type 1 BITMASK flags #x01 XkbSA_LockNoLock #x02 XkbSA_LockNoUnlock #x04 XkbSA_UseModMapMods (if SA_ISODfltIsGroup is 0) #x04 XkbSA_GroupAbsolute (if SA_ISODfltIsGroup is 1) #x80 XkbSA_ISODfltIsGroup 1 SETofKEYMASK mask 1 SETofKEYMASK real modifiers 1 INT8 group 1 BITMASK affect #x08 XkbSA_ISONoAffectCtrls #x10 XkbSA_ISONoAffectPtr #x20 XkbSA_ISONoAffectGroup #x40 XkbSA_ISONoAffectMods 1 SETofKB_VMODSHIGH virtual modifiers high 1 SETofKB_VMODSLOW virtual modifiers low 1 12 type 7 unused 1 13 type 1 BITMASK flags #x01 XkbSA_SwitchApplication #x04 XkbSA_SwitchAbsolute 1 INT8 new screen 5 unused (must be 0) 1 14 type 3 unused (must be 0) 1 BITMASK boolean controls high #x01 XkbAccessXFeedbackMask #x02 XkbAudibleBellMask #x04 XkbOverlay1Mask #x08 XkbOverlay2Mask #x10 XkbIgnoreGroupLockMask 1 BITMASK boolean controls low #x01 XkbRepeatKeys #x02 XkbSlowKeys #x04 XkbBounceKeys #x08 XkbStickyKeys #x10 XkbMouseKeys #x20 XkbMouseKeysAccel #x40 XkbAccessXKeys #x80 XkbAccessXTimeoutMask 2 unused (must be 0) 1 15 type 3 unused (must be 0) 1 BITMASK boolean controls high #x01 XkbAccessXFeedbackMask #x02 XkbAudibleBellMask #x04 XkbOverlay1Mask #x08 XkbOverlay2Mask #x10 XkbIgnoreGroupLockMask 1 BITMASK boolean controls low #x01 XkbRepeatKeys #x02 XkbSlowKeys #x04 XkbBounceKeys #x08 XkbStickyKeys #x10 XkbMouseKeys #x20 XkbMouseKeysAccel #x40 XkbAccessXKeys #x80 XkbAccessXTimeoutMask 1 16 type 2 unused (must be 0) 1 16 type 1 BITMASK flags #x01 XkbSA_MessageOnPress #x02 XkbSA_MessageOnRelease #x04 XkbSA_MessageGenKeyEvent 6 STRING message 1 17 type 1 KEYCODE new key 1 SETofKEYMASK mask 1 SETofKEYMASK real modifiers 1 SETofKB_VMODSHIGH virtual modifiers mask high 1 SETofKB_VMODSLOW virtual modifiers mask low 1 SETofKB_VMODSHIGH virtual modifiers high 1 SETofKB_VMODSLOW virtual modifiers low 1 18 type 1 0 flags 1 CARD8 count 1 CARD8 button 1 CARD8 device 3 unused (must be 0) 1 19 type 1 BITMASK flags #x01 XkbSA_LockNoLock #x02 XkbSA_LockNoUnlock 1 unused 1 CARD8 button 1 CARD8 device 1 20 type 1 CARD8 device 1 KB_SA_VALWHAT valuator 1 what #x00 XkbSA_IgnoreVal #x01 XkbSA_SetValMin #x02 XkbSA_SetValCenter #x03 XkbSA_SetValMax #x04 XkbSA_SetValRelative #x05 XkbSA_SetValAbsolute 1 CARD8 valuator 1 index 1 CARD8 valuator 1 value 1 KB_SA_VALWHAT valuator 2 what Encodings as for "valuator 1 what" above 1 CARD8 valuator 2 index 1 CARD8 valuator 2 value Key Behaviors 1 #x00 type 1 unused 1 #x01 type 1 unused 1 #x02 type 1 0..31 group 1 #x03 type 1 KEYCODE key 1 #x04 type 1 CARD8 key 1 #x81 type 1 unused 1 #x82 type 1 0..31 group 1 #x83 type 1 KEYCODE key 1 #x84 type 1 KEYCODE key Requests 1 ?? opcode 1 0 xkb-opcode 2 2 request-length 2 CARD16 wantedMajor 2 CARD16 wantedMinor 1 1 Reply 1 BOOL supported 2 CARD16 sequence number 4 0 reply length 2 1 serverMajor 2 0 serverMinor 20 unused 1 ?? opcode 1 1 xkb-opcode 2 4+(V+p)/4 request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_EVENTTYPE affectWhich 2 SETofKB_EVENTTYPE clear 2 SETofKB_EVENTTYPE selectAll 2 SETofKB_MAPDETAILS affectMap 2 SETofKB_MAPDETAILS map V LISTofITEMs details SETofKB_EVENTTYPE (affectWhich&(~clear)&(~selectAll)) XkbNewKeyboardNotify affectNewKeyboard, newKeyboardDetails XkbStateNotify affectState, stateDetails XkbControlsNotify affectCtrls, ctrlDetails XkbIndicatorStateNotify affectIndicatorState, indicatorStateDetails XkbIndicatorMapNotify affectIndicatorMap, indicatorMapDetails XkbNamesNotify affectNames, namesDetails XkbCompatMapNotify affectCompat, compatDetails XkbBellNotify affectBell, bellDetails XkbActionMessage affectMsgDetails, msgDetails XkbExtensionDeviceNotify affectExtDev, extdevDetails ITEMs p unused, p=pad(V) ITEMs 2 SETofKB_NKNDETAIL affectNewKeyboard 2 SETofKB_NKNDETAIL newKeyboardDetails 2 SETofKB_STATEPART affectState 2 SETofKB_STATEPART stateDetails 4 SETofKB_CONTROL affectCtrls 4 SETofKB_CONTROL ctrlDetails 4 SETofKB_INDICATOR affectIndicatorState 4 SETofKB_INDICATOR indicatorStateDetails 4 SETofKB_INDICATOR affectIndicatorMaps 4 SETofKB_INDICATOR indicatorMapDetails 2 SETofKB_NAME_DETAIL affectNames 2 SETofKB_NAME_DETAIL namesDetails 1 SETofKB_CMDETAIL affectCompat 1 SETofKB_CMDETAIL compatDetails 1 SETofKB_BELLDETAIL affectBell 1 SETofKB_BELLDETAIL bellDetails 1 SETofKB_MSGDETAIL affectMsgDetails 1 SETofKB_MSGDETAIL msgDetails 2 SETofKB_AXNDETAIL affectAccessX 2 SETofKB_AXNDETAIL accessXDetails 2 SETofKB_XIDETAIL affectExtDev 2 SETofKB_XIDETAIL extdevDetails 1 ?? opcode 1 3 xkb-opcode 2 7 request-length 2 KB_DEVICESPEC deviceSpec 2 KB_BELLCLASSSPEC bellClass 2 KB_IDSPEC bellID 1 INT8 percent 1 BOOL forceSound 1 BOOL eventOnly 1 unused 2 INT16 pitch 2 INT16 duration 2 unused 4 ATOM name 4 WINDOW window 1 ?? opcode 1 4 xkb-opcode 2 2 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 0 length 1 SETofKEYMASK mods 1 SETofKEYMASK baseMods 1 SETofKEYMASK latchedMods 1 SETofKEYMASK lockedMods 1 KP_GROUP group 1 KP_GROUP lockedGroup 2 INT16 baseGroup 2 INT16 latchedGroup 1 SETofKEYMASK compatState 1 SETofKEYMASK grabMods 1 SETofKEYMASK compatGrabMods 1 SETofKEYMASK lookupMods 1 SETofKEYMASK compatLookupMods 1 unused 2 SETofBUTMASK ptrBtnState 6 unused 1 ?? opcode 1 5 xkb-opcode 2 4 request-length 2 KB_DEVICESPEC deviceSpec 1 SETofKEYMASK affectModLocks 1 SETofKEYMASK modLocks 1 BOOL lockGroup 1 KB_GROUP groupLock 1 SETofKEYMASK affectModLatches 1 SETofKEYMASK modLatches 1 unused 1 BOOL latchGroup 2 INT16 groupLatch 1 ?? opcode 1 6 xkb-opcode 2 2 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 15 length 1 CARD8 mouseKeysDfltBtn 1 CARD8 numGroups 1 CARD8 groupsWrap 1 SETofKEYMASK internalMods.mask 1 SETofKEYMASK ignoreLockMods.mask 1 SETofKEYMASK internalMods.realMods 1 SETofKEYMASK ignoreLockMods.realMods 1 unused 2 SETofKB_VMOD internalMods.vmods 2 SETofKB_VMOD ignoreLockMods.vmods 2 CARD16 repeatDelay 2 CARD16 repeatInterval 2 CARD16 slowKeysDelay 2 CARD16 debounceDelay 2 CARD16 mouseKeysDelay 2 CARD16 mouseKeysInterval 2 CARD16 mouseKeysTimeToMax 2 CARD16 mouseKeysMaxSpeed 2 INT16 mouseKeysCurve 2 SETofKB_AXOPTION accessXOptions 2 CARD16 accessXTimeout 2 SETofKB_AXOPTION accessXTimeoutOptionsMask 2 SETofKB_AXOPTION accessXTimeoutOptionValues 2 unused 4 SETofKB_BOOLCTRL accessXTimeoutMask 4 SETofKB_BOOLCTRL accessXTimeoutValues 4 SETofKB_BOOLCTRL enabledControls 32 LISTofCARD8 perKeyRepeat 1 ?? opcode 1 7 xkb-opcode 2 25 request-length 2 KB_DEVICESPEC deviceSpec 1 SETofKEYMASK affectInternalRealMods 1 SETofKEYMASK internalRealMods 1 SETofKEYMASK affectIgnoreLockRealMods 1 SETofKEYMASK ignoreLockRealMods 2 SETofKB_VMOD affectInternalVirtualMods 2 SETofKB_VMOD internalVirtualMods 2 SETofKB_VMOD affectIgnoreLockVirtualMods 2 SETofKB_VMOD ignoreLockVirtualMods 1 CARD8 mouseKeysDfltBtn 1 CARD8 groupsWrap 2 SETofKB_AXOPTION accessXOptions 2 unused 4 SETofKB_BOOLCTRL affectEnabledControls 4 SETofKB_BOOLCTRL enabledControls 4 SETofKB_CONTROL changeControls 2 CARD16 repeatDelay 2 CARD16 repeatInterval 2 CARD16 slowKeysDelay 2 CARD16 debounceDelay 2 CARD16 mouseKeysDelay 2 CARD16 mouseKeysInterval 2 CARD16 mouseKeysTimeToMax 2 CARD16 mouseKeysMaxSpeed 2 INT16 mouseKeysCurve 2 CARD16 accessXTimeout 4 SETofKB_BOOLCTRL accessXTimeoutMask 4 SETofKB_BOOLCTRL accessXTimeoutValues 2 SETofKB_AXOPTION accessXTimeoutOptionsMask 2 SETofKB_AXOPTION accessXTimeoutOptionsValues 32 LISTofCARD8 perKeyRepeat 1 CARD8 opcode 1 8 xkb-opcode 2 7 request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_MAPPART full 2 SETofKB_MAPPART partial 1 CARD8 firstType 1 CARD8 nTypes 1 KEYCODE firstKeySym 1 CARD8 nKeySyms 1 KEYCODE firstKeyAction 1 CARD8 nKeyActions 1 KEYCODE firstKeyBehavior 1 CARD8 nKeyBehaviors 2 SETofKB_VMOD virtualMods 1 KEYCODE firstKeyExplicit 1 CARD8 nKeyExplicit 1 KEYCODE firstModMapKey 1 CARD8 nModMapKeys 1 KEYCODE firstVModMapKey 1 CARD8 nVModMapKeys 2 unused 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 2+(I/4) length 2 unused 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 2 SETofKB_MAPPART present 1 CARD8 firstType 1 t nTypes 1 CARD8 totalTypes 1 KEYCODE firstKeySym 2 S totalSyms 1 s nKeySyms 1 KEYCODE firstKeyAction 2 A totalActions 1 a nKeyActions 1 KEYCODE firstKeyBehavior 1 b nKeyBehaviors 1 B totalKeyBehaviors 1 KEYCODE firstKeyExplicit 1 e nKeyExplicit 1 E totalKeyExplicit 1 KEYCODE firstModMapKey 1 m nModMapKeys 1 M totalModMapKeys 1 KEYCODE firstVModMapKey 1 0 nVModMapKeys 1 V totalVModMapKeys 1 unused 2 SETofKB_VMOD virtualMods (has v bits set to 1) I LISTofITEMs map SETofKB_MAPPART (present) XkbKeyTypes typesRtrn XkbKeySyms symsRtrn XkbKeyActions actsRtrn.count, actsRtrn.acts XkbKeyBehaviors behaviorsRtrn XkbVirtualMods vmodsRtrn XkbExplicitComponents explicitRtrn XkbModifierMap modmapRtrn XkbVirtualModMap vmodMapRtrn ITEMs T1+..Tt LISTofKB_KEYTYPE typesRtrn 8s+4S LISTofKB_KEYSYMMAP symsRtrn a LISTofCARD8 actsRtrn.count p unused,p=pad(a) 8A LISTofKB_ACTION actsRtrn.acts 4B LISTofKB_SETBEHAVIOR behaviorsRtrn v LISTofSETofKEYMASK vmodsRtrn p unused, p=pad(v) 2E LISTofKB_SETEXPLICIT explicitRtrn p unused,p=pad(2E) 2M LISTofKB_KEYMODMAP modmapRtrn p unused, p=pad(2M) 4V LISTofKB_KEYVMODMAP vmodMapRtrn KB_KEYTYPE 8+8m+[4m] 1 SETofKEYMASK mods.mask 1 SETofKEYMASK mods.mods 2 SETofKB_VMOD mods.vmods 1 CARD8 numLevels 1 m nMapEntries 1 BOOL hasPreserve 1 unused 8m LISTofKB_KTMAPENTRY map [4m] LISTofKB_MODDEF preserve KB_KTMAPENTRY 1 BOOL active 1 SETofKEYMASK mods.mask 1 CARD8 level 1 SETofKEYMASK mods.mods 2 SETofKB_VMOD mods.vmods 2 unused KB_KEYSYMMAP 8+4n 4 LISTofCARD8 ktIndex 1 CARD8 groupInfo 1 CARD8 width 2 n nSyms 4n LISTofKEYSYM syms KB_SETBEHAVIOR 1 KEYCODE keycode 2 KB_BEHAVIOR behavior 1 unused KB_SETEXPLICIT 1 KEYCODE keycode 1 SETofKB_EXPLICIT explicit KB_KEYMODMAP 1 KEYCODE keycode 1 SETofKB_KEYMASK mods KB_KEYVMODMAP 1 KEYCODE keycode 1 unused 2 SETofKB_VMOD vmods 1 CARD8 opcode 1 9 xkb-opcode 2 9+(I/4) request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_MAPPART present 2 SETofKB_SETMAPFLAGS flags #0001 SetMapResizeTypes #0002 SetMapRecomputeActions 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 1 CARD8 firstType 1 t nTypes 1 KEYCODE firstKeySym 1 s nKeySyms 2 S totalSyms 1 KEYCODE firstKeyAction 1 a nKeyActions 2 A totalActions 1 KEYCODE firstKeyBehavior 1 b nKeyBehaviors 1 B totalKeyBehaviors 1 KEYCODE firstKeyExplicit 1 e nKeyExplicit 1 E totalKeyExplicit 1 KEYCODE firstModMapKey 1 m nModMapKeys 1 M totalModMapKeys 1 KEYCODE firstVModMapKey 1 v nVModMapKeys 1 V totalVModMapKeys 2 SETofKB_VMOD virtualMods (has n bits set to 1) I LISTofITEMs values SETofKB_MAPPART (present) XkbKeyTypes types XkbKeySymbols syms XkbKeyActions actions.count,actions.actions XkbKeyBehaviors behaviors XkbVirtualMods vmods XkbExplicitComponents explicit XkbModifierMap modmap XkbVirtualModMap vmodmap ITEMs T0+..Tt LISTofKB_SETKEYTYPE types 8s+4S LISTofKB_KEYSYMMAP syms a LISTofCARD8 actions.count p unused,p=pad(a) 8A LISTofKB_ACTION actions.actions 4B LISTofKB_SETBEHAVIOR behaviors v LISTofSETofKEYMASK vmods p unused, p=pad(v) 2E LISTofKB_SETEXPLICIT explicit p unused,p=pad(2E) 2M LISTofKB_KEYMODMAP modmap P unused, p=pad(2M) 4V LISTofKB_KEYVMODMAP vmodmap KB_SETKEYTYPE 8+4m+[4m] 1 SETofKEYMASK mask 1 SETofKEYMASK realMods 2 SETofKB_VMOD virtualMods 1 CARD8 numLevels 1 m nMapEntries 1 BOOL preserve 1 unused 4m LISTofKB_KTSETMAPENTRY entries [4m] LISTofKB_MODDEF preserveEntries (if preserve==TRUE) KB_KTSETMAPENTRY 1 CARD8 level 1 SETofKEYMASK realMods 2 SETofKB_VMOD virtualMods 1 ?? opcode 1 10 xkb-opcode 2 3 request-length 2 KB_DEVICESPEC deviceSpec 1 SETofKB_GROUP groups 1 BOOL getAllSI 2 CARD16 firstSI 2 CARD16 nSI 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 (16n+4g)/4 length 1 SETofKB_GROUP groupsRtrn (has g bits set to 1) 1 unused 2 CARD16 firstSIRtrn 2 n nSIRtrn 2 CARD16 nTotalSI 16 unused 16n LISTofKB_SYMINTERPRET siRtrn 4g LISTofKB_MODDEF groupRtrn 1 ?? opcode 1 11 xkb-opcode 2 4+(16n+4g) request-length 2 KB_DEVICESPEC deviceSpec 1 unused 1 BOOL recomputeActions 1 BOOL truncateSI 1 SETofKB_GROUP groups (has g bits set to 1) 2 CARD16 firstSI 2 n nSI 2 unused 16n LISTofKB_SYMINTERPRET si 4g LISTofKB_MODDEF groupMaps 1 ?? opcode 1 12 xkb-opcode 2 2 request-length 2 KB_DEVICESPEC deviceSpec ITEMs 2 unused 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 0 length 4 SETofKB_INDICATOR state 20 unused 1 ?? opcode 1 13 xkb-opcode 2 3 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 4 SETofKB_INDICATOR which 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 12n/4 length 4 SETofKB_INDICATOR which (has n bits set to 1) 4 SETofKB_INDICATOR realIndicators 1 n nIndicators 15 unused 12n LISTofKB_INDICATORMAP maps 1 ?? opcode 1 14 xkb-opcode 2 3+3n request-length 2 KB_DEVICESPEC deviceSpec 2 unused 4 SETofKB_INDICATOR which (has n bits set to 1) 12n LISTofKB_INDICATORMAP maps 1 CARD8 opcode 1 15 xkb-opcode 2 4 request-length 2 KB_DEVICESPEC deviceSpec 2 KB_LEDCLASSSPEC ledClass 2 KB_IDSPEC ledID 2 unused 4 ATOM indicator 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 0 length 4 ATOM indicator 1 BOOL found 1 BOOL on 1 BOOL realIndicator 1 KB_INDICATOR ndx 1 SETofKB_IMFLAGS map.flags 1 SETofKB_IMGROUPSWHICH map.whichGroups 1 SETofKB_GROUPS map.groups 1 SETofKB_IMMODSWHICH map.whichMods 1 SETofKEYMASK map.mods 1 SETofKEYMASK map.realMods 2 SETofKB_VMOD map.vmods 4 SETofKB_BOOLCTRL map.ctrls 1 BOOL supported 3 unused 1 ?? opcode 1 16 xkb-opcode 2 8 request-length 2 KB_DEVICESPEC deviceSpec 2 KB_LEDCLASSSPEC ledClass 2 KB_IDSPEC ledID 2 unused 4 ATOM indicator 1 BOOL setState 1 BOOL on 1 BOOL setMap 1 BOOL createMap 1 unused 1 SETofKB_IMFLAGS map.flags 1 SETofKB_IMGROUPSWHICH map.whichGroups 1 SETofKB_GROUP map.groups 1 SETofKB_IMMODSWHICH map.whichMods 1 SETofKEYMASK map.realMods 2 SETofKB_VMOD map.vmods 4 SETofKB_BOOLCTRL map.ctrls 1 CARD8 opcode 1 17 xkb-opcode 2 3 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 4 SETofKB_NAMEDETAIL which 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 V/4 length 4 SETofKB_NAMEDETAIL which 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 1 t nTypes 1 SETofKB_GROUP groupNames (has g bits set to 1) 2 SETofKB_VMOD virtualMods (has v bits set to 1) 1 KEYCODE firstKey 1 k nKeys 4 SETofKB_INDICATOR indicators (has i bits set to 1) 1 r nRadioGroups 1 a nKeyAliases 2 l nKTLevels 4 unused V LISTofITEMs valueList SETofKB_NAMEDETAIL (which) XkbKeycodesName keycodesName XkbGeometryName geometryName XkbSymbolsName symbolsName XkbPhySymbolsName physSymbolsName XkbTypesName typesName XkbCompatName compatName XkbKeyTypeNames typeNames XkbKTLevelNames nLevelsPerType, ktLevelNames XkbIndicatorNames indicatorNames XkbVirtualModNames virtualModNames XkbGroupNames groupNames XkbKeyNames keyNames XkbKeyAliases keyAliases XkbRGNames radioGroupNames ITEMs 4 ATOM keycodesName 4 ATOM geometryName 4 ATOM symbolsName 4 ATOM physSymbolsName 4 ATOM typesName 4 ATOM compatName 4t LISTofATOM typeNames l LISTofCARD8 nLevelsPerType, sum of all elements=L p unused, p=pad(l) 4L LISTofATOM ktLevelNames 4i LISTofATOM indicatorNames 4v LISTofATOM virtualModNames 4g LISTofATOM groupNames 4k LISTofKB_KEYNAME keyNames 8a LISTofKB_KEYALIAS keyAliases 4r LISTofATOM radioGroupNames 1 CARD8 opcode 1 18 xkb-opcode 2 7+(V/4) request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_VMOD virtualMods 4 SETofKB_NAMEDETAIL which 1 CARD8 firstType 1 t nTypes 1 CARD8 firstKTLevel 1 l nKTLevels 4 SETofKB_INDICATOR indicators (has i bits set to 1) 1 SETofKB_GROUP groupNames (has g bits set to 1) 1 r nRadioGroups 1 KEYCODE firstKey 1 k nKeys 1 a nKeyAliases 1 unused 2 L totalKTLevelNames V LISTofITEMs values SETofKB_NAMEDETAIL (which) XkbKeycodesName keycodesName XkbGeometryName geometryName XkbSymbolsName symbolsName XkbPhySymbolsName physSymbolsName XkbTypesName typesName XkbCompatName compatName XkbKeyTypeNames typeNames XkbKTLevelNames nLevelsPerType, ktLevelNames XkbIndicatorNames indicatorNames XkbVirtualModNames virtualModNames XkbGroupNames groupNames XkbKeyNames keyNames XkbKeyAliases keyAliases XkbRGNames radioGroupNames ITEMs 4 ATOM keycodesName 4 ATOM geometryName 4 ATOM symbolsName 4 ATOM physSymbolsName 4 ATOM typesName 4 ATOM compatName 4t LISTofATOM typeNames l LISTofCARD8 nLevelsPerType p unused, p=pad(l) 4L LISTofATOM ktLevelNames 4i LISTofATOM indicatorNames 4v LISTofATOM virtualModNames 4g LISTofATOM groupNames 4k LISTofKB_KEYNAME keyNames 8a LISTofKB_KEYALIAS keyAliases 4r LISTofATOM radioGroupNames 1 CARD8 opcode 1 19 xkb-opcode 2 3 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 4 ATOM name 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 (f+8p+C*+H*+S*+D*+A*)/4 length 4 ATOM name 1 BOOL found 1 unused 2 CARD16 widthMM 2 CARD16 heightMM 2 p nProperties 2 c nColors 2 h nShapes 2 s nSections 2 d nDoodads 2 a nKeyAliases 1 CARD8 baseColorNdx 1 CARD8 labelColorNdx f KB_COUNTED_STRING16 labelFont 8p LISTofKB_PROPERTY properties C0+..Cc LISTofKB_COUNTED_STRING16 colors H0+..Hh LISTofKB_SHAPE shapes S0+..Ss LISTofKB_SECTION sections D0+..Dd LISTofKB_DOODAD doodads A0+..Aa LISTofKB_KEYALIAS keyAliases KB_PROPERTY 4+n+v 2 n nameLength n STRING8 name 2 v valueLength v STRING8 value KB_SHAPE 8+O* 4 ATOM name 1 o nOutlines 1 CARD8 primaryNdx 1 CARD8 approxNdx 1 unused O0+..Oo LISTofKB_OUTLINE outlines KB_OUTLINE 4+4p 1 p nPoints 1 CARD8 cornerRadius 2 unused 4p LISTofKB_POINT points KB_POINT 2 INT16 x 2 INT16 y KB_SECTION 20+R*+D*+O* 4 ATOM name 2 INT16 top 2 INT16 left 2 CARD16 width 2 CARD16 height 2 INT16 angle 1 CARD8 priority 1 r nRows 1 d nDoodads 1 o nOverlays 2 unused R0+..Rr LISTofKB_ROW rows D0+..Dd LISTofKB_DOODAD doodads O0+..Oo LISTofKB_OVERLAY overlays KB_ROW 8+8k 2 INT16 top 2 INT16 left 1 k nKeys 1 BOOL vertical 2 unused 8k LISTofKB_KEY keys KB_KEY 4 STRING8 name 2 INT16 gap 1 CARD8 shapeNdx 1 CARD8 colorNdx KB_OVERLAY 8+R* 4 ATOM name 1 r nRows 3 unused R0+..Rr LISTofKB_OVERLAYROW rows KB_OVERLAYROW 4+8k 1 CARD8 rowUnder 1 k nKeys 2 unused 8k LISTofKB_OVERLAYKEY keys KB_OVERLAYKEY 4 STRING8 over 4 STRING8 under KB_SHAPEDOODAD 4 ATOM name 1 CARD8 type KB_SHAPEDOODAD #1 XkbOutlineDoodad #2 XkbSolidDoodad 1 CARD8 priority 2 INT16 top 2 INT16 left 2 INT16 angle 1 CARD8 colorNdx 1 CARD8 shapeNdx 6 unused KB_TEXTDOODAD 20+t+f 4 ATOM name 1 CARD8 type #3 XkbTextDoodad 1 CARD8 priority 2 INT16 top 2 INT16 left 2 INT16 angle 2 CARD16 width 2 CARD16 height 1 CARD8 colorNdx 3 unused t KB_COUNTED_STRING16 text f KB_COUNTED_STRING16 font KB_INDICATORDOODAD 4 ATOM name 1 CARD8 type #4 XkbIndicatorDoodad 1 CARD8 priority 2 INT16 top 2 INT16 left 2 INT16 angle 1 CARD8 shapeNdx 1 CARD8 onColorNdx 1 CARD8 offColorNdx 5 unused KB_LOGODOODAD 20+n 4 ATOM name 1 CARD8 type #5 XkbLogoDoodad 1 CARD8 priority 2 INT16 top 2 INT16 left 2 INT16 angle 1 CARD8 colorNdx 1 CARD8 shapeNdx 6 unused n KB_COUNTED_STRING16 logoName KB_DOODAD: KB_SHAPEDOODAD, or KB_TEXTDOODAD, or KB_INDICATORDOODAD, or KB_LOGODOODAD 1 CARD8 opcode 1 20 xkb-opcode 2 7+(f+8p+C*+H*+S*+D*+A*)/4 request-length 2 KB_DEVICESPEC deviceSpec 1 h nShapes 1 s nSections 4 ATOM name 2 CARD16 widthMM 2 CARD16 heightMM 2 p nProperties 2 c nColors 2 d nDoodads 2 a nKeyAliases 1 CARD8 baseColorNdx 1 CARD8 labelColorNdx 2 unused f KB_COUNTED_STRING16 labelFont 8p LISTofKB_PROPERTY properties C0+..Cc LISTofKB_COUNTED_STRING16 colors H0+..Hh LISTofKB_SHAPE shapes S0+..Ss LISTofKB_SECTION sections D0+..Dd LISTofKB_DOODAD doodads A0+..Aa LISTofKB_KEYALIAS keyAliases 1 CARD8 opcode 1 21 xkb-opcode 2 7 request-length 2 KB_DEVICESPEC deviceSpec 2 unused 4 SETofKB_PERCLIENTFLAG change 4 SETofKB_PERCLIENTFLAG value 4 SETofKB_BOOLCTRL ctrlsToChange 4 SETofKB_BOOLCTRL autoCtrls 4 SETofKB_BOOLCTRL autoCtrlValues 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 0 length 4 SETofKB_PERCLIENTFLAG supported 4 SETofKB_PERCLIENTFLAG value 4 SETofKB_BOOLCTRL autoCtrls 4 SETofKB_BOOLCTRL autoCtrlValues 8 unused 1 CARD8 opcode 1 22 xkb-opcode 2 2+(6+m+k+t+c+s+g+p)/4 request-length 2 KB_DEVICESPEC deviceSpec 2 CARD16 maxNames 1 m keymapsSpecLen m STRING keymapsSpec 1 k keycodesSpecLen k STRING keycodesSpec 1 t typesSpecLen t STRING typesSpec 1 c compatMapSpecLen c STRING compatMapSpec 1 s symbolsSpecLen s STRING symbolsSpec 1 g geometrySpecLen g STRING geometrySpec p unused,p=pad(6+m+k+t+c+s+g) 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 (M*+K*+T*+C*+S*+G*+p)/4 length 2 m nKeymaps 2 k nKeycodes 2 t nTypes 2 c nCompatMaps 2 s nSymbols 2 g nGeometries 2 CARD16 extra 10 unused M0+..Mm LISTofKB_LISTING keymaps K0+..Kk LISTofKB_LISTING keycodes T0+..Tt LISTofKB_LISTING types C0+..Cc LISTofKB_LISTING compatMaps S0+..Ss LISTofKB_LISTING symbols G0+..Gg LISTofKB_LISTING geometries p unused,p=pad(M*+K*+T*+C*+S*+G*) KB_LISTING 4+n+p 2 CARD16 flags 2 n length n STRING8 string p unused,p=pad(n) to a 2-byte boundary 1 CARD8 opcode 1 23 xkb-opcode 2 3+(6+m+k+t+c+s+g+p)/4 request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_GBNDETAILMASK need 2 SETofKB_GBNDETAILMASK want 1 BOOL load 1 unused 1 m keymapsSpecLen m STRING8 keymapsSpec 1 k keycodesSpecLen k STRING8 keycodesSpec 1 t typesSpecLen t STRING8 typesSpec 1 c compatMapSpecLen c STRING8 compatMapSpec 1 s symbolsSpecLen s STRING8 symbolsSpec 1 g geometrySpecLen g STRING8 geometrySpec p unused,p=pad(6+m+k+t+c+s+g) 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 V/4 length 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 1 BOOL loaded 1 BOOL newKeyboard 2 SETofKB_GBNDETAILMASK found 2 SETofKB_GBNDETAILMASK reported 16 unused V LISTofITEMs replies SETofKB_GBNDETAILMASK (reported) XkbGBN_Types map XkbGBN_CompatMap compat XkbGBN_ClientSymbols map XkbGBN_ServerSymbols map XkbGBN_IndicatorMap indicators XkbGBN_KeyNames names XkbGBN_OtherNames names XkbGBN_Geometry geometry ITEMs M XkbGetMap reply map C XkbGetCompatMap reply compat I XkbGetIndicatorMap reply indicators N XkbGetNames reply names G XkbGetGeometry reply geometry 1 CARD8 opcode 1 24 xkb-opcode 2 4 request-length 2 KB_DEVICESPEC deviceSpec 2 SETofKB_DEVFEATURE wanted 1 BOOL allButtons 1 CARD8 firstButton 1 CARD8 nButtons 1 unused 2 KB_LEDCLASSSPEC ledClass 2 KB_IDSPEC ledID 1 1 Reply 1 CARD8 deviceID 2 CARD16 sequence number 4 (2+n+p+8b+L*)/4 length 2 SETofKB_DEVFEATURE present 2 SETofKB_FEATURE supported 2 SETofKB_FEATURE unsupported 2 l nDeviceLedFBs 1 CARD8 firstBtnWanted 1 CARD8 nBtnsWanted 1 CARD8 firstBtnRtrn 1 b nBtnsRtrn 1 CARD8 totalBtns 1 BOOL hasOwnState 2 SETofKB_IDRESULT dfltKbdFB 2 SETofKB_IDRESULT dfltLedFB 2 unused 4 ATOM devType 2 n nameLen n STRING8 name p unused,p=pad(2+n) 8b LISTofKB_ACTION btnActions L0+..Ll LISTofKB_DEVICELEDINFO leds KB_DEVICELEDINFO 20+4n+12m 2 KB_LEDCLASSSPEC ledClass 2 KB_IDSPEC ledID 4 SETofKB_INDICATOR namesPresent (has n bits set to 1) 4 SETofKB_INDICATOR mapsPresent (has m bits set to 1) 4 SETofKB_INDICATOR physIndicators 4 SETofKB_INDICATOR state 4n LISTofATOM names 12m LISTofKB_INDICATORMAP maps 1 ?? opcode 1 25 xkb-opcode 2 3+(8b+L*)/4 request-length 2 KB_DEVICESPEC deviceSpec 1 CARD8 firstBtn 1 b nBtns 2 SETofKB_DEVFEATURE change 2 l nDeviceLedFBs 8b LISTofKB_ACTION btnActions L0+..Ll LISTofKB_DEVICELEDINFO leds Encoding of KB_DEVICELEDINFO is as for XkbGetDeviceInfo 1 ?? opcode 1 101 xkb-opcode 2 6+(n+p)/4 request-length 2 n msgLength 2 unused 4 CARD32 affectFlags 4 CARD32 flags 4 CARD32 affectCtrls 4 CARD32 ctrls n STRING8 message p unused, p=pad(n) 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 4 CARD32 currentFlags 4 CARD32 currentCtrls 4 CARD32 supportedFlags 4 CARD32 supportedCtrls 8 unused Events 1 ?? code 1 0 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 CARD8 oldDeviceID 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 1 KEYCODE oldMinKeyCode 1 KEYCODE oldMaxKeyCode 1 CARD8 requestMajor 1 CARD8 requestMinor 2 SETofKB_NKNDETAIL changed 14 unused 1 ?? code 1 1 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 SETofBUTMASK ptrBtnActions 2 SETofKB_MAPPART changed 1 KEYCODE minKeyCode 1 KEYCODE maxKeyCode 1 CARD8 firstType 1 CARD8 nTypes 1 KEYCODE firstKeySym 1 CARD8 nKeySyms 1 KEYCODE firstKeyAct 1 CARD8 nKeyActs 1 KEYCODE firstKeyBehavior 1 CARD8 nKeyBehavior 1 KEYCODE firstKeyExplicit 1 CARD8 nKeyExplicit 1 KEYCODE firstModMapKey 1 CARD8 nModMapKeys 1 KEYCODE firstVModMapKey 1 CARD8 nVModMapKeys 2 SETofKB_VMOD virtualMods 2 unused 1 ?? code 1 2 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 SETofKEYMASK mods 1 SETofKEYMASK baseMods 1 SETofKEYMASK latchedMods 1 SETofKEYMASK lockedMods 1 KB_GROUP group 2 INT16 baseGroup 2 INT16 latchedGroup 1 KB_GROUP lockedGroup 1 SETofKEYMASK compatState 1 SETofKEYMASK grabMods 1 SETofKEYMASK compatGrabMods 1 SETofKEYMASK lookupMods 1 SETofKEYMASK compatLookupMods 2 SETofBUTMASK ptrBtnState 2 SETofKB_STATEPART changed 1 KEYCODE keycode 1 CARD8 eventType 1 CARD8 requestMajor 1 CARD8 requestMinor 1 ?? code 1 3 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 CARD8 numGroups 2 unused 4 SETofKB_CONTROL changedControls 4 SETofKB_BOOLCTRL enabledControls 4 SETofKB_BOOLCTRL enabledControlChanges 1 KEYCODE keycode 1 CARD8 eventType 1 CARD8 requestMajor 1 CARD8 requestMinor 4 unused 1 ?? code 1 4 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 3 unused 4 SETofKB_INDICATOR state 4 SETofKB_INDICATOR stateChanged 12 unused 1 ?? code 1 5 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 3 unused 4 SETofKB_INDICATOR state 4 SETofKB_INDICATOR mapChanged 12 unused 1 ?? code 1 6 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 unused 2 SETofKB_NAMEDETAIL changed 1 CARD8 firstType 1 CARD8 nTypes 1 CARD8 firstLevelName 1 CARD8 nLevelNames 1 unused 1 CARD8 nRadioGroups 1 CARD8 nKeyAliases 1 SETofKB_GROUP changedGroupNames 2 SETofKB_VMOD changedVirtualMods 1 KEYCODE firstKey 1 CARD8 nKeys 4 SETofKB_INDICATOR changedIndicators 4 unused 1 ?? code 1 7 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 SETofKB_GROUP changedGroups 2 CARD16 firstSI 2 CARD16 nSI 2 CARD16 nTotalSI 16 unused 1 ?? code 1 8 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 KB_BELLCLASSRESULT bellClass 1 CARD8 bellID 1 CARD8 percent 2 CARD16 pitch 2 CARD16 duration 4 ATOM name 4 WINDOW window 1 BOOL eventOnly 7 unused 1 ?? code 1 9 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 KEYCODE keycode 1 BOOL press 1 BOOL keyEventFollows 1 SETofKEYMASK mods 1 KB_GROUP group 8 STRING8 message 10 unused 1 ?? code 1 10 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 KEYCODE keycode 2 SETofKB_AXNDETAIL detail 2 CARD16 slowKeysDelay 2 CARD16 debounceDelay 1 ?? code 16 unused 1 ?? code 1 11 xkb code 2 CARD16 sequence number 4 TIMESTAMP time 1 CARD8 deviceID 1 unused 2 SETofKB_XIDETAIL reason 2 KB_LEDCLASSRESULT ledClass 2 CARD8 ledID 4 SETofKB_INDICATOR ledsDefined 4 SETofKB_INDICATOR ledState 1 CARD8 firstButton 1 CARD8 nButtons 2 SETofKB_XIFEATURE supported 2 SETofKB_XIFEATURE unsupported 2 unused xorgproto-2023.2/specs/kbproto/XKBproto-4.svg0000644000175000017500000006421014443010026015752 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/XKBproto-1.svg0000644000175000017500000015234214443010026015753 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/ch03.xml0000644000175000017500000001635114443010026014642 00000000000000 Virtual Modifiers The core protocol specifies that certain keysyms, when bound to modifiers, affect the rules of keycode to keysym interpretation for all keys; for example, when Num_Lock is bound to some modifier, that modifier is used to choose shifted or unshifted state for the numeric keypad keys. The core protocol does not provide a convenient way to determine the mapping of modifier bits, in particular Mod1 through Mod5 , to keysyms such as Num_Lock and Mode_switch . Clients must retrieve and search the modifier map to determine the keycodes bound to each modifier, and then retrieve and search the keyboard mapping to determine the keysyms bound to the keycodes. They must repeat this process for all modifiers whenever any part of the modifier mapping is changed. XKB provides a set of sixteen named virtual modifiers, each of which can be bound to any set of the eight "real" modifiers ( Shift , Lock , Control and Mod1 - Mod5 as reported in the keyboard state). This makes it easier for applications and keyboard layout designers to specify to the function a modifier key or data structure should fulfill without having to worry about which modifier is bound to a particular keysym. The use of a single, server-driven mechanism for reporting changes to all data structures makes it easier for clients to stay synchronized. For example, the core protocol specifies a special interpretation for the modifier bound to the Num_Lock key. Whenever any keys or modifiers are rebound, every application has to check the keyboard mapping to make sure that the binding for Num_Lock has not changed. If Num_Lock is remapped when XKB is in use, the keyboard description is automatically updated to reflect the new binding, and clients are notified immediately and explicitly if there is a change they need to consider. The separation of function from physical modifier bindings also makes it easier to specify more clearly the intent of a binding. X servers do not all assign modifiers the same way — for example, Num_Lock might be bound to Mod2 for one vendor and to Mod4 for another. This makes it cumbersome to automatically remap the keyboard to a desired configuration without some kind of prior knowledge about the keyboard layout and bindings. With XKB, applications simply use virtual modifiers to specify the behavior they want, without regard for the actual physical bindings in effect. XKB puts most aspects of the keyboard under user or program control, so it is even more important to clearly and uniformly refer to modifiers by function. Modifier Definitions Use an XKB modifier definition to specify the modifiers affected by any XKB control or data structure. An XKB modifier definition consists of a set of real modifiers, a set of virtual modifiers, and an effective mask. The mask is derived from the real and virtual modifiers and cannot be explicitly changed — it contains all of the real modifiers specified in the definition plus any real modifiers that are bound to the virtual modifiers specified in the definition. For example, this modifier definition specifies the numeric lock modifier if the Num_Lock keysym is not bound to any real modifier: { real_mods= None, virtual_mods= NumLock, mask= None } If we assign Mod2 to the Num_Lock key, the definition changes to: { real_mods= None, virtual_mods= NumLock, mask= Mod2 } Using this kind of modifier definition makes it easy to specify the desired behavior in such a way that XKB can automatically update all of the data structures that make up a keymap to reflect user or application specified changes in any one aspect of the keymap. The use of modifier definitions also makes it possible to unambiguously specify the reason that a modifier is of interest. On a system for which the Alt and Meta keysyms are bound to the same modifier, the following definitions behave identically: { real_mods= None, virtual_mods= Alt, mask= Mod1 } { real_mods= None, virtual_mods= Meta, mask= Mod1 } If we rebind one of the modifiers, the modifier definitions automatically reflect the change: { real_mods= None, virtual_mods= Alt, mask= Mod1 } { real_mods= None, virtual_mods= Meta, mask= Mod4 } Without the level of indirection provided by virtual modifier maps and modifier definitions, we would have no way to tell which of the two definitions is concerned with Alt and which is concerned with Meta. Inactive Modifier Definitions Some XKB structures ignore modifier definitions in which the virtual modifiers are unbound. Consider this example: if ( state matches { Shift } ) Do OneThing; if ( state matches { Shift+NumLock } ) Do Another; If the NumLock virtual modifier is not bound to any real modifiers, these effective masks for these two cases are identical (i.e. they contain only Shift ). When it is essential to distinguish between OneThing and Another, XKB considers only those modifier definitions for which all virtual modifiers are bound. Virtual Modifier Mapping XKB maintains a virtual modifier mapping , which lists the virtual modifiers associated with each key. The real modifiers bound to a virtual modifier always include all of the modifiers bound to any of the keys that specify that virtual modifier in their virtual modifier mapping. For example, if Mod3 is bound to the Num_Lock key by the core protocol modifier mapping, and the NumLock virtual modifier is bound to they Num_Lock key by the virtual modifier mapping, Mod3 is added to the set of modifiers associated with the NumLock virtual modifier. The virtual modifier mapping is normally updated automatically whenever actions are assigned to keys (see Changing the Keyboard Mapping Using the Core Protocol for details) and few applications should need to change the virtual modifier mapping explicitly. xorgproto-2023.2/specs/kbproto/ch05.xml0000644000175000017500000000712714443010026014645 00000000000000 Key Event Processing Overview There are three steps to processing each key event in the X server, and at least three in the client. This section describes each of these steps briefly; the following sections describe each step in more detail. First, the server applies global keyboard controls to determine whether the key event should be processed immediately, deferred, or ignored. For example, the SlowKeys control can cause a key event to be deferred until the slow keys delay has elapsed while the RepeatKeys control can cause multiple X events from a single physical key press if the key is held down for an extended period. The global keyboard controls affect all of the keys on the keyboard and are described in Global Keyboard Controls. Next, the server applies per-key behavior. Per key-behavior can be used to simulate or indicate some special kinds of key behavior. For example, keyboard overlays, in which a key generates an alternate keycode under certain circumstances, can be implemented using per-key behavior. Every key has a single behavior, so the effect of key behavior does not depend on keyboard modifier or group state, though it might depend on global keyboard controls. Per-key behaviors are described in detail in Key Behavior. Finally, the server applies key actions. Logically, every keysym on the keyboard has some action associated with it. The key action tells the server what to do when an event which yields the corresponding keysym is generated. Key actions might change or suppress the event, generate some other event, or change some aspect of the server. Key actions are described in Key Actions. If the global controls, per-key behavior and key action combine to cause a key event, the client which receives the event processes it in several steps. First the client extracts the effective keyboard group and a set of modifiers from the state field of the event. See Computing A State Field from an XKB State for details. Using the modifiers and effective keyboard group, the client selects a symbol from the list of keysyms bound to the key. Determining the KeySym Associated with a Key Event discusses symbol selection. If necessary, the client transforms the symbol and resulting string using any modifiers that are "left over" from the process of looking up a symbol. For example, if the Lock modifier is left over, the resulting keysym is capitalized according to the capitalization rules specified by the system. See Transforming the KeySym Associated with a Key Event for a more detailed discussion of the transformations defined by XKB. Finally, the client uses the keysym and remaining modifiers in an application-specific way. For example, applications based on the X toolkit might apply translations based on the symbol and modifiers reported by the first three steps. xorgproto-2023.2/specs/kbproto/Makefile.am0000644000175000017500000000155014443010026015412 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = xkbproto.xml # Included chapters, appendix, images chapters = \ acknowledgements.xml \ appA.xml \ appB.xml \ appC.xml \ appD.xml \ ch01.xml \ ch02.xml \ ch03.xml \ ch04.xml \ ch05.xml \ ch06.xml \ ch07.xml \ ch08.xml \ ch09.xml \ ch10.xml \ ch11.xml \ ch12.xml \ ch13.xml \ ch14.xml \ ch15.xml \ ch16.xml \ XKBproto-1.svg \ XKBproto-2.svg \ XKBproto-3.svg \ XKBproto-4.svg \ XKBproto-5.svg \ XKBproto-6.svg \ XKBproto-7.svg \ XKBproto-8.svg \ XKBproto-9.svg \ XKBproto-10.svg \ XKBproto-11.svg # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/kbproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/kbproto/XKBproto-8.svg0000644000175000017500000001451114443010026015755 00000000000000 image/svg+xml xorgproto-2023.2/specs/kbproto/Makefile.in0000644000175000017500000006045714443010031015432 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/kbproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = xkbproto.xml acknowledgements.xml appA.xml \ appB.xml appC.xml appD.xml ch01.xml ch02.xml ch03.xml ch04.xml \ ch05.xml ch06.xml ch07.xml ch08.xml ch09.xml ch10.xml ch11.xml \ ch12.xml ch13.xml ch14.xml ch15.xml ch16.xml XKBproto-1.svg \ XKBproto-2.svg XKBproto-3.svg XKBproto-4.svg XKBproto-5.svg \ XKBproto-6.svg XKBproto-7.svg XKBproto-8.svg XKBproto-9.svg \ XKBproto-10.svg XKBproto-11.svg am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = xkbproto.xml # Included chapters, appendix, images @ENABLE_SPECS_TRUE@chapters = \ @ENABLE_SPECS_TRUE@ acknowledgements.xml \ @ENABLE_SPECS_TRUE@ appA.xml \ @ENABLE_SPECS_TRUE@ appB.xml \ @ENABLE_SPECS_TRUE@ appC.xml \ @ENABLE_SPECS_TRUE@ appD.xml \ @ENABLE_SPECS_TRUE@ ch01.xml \ @ENABLE_SPECS_TRUE@ ch02.xml \ @ENABLE_SPECS_TRUE@ ch03.xml \ @ENABLE_SPECS_TRUE@ ch04.xml \ @ENABLE_SPECS_TRUE@ ch05.xml \ @ENABLE_SPECS_TRUE@ ch06.xml \ @ENABLE_SPECS_TRUE@ ch07.xml \ @ENABLE_SPECS_TRUE@ ch08.xml \ @ENABLE_SPECS_TRUE@ ch09.xml \ @ENABLE_SPECS_TRUE@ ch10.xml \ @ENABLE_SPECS_TRUE@ ch11.xml \ @ENABLE_SPECS_TRUE@ ch12.xml \ @ENABLE_SPECS_TRUE@ ch13.xml \ @ENABLE_SPECS_TRUE@ ch14.xml \ @ENABLE_SPECS_TRUE@ ch15.xml \ @ENABLE_SPECS_TRUE@ ch16.xml \ @ENABLE_SPECS_TRUE@ XKBproto-1.svg \ @ENABLE_SPECS_TRUE@ XKBproto-2.svg \ @ENABLE_SPECS_TRUE@ XKBproto-3.svg \ @ENABLE_SPECS_TRUE@ XKBproto-4.svg \ @ENABLE_SPECS_TRUE@ XKBproto-5.svg \ @ENABLE_SPECS_TRUE@ XKBproto-6.svg \ @ENABLE_SPECS_TRUE@ XKBproto-7.svg \ @ENABLE_SPECS_TRUE@ XKBproto-8.svg \ @ENABLE_SPECS_TRUE@ XKBproto-9.svg \ @ENABLE_SPECS_TRUE@ XKBproto-10.svg \ @ENABLE_SPECS_TRUE@ XKBproto-11.svg # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/kbproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/kbproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/kbproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/kbproto/ch06.xml0000644000175000017500000012603214443010026014643 00000000000000 Key Event Processing in the Server This section describes the steps involved in processing a key event within the server when XKB is present. Key events can be generated due to keyboard activity and passed to XKB by the DDX layer, or they can be synthesized by another extension, such as XTEST. Applying Global Controls When the X Keyboard Extension receives a key event, it first checks the global key controls to decide whether to process the event immediately or at all. The global key controls which might affect the event, in descending order of priority, are: If a key is pressed while the BounceKeys control is enabled, the extension generates the event only if the key is active. When a key is released, the server deactivates the key and starts a bounce keys timer with an interval specified by the debounce delay. If the bounce keys timer expires or if some other key is pressed before the timer expires, the server reactivates the corresponding key and deactivates the timer. Neither expiration nor deactivation of a bounce keys timer causes an event. If the SlowKeys control is enabled, the extension sets a slow keys timer with an interval specified by the slow keys delay, but does not process the key event immediately. The corresponding key release deactivates this timer. If the slow keys timer expires, the server generates a key press for the corresponding key, sends an XkbAccessXNotify and deactivates the timer. The extension processes key press events normally whether or not the RepeatKeys control is active, but if RepeatKeys are enabled and per-key autorepeat is enabled for the event key, the extension processes key press events normally, but it also initiates an autorepeat timer with an interval specified by the autorepeat delay. The corresponding key release deactivates the timer. If the autorepeat timer expires, the server generates a key release and a key press for the corresponding key and reschedules the timer according to the autorepeat interval. Key events are processed by each global control in turn: if the BounceKeys control accepts a key event, SlowKeys considers it. Once SlowKeys allows or synthesizes an event, the RepeatKeys control acts on it. Key Behavior Once an event is accepted by all of the controls or generated by a timer, the server checks the per-key behavior of the corresponding key. This extension currently defines the following key behaviors: Behavior Effect KB_Default Press and release events are processed normally. KB_Lock If a key is logically up (i.e. the corresponding bit of the core key map is cleared) when it is pressed, the key press is processed normally and the corresponding release is ignored. If the key is logically down when pressed, the key press is ignored but the corresponding release is processed normally. KB_RadioGroup flags: CARD8 index: CARD8 If another member of the radio group specified by index is logically down when a key is pressed, the server synthesizes a key release for the member that is logically down and then processes the new key press event normally. If the key itself is logically down when pressed, the key press event is ignored, but the processing of the corresponding key release depends on the value of the RGAllowNone bit in flags . If it is set, the key release is processed normally; otherwise the key release is also ignored. All other key release events are ignored. KB_Overlay1 key: KEYCODE If the Overlay1 control is enabled, events from this key are reported as if they came from the key specified in key . Otherwise, press and release events are processed normally. KB_Overlay2 key: KEYCODE If the Overlay2 control is enabled, events from this key are reported as if they came from the key specified in key . Otherwise, press and release events are processed normally. The X server uses key behavior to determine whether to process or filter out any given key event; key behavior is independent of keyboard modifier or group state (each key has exactly one behavior. Key behaviors can be used to simulate any of these types of keys or to indicate an unmodifiable physical, electrical or software driver characteristic of a key. An optional permanent flag can modify any of the supported behaviors and indicates that behavior describes an unalterable physical, electrical or software aspect of the keyboard. Permanent behaviors cannot be changed or set by the XkbSetMap request. The permanent flag indicates a characteristic of the underlying system that XKB cannot affect, so XKB treats all permanent behaviors as if they were KB_Default and does not filter key events described in the table above. Key Actions Once the server has applied the global controls and per-key behavior and has decided to process a key event, it applies key actions to determine the effects of the key on the internal state of the server. A key action consists of an operator and some optional data. XKB supports actions which: change base, latched or locked modifiers or group move the core pointer or simulate core pointer button events change most aspects of keyboard behavior terminate or suspend the server send a message to interested clients simulate events on other keys Each key has an optional list of actions. If present, this list parallels the list of symbols associated with the key (i.e. it has one action per symbol associated with the key). For key press events, the server looks up the action to be applied from this list using the key symbol mapping associated with the event key, just as a client looks up symbols as described in Determining the KeySym Associated with a Key Event; if the event key does not have any actions, the server uses the SA_NoAction event for that key regardless of modifier or group state. Key actions have essentially two halves; the effects on the server when the key is pressed and the effects when the key is released. The action applied for a key press event determines the further actions, if any, that are applied to the corresponding release event or to events that occur while the key is held down. Clients can change the actions associated with a key while the key is down without changing the action applied next time the key is released; subsequent press-release pairs will use the newly bound key action. Most actions directly change the state of the keyboard or server; some actions also modify other actions that occur simultaneously with them. Two actions occur simultaneously if the keys which invoke the actions are both logically down at the same time, regardless of the order in which they are pressed or delay between the activation of one and the other. Most actions which affect keyboard modifier state accept a modifier definition (see Virtual Modifiers) named mods and a boolean flag name useModMap among their arguments. These two fields combine to specify the modifiers affected by the action as follows: If useModMap is True , the action sets any modifiers bound by the modifier mapping to the key that initiated the action; otherwise, the action sets the modifiers specified by mods . For brevity in the text of the following definitions, we refer to this combination of useModMap and mods as the "action modifiers." The X Keyboard Extension supports the following actions: Action Effect SA_NoAction No direct effect, though SA_NoAction events may change the effect of other server actions (see below). SA_SetMods mods: MOD_DEF useModMap: BOOL clearLocks: BOOL Key press adds any action modifiers to the keyboard’s base modifiers. Key release clears any action modifiers in the keyboard’s base modifiers, provided that no other key which affects the same modifiers is logically down. If no keys were operated simultaneously with this key and clearLocks is set, release unlocks any action modifiers. SA_LatchMods mods: MOD_DEF useModMap: BOOL clearLocks: BOOL latchToLock: BOOL Key press and release events have the same effect as for SA_SetMods ; if no keys were operated simultaneously with the latching modifier key, key release events have the following additional effects: Modifiers that were unlocked due to clearLocks have no further effect. If latchToLock is set, key release locks and then unlatches any remaining action modifiers that are already latched. Finally, key release latches any action modifiers that were not used by the clearLocks or latchToLock flags. SA_LockMods mods: MOD_DEF useModMap: BOOL noLock: BOOL noUnlock: BOOL Key press sets the base and possibly the locked state of any action modifiers. If noLock is True , only the base state is changed. For key release events, clears any action modifiers in the keyboard’s base modifiers, provided that no other key which affects the same modifiers is down. If noUnlock is False and any of the action modifiers were locked before the corresponding key press occurred, key release unlocks them. SA_SetGroup group: INT8 groupAbsolute: BOOL clearLocks: BOOL If groupAbsolute is set, key press events change the base keyboard group to group ; otherwise, they add group to the base keyboard group. In either case, the resulting effective keyboard group is brought back into range depending on the value of the GroupsWrap control for the keyboard. If an SA_ISOLock key is pressed while this key is held down, key release has no effect, otherwise it cancels the effects of the press. If no keys were operated simultaneously with this key and clearLocks is set, key release also sets the locked keyboard group to Group1 . SA_LatchGroup group: INT8 groupAbsolute: BOOL clearLocks: BOOL latchToLock: BOOL Key press and release events have the same effect as an SA_SetGroup action; if no keys were operated simultaneously with the latching group key and the clearLocks flag was not set or had no effect, key release has the following additional effects: If latchToLock is set and the latched keyboard group is non-zero, the key release adds the delta applied by the corresponding key press to the locked keyboard group and subtracts it from the latched keyboard group. The locked and effective keyboard group are brought back into range according to the value of the global GroupsWrap control for the keyboard. Otherwise, key release adds the key press delta to the latched keyboard group. SA_LockGroup group: INT8 groupAbsolute: BOOL If groupAbsolute is set, key press sets the locked keyboard group to group . Otherwise, key press adds group to the locked keyboard group. In either case, the resulting locked and effective group is brought back into range depending on the value of the GroupsWrap control for the keyboard. Key release has no effect. SA_MovePtr x, y: INT16 noAccel: BOOL absoluteX: BOOL absoluteY: BOOL If MouseKeys are not enabled, this action behaves like SA_NoAction , otherwise this action cancels any pending repeat key timers for this key and has the following additional effects. Key press generates a core pointer MotionNotify event instead of the usual KeyPress . If absoluteX is True , x specifies the new pointer X coordinate, otherwise x is added to the current pointer X coordinate; absoluteY and y specify the new Y coordinate in the same way. If noAccel is False , and the MouseKeysAccel keyboard control is enabled, key press also initiates the mouse keys timer for this key; every time this timer expires, the cursor moves again. The distance the cursor moves in these subsequent events is determined by the mouse keys acceleration as described in The MouseKeysAccel Control. Key release disables the mouse keys timer (if it was initiated by the corresponding key press) but has no other effect and is ignored (does not generate an event of any type). SA_PtrBtn button: CARD8 count: CARD8 useDfltBtn: BOOL If MouseKeys are not enabled, this action behaves like SA_NoAction . If useDfltBtn is set, the event is generated for the current default core button. Otherwise, the event is generated for the button specified by button . If the mouse button specified for this action is logically down, the key press and corresponding release are ignored and have no effect. Otherwise, key press causes one or more core pointer button events instead of the usual key press. If count is 0 , key press generates a single ButtonPress event; if count is greater than 0 , key press generates count pairs of ButtonPress and ButtonRelease events. If count is 0 , key release generates a core pointer ButtonRelease which matches the event generated by the corresponding key press; if count is non-zero, key release does not cause a ButtonRelease event. Key release never causes a key release event. SA_LockPtrBtn button: BUTTON noLock: BOOL noUnlock: BOOL useDfltBtn: BOOL If MouseKeys are not enabled, this action behaves like SA_NoAction . Otherwise, if the button specified by useDfltBtn and button is not locked, key press causes a ButtonPress instead of a key press and locks the button. If the button is already locked or if noLock is True , key press is ignored and has no effect. If the corresponding key press was ignored, and if noUnlock is False , key release generates a ButtonRelease event instead of a key release event and unlocks the specified button. If the corresponding key press locked a button, key release is ignored and has no effect. SA_SetPtrDflt affect: CARD8 value: CARD8 dfltBtnAbs: BOOL If MouseKeys are not enabled, this action behaves like SA_NoAction . Otherwise, both key press and key release are ignored, but key press changes the pointer value specified by affect to value , as follows: If which is SA_AffectDfltBtn , value and dfltBtnAbs specify the default pointer button used by the various pointer actions as follow: If dfltBtnAbs is True, value specifies the button to be used, otherwise, value specifies the amount to be added to the current default button. In either case, illegal button choices are wrapped back into range. SA_ISOLock dfltIsGroup: False mods: MOD_DEF useModMap: BOOL noLock: BOOL noUnlock: BOOL noAffectMods: BOOL noAffectGrp: BOOL noAffectPtr: BOOL noAffectCtrls: BOOL or dfltIsGroup: True group: INT8 groupAbsolute: BOOL noAffectMods: BOOL noAffectGrp: BOOL noAffectPtr: BOOL noAffectCtrls: BOOL If dfltIsGroup is True , key press sets the base group specified by groupAbsolute and group . Otherwise, key press sets the action modifiers in the keyboard’s base modifiers. Key release clears the base modifiers or group that were set by the key press; it may have additional effects if no other appropriate actions occur simultaneously with the SA_ISOLock operation. If noAffectMods is False , any SA_SetMods or SA_LatchMods actions that occur simultaneously with the ISOLock action are treated as SA_LockMods instead. If noAffectGrp is False , any SA_SetGroup or SA_LatchGroup actions that occur simultaneously with this action are treated as SA_LockGroup actions instead. If noAffectPtr is False , SA_PtrBtn actions that occur simultaneously with the SA_ISOLock action are treated as SA_LockPtrBtn actions instead. If noAffectCtrls is False , any SA_SetControls actions that occur simultaneously with the SA_ISOLock action are treated as SA_LockControls actions instead. If no other actions were transformed by the SA_ISOLock action, key release locks the group or modifiers specified by the action arguments. SA_TerminateServer Key press terminates the server. Key release is ignored. This action is optional; servers are free to ignore it. If ignored, it behaves like SA_NoAction . SA_SwitchScreen num: INT8 switchApp: BOOL screenAbs: BOOL If the server supports this action and multiple screens or displays (either virtual or real), this action changes to the active screen indicated by num and screenAbs . If screenAbs is True , num specifies the index of the new screen; otherwise, num specifies an offset from the current screen to the new screen. If switchApp is False , it should switch to another screen on the same server. Otherwise it should switch to another X server or application which shares the same physical display. This action is optional; servers are free to ignore the action or any of its flags if they do not support the requested behavior. If the action is ignored, it behaves like SA_NoAction , otherwise neither key press nor release generate an event. SA_SetControls controls: KB_BOOLCTRLMASK Key press enables any boolean controls that are specified in controls and not already enabled at the time of the key press. Key release disables any controls that were enabled by the corresponding key press. This action can cause XkbControlsNotify events. SA_LockControls controls: KB_BOOLCTRLMASK noLock: BOOL noUnlock: BOOL If noLock is False , key press locks and enables any controls that are specified in controls and not already locked at the time of the key press. If noUnlock is False , key release unlocks and disables any controls that are specified in controls and were not enabled at the time of the corresponding key press. SA_ActionMessage : pressMsg: BOOL releaseMsg: BOOL genEvent: BOOL message: STRING if pressMsg is True , key press generates an XkbActionMessage event which reports the keycode, event type and the contents of message . If releaseMsg is True , key release generates an XkbActionMessage event which reports the keycode, event type and contents of message . If genEvent is True , both press and release generate key press and key release events, regardless of whether they also cause an XkbActionMessage . SA_RedirectKey newKey: KEYCODE modsMask: KEYMASK mods: KEYMASK vmodsMask: CARD16 vmods: CARD16 Key press causes a key press event for the key specified by newKey instead of for the actual key. The state reported in this event reports of the current effective modifiers changed as follow: Any real modifiers specified in modsMask are set to corresponding values from mods . Any real modifiers bound to the virtual modifiers specified in vmodsMask are either set or cleared, depending on the corresponding value in vmods . If the real and virtual modifier definitions specify conflicting values for a single modifier, the real modifier definition has priority. Key release causes a key release event for the key specified by newKey ; the state field for this event consists of the effective keyboard modifiers at the time of the release, changed as described above. The SA_RedirectKey action normally redirects to another key on the same device as the key or button which caused the event, unless that device does not belong to the input extension KEYCLASS, in which case this action causes an event on the core keyboard device. SA_DeviceBtn count: CARD8 button: BUTTON device: CARD8 The device field specifies the ID of an extension device; the button field specifies the index of a button on that device. If the button specified by this action is logically down, the key press and corresponding release are ignored and have no effect. If the device or button specified by this action are illegal, this action behaves like SA_NoAction . Otherwise, key press causes one or more input extension device button events instead of the usual key press event. If count is 0 , key press generates a single DeviceButtonPress event; if count is greater than 0 , key press generates count pairs of DeviceButtonPress and DeviceButtonRelease events. If count is 0 , key release generates an input extension DeviceButtonRelease which matches the event generated by the corresponding key press; if count is non-zero, key release does not cause a DeviceButtonRelease event. Key release never causes a key release event. SA_LockDeviceBtn button: BUTTON device: CARD8 noLock: BOOL noUnlock: BOOL The device field specifies the ID of an extension device; the button field specifies the index of a button on that device. If the device or button specified by this action are illegal, it behaves like SA_NoAction . Otherwise, if the specified button is not locked and if noLock is False , key press causes an input extension DeviceButtonPress event instead of a key press event and locks the button. If the button is already locked or if noLock is True , key press is ignored and has no effect. If the corresponding key press was ignored, and if noUnlock is False , key release generates an input extension DeviceButtonRelease event instead of a core protocol or input extension key release event and unlocks the specified button. If the corresponding key press locked a button, key release is ignored and has no effect. SA_DeviceValuator device : CARD8 val1What : SA_DVOP val1 : CARD8 val1Value : INT8 val1Scale : 0...7 val2What : BOOL val2 : CARD8 val2Value : INT8 val2Scale : 0...7 The device field specifies the ID of an extension device; val1 and val2 specify valuators on that device. If device is illegal or if neither val1 nor val2 specifies a legal valuator, this action behaves like SA_NoAction . If valn specifies a legal valuator and valnWhat is not SA_IgnoreVal , the specified value is adjusted as specified by valnWhat : If valnWhat is SA_SetValMin , valn is set to its minimum legal value. If valnWhat is SA_SetValCenter , valn is centered (to (max-min)/2). If valnWhat is SA_SetValMax , valn is set to its maximum legal value. if valnWhat is SA_SetValRelative , is added to valn . if valnWhat is SA_SetValAbsolute , valn is set to . Illegal values for SA_SetValRelative or SA_SetValAbsolute are clamped into range. If StickyKeys are enabled, all SA_SetMods and SA_SetGroup actions act like SA_LatchMods and SA_LatchGroup respectively. If the LatchToLock AccessX option is set, either action behaves as if both the SA_ClearLocks and SA_LatchToLock flags are set. Actions which cause an event from another key or from a button on another device immediately generate the specified event. These actions do not consider the behavior or actions (if any) that are bound to the key or button to which the event is redirected. Core events generated by server actions contain the keyboard state that was in effect at the time the key event occurred; the reported state does not reflect any changes in state that occur as a result of the actions bound to the key event that caused them. Events sent to clients that have not issued an XkbUseExtension request contain a compatibility state in place of the actual XKB keyboard state. See Effects of XKB on Core Protocol Events for a description of this compatibility mapping. Delivering a Key or Button Event to a Client The window and client that receive core protocol and input extension key or button events are determined using the focus policy, window hierarchy and passive grabs as specified by the core protocol and the input extension, with the following changes: A passive grab triggers if the modifier state specified in the grab matches the grab compatibility state (described in Compatibility Components of Keyboard State). Clients can choose to use the XKB grab state instead by setting the GrabsUseXKBState per-client flag. This flag affects all passive grabs that are requested by the client which sets it but does not affect passive grabs that are set by any other client. The state field of events which trigger a passive grab reports the XKB or compatibility grab state in effect at the time the grab is triggered; the state field of the corresponding release event reports the corresponding grab state in effect when the key or button is released. If the LookupStateWhenGrabbed per-client flag is set, all key or button events that occur while a keyboard or pointer grab is active contain the XKB or compatibility lookup state, depending on the value of the GrabsUseXKBState per-client flag. If LookupStateWhenGrabbed is not set, they include the XKB or compatibility grab state, instead. Otherwise, the state field of events that do not trigger a passive grab report is derived from the XKB effective modifiers and group, as described in Computing A State Field from an XKB State. If a key release event is the result of an autorepeating key that is being held down, and the client to which the event is reported has requested detectable autorepeat (see Detectable Autorepeat), the event is not delivered to the client. The following section explains the intent of the XKB interactions with core protocol grabs and the reason that the per-client flags are needed. XKB Interactions With Core Protocol Grabs XKB provides the separate lookup and grab states to help work around some difficulties with the way the core protocol specifies passive grabs. Unfortunately, many clients work around those problems differently, and the way that XKB handles grabs and reports keyboard state can sometimes interact with those client workarounds in unexpected and unpleasant ways. To provide more reasonable behavior for clients that are aware of XKB without causing problems for clients that are unaware of XKB, this extension provides two per-client flags that specify the way that XKB and the core protocol should interact. The largest problems arise from the fact that an XKB state field encodes an explicit keyboard group in bits 13-14 (as described in Computing A State Field from an XKB State), while pre-XKB clients use one of the eight keyboard modifiers to select an alternate keyboard group. To make existing clients behave reasonably, XKB normally uses the compatibility grab state instead of the XKB grab state to determine whether or not a passive grab is triggered. XKB-aware clients can set the GrabsUseXKBState per-client flag to indicate that they are specifying passive grabs using an XKB state. Some toolkits start an active grab when a passive grab is triggered, in order to have more control over the conditions under which the grab is terminated. Unfortunately, the fact that XKB reports a different state in events that trigger or terminate grabs means that this grab simulation can fail to terminate the grab under some conditions. To work around this problem, XKB normally reports the grab state in all events whenever a grab is active. Clients which do not use active grabs like this can set the LookupStateWhenGrabbed per-client flag in order to receive the same state component whether or not a grab is active. The GrabsUseXKBState per-client flag also applies to the state of events sent while a grab is active. If it is set, events during a grab contain the XKB lookup or grab state; by default, events during a grab contain the compatibility lookup or grab state. The state used to trigger a passive grab is controlled by the setting of the GrabsUseXKBState per-client flag at the time the grab is registered. Changing this flag does not affect existing passive grabs. xorgproto-2023.2/specs/kbproto/ch15.xml0000644000175000017500000001605014443010026014641 00000000000000 Interactions Between XKB and the X Input Extension All XKB interactions with the input extension are optional; implementors are free to restrict the effects of the X Keyboard Extension to the core keyboard device. The XkbGetExtensionDeviceInfo request reports whether or not an XKB implementation supports a particular capability for input extension devices. XKB recognizes the following interactions with the X Input Extension: Name Capability XI_Keyboards If set, applications can use all XKB requests and events with extension keyboards. XI_ButtonActions If set, clients can assign key actions to buttons, even on input extension devices that are not keyboards. XI_IndicatorNames If set, clients can assign names to indicators on non-keyboard extension devices. XI_IndicatorMaps If set, clients can assign indicator maps to indicators on non-keyboard extension devices. XI_IndicatorState If set, clients can change the state of device indicators using the XkbSetExtensionDeviceInfo request. Attempts to use an XKB feature with an extension device fail with a Keyboard error if the server does not support the XkbXI_Keyboards optional feature. If a capability particular capability other than XkbXI_Keyboards is not supported, attempts to use it fail silently. The replies for most requests that can use one of the other optional features include a field to report whether or not the request was successful, but such requests do not cause an error condition. Clients can also request an XkbExtensionDeviceNotify event. This event notifies interested clients of changes to any of the supported XKB features for extension devices, or if a request from the client that is receiving the event attempted to use an unsupported feature. Using XKB Functions with Input Extension Keyboards All XKB requests and events include a device identifier which can refer to an input extension KeyClass device, if the implementation allows XKB to control extension devices. If the implementation does not support XKB manipulation of extension devices, the device identifier is ignored but it must be either 0 or UseCoreKbd . Implementations which do not support the use of XKB functions with extension keyboards must not set the XkbXI_Keyboards flag. Attempts to use XKB features on an extension keyboard with an implementation that does not support this feature yield a Keyboard error. Pointer and Device Button Actions The XKB extension optionally allows clients to assign any key action (see Key Actions) to core pointer or input extension device buttons. This makes it possible to control the keyboard or generate keyboard key events from extension devices or from the core pointer. XKB implementations are required to support actions for the buttons of the core pointer device, but support for actions on extension devices is optional. Implementations which do not support button actions for extension devices must not set the XkbXI_ButtonActions flag. Attempts to query or assign button actions with an implementation that does not support this feature report failure in the request reply and might cause the server to send an XkbExtensionDeviceNotify event to the client which issued the request that failed. Such requests never cause an error condition. Indicator Maps for Extension Devices The XKB extension allows applications to assign indicator maps to the indicators of non-keyboard extension devices. If supported, maps can be assigned to all extension device indicators, whether they are part of a keyboard feedback or part of an indicator feedback. Implementations which do not support indicator maps for extension devices must not set the XkbXI_IndicatorMaps flag. Attempts to query or assign indicator maps with an implementation that does not support this feature report failure in the request reply and might cause the server to send an XkbExtensionDeviceNotify event to the client which issued the request that failed. Such requests never cause an error condition. If this feature is supported, the maps for the default indicators on the core keyboard device are visible both as extension indicators and as the core indicators. Changes made with XkbSetDeviceInfo are visible via XkbGetIndicatorMap and changes made with XkbSetIndicatorMap are visible via XkbGetDeviceInfo . Indicator Names for Extension Devices The XKB extension allows applications to assign symbolic names to the indicators of non-keyboard extension devices. If supported, symbolic names can be assigned to all extension device indicators, whether they are part of a keyboard feedback or part of an indicator feedback. Implementations which do not support indicator maps for extension devices must not set the XkbXI_IndicatorMaps flag. Attempts to query or assign indicator names with an implementation that does not support this feature report failure in the request reply and might cause the server to send an XkbExtensionDeviceNotify event to the client which issued the request that failed. Such requests never cause an error condition. If this feature is supported, the names for the default indicators on the core keyboard device are visible both as extension indicators and as the core indicators. Changes made with XkbSetDeviceInfo are visible via XkbGetNames and changes made with XkbSetNames are visible via XkbGetDeviceInfo . xorgproto-2023.2/specs/kbproto/XKBproto-11.svg0000644000175000017500000036607214443010026016043 00000000000000 image/svg+xml <ESC> <FK01> <FK02> <FK03> <FK04> <FK05> <FK06> <FK07> <FK08> <AE12> <TAB> <CAPS> <LFSH> <AE01> <AD01> <AC01> <AB01> <TLDE> <AE02> <AD02> <AC02> <AB02> <INS> <AE03> <AD03> <AC03> <AB03> <LEFT> <AE04> <AD04> <AC04> <AB04> <RGHT> <AE05> <AD05> <AC05> <AB05> <FK09> <FK10> <FK11> <FK12> <PRSC> <SCLK> <PAUS> <FK16> <FK17> <AE06> <AD06> <AC06> <AB06> <NMLK> <AE07> <KP7> <AD07> <KP4> <AC07> <KP1> <AB07> <UP> <KPEQ> <AE08> <KP8> <AD08> <KP5> <AC08> <KP2> <AB08> <DOWN> <KPSL> <AE09> <KP9> <AD09> <KP6> <AC09> <KP3> <AB09> <AD11> <KPMU> <AE10> <KPSU> <AD10> <KPAD> <AC10> <KPEN> <AB10> <AD12> <KPEN> <AE11> <BKSL> <AC11> <RTSH> <RALT> <PGUP> <PGDN> <RCTL> <RTRN> <KP0> <SPCE> <LALT> <HOME> <END> <LCTL> <DELE> <BKSP> xorgproto-2023.2/specs/kbproto/ch01.xml0000644000175000017500000000753314443010026014642 00000000000000 Overview This extension provides a number of new capabilities and controls for text keyboards. The core X protocol specifies the ways that the Shift , Control and Lock modifiers and the modifiers bound to the Mode_switch or Num_Lock keysyms interact to generate keysyms and characters. The core protocol also allows users to specify that a key affects one or more modifiers. This behavior is simple and fairly flexible, but it has a number of limitations that make it difficult or impossible to properly support many common varieties of keyboard behavior. The limitations of core protocol support for keyboards include: Use of a single, uniform, four-symbol mapping for all keyboard keys makes it difficult to properly support keyboard overlays, PC-style break keys or keyboards that comply with ISO9995 or a host of other national and international standards. Use of a modifier to specify a second keyboard group has side-effects that wreak havoc with client grabs and X toolkit translations and limit us to two keyboard groups. Poorly specified locking key behavior requires X servers to look for a few "magic" keysyms to determine which keys should lock when pressed. This leads to incompatibilities between X servers with no way for clients to detect implementation differences. Poorly specified capitalization and control behavior requires modifications to X library source code to support new character sets or locales and can lead to incompatibilities between system-wide and X library capitalization behavior. Limited interactions between modifiers specified by the core protocol make many common keyboard behaviors difficult or impossible to implement. For example, there is no reliable way to indicate whether or not using shift should "cancel" the lock modifier. The lack of any explicit descriptions for indicators, most modifiers and other aspects of the keyboard appearance requires clients that wish to clearly describe the keyboard to a user to resort to a mishmash of prior knowledge and heuristics. This extension makes it possible to clearly and explicitly specify most aspects of keyboard behavior on a per-key basis. It adds the notion of a numeric keyboard group to the global keyboard state and provides mechanisms to more closely track the logical and physical state of the keyboard. For keyboard control clients, this extension provides descriptions and symbolic names for many aspects of keyboard appearance and behavior. It also includes a number of keyboard controls designed to make keyboards more accessible to people with movement impairments. The X Keyboard Extension essentially replaces the core protocol definition of a keyboard. The following sections describe the new capabilities of the extension and the effect of the extension on core protocol requests, events and errors. Conventions and Assumptions This document uses the syntactic conventions, common types, and errors defined in sections two through four of the specification of the X Window System Protocol. This document assumes familiarity with the fundamental concepts of X, especially those related to the way that X handles keyboards. Readers who are not familiar with the meaning or use of keycodes, keysyms or modifiers should consult (at least) the first five chapters of the protocol specification of the X Window System before continuing. xorgproto-2023.2/specs/kbproto/XKBproto-5.svg0000644000175000017500000006515614443010026015765 00000000000000 image/svg+xml xorgproto-2023.2/specs/bigreqsproto/0000755000175000017500000000000014443010036014476 500000000000000xorgproto-2023.2/specs/bigreqsproto/Makefile.am0000644000175000017500000000051014443010026016445 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = bigreq.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/bigreqsproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/bigreqsproto/bigreq.xml0000644000175000017500000003046614443010026016421 00000000000000 %defs; ]> Big Requests Extension X Consortium Standard X Version 11, Release &fullrelvers; Version 2.0 BobScheifler X Consortium 19931994X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. X Window System is a trademark of The Open Group. Overview This extension enables the use of protocol requests that exceed 262140 bytes in length. The core protocol restricts the maximum length of a protocol request to 262140 bytes, in that it uses a 16-bit length field specifying the number of 4-byte units in the request. This is a problem in the core protocol when joining large numbers of lines (PolyLine) or arcs (PolyArc), since these requests cannot be broken up into smaller requests without disturbing the rendering of the join points. It is also much more of a problem for protocol extensions, such as the PEX extension for 3D graphics and the XIE extension for imaging, that need to send long data lists in output commands. This extension defines a mechanism for extending the length field beyond 16 bits. If the normal 16-bit length field of the protocol request is zero, then an additional 32-bit field containing the actual length (in 4-byte units) is inserted into the request, immediately following the 16-bit length field. For example, a normal PolyLine encoding is: PolyLine 1 65 opcode 1 coordinate-mode 0 Origin 1 Previous 2 3+n 4 DRAWABLE drawable 4 GCONTEXT gc 4n LISTofPOINT points An extended-length PolyLine encoding is: PolyLine 1 65 opcode 1 coordinate-mode 0 Origin 1 Previous 2 0 extended length flag 4 4+n request length 4 DRAWABLE drawable 4 GCONTEXT gc 4n LISTofPOINT points Extended-length protocol encodings, once enabled, can be used on all protocol requests, including all extensions. Requests BigReqEnable => maximum-request-length: CARD32 This request enables extended-length protocol requests for the requesting client. It also returns the maximum length of a request, in 4-byte units, that can be used in extended-length protocol requests. This value will always be greater than the maximum-request-length returned in the connection setup information. Events and Errors No new events or errors are defined by this extension. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is “BIG-REQUESTS”. BigReqEnable 1 Card8 opcode 1 0 bigreq opcode 2 1 request length => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 length 4 CARD32 maximum-request-length 20 unused C language binding It is desirable for core Xlib, and other extensions, to use this extension internally when necessary. It is also desirable to make the use of this extension as transparent as possible to the X client. For example, if enabling of the extension were delayed until the first time it was needed, an application that used XNextRequest to determine the sequence number of a request would no longer get the correct sequence number. As such, XOpenDisplay will determine if the extension is supported by the server and, if it is, enable extended-length encodings. The core Xlib functions XDrawLines, XDrawArcs, XFillPolygon, XChangeProperty, XSetClipRectangles, and XSetRegion. are required to use extended-length encodings when necessary, if supported by the server. Use of extended-length encodings in other core Xlib functions (XDrawPoints, XDrawRectangles, XDrawSegments. XFillArcs, XFillRectangles, XPutImage is permitted but not required; an Xlib implementation may choose to split the data across multiple smaller requests instead. To permit clients to know what the maximum-request-length for extended-length encodings is, the following function is added to Xlib: long XExtendedMaxRequestSize Display *display Returns zero (0) if the specified display does not support this extension, otherwise returns the maximum-request-length (in 4-byte units) supported by the server through the extended-length encoding. Acknowledgements Clive Feather (IXI) originated the extended-length encoding used in this extension proposal. xorgproto-2023.2/specs/bigreqsproto/Makefile.in0000644000175000017500000005545114443010031016470 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/bigreqsproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = bigreq.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = bigreq.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/bigreqsproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/bigreqsproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/bigreqsproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/recordproto/0000755000175000017500000000000014443010036014320 500000000000000xorgproto-2023.2/specs/recordproto/record.xml0000644000175000017500000016723314443010026016253 00000000000000 %defs; ]> Record Extension Protocol Specification X Consortium Standard MarthaZimet Network Computing Devices, Inc. StephenGildea X Consortium X Version 11, Release &fullrelvers; 1994Network Computing Devices, Inc. Permission to use, copy, modify, distribute, and sell this documentation for any purpose is hereby granted without fee, provided that the above copyright notice and this permission notice appear in all copies. Network Computing Devices, Inc. makes no representations about the suitability for any purpose of the information in this document. This documentation is provided “as is” without express or implied warranty. Copyright © 1994, 1995 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium and 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 X Consortium. X Window System is a trademark of The Open Group. Introduction Several proposals have been written over the past few years that address some of the issues surrounding the recording and playback of user actions in the X Window System X Window System is a trademark of The Open Group. : Some Proposals for a Minimal X11 Testing Extension, Kieron Drake, UniSoft Ltd., April 1991 X11 Input Synthesis Extension Proposal, Larry Woestman, Hewlett Packard, November 1991 XTrap Architecture, Dick Annicchiario, et al, Digital Equipment Corporation, July 1991 XTest Extension Recording Specification, Yochanan Slonim, Mercury Interactive, December 1992 This document both unifies and extends the previous diverse approaches to generate a proposal for an X extension that provides support for the recording of all core X protocol and arbitrary extension protocol. Input synthesis, or playback, has already been implemented in the XTest extension, an X Consortium standard. Therefore, this extension is limited to recording. In order to provide both record and playback functionality, a hypothetical record application could use this extension to capture both user actions and their consequences. For example, a button press (a user action) may cause a window to be mapped and a corresponding MapNotify event to be sent (a consequence). This information could be stored for later use by a playback application. The playback application could use the recorded actions as input for the XTest extension's XTestFakeInput operation to synthesize the appropriate input events. The "consequence" or synchronization information is then used as a synchronization point during playback. That is, the playback application does not generate specific synthesized events until their matching synchronization condition occurs. When the condition occurs the processing of synthesized events continues. Determination that the condition has occurred may be made by capturing the consequences of the synthesized events and comparing them to the previously recorded synchronization information. For example, if a button press was followed by a MapNotify event on a particular window in the recorded data, the playback application might synthesize the button press then wait for the MapNotify event on the appropriate window before proceeding with subsequent synthesized input. Because it is impossible to predict what synchronization information will be required by a particular application, the extension provides facilities to record any subset of core X protocol and arbitrary extension protocol. As such, this extension does not enforce a specific synchronization methodology; any method based on information in the X protocol stream (e.g., watching for window mapping/unmapping, cursor changes, drawing of certain text strings, etc.) can capture the information it needs using RECORD facilities. Acknowledgements The document represents the culmination of two years of debate and experiments done under the auspices of the X Consortium xtest working group. Although this was a group effort, the author remains responsible for any errors or omissions. Two years ago, Robert Chesler of Absol-puter, Kieron Drake of UniSoft Ltd., Marc Evans of Synergytics and Ken Miller of Digital shared the vision of a standard extension for recording and were all instrumental in the early protocol development. During the last two years, Bob Scheifler of the X Consortium and Jim Fulton of NCD continuously provided input to the protocol design, as well as encouragement to the author. In the last few months, Stephen Gildea and Dave Wiggins, both X Consortium staff, have spent considerable time fine tuning the protocol design and reviewing the protocol specifications. Most recently, Amnon Cohen of Mercury Interactive has assisted in clarification of the recorded event policy, and Kent Siefkes of Performance Awareness has assisted in clarification of the timestamp policy. Goals To provide a standard for recording, whereby both device events and synchronization information in the form of device event consequences are recorded. To record contextual information used in synchronized playback without prior knowledge of the application that is being recorded. To provide the ability to record arbitrary X protocol extensions. Requirements The extension should function as follows: It should not be dependent on other clients or extensions for its operation. It should not significantly impact performance. It should support the recording of all device input (core devices and XInput devices). It should be extendible. It should support the recording of synchronization information for user events. Design This section gives an overview of the RECORD extension and discusses its overall operation and data types. Overview The mechanism used by this extension for recording is to intercept core X protocol and arbitrary X extension protocol entirely within the X server itself. When the extension has been requested to intercept specific protocol by one or more clients, the protocol data are formatted and returned to the recording clients. The extension provides a mechanism for capturing all events, including input device events that go to no clients, that is analogous to a client expressing "interest" in all events in all windows, including the root window. Event filtering in the extension provides a mechanism for feeding device events to recording clients; it does not provide a mechanism for in-place, synchronous event substitution, modification, or withholding. In addition, the extension does not provide data compression before intercepted protocol is returned to the recording clients. Data Delivery Because events are limited in size to 32 bytes, using events to return intercepted protocol data to recording clients is prohibitive in terms of performance. Therefore, intercepted protocol data are returned to recording clients through multiple replies to the extension request to begin protocol interception and reporting. This utilization is consistent with ListFontsWithInfo , for example, where a single request has multiple replies. Individual requests, replies, events or errors intercepted by the extension on behalf of recording clients cannot be split across reply packets. In order to reduce overhead, multiple intercepted requests, replies, events and errors might be collected into a single reply. Nevertheless, all data are returned to the client in a timely manner. Record Context The extension adds a record context resource (RC) to the set of resources managed by the server. All the extension operations take an RC as an argument. Although the protocol permits sharing of RCs between clients, it is expected that clients will use their own RCs. The attributes used in extension operations are stored in the RCs, and these attributes include the protocol and clients to intercept. The terms "register" and "unregister" are used to describe the relationship between clients to intercept and the RC. To register a client with an RC means the client is added to the list of clients to intercept; to unregister a client means the client is deleted from the list of clients to intercept. When the server is requested to register or unregister clients from an RC, it is required to do so immediately. That is, it is not permissible for the server to wait until recording is enabled to register clients or recording is disabled to unregister clients. Record Client Connections The typical communication model for a recording client is to open two connections to the server and use one for RC control and the other for reading protocol data. The "control" connection can execute requests to obtain information about the supported protocol version, create and destroy RCs, specify protocol types to intercept and clients to be recorded, query the current state of an RC, and to stop interception and reporting of protocol data. The "data" connection can execute a request to enable interception and reporting of specified protocol for a particular RC. When the "enable" request is issued, intercepted protocol is sent back on the same connection, generally in more than one reply packet. Until the last reply to the "enable" request is sent by the server, signifying that the request execution is complete, no other requests will be executed by the server on that connection. That is, the connection that data are being reported on cannot issue the "disable" request until the last reply to the "enable" request is sent by the server. Therefore, unless a recording client never has the need to disable the interception and reporting of protocol data, two client connections are necessary. Events The terms "delivered events" and "device events" are used to describe the two event classes recording clients may select for interception. These event classes are handled differently by the extension. Delivered events are core X events or X extension events the server actually delivers to one or more clients. Device events are events generated by core X devices or extension input devices that the server may or may not deliver to any clients. When device events are selected for interception by a recording client, the extension guarantees each device event is recorded and will be forwarded to the recording client in the same order it is generated by the device. The recording of selected device events is not affected by server grabs. Delivered events, on the other hand, can be affected by server grabs. If a recording client selects both a device event and delivered events that result from that device event, the delivered events are recorded after the device event. In the absence of grabs, the delivered events for a device event precede later device events. Requests that have side effects on devices, such as WarpPointer and GrabPointer with a confine-to window, will cause RECORD to record an associated device event. The XTEST extension request XTestFakeInput causes a device event to be recorded; the device events are recorded in the same order that the XTestFakeInput requests are received by the server. If a key autorepeats, multiple KeyPress and KeyRelease device events are reported. Timing Requests are recorded just before they are executed; the time associated with a request is the server time when it is recorded. Types The following new types are used in the request definitions that appear in section 3. RC: CARD32 The "RC" type is a resource identifier for a server record context. RANGE8: [first, last: CARD8] RANGE16: [first, last: CARD16] EXTRANGE: [major: RANGE8 minor: RANGE16] RECORDRANGE: [core-requests: RANGE8 core-replies: RANGE8 ext-requests: EXTRANGE ext-replies: EXTRANGE delivered-events: RANGE8 device-events: RANGE8 errors: RANGE8 client-started: BOOL client-died: BOOL] The "RECORDRANGE" structure contains the protocol values to intercept. Typically, this structure is sent by recording clients over the control connection when creating or modifying an RC. Specifies core X protocol requests with an opcode field between first and last inclusive. If first is equal to 0 and last is equal to 0, no core requests are specified by this RECORDRANGE. If first is greater than last, a "Value" error results. Specifies replies resulting from core X protocol requests with an opcode field between first and last inclusive. If first is equal to 0 and last is equal to 0, no core replies are specified by this RECORDRANGE. If first is greater than last, a "Value" error results. Specifies extension protocol requests with a major opcode field between major.first and major.last and a minor opcode field between minor.first and minor.last inclusive. If major.first and major.last are equal to 0, no extension protocol requests are specified by this RECORDRANGE. If major.first or major.last is less than 128 and greater than 0, if major.first is greater than major.last, or if minor.first is greater than minor.last, a "Value" error results. Specifies replies resulting from extension protocol requests with a major opcode field between major.first and major.last and a minor opcode field between minor.first and minor.last inclusive. If major.first and major.last are equal to 0, no extension protocol replies are specified by this RECORDRANGE. If major.first or major.last is less than 128 and greater than 0, if major.first is greater than major.last, or if minor.first is greater than minor.last, a "Value" error results. This is used for both core X protocol events and arbitrary extension events. Specifies events that are delivered to at least one client that have a code field between first and last inclusive. If first is equal to 0 and last is equal to 0, no events are specified by this RECORDRANGE. Otherwise, if first is less than 2 or last is less than 2, or if first is greater than last, a "Value" error results. This is used for both core X device events and X extension device events that may or may not be delivered to a client. Specifies device events that have a code field between first and last inclusive. If first is equal to 0 and last is equal to 0, no device events are specified by this RECORDRANGE. Otherwise, if first is less than 2 or last is less than 2, or if first is greater than last, a "Value" error results. Because the generated device event may or may not be associated with a client, unlike other RECORDRANGE components, which select protocol for a specific client, selecting for device events in any RECORDRANGE in an RC causes the recording client to receive one instance for each device event generated that is in the range specified. This is used for both core X protocol errors and arbitrary extension errors. Specifies errors that have a code field between first and last inclusive. If first is equal to 0 and last is equal to 0, no errors are specified by this RECORDRANGE. If first is greater than last, a "Value" error results. Specifies the connection setup reply. If False , the connection setup reply is not specified by this RECORDRANGE. Specifies notification when a client disconnects. If False , notification when a client disconnects is not specified by this RECORDRANGE. ELEMENT_HEADER: [from-server-time: BOOL from-client-time: BOOL from-client-sequence: BOOL] The ELEMENT_HEADER structure specifies additional data that precedes each protocol element in the data field of a RecordEnableContext reply. If from-server-time is True , each intercepted protocol element with category FromServer is preceded by the server time when the protocol was recorded. If from-client-time is True , each intercepted protocol element with category FromClient is preceded by the server time when the protocol was recorded. If from-client-sequence is True , each intercepted protocol element with category FromClient or ClientDied is preceded by the 32-bit sequence number of the recorded client's most recent request processed by the server at that time. For FromClient , this will be one less than the sequence number of the following request. For ClientDied , the sequence number will be the only data, because no protocol is recorded. Note that a reply containing device events is treated the same as other replies with category FromServer for purposes of these flags. Protocol with category FromServer is never preceded by a sequence number because almost all such protocol has a sequence number in it anyway. If both a server time and a sequence number have been requested for a reply, each protocol request is preceded first by the time and second by the sequence number. XIDBASE: CARD32 The XIDBASE type is used to identify a particular client. Valid values are any existing resource identifier of any connected client, in which case the client that created the resource is specified, or the resource identifier base sent to the target client from the server in the connection setup reply. A value of 0 (zero) is valid when the XIDBASE is associated with device events that may not have been delivered to a client. CLIENTSPEC: XIDBASE or {CurrentClients, FutureClients, AllClients} The CLIENTSPEC type defines the set of clients the RC attributes are associated with. This type is used by recording clients when creating an RC or when changing RC attributes. XIDBASE specifies that the RC attributes apply to a single client only. CurrentClients specifies that the RC attributes apply to current client connections; FutureClients specifies future client connections; AllClients specifies all client connections, which includes current and future. The numeric values for CurrentClients , FutureClients and AllClients are defined such that there will be no intersection with valid XIDBASEs. When the context is enabled, the data connection is unregistered if it was registered. If the context is enabled, CurrentClients and AllClients silently exclude the recording data connection. It is an error to explicitly register the data connection. CLIENT_INFO: [client-resource: CLIENTSPEC intercepted-protocol: LISTofRECORDRANGE] This structure specifies an intercepted client and the protocol to be intercepted for the client. The client-resource field is a resource base that identifies the intercepted client. The intercepted-protocol field specifies the protocol to intercept for the client-resource. Errors RecordContext This error is returned if the value for an RC argument in a request does not name a defined record context. Protocol Requests RecordQueryVersion major-version, minor-version: CARD16 -> major-version, minor-version: CARD16 This request specifies the RECORD extension protocol version the client would like to use. When the specified protocol version is supported by the extension, the protocol version the server expects from the client is returned. Clients must use this request before other RECORD extension requests. This request also determines whether or not the RECORD extension protocol version specified by the client is supported by the extension. If the extension supports the version specified by the client, this version number should be returned. If the client has requested a higher version than is supported by the server, the server's highest version should be returned. Otherwise, if the client has requested a lower version than is supported by the server, the server's lowest version should be returned. This document defines major version one (1), minor version thirteen (13). RecordCreateContext context: RC element-header: ELEMENT_HEADER client-specifiers: LISTofCLIENTSPEC ranges: LISTofRECORDRANGE Errors: Match , Value , IDChoice , Alloc This request creates a new record context within the server and assigns the identifier context to it. After the context is created, this request registers the set of clients in client-specifiers with the context and specifies the protocol to intercept for those clients. The recorded protocol elements will be preceded by data as specified by element-header. Typically, this request is used by a recording client over the control connection. Multiple RC objects can exist simultaneously, containing overlapping sets of protocol and clients to intercept. If any of the values in element-header or ranges is invalid, a "Value" error results. Duplicate items in the list of client-specifiers are ignored. If any item in the client-specifiers list is not a valid CLIENTSPEC, a "Match" error results. Otherwise, each item in the client-specifiers list is processed as follows: If the item is an XIDBASE identifying a particular client, the specified client is registered with the context and the protocol to intercept for the client is then set to ranges. If the item is CurrentClients , all existing clients are registered with the context at this time. The protocol to intercept for all clients registered with the context is then set to ranges. If the item is FutureClients , all clients that connect to the server after this request executes will be automatically registered with the context. The protocol to intercept for such clients will be set to ranges in the context. If the item is AllClients , the effect is as if the actions described for FutureClients are performed, followed by the actions for CurrentClients . The "Alloc" error results when the server is unable to allocate the necessary resources. RecordRegisterClients context: RC element-header: ELEMENT_HEADER client-specifiers: LISTofCLIENTSPEC ranges: LISTofRECORDRANGE Errors: Match , Value , RecordContext , Alloc This request registers the set of clients in client-specifiers with the given context and specifies the protocol to intercept for those clients. The header preceding each recorded protocol element is set as specified by element-header. These flags affect the entire context; their effect is not limited to the clients registered by this request. Typically, this request is used by a recording client over the control connection. If context does not name a valid RC, a "RecordContext" error results. If any of the values in element-header or ranges is invalid, a "Value" error results. Duplicate items in the list of client-specifiers are ignored. If any item in the list of client-specifiers is not a valid CLIENTSPEC, a "Match" error results. If the context is enabled and the XID of the enabling connection is specified, a "Match" error results. Otherwise, each item in the client-specifiers list is processed as follows: If the item is an XIDBASE identifying a particular client, the specified client is registered with the context if it is not already registered. The protocol to intercept for the client is then set to ranges. If the item is CurrentClients , all existing clients that are not already registered with the specified context, except the enabling connection if the context is enabled, are registered at this time. The protocol to intercept for all clients registered with the context is then set to ranges. If the item is FutureClients , all clients that connect to the server after this request executes will be automatically registered with the context. The protocol to intercept for such clients will be set to ranges in the context. The set of clients that are registered with the context and their corresponding sets of protocol to intercept are left intact. If the item is AllClients , the effect is as if the actions described for FutureClients are performed, followed by the actions for CurrentClients . The "Alloc" error results when the server is unable to allocate the necessary resources. RecordUnregisterClients context: RC client-specifiers: LISTofCLIENTSPEC Errors: Match , RecordContext This request removes the set of clients in client-specifiers from the given context's set of registered clients. Typically, this request is used by a recording client over the control connection. If context does not name a valid RC, a "RecordContext" error results. Duplicate items in the list of client-specifiers are ignored. If any item in the list is not a valid CLIENTSPEC, a "Match" error results. Otherwise, each item in the client-specifiers list is processed as follows: If the item is an XIDBASE identifying a particular client, and the specified client is currently registered with the context, it is unregistered, and the set of protocol to intercept for the client is deleted from the context. If the specified client is not registered with the context, the item has no effect. If the item is CurrentClients , all clients currently registered with the context are unregistered from it, and their corresponding sets of protocol to intercept are deleted from the context. If the item is FutureClients , clients that connect to the server after this request executes will not automatically be registered with the context. The set of clients that are registered with this context and their corresponding sets of protocol that will be intercepted are left intact. If the item is AllClients , the effect is as if the actions described for FutureClients are performed, followed by the actions for CurrentClients . A client is unregistered automatically when it disconnects. RecordGetContext context: RC -> enabled: BOOL element-header: ELEMENT_HEADER intercepted-clients: LISTofCLIENT_INFO Errors: RecordContext This request queries the current state of the specified context and is typically used by a recording client over the control connection. The enabled field specifies the state of data transfer between the extension and the recording client, and is either enabled ( True ) or disabled ( False ). The initial state is disabled. When enabled, all core X protocol and extension protocol received from (requests) or sent to (replies, errors, events) a particular client, and requested to be intercepted by the recording client, is reported to the recording client over the data connection. The element-header specifies the header that precedes each recorded protocol element. The intercepted-clients field specifies the list of clients currently being recorded and the protocol associated with each client. If future clients will be automatically registered with the context, one of the returned CLIENT_INFO structures has a client-resource value of FutureClients and an intercepted-protocol giving the protocol to intercept for future clients. Protocol ranges may be decomposed, coalesced, or otherwise modified by the server from how they were specified by the client. All CLIENTSPECs registered with the server are returned, even if the RECORDRANGE(s) associated with them specify no protocol to record. When the context argument is not valid, a RecordContext error results. RecordEnableContext context: RC ->+ category: {FromServer, FromClient, ClientStarted, ClientDied, StartOfData, EndOfData} element-header: ELEMENT_HEADER client-swapped: BOOL id-base: XIDBASE server-time: TIMESTAMP recorded-sequence-number: CARD32 data: LISTofBYTE Errors: Match, RecordContext This request enables data transfer between the recording client and the extension and returns the protocol data the recording client has previously expressed interest in. Typically, this request is executed by the recording client over the data connection. If the client is registered on the context, it is unregistered before any recording begins. Once the server receives this request, it begins intercepting and reporting to the recording client all core and extension protocol received from or sent to clients registered with the RC that the recording client has expressed interest in. All intercepted protocol data is returned in the byte-order of the recorded client. Therefore, recording clients are responsible for all byte swapping, if required. More than one recording client cannot enable data transfer on the same RC at the same time. Multiple intercepted requests, replies, events and errors might be packaged into a single reply before being returned to the recording clients. The category field determines the possible types of the data. When a context is enabled, the server will immediately send a reply of category StartOfData to notify the client that recording is enabled. A category of FromClient means the data are from the client (requests); FromServer means data are from the server (replies, errors, events, or device events). For a new client, the category is ClientStarted and the data are the connection setup reply. When the recorded client connection is closed, category is set to the value ClientDied and no protocol is included in this reply. When the disable request is made over the control connection, a final reply is sent over the data connection with category EndOfData and no protocol. The element-header field returns the value currently set for the context, which tells what header information precedes each recorded protocol element in this reply. The client-swapped field is True if the byte order of the protocol being recorded is swapped relative to the recording client; otherwise, client-swapped is False . The recorded protocol is in the byte order of the client being recorded; device events are in the byte order of the recording client. For replies of category StartOfData and EndOfData the client-swapped bit is set according to the byte order of the server relative to the recording client. The id-base field is the resource identifier base sent to the client from the server in the connection setup reply, and hence, identifies the client being recorded. The id-base field is 0 (zero) when the protocol data being returned are device events. The server-time field is set to the time of the server when the first protocol element in this reply was intercepted. The server-time of reply N+1 is greater than or equal to the server-time of reply N, and is greater than or equal to the time of the last protocol element in reply N. The recorded-sequence-number field is set to the sequence number of the recorded client's most recent request processed by the server. The data field contains the raw protocol data being returned to the recording client. If requested by the element-header of this record context, each protocol element may be preceded by a 32-bit timestamp and/or a 32-bit sequence number. If present, both the timestamp and sequence number are always in the byte order of the recording client. For the core X events KeyPress , KeyRelease , ButtonPress , and ButtonRelease , the fields of a device event that contain valid information are time and detail. For the core X event MotionNotify , the fields of a device event that contain valid information are time, root, root-x and root-y. The time field refers to the time the event was generated by the device. For the extension input device events DeviceKeyPress , DeviceKeyRelease , DeviceButtonPress , and DeviceButtonRelease , the fields of a device event that contain valid information are device, time and detail. For DeviceMotionNotify , the valid device event fields are device and time. For the extension input device events ProximityIn and ProximityOut , the fields of a device event that contain valid information are device and time. For the extension input device event DeviceValuator , the fields of a device event that contain valid information are device, num_valuators, first_valuator, and valuators. The time field refers to the time the event was generated by the device. The error "Match" is returned when data transfer is already enabled. When the context argument is not valid, a RecordContext error results. RecordDisableContext context: RC Errors: RecordContext This request is typically executed by the recording client over the control connection. This request directs the extension to immediately send any complete protocol elements currently buffered, to send a final reply with category EndOfData , and to discontinue data transfer between the extension and the recording client. Protocol reporting is disabled on the data connection that is currently enabled for the given context. Once the extension completes processing this request, no additional recorded protocol will be reported to the recording client. If a data connection is not currently enabled when this request is executed, then this request has no affect on the state of data transfer. An RC is disabled automatically when the connection to the enabling client is closed down. When the context argument is not valid, a RecordContext error results. RecordFreeContext context RC Errors: RecordContext This request deletes the association between the resource ID and the RC and destroys the RC. If a client has enabled data transfer on this context, the actions described in RecordDisableContext are performed before the context is freed. An RC is destroyed automatically when the connection to the creating client is closed down and the close-down mode is DestroyAll. When the context argument is not valid, a RecordContext error results. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is "RECORD". Types RC: CARD32 RANGE8 1 CARD8 first 1 CARD8 last RANGE16 2 CARD16 first 2 CARD16 last EXTRANGE 2 RANGE8 major 4 RANGE16 minor RECORDRANGE 2 RANGE8 core-requests 2 RANGE8 core-replies 6 EXTRANGE ext-requests 6 EXTRANGE ext-replies 2 RANGE8 delivered-events 2 RANGE8 device-events 2 RANGE8 errors 1 BOOL client-started 1 BOOL client-died ELEMENT_HEADER 1 CARD8 0x01 from-server-time 0x02 from-client-time 0x04 from-client-sequence XIDBASE: CARD32 CLIENTSPEC 4 XIDBASE client-id-base 1 CurrentClients 2 FutureClients 3 AllClients CLIENT_INFO 4 CLIENTSPEC client-resource 4 CARD32 n, number of record ranges in intercepted-protocol 24n LISTofRECORDRANGE intercepted-protocol Errors RecordContext 1 0 Error 1 CARD8 extension's base error code + 0 2 CARD16 sequence number 4 CARD32 invalid record context 24 unused Requests RecordQueryVersion 1 CARD8 major opcode 1 0 minor opcode 2 2 request length 2 CARD16 major version 2 CARD16 minor version => 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 major version 2 CARD16 minor version 20 unused RecordCreateContext 1 CARD8 major opcode 1 1 minor opcode 2 5+m+6n request length 4 RC context 1 ELEMENT_HEADER element-header 3 unused 4 CARD32 m, number of client-specifiers 4 CARD32 n, number of ranges 4m LISTofCLIENTSPEC client-specifiers 24n LISTofRECORDRANGE ranges RecordRegisterClients 1 CARD8 major opcode 1 2 minor opcode 2 5+m+6n request length 4 RC context 1 ELEMENT_HEADER element-header 3 unused 4 CARD32 m, number of client-specifiers 4 CARD32 n, number of ranges 4m LISTofCLIENTSPEC client-specifiers 24n LISTofRECORDRANGE ranges RecordUnregisterClients 1 CARD8 major opcode 1 3 minor opcode 2 3+m request length 4 RC context 4 CARD32 m, number of client-specifiers 4m LISTofCLIENTSPEC client-specifiers RecordGetContext 1 CARD8 major opcode 1 4 minor opcode 2 2 request length 4 RC context => 1 1 Reply 1 BOOL enabled 2 CARD16 sequence number 4 j reply length 1 ELEMENT_HEADER element-header 3 unused 4 CARD32 n, number of intercepted-clients 16 unused 4j LISTofCLIENT_INFO intercepted-clients RecordEnableContext 1 CARD8 major opcode 1 5 minor opcode 2 2 request length 4 RC context =>+ 1 1 Reply 1 category 0 FromServer 1 FromClient 2 ClientStarted 3 ClientDied 4 StartOfData 5 EndOfData 2 CARD16 sequence number 4 n reply length 1 ELEMENT_HEADER element-header 1 BOOL client-swapped 2 unused 4 XIDBASE id-base 4 TIMESTAMP server-time 4 CARD32 recorded-sequence-number 8 unused 4n BYTE data RecordDisableContext 1 CARD8 major opcode 1 6 minor opcode 2 2 request length 4 RC context RecordFreeContext 1 CARD8 major opcode 1 7 minor opcode 2 2 request length 4 RC context xorgproto-2023.2/specs/recordproto/Makefile.am0000644000175000017500000000050714443010026016275 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = record.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/recordproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/recordproto/Makefile.in0000644000175000017500000005544514443010031016315 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/recordproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = record.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = record.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/recordproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/recordproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/recordproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/xproto/0000755000175000017500000000000014443010036013311 500000000000000xorgproto-2023.2/specs/xproto/encoding.xml0000644000175000017500000040463514443010026015554 00000000000000 Protocol Encoding Syntactic Conventions All numbers are in decimal, unless prefixed with #x, in which case they are in hexadecimal (base 16). The general syntax used to describe requests, replies, errors, events, and compound types is: NameofThing encode-form ... encode-form Each encode-form describes a single component. For components described in the protocol as: name: TYPE the encode-form is: N TYPE name N is the number of bytes occupied in the data stream, and TYPE is the interpretation of those bytes. For example, depth: CARD8 becomes: 1 CARD8 depth For components with a static numeric value the encode-form is: N value name The value is always interpreted as an N-byte unsigned integer. For example, the first two bytes of a Window error are always zero (indicating an error in general) and three (indicating the Window error in particular): 1 0 Error 1 3 code For components described in the protocol as: name: { Name1,..., NameI} the encode-form is: N name value1 Name1 ... valueI NameI The value is always interpreted as an N-byte unsigned integer. Note that the size of N is sometimes larger than that strictly required to encode the values. For example: class: { InputOutput, InputOnly, CopyFromParent } becomes: 2 class 0 CopyFromParent 1 InputOutput 2 InputOnly For components described in the protocol as: NAME: TYPE or Alternative1 ...or AlternativeI the encode-form is: N TYPE NAME value1 Alternative1 ... valueI AlternativeI The alternative values are guaranteed not to conflict with the encoding of TYPE. For example: destination: WINDOW or PointerWindow or InputFocus becomes: 4 WINDOW destination 0 PointerWindow 1 InputFocus For components described in the protocol as: value-mask: BITMASK the encode-form is: N BITMASK value-mask mask1 mask-name1 ... maskI mask-nameI The individual bits in the mask are specified and named, and N is 2 or 4. The most-significant bit in a BITMASK is reserved for use in defining chained (multiword) bitmasks, as extensions augment existing core requests. The precise interpretation of this bit is not yet defined here, although a probable mechanism is that a 1-bit indicates that another N bytes of bitmask follows, with bits within the overall mask still interpreted from least-significant to most-significant with an N-byte unit, with N-byte units interpreted in stream order, and with the overall mask being byte-swapped in individual N-byte units. For LISTofVALUE encodings, the request is followed by a section of the form: VALUEs encode-form ... encode-form listing an encode-form for each VALUE. The NAME in each encode-form keys to the corresponding BITMASK bit. The encoding of a VALUE always occupies four bytes, but the number of bytes specified in the encoding-form indicates how many of the least-significant bytes are actually used; the remaining bytes are unused and their values do not matter. In various cases, the number of bytes occupied by a component will be specified by a lowercase single-letter variable name instead of a specific numeric value, and often some other component will have its value specified as a simple numeric expression involving these variables. Components specified with such expressions are always interpreted as unsigned integers. The scope of such variables is always just the enclosing request, reply, error, event, or compound type structure. For example: 2 3+n request length 4n LISTofPOINT points For unused bytes (the values of the bytes are undefined and do no matter), the encode-form is: N unused If the number of unused bytes is variable, the encode-form typically is: p unused, p=pad(E) where E is some expression, Padding and pad(E) is the number of bytes needed to round E up to a multiple of four. pad(E) = (4 - (E mod 4)) mod 4 Common Types Typesencoding LISTofFOO In this document the LISTof notation strictly means some number of repetitions of the FOO encoding; the actual length of the list is encoded elsewhere. SETofFOO A set is always represented by a bitmask, with a 1-bit indicating presence in the set. BITMASK: CARD32 WINDOW: CARD32 PIXMAP: CARD32 CURSOR: CARD32 FONT: CARD32 GCONTEXT: CARD32 COLORMAP: CARD32 DRAWABLE: CARD32 FONTABLE: CARD32 ATOM: CARD32 VISUALID: CARD32 BYTE: 8-bit value INT8: 8-bit signed integer INT16: 16-bit signed integer INT32: 32-bit signed integer CARD8: 8-bit unsigned integer CARD16: 16-bit unsigned integer CARD32: 32-bit unsigned integer TIMESTAMP: CARD32 BITGRAVITY 0 Forget 1 NorthWest 2 North 3 NorthEast 4 West 5 Center 6 East 7 SouthWest 8 South 9 SouthEast 10 Static WINGRAVITY 0 Unmap 1 NorthWest 2 North 3 NorthEast 4 West 5 Center 6 East 7 SouthWest 8 South 9 SouthEast 10 Static BOOL 0 False 1 True SETofEVENT #x00000001 KeyPress #x00000002 KeyRelease #x00000004 ButtonPress #x00000008 ButtonRelease #x00000010 EnterWindow #x00000020 LeaveWindow #x00000040 PointerMotion #x00000080 PointerMotionHint #x00000100 Button1Motion #x00000200 Button2Motion #x00000400 Button3Motion #x00000800 Button4Motion #x00001000 Button5Motion #x00002000 ButtonMotion #x00004000 KeymapState #x00008000 Exposure #x00010000 VisibilityChange #x00020000 StructureNotify #x00040000 ResizeRedirect #x00080000 SubstructureNotify #x00100000 SubstructureRedirect #x00200000 FocusChange #x00400000 PropertyChange #x00800000 ColormapChange #x01000000 OwnerGrabButton #xFE000000 unused but must be zero SETofPOINTEREVENT encodings are the same as for SETofEVENT, except with #xFFFF8003 unused but must be zero SETofDEVICEEVENT encodings are the same as for SETofEVENT, except with #xFFFFC0B0 unused but must be zero KEYSYM: CARD32 KEYCODE: CARD8 BUTTON: CARD8 SETofKEYBUTMASK #x0001 Shift #x0002 Lock #x0004 Control #x0008 Mod1 #x0010 Mod2 #x0020 Mod3 #x0040 Mod4 #x0080 Mod5 #x0100 Button1 #x0200 Button2 #x0400 Button3 #x0800 Button4 #x1000 Button5 #xE000 unused but must be zero SETofKEYMASK encodings are the same as for SETofKEYBUTMASK, except with #xFF00 unused but must be zero STRING8: LISTofCARD8 STRING16: LISTofCHAR2B CHAR2B 1 CARD8 byte1 1 CARD8 byte2 POINT 2 INT16 x 2 INT16 y RECTANGLE 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height ARC 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 INT16 angle1 2 INT16 angle2 HOST 1 family 0 Internet 1 DECnet 2 Chaos 5 ServerInterpreted 6 InternetV6 1 unused 2 n length of address n LISTofBYTE address p unused, p=pad(n) STR 1 n length of name in bytes n STRING8 name Errors Error reportencoding Request 1 0 Error 1 1 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Value 1 0 Error 1 2 code 2 CARD16 sequence number 4 <32-bits> bad value 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Window 1 0 Error 1 3 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Pixmap 1 0 Error 1 4 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Atom 1 0 Error 1 5 code 2 CARD16 sequence number 4 CARD32 bad atom id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Cursor 1 0 Error 1 6 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Font 1 0 Error 1 7 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Match 1 0 Error 1 8 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Drawable 1 0 Error 1 9 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Access 1 0 Error 1 10 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Alloc 1 0 Error 1 11 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Colormap 1 0 Error 1 12 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused GContext 1 0 Error 1 13 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused IDChoice 1 0 Error 1 14 code 2 CARD16 sequence number 4 CARD32 bad resource id 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Name 1 0 Error 1 15 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Length 1 0 Error 1 16 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Implementation 1 0 Error 1 17 code 2 CARD16 sequence number 4 unused 2 CARD16 minor opcode 1 CARD8 major opcode 21 unused Keyboards KEYCODE values are always greater than 7 (and less than 256). KEYSYM values with the bit #x10000000 set are reserved as vendor-specific. The names and encodings of the standard KEYSYM values are contained in Appendix A, Keysym Encoding. Pointers BUTTON values are numbered starting with one. Predefined Atoms Atompredefined PRIMARY 1 WM_NORMAL_HINTS 40 SECONDARY 2 WM_SIZE_HINTS 41 ARC 3 WM_ZOOM_HINTS 42 ATOM 4 MIN_SPACE 43 BITMAP 5 NORM_SPACE 44 CARDINAL 6 MAX_SPACE 45 COLORMAP 7 END_SPACE 46 CURSOR 8 SUPERSCRIPT_X 47 CUT_BUFFER0 9 SUPERSCRIPT_Y 48 CUT_BUFFER1 10 SUBSCRIPT_X 49 CUT_BUFFER2 11 SUBSCRIPT_Y 50 CUT_BUFFER3 12 UNDERLINE_POSITION 51 CUT_BUFFER4 13 UNDERLINE_THICKNESS 52 CUT_BUFFER5 14 STRIKEOUT_ASCENT 53 CUT_BUFFER6 15 STRIKEOUT_DESCENT 54 CUT_BUFFER7 16 ITALIC_ANGLE 55 DRAWABLE 17 X_HEIGHT 56 FONT 18 QUAD_WIDTH 57 INTEGER 19 WEIGHT 58 PIXMAP 20 POINT_SIZE 59 POINT 21 RESOLUTION 60 RECTANGLE 22 COPYRIGHT 61 RESOURCE_MANAGER 23 NOTICE 62 RGB_COLOR_MAP 24 FONT_NAME 63 RGB_BEST_MAP 25 FAMILY_NAME 64 RGB_BLUE_MAP 26 FULL_NAME 65 RGB_DEFAULT_MAP 27 CAP_HEIGHT 66 RGB_GRAY_MAP 28 WM_CLASS 67 RGB_GREEN_MAP 29 WM_TRANSIENT_FOR 68 RGB_RED_MAP 30 STRING 31 VISUALID 32 WINDOW 33 WM_COMMAND 34 WM_HINTS 35 WM_CLIENT_MACHINE 36 WM_ICON_NAME 37 WM_ICON_SIZE 38 WM_NAME 39 Connection Setup For TCP connections, displays on a given host are numbered starting from 0, and the server for display N listens and accepts connections on port 6000 + N. For DECnet connections, displays on a given host are numbered starting from 0, and the server for display N listens and accepts connections on the object name obtained by concatenating "X$X" with the decimal representation of N, for example, X$X0 and X$X1. Information sent by the client at connection setup: 1 byte-order #x42 MSB first #x6C LSB first 1 unused 2 CARD16 protocol-major-version 2 CARD16 protocol-minor-version 2 n length of authorization-protocol-name 2 d length of authorization-protocol-data 2 unused n STRING8 authorization-protocol-name p unused, p=pad(n) d STRING8 authorization-protocol-data q unused, q=pad(d) Except where explicitly noted in the protocol, all 16-bit and 32-bit quantities sent by the client must be transmitted with the specified byte order, and all 16-bit and 32-bit quantities returned by the server will be transmitted with this byte order. Information received by the client if the connection is refused: 1 0 Failed 1 n length of reason in bytes 2 CARD16 protocol-major-version 2 CARD16 protocol-minor-version 2 (n+p)/4 length in 4-byte units of "additional data" n STRING8 reason p unused, p=pad(n) Information received by the client if further authentication is required: 1 2 Authenticate 5 unused 2 (n+p)/4 length in 4-byte units of "additional data" n STRING8 reason p unused, p=pad(n) Information received by the client if the connection is accepted: 1 1 Success 1 unused 2 CARD16 protocol-major-version 2 CARD16 protocol-minor-version 2 8+2n+(v+p+m)/4 length in 4-byte units of "additional data" 4 CARD32 release-number 4 CARD32 resource-id-base 4 CARD32 resource-id-mask 4 CARD32 motion-buffer-size 2 v length of vendor 2 CARD16 maximum-request-length 1 CARD8 number of SCREENs in roots 1 n number for FORMATs in pixmap-formats 1 image-byte-order 0 LSBFirst 1 MSBFirst 1 bitmap-format-bit-order 0 LeastSignificant 1 MostSignificant 1 CARD8 bitmap-format-scanline-unit 1 CARD8 bitmap-format-scanline-pad 1 KEYCODE min-keycode 1 KEYCODE max-keycode 4 unused v STRING8 vendor p unused, p=pad(v) 8n LISTofFORMAT pixmap-formats m LISTofSCREEN roots (m is always a multiple of 4) FORMAT 1 CARD8 depth 1 CARD8 bits-per-pixel 1 CARD8 scanline-pad 5 unused SCREEN 4 WINDOW root 4 COLORMAP default-colormap 4 CARD32 white-pixel 4 CARD32 black-pixel 4 SETofEVENT current-input-masks 2 CARD16 width-in-pixels 2 CARD16 height-in-pixels 2 CARD16 width-in-millimeters 2 CARD16 height-in-millimeters 2 CARD16 min-installed-maps 2 CARD16 max-installed-maps 4 VISUALID root-visual 1 backing-stores 0 Never 1 WhenMapped 2 Always 1 BOOL save-unders 1 CARD8 root-depth 1 CARD8 number of DEPTHs in allowed-depths n LISTofDEPTH allowed-depths (n is always a multiple of 4) DEPTH 1 CARD8 depth 1 unused 2 n number of VISUALTYPES in visuals 4 unused 24n LISTofVISUALTYPE visuals VISUALTYPE 4 VISUALID visual-id 1 class 0 StaticGray 1 GrayScale 2 StaticColor 3 PseudoColor 4 TrueColor 5 DirectColor 1 CARD8 bits-per-rgb-value 2 CARD16 colormap-entries 4 CARD32 red-mask 4 CARD32 green-mask 4 CARD32 blue-mask 4 unused Requests Requestencoding CreateWindow 1 1 opcode 1 CARD8 depth 2 8+n request length 4 WINDOW wid 4 WINDOW parent 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 2 class 0 CopyFromParent 1 InputOutput 2 InputOnly 4 VISUALID visual 0 CopyFromParent 4 BITMASK value-mask (has n bits set to 1) #x00000001 background-pixmap #x00000002 background-pixel #x00000004 border-pixmap #x00000008 border-pixel #x00000010 bit-gravity #x00000020 win-gravity #x00000040 backing-store #x00000080 backing-planes #x00000100 backing-pixel #x00000200 override-redirect #x00000400 save-under #x00000800 event-mask #x00001000 do-not-propagate-mask #x00002000 colormap #x00004000 cursor 4n LISTofVALUE value-list VALUEs 4 PIXMAP background-pixmap 0 None 1 ParentRelative 4 CARD32 background-pixel 4 PIXMAP border-pixmap 0 CopyFromParent 4 CARD32 border-pixel 1 BITGRAVITY bit-gravity 1 WINGRAVITY win-gravity 1 backing-store 0 NotUseful 1 WhenMapped 2 Always 4 CARD32 backing-planes 4 CARD32 backing-pixel 1 BOOL override-redirect 1 BOOL save-under 4 SETofEVENT event-mask 4 SETofDEVICEEVENT do-not-propagate-mask 4 COLORMAP colormap 0 CopyFromParent 4 CURSOR cursor 0 None ChangeWindowAttributes 1 2 opcode 1 unused 2 3+n request length 4 WINDOW window 4 BITMASK value-mask (has n bits set to 1) encodings are the same as for CreateWindow 4n LISTofVALUE value-list encodings are the same as for CreateWindow GetWindowAttributes 1 3 opcode 1 unused 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 backing-store 0 NotUseful 1 WhenMapped 2 Always 2 CARD16 sequence number 4 3 reply length 4 VISUALID visual 2 class 1 InputOutput 2 InputOnly 1 BITGRAVITY bit-gravity 1 WINGRAVITY win-gravity 4 CARD32 backing-planes 4 CARD32 backing-pixel 1 BOOL save-under 1 BOOL map-is-installed 1 map-state 0 Unmapped 1 Unviewable 2 Viewable 1 BOOL override-redirect 4 COLORMAP colormap 0 None 4 SETofEVENT all-event-masks 4 SETofEVENT your-event-mask 2 SETofDEVICEEVENT do-not-propagate-mask 2 unused DestroyWindow 1 4 opcode 1 unused 2 2 request length 4 WINDOW window DestroySubwindows 1 5 opcode 1 unused 2 2 request length 4 WINDOW window ChangeSaveSet 1 6 opcode 1 mode 0 Insert 1 Delete 2 2 request length 4 WINDOW window ReparentWindow 1 7 opcode 1 unused 2 4 request length 4 WINDOW window 4 WINDOW parent 2 INT16 x 2 INT16 y MapWindow 1 8 opcode 1 unused 2 2 request length 4 WINDOW window MapSubwindows 1 9 opcode 1 unused 2 2 request length 4 WINDOW window UnmapWindow 1 10 opcode 1 unused 2 2 request length 4 WINDOW window UnmapSubwindows 1 11 opcode 1 unused 2 2 request length 4 WINDOW window ConfigureWindow 1 12 opcode 1 unused 2 3+n request length 4 WINDOW window 2 BITMASK value-mask (has n bits set to 1) #x0001 x #x0002 y #x0004 width #x0008 height #x0010 border-width #x0020 sibling #x0040 stack-mode 2 unused 4n LISTofVALUE value-list VALUEs 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 4 WINDOW sibling 1 stack-mode 0 Above 1 Below 2 TopIf 3 BottomIf 4 Opposite CirculateWindow 1 13 opcode 1 direction 0 RaiseLowest 1 LowerHighest 2 2 request length 4 WINDOW window GetGeometry 1 14 opcode 1 unused 2 2 request length 4 DRAWABLE drawable â–¶ 1 1 Reply 1 CARD8 depth 2 CARD16 sequence number 4 0 reply length 4 WINDOW root 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 10 unused QueryTree 1 15 opcode 1 unused 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 4 WINDOW root 4 WINDOW parent 0 None 2 n number of WINDOWs in children 14 unused 4n LISTofWINDOW children InternAtom 1 16 opcode 1 BOOL only-if-exists 2 2+(n+p)/4 request length 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 ATOM atom 0 None 20 unused GetAtomName 1 17 opcode 1 unused 2 2 request length 4 ATOM atom â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 (n+p)/4 reply length 2 n length of name 22 unused n STRING8 name p unused, p=pad(n) ChangeProperty 1 18 opcode 1 mode 0 Replace 1 Prepend 2 Append 2 6+(n+p)/4 request length 4 WINDOW window 4 ATOM property 4 ATOM type 1 CARD8 format 3 unused 4 CARD32 length of data in format units (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) n LISTofBYTE data (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) DeleteProperty 1 19 opcode 1 unused 2 3 request length 4 WINDOW window 4 ATOM property GetProperty 1 20 opcode 1 BOOL delete 2 6 request length 4 WINDOW window 4 ATOM property 4 ATOM type 0 AnyPropertyType 4 CARD32 long-offset 4 CARD32 long-length â–¶ 1 1 Reply 1 CARD8 format 2 CARD16 sequence number 4 (n+p)/4 reply length 4 ATOM type 0 None 4 CARD32 bytes-after 4 CARD32 length of value in format units (= 0 for format = 0) (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) 12 unused n LISTofBYTE value (n is zero for format = 0) (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) ListProperties 1 21 opcode 1 unused 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 2 n number of ATOMs in atoms 22 unused 4n LISTofATOM atoms SetSelectionOwner 1 22 opcode 1 unused 2 4 request length 4 WINDOW owner 0 None 4 ATOM selection 4 TIMESTAMP time 0 CurrentTime GetSelectionOwner 1 23 opcode 1 unused 2 2 request length 4 ATOM selection â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 WINDOW owner 0 None 20 unused ConvertSelection 1 24 opcode 1 unused 2 6 request length 4 WINDOW requestor 4 ATOM selection 4 ATOM target 4 ATOM property 0 None 4 TIMESTAMP time 0 CurrentTime SendEvent 1 25 opcode 1 BOOL propagate 2 11 requestlength 4 WINDOW destination 0 PointerWindow 1 InputFocus 4 SETofEVENT event-mask 32 event standard event format (see the Events section) GrabPointer 1 26 opcode 1 BOOL owner-events 2 6 request length 4 WINDOW grab-window 2 SETofPOINTEREVENT event-mask 1 pointer-mode 0 Synchronous 1 Asynchronous 1 keyboard-mode 0 Synchronous 1 Asynchronous 4 WINDOW confine-to 0 None 4 CURSOR cursor 0 None 4 TIMESTAMP time 0 CurrentTime â–¶ 1 1 Reply 1 status 0 Success 1 AlreadyGrabbed 2 InvalidTime 3 NotViewable 4 Frozen 2 CARD16 sequence number 4 0 reply length 24 unused UngrabPointer 1 27 opcode 1 unused 2 2 request length 4 TIMESTAMP time 0 CurrentTime GrabButton 1 28 opcode 1 BOOL owner-events 2 6 request length 4 WINDOW grab-window 2 SETofPOINTEREVENT event-mask 1 pointer-mode 0 Synchronous 1 Asynchronous 1 keyboard-mode 0 Synchronous 1 Asynchronous 4 WINDOW confine-to 0 None 4 CURSOR cursor 0 None 1 BUTTON button 0 AnyButton 1 unused 2 SETofKEYMASK modifiers #x8000 AnyModifier UngrabButton 1 29 opcode 1 BUTTON button 0 AnyButton 2 3 request length 4 WINDOW grab-window 2 SETofKEYMASK modifiers #x8000 AnyModifier 2 unused ChangeActivePointerGrab 1 30 opcode 1 unused 2 4 request length 4 CURSOR cursor 0 None 4 TIMESTAMP time 0 CurrentTime 2 SETofPOINTEREVENT event-mask 2 unused GrabKeyboard 1 31 opcode 1 BOOL owner-events 2 4 request length 4 WINDOW grab-window 4 TIMESTAMP time 0 CurrentTime 1 pointer-mode 0 Synchronous 1 Asynchronous 1 keyboard-mode 0 Synchronous 1 Asynchronous 2 unused â–¶ 1 1 Reply 1 status 0 Success 1 AlreadyGrabbed 2 InvalidTime 3 NotViewable 4 Frozen 2 CARD16 sequence number 4 0 reply length 24 unused UngrabKeyboard 1 32 opcode 1 unused 2 2 request length 4 TIMESTAMP time 0 CurrentTime GrabKey 1 33 opcode 1 BOOL owner-events 2 4 request length 4 WINDOW grab-window 2 SETofKEYMASK modifiers #x8000 AnyModifier 1 KEYCODE key 0 AnyKey 1 pointer-mode 0 Synchronous 1 Asynchronous 1 keyboard-mode 0 Synchronous 1 Asynchronous 3 unused UngrabKey 1 34 opcode 1 KEYCODE key 0 AnyKey 2 3 request length 4 WINDOW grab-window 2 SETofKEYMASK modifiers #x8000 AnyModifier 2 unused AllowEvents 1 35 opcode 1 mode 0 AsyncPointer 1 SyncPointer 2 ReplayPointer 3 AsyncKeyboard 4 SyncKeyboard 5 ReplayKeyboard 6 AsyncBoth 7 SyncBoth 2 2 request length 4 TIMESTAMP time 0 CurrentTime GrabServer 1 36 opcode 1 unused 2 1 request length UngrabServer 1 37 opcode 1 unused 2 1 request length QueryPointer 1 38 opcode 1 unused 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 BOOL same-screen 2 CARD16 sequence number 4 0 reply length 4 WINDOW root 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 win-x 2 INT16 win-y 2 SETofKEYBUTMASK mask 6 unused GetMotionEvents 1 39 opcode 1 unused 2 4 request length 4 WINDOW window 4 TIMESTAMP start 0 CurrentTime 4 TIMESTAMP stop 0 CurrentTime â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 2n reply length 4 n number of TIMECOORDs in events 20 unused 8n LISTofTIMECOORD events TIMECOORD 4 TIMESTAMP time 2 INT16 x 2 INT16 y TranslateCoordinates 1 40 opcode 1 unused 2 4 request length 4 WINDOW src-window 4 WINDOW dst-window 2 INT16 src-x 2 INT16 src-y â–¶ 1 1 Reply 1 BOOL same-screen 2 CARD16 sequence number 4 0 reply length 4 WINDOW child 0 None 2 INT16 dst-x 2 INT16 dst-y 16 unused WarpPointer 1 41 opcode 1 unused 2 6 request length 4 WINDOW src-window 0 None 4 WINDOW dst-window 0 None 2 INT16 src-x 2 INT16 src-y 2 CARD16 src-width 2 CARD16 src-height 2 INT16 dst-x 2 INT16 dst-y SetInputFocus 1 42 opcode 1 revert-to 0 None 1 PointerRoot 2 Parent 2 3 request length 4 WINDOW focus 0 None 1 PointerRoot 4 TIMESTAMP time 0 CurrentTime GetInputFocus 1 43 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 revert-to 0 None 1 PointerRoot 2 Parent 2 CARD16 sequence number 4 0 reply length 4 WINDOW focus 0 None 1 PointerRoot 20 unused QueryKeymap 1 44 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 2 reply length 32 LISTofCARD8 keys OpenFont 1 45 opcode 1 unused 2 3+(n+p)/4 request length 4 FONT fid 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) CloseFont 1 46 opcode 1 unused 2 2 request length 4 FONT font QueryFont 1 47 opcode 1 unused 2 2 request length 4 FONTABLE font â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 7+2n+3m reply length 12 CHARINFO min-bounds 4 unused 12 CHARINFO max-bounds 4 unused 2 CARD16 min-char-or-byte2 2 CARD16 max-char-or-byte2 2 CARD16 default-char 2 n number of FONTPROPs in properties 1 draw-direction 0 LeftToRight 1 RightToLeft 1 CARD8 min-byte1 1 CARD8 max-byte1 1 BOOL all-chars-exist 2 INT16 font-ascent 2 INT16 font-descent 4 m number of CHARINFOs in char-infos 8n LISTofFONTPROP properties 12m LISTofCHARINFO char-infos FONTPROP 4 ATOM name 4 <32-bits> value CHARINFO 2 INT16 left-side-bearing 2 INT16 right-side-bearing 2 INT16 character-width 2 INT16 ascent 2 INT16 descent 2 CARD16 attributes QueryTextExtents 1 48 opcode 1 BOOL odd length, True if p = 2 2 2+(2n+p)/4 request length 4 FONTABLE font 2n STRING16 string p unused, p=pad(2n) â–¶ 1 1 Reply 1 draw-direction 0 LeftToRight 1 RightToLeft 2 CARD16 sequence number 4 0 reply length 2 INT16 font-ascent 2 INT16 font-descent 2 INT16 overall-ascent 2 INT16 overall-descent 4 INT32 overall-width 4 INT32 overall-left 4 INT32 overall-right 4 unused ListFonts 1 49 opcode 1 unused 2 2+(n+p)/4 request length 2 CARD16 max-names 2 n length of pattern n STRING8 pattern p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 (n+p)/4 reply length 2 CARD16 number of STRs in names 22 unused n LISTofSTR names p unused, p=pad(n) ListFontsWithInfo 1 50 opcode 1 unused 2 2+(n+p)/4 request length 2 CARD16 max-names 2 n length of pattern n STRING8 pattern p unused, p=pad(n) â–¶ (except for last in series) 1 1 Reply 1 n length of name in bytes 2 CARD16 sequence number 4 7+2m+(n+p)/4 reply length 12 CHARINFO min-bounds 4 unused 12 CHARINFO max-bounds 4 unused 2 CARD16 min-char-or-byte2 2 CARD16 max-char-or-byte2 2 CARD16 default-char 2 m number of FONTPROPs in properties 1 draw-direction 0 LeftToRight 1 RightToLeft 1 CARD8 min-byte1 1 CARD8 max-byte1 1 BOOL all-chars-exist 2 INT16 font-ascent 2 INT16 font-descent 4 CARD32 replies-hint 8m LISTofFONTPROP properties n STRING8 name p unused, p=pad(n) FONTPROP encodings are the same as for QueryFont CHARINFO encodings are the same as for QueryFont â–¶ (last in series) 1 1 Reply 1 0 last-reply indicator 2 CARD16 sequence number 4 7 reply length 52 unused SetFontPath 1 51 opcode 1 unused 2 2+(n+p)/4 request length 2 CARD16 number of STRs in path 2 unused n LISTofSTR path p unused, p=pad(n) GetFontPath 1 52 opcode 1 unused 2 1 request list â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 (n+p)/4 reply length 2 CARD16 number of STRs in path 22 unused n LISTofSTR path p unused, p=pad(n) CreatePixmap 1 53 opcode 1 CARD8 depth 2 4 request length 4 PIXMAP pid 4 DRAWABLE drawable 2 CARD16 width 2 CARD16 height FreePixmap 1 54 opcode 1 unused 2 2 request length 4 PIXMAP pixmap CreateGC 1 55 opcode 1 unused 2 4+n request length 4 GCONTEXT cid 4 DRAWABLE drawable 4 BITMASK value-mask (has n bits set to 1) #x00000001 function #x00000002 plane-mask #x00000004 foreground #x00000008 background #x00000010 line-width #x00000020 line-style #x00000040 cap-style #x00000080 join-style #x00000100 fill-style #x00000200 fill-rule #x00000400 tile #x00000800 stipple #x00001000 tile-stipple-x-origin #x00002000 tile-stipple-y-origin #x00004000 font #x00008000 subwindow-mode #x00010000 graphics-exposures #x00020000 clip-x-origin #x00040000 clip-y-origin #x00080000 clip-mask #x00100000 dash-offset #x00200000 dashes #x00400000 arc-mode 4n LISTofVALUE value-list VALUEs 1 function 0 Clear 1 And 2 AndReverse 3 Copy 4 AndInverted 5 NoOp 6 Xor 7 Or 8 Nor 9 Equiv 10 Invert 11 OrReverse 12 CopyInverted 13 OrInverted 14 Nand 15 Set 4 CARD32 plane-mask 4 CARD32 foreground 4 CARD32 background 2 CARD16 line-width 1 line-style 0 Solid 1 OnOffDash 2 DoubleDash 1 cap-style 0 NotLast 1 Butt 2 Round 3 Projecting 1 join-style 0 Miter 1 Round 2 Bevel 1 fill-style 0 Solid 1 Tiled 2 Stippled 3 OpaqueStippled 1 fill-rule 0 EvenOdd 1 Winding 4 PIXMAP tile 4 PIXMAP stipple 2 INT16 tile-stipple-x-origin 2 INT16 tile-stipple-y-origin 4 FONT font 1 subwindow-mode 0 ClipByChildren 1 IncludeInferiors 1 BOOL graphics-exposures 2 INT16 clip-x-origin 2 INT16 clip-y-origin 4 PIXMAP clip-mask 0 None 2 CARD16 dash-offset 1 CARD8 dashes 1 arc-mode 0 Chord 1 PieSlice ChangeGC 1 56 opcode 1 unused 2 3+n request length 4 GCONTEXT gc 4 BITMASK value-mask (has n bits set to 1) encodings are the same as for CreateGC 4n LISTofVALUE value-list encodings are the same as for CreateGC CopyGC 1 57 opcode 1 unused 2 4 request length 4 GCONTEXT src-gc 4 GCONTEXT dst-gc 4 BITMASK value-mask encodings are the same as for CreateGC SetDashes 1 58 opcode 1 unused 2 3+(n+p)/4 request length 4 GCONTEXT gc 2 CARD16 dash-offset 2 n length of dashes n LISTofCARD8 dashes p unused, p=pad(n) SetClipRectangles 1 59 opcode 1 ordering 0 UnSorted 1 YSorted 2 YXSorted 3 YXBanded 2 3+2n request length 4 GCONTEXT gc 2 INT16 clip-x-origin 2 INT16 clip-y-origin 8n LISTofRECTANGLE rectangles FreeGC 1 60 opcode 1 unused 2 2 request length 4 GCONTEXT gc ClearArea 1 61 opcode 1 BOOL exposures 2 4 request length 4 WINDOW window 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height CopyArea 1 62 opcode 1 unused 2 7 request length 4 DRAWABLE src-drawable 4 DRAWABLE dst-drawable 4 GCONTEXT gc 2 INT16 src-x 2 INT16 src-y 2 INT16 dst-x 2 INT16 dst-y 2 CARD16 width 2 CARD16 height CopyPlane 1 63 opcode 1 unused 2 8 request length 4 DRAWABLE src-drawable 4 DRAWABLE dst-drawable 4 GCONTEXT gc 2 INT16 src-x 2 INT16 src-y 2 INT16 dst-x 2 INT16 dst-y 2 CARD16 width 2 CARD16 height 4 CARD32 bit-plane PolyPoint 1 64 opcode 1 coordinate-mode 0 Origin 1 Previous 2 3+n request length 4 DRAWABLE drawable 4 GCONTEXT gc 4n LISTofPOINT points PolyLine 1 65 opcode 1 coordinate-mode 0 Origin 1 Previous 2 3+n request length 4 DRAWABLE drawable 4 GCONTEXT gc 4n LISTofPOINT points PolySegment 1 66 opcode 1 unused 2 3+2n request length 4 DRAWABLE drawable 4 GCONTEXT gc 8n LISTofSEGMENT segments SEGMENT 2 INT16 x1 2 INT16 y1 2 INT16 x2 2 INT16 y2 PolyRectangle 1 67 opcode 1 unused 2 3+2n request length 4 DRAWABLE drawable 4 GCONTEXT gc 8n LISTofRECTANGLE rectangles PolyArc 1 68 opcode 1 unused 2 3+3n request length 4 DRAWABLE drawable 4 GCONTEXT gc 12n LISTofARC arcs FillPoly 1 69 opcode 1 unused 2 4+n request length 4 DRAWABLE drawable 4 GCONTEXT gc 1 shape 0 Complex 1 Nonconvex 2 Convex 1 coordinate-mode 0 Origin 1 Previous 2 unused 4n LISTofPOINT points PolyFillRectangle 1 70 opcode 1 unused 2 3+2n request length 4 DRAWABLE drawable 4 GCONTEXT gc 8n LISTofRECTANGLE rectangles PolyFillArc 1 71 opcode 1 unused 2 3+3n request length 4 DRAWABLE drawable 4 GCONTEXT gc 12n LISTofARC arcs PutImage 1 72 opcode 1 format 0 Bitmap 1 XYPixmap 2 ZPixmap 2 6+(n+p)/4 request length 4 DRAWABLE drawable 4 GCONTEXT gc 2 CARD16 width 2 CARD16 height 2 INT16 dst-x 2 INT16 dst-y 1 CARD8 left-pad 1 CARD8 depth 2 unused n LISTofBYTE data p unused, p=pad(n) GetImage 1 73 opcode 1 format 1 XYPixmap 2 ZPixmap 2 5 request length 4 DRAWABLE drawable 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 4 CARD32 plane-mask â–¶ 1 1 Reply 1 CARD8 depth 2 CARD16 sequence number 4 (n+p)/4 reply length 4 VISUALID visual 0 None 20 unused n LISTofBYTE data p unused, p=pad(n) PolyText8 1 74 opcode 1 unused 2 4+(n+p)/4 request length 4 DRAWABLE drawable 4 GCONTEXT gc 2 INT16 x 2 INT16 y n LISTofTEXTITEM8 items p unused, p=pad(n) (p is always 0 or 1) TEXTITEM8 1 m length of string (cannot be 255) 1 INT8 delta m STRING8 string or 1 255 font-shift indicator 1 font byte 3 (most-significant) 1 font byte 2 1 font byte 1 1 font byte 0 (least-significant) PolyText16 1 75 opcode 1 unused 2 4+(n+p)/4 request length 4 DRAWABLE drawable 4 GCONTEXT gc 2 INT16 x 2 INT16 y n LISTofTEXTITEM16 items p unused, p=pad(n) (p must be 0 or 1) TEXTITEM16 1 m number of CHAR2Bs in string (cannot be 255) 1 INT8 delta 2m STRING16 string or 1 255 font-shift indicator 1 font byte 3 (most-significant) 1 font byte 2 1 font byte 1 1 font byte 0 (least-significant) ImageText8 1 76 opcode 1 n length of string 2 4+(n+p)/4 request length 4 DRAWABLE drawable 4 GCONTEXT gc 2 INT16 x 2 INT16 y n STRING8 string p unused, p=pad(n) ImageText16 1 77 opcode 1 n number of CHAR2Bs in string 2 4+(2n+p)/4 request length 4 DRAWABLE drawable 4 GCONTEXT gc 2 INT16 x 2 INT16 y 2n STRING16 string p unused, p=pad(2n) CreateColormap 1 78 opcode 1 alloc 0 None 1 All 2 4 request length 4 COLORMAP mid 4 WINDOW window 4 VISUALID visual FreeColormap 1 79 opcode 1 unused 2 2 request length 4 COLORMAP cmap CopyColormapAndFree 1 80 opcode 1 unused 2 3 request length 4 COLORMAP mid 4 COLORMAP src-cmap InstallColormap 1 81 opcode 1 unused 2 2 request length 4 COLORMAP cmap UninstallColormap 1 82 opcode 1 unused 2 2 request length 4 COLORMAP cmap ListInstalledColormaps 1 83 opcode 1 unused 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 2 n number of COLORMAPs in cmaps 22 unused 4n LISTofCOLORMAP cmaps AllocColor 1 84 opcode 1 unused 2 4 request length 4 COLORMAP cmap 2 CARD16 red 2 CARD16 green 2 CARD16 blue 2 unused â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 red 2 CARD16 green 2 CARD16 blue 2 unused 4 CARD32 pixel 12 unused AllocNamedColor 1 85 opcode 1 unused 2 3+(n+p)/4 request length 4 COLORMAP cmap 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 pixel 2 CARD16 exact-red 2 CARD16 exact-green 2 CARD16 exact-blue 2 CARD16 visual-red 2 CARD16 visual-green 2 CARD16 visual-blue 8 unused AllocColorCells 1 86 opcode 1 BOOL contiguous 2 3 request length 4 COLORMAP cmap 2 CARD16 colors 2 CARD16 planes â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n+m reply length 2 n number of CARD32s in pixels 2 m number of CARD32s in masks 20 unused 4n LISTofCARD32 pixels 4m LISTofCARD32 masks AllocColorPlanes 1 87 opcode 1 BOOL contiguous 2 4 request length 4 COLORMAP cmap 2 CARD16 colors 2 CARD16 reds 2 CARD16 greens 2 CARD16 blues â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 2 n number of CARD32s in pixels 2 unused 4 CARD32 red-mask 4 CARD32 green-mask 4 CARD32 blue-mask 8 unused 4n LISTofCARD32 pixels FreeColors 1 88 opcode 1 unused 2 3+n request length 4 COLORMAP cmap 4 CARD32 plane-mask 4n LISTofCARD32 pixels StoreColors 1 89 opcode 1 unused 2 2+3n request length 4 COLORMAP cmap 12n LISTofCOLORITEM items COLORITEM 4 CARD32 pixel 2 CARD16 red 2 CARD16 green 2 CARD16 blue 1 do-red, do-green, do-blue #x01 do-red (1 is True, 0 is False) #x02 do-green (1 is True, 0 is False) #x04 do-blue (1 is True, 0 is False) #xF8 unused 1 unused StoreNamedColor 1 90 opcode 1 do-red, do-green, do-blue #x01 do-red (1 is True, 0 is False) #x02 do-green (1 is True, 0 is False) #x04 do-blue (1 is True, 0 is False) #xF8 unused 2 4+(n+p)/4 request length 4 COLORMAP cmap 4 CARD32 pixel 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) QueryColors 1 91 opcode 1 unused 2 2+n request length 4 COLORMAP cmap 4n LISTofCARD32 pixels â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 2n reply length 2 n number of RGBs in colors 22 unused 8n LISTofRGB colors RGB 2 CARD16 red 2 CARD16 green 2 CARD16 blue 2 unused LookupColor 1 92 opcode 1 unused 2 3+(n+p)/4 request length 4 COLORMAP cmap 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 exact-red 2 CARD16 exact-green 2 CARD16 exact-blue 2 CARD16 visual-red 2 CARD16 visual-green 2 CARD16 visual-blue 12 unused CreateCursor 1 93 opcode 1 unused 2 8 request length 4 CURSOR cid 4 PIXMAP source 4 PIXMAP mask 0 None 2 CARD16 fore-red 2 CARD16 fore-green 2 CARD16 fore-blue 2 CARD16 back-red 2 CARD16 back-green 2 CARD16 back-blue 2 CARD16 x 2 CARD16 y CreateGlyphCursor 1 94 opcode 1 unused 2 8 request length 4 CURSOR cid 4 FONT source-font 4 FONT mask-font 0 None 2 CARD16 source-char 2 CARD16 mask-char 2 CARD16 fore-red 2 CARD16 fore-green 2 CARD16 fore-blue 2 CARD16 back-red 2 CARD16 back-green 2 CARD16 back-blue FreeCursor 1 95 opcode 1 unused 2 2 request length 4 CURSOR cursor RecolorCursor 1 96 opcode 1 unused 2 5 request length 4 CURSOR cursor 2 CARD16 fore-red 2 CARD16 fore-green 2 CARD16 fore-blue 2 CARD16 back-red 2 CARD16 back-green 2 CARD16 back-blue QueryBestSize 1 97 opcode 1 class 0 Cursor 1 Tile 2 Stipple 2 3 request length 4 DRAWABLE drawable 2 CARD16 width 2 CARD16 height â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 width 2 CARD16 height 20 unused QueryExtension 1 98 opcode 1 unused 2 2+(n+p)/4 request length 2 n length of name 2 unused n STRING8 name p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 BOOL present 1 CARD8 major-opcode 1 CARD8 first-event 1 CARD8 first-error 20 unused ListExtensions 1 99 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 CARD8 number of STRs in names 2 CARD16 sequence number 4 (n+p)/4 reply length 24 unused n LISTofSTR names p unused, p=pad(n) ChangeKeyboardMapping 1 100 opcode 1 n keycode-count 2 2+nm request length 1 KEYCODE first-keycode 1 m keysyms-per-keycode 2 unused 4nm LISTofKEYSYM keysyms GetKeyboardMapping 1 101 opcode 1 unused 2 2 request length 1 KEYCODE first-keycode 1 m count 2 unused â–¶ 1 1 Reply 1 n keysyms-per-keycode 2 CARD16 sequence number 4 nm reply length (m = count field from the request) 24 unused 4nm LISTofKEYSYM keysyms ChangeKeyboardControl 1 102 opcode 1 unused 2 2+n request length 4 BITMASK value-mask (has n bits set to 1) #x0001 key-click-percent #x0002 bell-percent #x0004 bell-pitch #x0008 bell-duration #x0010 led #x0020 led-mode #x0040 key #x0080 auto-repeat-mode 4n LISTofVALUE value-list VALUEs 1 INT8 key-click-percent 1 INT8 bell-percent 2 INT16 bell-pitch 2 INT16 bell-duration 1 CARD8 led 1 led-mode 0 Off 1 On 1 KEYCODE key 1 auto-repeat-mode 0 Off 1 On 2 Default GetKeyboardControl 1 103 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 global-auto-repeat 0 Off 1 On 2 CARD16 sequence number 4 5 reply length 4 CARD32 led-mask 1 CARD8 key-click-percent 1 CARD8 bell-percent 2 CARD16 bell-pitch 2 CARD16 bell-duration 2 unused 32 LISTofCARD8 auto-repeats Bell 1 104 opcode 1 INT8 percent 2 1 request length ChangePointerControl 1 105 opcode 1 unused 2 3 request length 2 INT16 acceleration-numerator 2 INT16 acceleration-denominator 2 INT16 threshold 1 BOOL do-acceleration 1 BOOL do-threshold GetPointerControl 1 106 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 acceleration-numerator 2 CARD16 acceleration-denominator 2 CARD16 threshold 18 unused SetScreenSaver 1 107 opcode 1 unused 2 3 request length 2 INT16 timeout 2 INT16 interval 1 prefer-blanking 0 No 1 Yes 2 Default 1 allow-exposures 0 No 1 Yes 2 Default 2 unused GetScreenSaver 1 108 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 timeout 2 CARD16 interval 1 prefer-blanking 0 No 1 Yes 1 allow-exposures 0 No 1 Yes 18 unused ChangeHosts 1 109 opcode 1 mode 0 Insert 1 Delete 2 2+(n+p)/4 request length 1 family 0 Internet 1 DECnet 2 Chaos 1 unused 2 n length of address n LISTofCARD8 address p unused, p=pad(n) ListHosts 1 110 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 mode 0 Disabled 1 Enabled 2 CARD16 sequence number 4 n/4 reply length 2 CARD16 number of HOSTs in hosts 22 unused n LISTofHOST hosts (n always a multiple of 4) SetAccessControl 1 111 opcode 1 mode 0 Disable 1 Enable 2 1 request length SetCloseDownMode 1 112 opcode 1 mode 0 Destroy 1 RetainPermanent 2 RetainTemporary 2 1 request length KillClient 1 113 opcode 1 unused 2 2 request length 4 CARD32 resource 0 AllTemporary RotateProperties 1 114 opcode 1 unused 2 3+n request length 4 WINDOW window 2 n number of properties 2 INT16 delta 4n LISTofATOM properties ForceScreenSaver 1 115 opcode 1 mode 0 Reset 1 Activate 2 1 request length SetPointerMapping 1 116 opcode 1 n length of map 2 1+(n+p)/4 request length n LISTofCARD8 map p unused, p=pad(n) â–¶ 1 1 Reply 1 status 0 Success 1 Busy 2 CARD16 sequence number 4 0 reply length 24 unused GetPointerMapping 1 117 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 n length of map 2 CARD16 sequence number 4 (n+p)/4 reply length 24 unused n LISTofCARD8 map p unused, p=pad(n) SetModifierMapping 1 118 opcode 1 n keycodes-per-modifier 2 1+2n request length 8n LISTofKEYCODE keycodes â–¶ 1 1 Reply 1 status 0 Success 1 Busy 2 Failed 2 CARD16 sequence number 4 0 reply length 24 unused GetModifierMapping 1 119 opcode 1 unused 2 1 request length â–¶ 1 1 Reply 1 n keycodes-per-modifier 2 CARD16 sequence number 4 2n reply length 24 unused 8n LISTofKEYCODE keycodes NoOperation 1 127 opcode 1 unused 2 1+n request length 4n unused Events Eventencoding KeyPress 1 2 code 1 KEYCODE detail 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 BOOL same-screen 1 unused KeyRelease 1 3 code 1 KEYCODE detail 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 BOOL same-screen 1 unused ButtonPress 1 4 code 1 BUTTON detail 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 BOOL same-screen 1 unused ButtonRelease 1 5 code 1 BUTTON detail 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 BOOL same-screen 1 unused MotionNotify 1 6 code 1 detail 0 Normal 1 Hint 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 BOOL same-screen 1 unused EnterNotify 1 7 code 1 detail 0 Ancestor 1 Virtual 2 Inferior 3 Nonlinear 4 NonlinearVirtual 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 mode 0 Normal 1 Grab 2 Ungrab 1 same-screen, focus #x01 focus (1 is True, 0 is False) #x02 same-screen (1 is True, 0 is False) #xFC unused LeaveNotify 1 8 code 1 detail 0 Ancestor 1 Virtual 2 Inferior 3 Nonlinear 4 NonlinearVirtual 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW event 4 WINDOW child 0 None 2 INT16 root-x 2 INT16 root-y 2 INT16 event-x 2 INT16 event-y 2 SETofKEYBUTMASK state 1 mode 0 Normal 1 Grab 2 Ungrab 1 same-screen, focus #x01 focus (1 is True, 0 is False) #x02 same-screen (1 is True, 0 is False) #xFC unused FocusIn 1 9 code 1 detail 0 Ancestor 1 Virtual 2 Inferior 3 Nonlinear 4 NonlinearVirtual 5 Pointer 6 PointerRoot 7 None 2 CARD16 sequence number 4 WINDOW event 1 mode 0 Normal 1 Grab 2 Ungrab 3 WhileGrabbed 23 unused FocusOut 1 10 code 1 detail 0 Ancestor 1 Virtual 2 Inferior 3 Nonlinear 4 NonlinearVirtual 5 Pointer 6 PointerRoot 7 None 2 CARD16 sequence number 4 WINDOW event 1 mode 0 Normal 1 Grab 2 Ungrab 3 WhileGrabbed 23 unused KeymapNotify 1 11 code 31 LISTofCARD8 keys (byte for keycodes 0-7 is omitted) Expose 1 12 code 1 unused 2 CARD16 sequence number 4 WINDOW window 2 CARD16 x 2 CARD16 y 2 CARD16 width 2 CARD16 height 2 CARD16 count 14 unused GraphicsExposure 1 13 code 1 unused 2 CARD16 sequence number 4 DRAWABLE drawable 2 CARD16 x 2 CARD16 y 2 CARD16 width 2 CARD16 height 2 CARD16 minor-opcode 2 CARD16 count 1 CARD8 major-opcode 11 unused NoExposure 1 14 code 1 unused 2 CARD16 sequence number 4 DRAWABLE drawable 2 CARD16 minor-opcode 1 CARD8 major-opcode 21 unused VisibilityNotify 1 15 code 1 unused 2 CARD16 sequence number 4 WINDOW window 1 state 0 Unobscured 1 PartiallyObscured 2 FullyObscured 23 unused CreateNotify 1 16 code 1 unused 2 CARD16 sequence number 4 WINDOW parent 4 WINDOW window 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 1 BOOL override-redirect 9 unused DestroyNotify 1 17 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 20 unused UnmapNotify 1 18 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 1 BOOL from-configure 19 unused MapNotify 1 19 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 1 BOOL override-redirect 19 unused MapRequest 1 20 code 1 unused 2 CARD16 sequence number 4 WINDOW parent 4 WINDOW window 20 unused ReparentNotify 1 21 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 4 WINDOW parent 2 INT16 x 2 INT16 y 1 BOOL override-redirect 11 unused ConfigureNotify 1 22 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 4 WINDOW above-sibling 0 None 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 1 BOOL override-redirect 5 unused ConfigureRequest 1 23 code 1 stack-mode 0 Above 1 Below 2 TopIf 3 BottomIf 4 Opposite 2 CARD16 sequence number 4 WINDOW parent 4 WINDOW window 4 WINDOW sibling 0 None 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 2 BITMASK value-mask #x0001 x #x0002 y #x0004 width #x0008 height #x0010 border-width #x0020 sibling #x0040 stack-mode 4 unused GravityNotify 1 24 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 2 INT16 x 2 INT16 y 16 unused ResizeRequest 1 25 code 1 unused 2 CARD16 sequence number 4 WINDOW window 2 CARD16 width 2 CARD16 height 20 unused CirculateNotify 1 26 code 1 unused 2 CARD16 sequence number 4 WINDOW event 4 WINDOW window 4 WINDOW unused 1 place 0 Top 1 Bottom 15 unused CirculateRequest 1 27 code 1 unused 2 CARD16 sequence number 4 WINDOW parent 4 WINDOW window 4 unused 1 place 0 Top 1 Bottom 15 unused PropertyNotify 1 28 code 1 unused 2 CARD16 sequence number 4 WINDOW window 4 ATOM atom 4 TIMESTAMP time 1 state 0 NewValue 1 Deleted 15 unused SelectionClear 1 29 code 1 unused 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW owner 4 ATOM selection 16 unused SelectionRequest 1 30 code 1 unused 2 CARD16 sequence number 4 TIMESTAMP time 0 CurrentTime 4 WINDOW owner 4 WINDOW requestor 4 ATOM selection 4 ATOM target 4 ATOM property 0 None 4 unused SelectionNotify 1 31 code 1 unused 2 CARD16 sequence number 4 TIMESTAMP time 0 CurrentTime 4 WINDOW requestor 4 ATOM selection 4 ATOM target 4 ATOM property 0 None 8 unused ColormapNotify 1 32 code 1 unused 2 CARD16 sequence number 4 WINDOW window 4 COLORMAP colormap 0 None 1 BOOL new 1 state 0 Uninstalled 1 Installed 18 unused ClientMessage 1 33 code 1 CARD8 format 2 CARD16 sequence number 4 WINDOW window 4 ATOM type 20 data MappingNotify 1 34 code 1 unused 2 CARD16 sequence number 1 request 0 Modifier 1 Keyboard 2 Pointer 1 KEYCODE first-keycode 1 CARD8 count 25 unused xorgproto-2023.2/specs/xproto/x11protocol.xml0000644000175000017500000000503414443010026016147 00000000000000 %defs; ]> X Window System Protocol X Consortium Standard Robert W. Scheifler X Consortium, Inc. X Version 11, Release &fullrelvers; Version 1.0 19861987198819942004 The Open Group 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 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the Open Group. X Window System is a trademark of The Open Group. xorgproto-2023.2/specs/xproto/glossary.xml0000644000175000017500000014110314443010026015615 00000000000000 Glossary Access control list Access control list X maintains a list of hosts from which client programs can be run. By default, only programs on the local host and hosts specified in an initial list read by the server can use the display. Clients on the local host can change this access control list. Some server implementations can also implement other authorization mechanisms in addition to or in place of this mechanism. The action of this mechanism can be conditional based on the authorization protocol name and data received by the server at connection setup. Active grab Active grab A grab is active when the pointer or keyboard is actually owned by the single grabbing client. Ancestors Ancestors If W is an inferior of A, then A is an ancestor of W. Atom Atom An atom is a unique ID corresponding to a string name. Atoms are used to identify properties, types, and selections. Background Background An InputOutput window can have a background, which is defined as a pixmap. When regions of the window have their contents lost or invalidated, the server will automatically tile those regions with the background. Backing store Backing store When a server maintains the contents of a window, the pixels saved off screen are known as a backing store. Bit gravity Bitgravity When a window is resized, the contents of the window are not necessarily discarded. It is possible to request that the server relocate the previous contents to some region of the window (though no guarantees are made). This attraction of window contents for some location of a window is known as bit gravity. Bit plane Bitplane When a pixmap or window is thought of as a stack of bitmaps, each bitmap is called a bit plane or plane. Bitmap Bitmap A bitmap is a pixmap of depth one. Border Border An InputOutput window can have a border of equal thickness on all four sides of the window. A pixmap defines the contents of the border, and the server automatically maintains the contents of the border. Exposure events are never generated for border regions. Button grabbing Buttongrabbing Buttons on the pointer may be passively grabbed by a client. When the button is pressed, the pointer is then actively grabbed by the client. Byte order Byte order For image (pixmap/bitmap) data, the server defines the byte order, and clients with different native byte ordering must swap bytes as necessary. For all other parts of the protocol, the client defines the byte order, and the server swaps bytes as necessary. Children Children Windowchildren The children of a window are its first-level subwindows. Client Client An application program connects to the window system server by some interprocess communication path, such as a TCP connection or a shared memory buffer. This program is referred to as a client of the window system server. More precisely, the client is the communication path itself; a program with multiple paths open to the server is viewed as multiple clients by the protocol. Resource lifetimes are controlled by connection lifetimes, not by program lifetimes. Clipping region Clipping region In a graphics context, a bitmap or list of rectangles can be specified to restrict output to a particular region of the window. The image defined by the bitmap or rectangles is called a clipping region. Colormap Colormap A colormap consists of a set of entries defining color values. The colormap associated with a window is used to display the contents of the window; each pixel value indexes the colormap to produce RGB values that drive the guns of a monitor. Depending on hardware limitations, one or more colormaps may be installed at one time, so that windows associated with those maps display with correct colors. Connection Connection The interprocess communication path between the server and client program is known as a connection. A client program typically (but not necessarily) has one connection to the server over which requests and events are sent. Containment Containment A window contains the pointer if the window is viewable and the hotspot of the cursor is within a visible region of the window or a visible region of one of its inferiors. The border of the window is included as part of the window for containment. The pointer is in a window if the window contains the pointer but no inferior contains the pointer. Coordinate system Coordinate system The coordinate system has the X axis horizontal and the Y axis vertical, with the origin [0, 0] at the upper left. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside upper left. Cursor Cursor A cursor is the visible shape of the pointer on a screen. It consists of a hotspot, a source bitmap, a shape bitmap, and a pair of colors. The cursor defined for a window controls the visible appearance when the pointer is in that window. Depth Depth The depth of a window or pixmap is the number of bits per pixel that it has. The depth of a graphics context is the depth of the drawables it can be used in conjunction with for graphics output. Device Device Keyboards, mice, tablets, track-balls, button boxes, and so on are all collectively known as input devices. The core protocol only deals with two devices, the keyboard and the pointer. DirectColor DirectColor DirectColor is a class of colormap in which a pixel value is decomposed into three separate subfields for indexing. The first subfield indexes an array to produce red intensity values. The second subfield indexes a second array to produce blue intensity values. The third subfield indexes a third array to produce green intensity values. The RGB values can be changed dynamically. Display Display A server, together with its screens and input devices, is called a display. Drawable Drawable Both windows and pixmaps can be used as sources and destinations in graphics operations. These windows and pixmaps are collectively known as drawables. However, an InputOnly window cannot be used as a source or destination in a graphics operation. Event Event Clients are informed of information asynchronously by means of events. These events can be generated either asynchronously from devices or as side effects of client requests. Events are grouped into types. The server never sends events to a client unless the client has specifically asked to be informed of that type of event. However, other clients can force events to be sent to other clients. Events are typically reported relative to a window. Event mask Eventmask Events are requested relative to a window. The set of event types that a client requests relative to a window is described by using an event mask. Event synchronization Eventsynchronization There are certain race conditions possible when demultiplexing device events to clients (in particular deciding where pointer and keyboard events should be sent when in the middle of window management operations). The event synchronization mechanism allows synchronous processing of device events. Event propagation Eventpropagation Device-related events propagate from the source window to ancestor windows until some client has expressed interest in handling that type of event or until the event is discarded explicitly. Event source Eventsource The window the pointer is in is the source of a device-related event. Exposure event EventExposure Servers do not guarantee to preserve the contents of windows when windows are obscured or reconfigured. Exposure events are sent to clients to inform them when contents of regions of windows have been lost. Extension Extension Named extensions to the core protocol can be defined to extend the system. Extension to output requests, resources, and event types are all possible and are expected. Focus window Focus window The focus window is another term for the input focus. Font Font A font is a matrix of glyphs (typically characters). The protocol does no translation or interpretation of character sets. The client simply indicates values used to index the glyph array. A font contains additional metric information to determine interglyph and interline spacing. GC, GContext GCGraphics context GContextGraphics context GC and gcontext are abbreviations for graphics context. Glyph Glyph A glyph is an image, typically of a character, in a font. Grab GrabActive grabPassive grab Keyboard keys, the keyboard, pointer buttons, the pointer, and the server can be grabbed for exclusive use by a client. In general, these facilities are not intended to be used by normal applications but are intended for various input and window managers to implement various styles of user interfaces. Graphics context Graphics context Various information for graphics output is stored in a graphics context such as foreground pixel, background pixel, line width, clipping region, and so on. A graphics context can only be used with drawables that have the same root and the same depth as the graphics context. Gravity Gravity See bit gravity and window gravity. GrayScale GrayScale GrayScale can be viewed as a degenerate case of PseudoColor, in which the red, green, and blue values in any given colormap entry are equal, thus producing shades of gray. The gray values can be changed dynamically. Hotspot Hotspot A cursor has an associated hotspot that defines the point in the cursor corresponding to the coordinates reported for the pointer. Identifier Identifier An identifier is a unique value associated with a resource that clients use to name that resource. The identifier can be used over any connection. Inferiors Inferiors The inferiors of a window are all of the subwindows nested below it: the children, the children's children, and so on. Input focus Input focus The input focus is normally a window defining the scope for processing of keyboard input. If a generated keyboard event would normally be reported to this window or one of its inferiors, the event is reported normally. Otherwise, the event is reported with respect to the focus window. The input focus also can be set such that all keyboard events are discarded and such that the focus window is dynamically taken to be the root window of whatever screen the pointer is on at each keyboard event. Input manager Input manager Control over keyboard input is typically provided by an input manager client. InputOnly window WindowInputOnly An InputOnly window is a window that cannot be used for graphics requests. InputOnly windows are invisible and can be used to control such things as cursors, input event generation, and grabbing. InputOnly windows cannot have InputOutput windows as inferiors. InputOutput window WindowInputOutput An InputOutput window is the normal kind of opaque window, used for both input and output. InputOutput windows can have both InputOutput and InputOnly windows as inferiors. Key grabbing Keygrabbing Keys on the keyboard can be passively grabbed by a client. When the key is pressed, the keyboard is then actively grabbed by the client. Keyboard grabbing Keyboardgrabbing A client can actively grab control of the keyboard, and key events will be sent to that client rather than the client the events would normally have been sent to. Keysym Keysym An encoding of a symbol on a keycap on a keyboard. Mapped Mapped window A window is said to be mapped if a map call has been performed on it. Unmapped windows and their inferiors are never viewable or visible. Modifier keys Modifier keys KeymodifierModifier keys Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock, ShiftLock, and similar keys are called modifier keys. Monochrome Monochrome Monochrome is a special case of StaticGray in which there are only two colormap entries. Obscure Obscure A window is obscured if some other window obscures it. Window A obscures window B if both are viewable InputOutput windows, A is higher in the global stacking order, and the rectangle defined by the outside edges of A intersects the rectangle defined by the outside edges of B. Note the distinction between obscure and occludes. Also note that window borders are included in the calculation and that a window can be obscured and yet still have visible regions. Occlude Occlude A window is occluded if some other window occludes it. Window A occludes window B if both are mapped, A is higher in the global stacking order, and the rectangle defined by the outside edges of A intersects the rectangle defined by the outside edges of B. Note the distinction between occludes and obscures. Also note that window borders are included in the calculation. Padding Padding Some padding bytes are inserted in the data stream to maintain alignment of the protocol requests on natural boundaries. This increases ease of portability to some machine architectures. Parent window Windowparent If C is a child of P, then P is the parent of C. Passive grab Passive grab Grabbing a key or button is a passive grab. The grab activates when the key or button is actually pressed. Pixel value Pixel value A pixel is an N-bit value, where N is the number of bit planes used in a particular window or pixmap (that is, N is the depth of the window or pixmap). For a window, a pixel value indexes a colormap to derive an actual color to be displayed. Pixmap Pixmap A pixmap is a three-dimensional array of bits. A pixmap is normally thought of as a two-dimensional array of pixels, where each pixel can be a value from 0 to (2^N)-1 and where N is the depth (z axis) of the pixmap. A pixmap can also be thought of as a stack of N bitmaps. Plane Plane When a pixmap or window is thought of as a stack of bitmaps, each bitmap is called a plane or bit plane. Plane mask Planemask Graphics operations can be restricted to only affect a subset of bit planes of a destination. A plane mask is a bit mask describing which planes are to be modified. The plane mask is stored in a graphics context. Pointer Pointer The pointer is the pointing device attached to the cursor and tracked on the screens. Pointer grabbing Pointergrabbing A client can actively grab control of the pointer. Then button and motion events will be sent to that client rather than the client the events would normally have been sent to. Pointing device Pointing device A pointing device is typically a mouse, tablet, or some other device with effective dimensional motion. There is only one visible cursor defined by the core protocol, and it tracks whatever pointing device is attached as the pointer. Property Property Windows may have associated properties, which consist of a name, a type, a data format, and some data. The protocol places no interpretation on properties. They are intended as a general-purpose naming mechanism for clients. For example, clients might use properties to share information such as resize hints, program names, and icon formats with a window manager. Property list Property list The property list of a window is the list of properties that have been defined for the window. PseudoColor PseudoColor PseudoColor is a class of colormap in which a pixel value indexes the colormap to produce independent red, green, and blue values; that is, the colormap is viewed as an array of triples (RGB values). The RGB values can be changed dynamically. Redirecting control Redirecting control Window managers (or client programs) may want to enforce window layout policy in various ways. When a client attempts to change the size or position of a window, the operation may be redirected to a specified client rather than the operation actually being performed. Reply Reply Information requested by a client program is sent back to the client with a reply. Both events and replies are multiplexed on the same connection. Most requests do not generate replies, although some requests generate multiple replies. Request Request A command to the server is called a request. It is a single block of data sent over a connection. Resource Resource Windows, pixmaps, cursors, fonts, graphics contexts, and colormaps are known as resources. They all have unique identifiers associated with them for naming purposes. The lifetime of a resource usually is bounded by the lifetime of the connection over which the resource was created. RGB values RGB values Red, green, and blue (RGB) intensity values are used to define color. These values are always represented as 16-bit unsigned numbers, with 0 being the minimum intensity and 65535 being the maximum intensity. The server scales the values to match the display hardware. Root Root The root of a pixmap, colormap, or graphics context is the same as the root of whatever drawable was used when the pixmap, colormap, or graphics context was created. The root of a window is the root window under which the window was created. Root window Windowroot Each screen has a root window covering it. It cannot be reconfigured or unmapped, but it otherwise acts as a full-fledged window. A root window has no parent. Save set Save set The save set of a client is a list of other clients' windows that, if they are inferiors of one of the client's windows at connection close, should not be destroyed and that should be remapped if currently unmapped. Save sets are typically used by window managers to avoid lost windows if the manager terminates abnormally. Scanline Scanline A scanline is a list of pixel or bit values viewed as a horizontal row (all values having the same y coordinate) of an image, with the values ordered by increasing x coordinate. Scanline order Scanline order An image represented in scanline order contains scanlines ordered by increasing y coordinate. Screen Screen A server can provide several independent screens, which typically have physically independent monitors. This would be the expected configuration when there is only a single keyboard and pointer shared among the screens. Selection Selection A selection can be thought of as an indirect property with dynamic type; that is, rather than having the property stored in the server, it is maintained by some client (the owner). A selection is global in nature and is thought of as belonging to the user (although maintained by clients), rather than as being private to a particular window subhierarchy or a particular set of clients. When a client asks for the contents of a selection, it specifies a selection target type. This target type can be used to control the transmitted representation of the contents. For example, if the selection is the last thing the user clicked on and that is currently an image, then the target type might specify whether the contents of the image should be sent in XY format or Z format. The target type can also be used to control the class of contents transmitted; for example, asking for the looks (fonts, line spacing, indentation, and so on) of a paragraph selection rather than the text of the paragraph. The target type can also be used for other purposes. The protocol does not constrain the semantics. Server Server The server provides the basic windowing mechanism. It handles connections from clients, multiplexes graphics requests onto the screens, and demultiplexes input back to the appropriate clients. Server grabbing Servergrabbing The server can be grabbed by a single client for exclusive use. This prevents processing of any requests from other client connections until the grab is completed. This is typically only a transient state for such things as rubber-banding, pop-up menus, or to execute requests indivisibly. Sibling Sibling Children of the same parent window are known as sibling windows. Stacking order Stacking order Sibling windows may stack on top of each other. Windows above other windows both obscure and occlude those lower windows. This is similar to paper on a desk. The relationship between sibling windows is known as the stacking order. StaticColor StaticColor StaticColor can be viewed as a degenerate case of PseudoColor in which the RGB values are predefined and read-only. StaticGray StaticGray StaticGray can be viewed as a degenerate case of GrayScale in which the gray values are predefined and read-only. The values are typically linear or near-linear increasing ramps. Stipple Stipple A stipple pattern is a bitmap that is used to tile a region that will serve as an additional clip mask for a fill operation with the foreground color. String Equivalence String Equivalence Two ISO Latin-1 STRING8 values are considered equal if they are the same length and if corresponding bytes are either equal or are equivalent as follows: decimal values 65 to 90 inclusive (characters A to Z) are pairwise equivalent to decimal values 97 to 122 inclusive (characters a to z), decimal values 192 to 214 inclusive (characters A grave to O diaeresis) are pairwise equivalent to decimal values 224 to 246 inclusive (characters a grave to o diaeresis), and decimal values 216 to 222 inclusive (characters O oblique to THORN) are pairwise equivalent to decimal values 246 to 254 inclusive (characters o oblique to thorn). Tile Tile A pixmap can be replicated in two dimensions to tile a region. The pixmap itself is also known as a tile. Timestamp Timestamp CurrentTime A timestamp is a time value, expressed in milliseconds. It typically is the time since the last server reset. Timestamp values wrap around (after about 49.7 days). The server, given its current time is represented by timestamp T, always interprets timestamps from clients by treating half of the timestamp space as being earlier in time than T and half of the timestamp space as being later in time than T. One timestamp value (named CurrentTime) is never generated by the server. This value is reserved for use in requests to represent the current server time. TrueColor TrueColor TrueColor can be viewed as a degenerate case of DirectColor in which the subfields in the pixel value directly encode the corresponding RGB values; that is, the colormap has predefined read-only RGB values. The values are typically linear or near-linear increasing ramps. Type Type A type is an arbitrary atom used to identify the interpretation of property data. Types are completely uninterpreted by the server and are solely for the benefit of clients. Viewable Viewable A window is viewable if it and all of its ancestors are mapped. This does not imply that any portion of the window is actually visible. Graphics requests can be performed on a window when it is not viewable, but output will not be retained unless the server is maintaining backing store. Visible Visible A region of a window is visible if someone looking at the screen can actually see it; that is, the window is viewable and the region is not occluded by any other window. Window gravity Windowgravity When windows are resized, subwindows may be repositioned automatically relative to some position in the window. This attraction of a subwindow to some part of its parent is known as window gravity. Window manager Windowmanager Manipulation of windows on the screen and much of the user interface (policy) is typically provided by a window manager client. XYFormat XYFormat The data for a pixmap is said to be in XY format if it is organized as a set of bitmaps representing individual bit planes, with the planes appearing from most-significant to least-significant in bit order. ZFormat ZFormat The data for a pixmap is said to be in Z format if it is organized as a set of pixel values in scanline order. xorgproto-2023.2/specs/xproto/sect1-9.xml0000644000175000017500000162024514443010026015151 00000000000000 Acknowledgements The primary contributors to the X11 protocol are: Dave Carver (Digital HPW) Branko Gerovac (Digital HPW) Jim Gettys (MIT/Project Athena, Digital) Phil Karlton (Digital WSL) Scott McGregor (Digital SSG) Ram Rao (Digital UEG) David Rosenthal (Sun) Dave Winchell (Digital UEG) The implementors of initial server who provided useful input are: Susan Angebranndt (Digital) Raymond Drewry (Digital) Todd Newman (Digital) The invited reviewers who provided useful input are: Andrew Cherenson (Berkeley) Burns Fisher (Digital) Dan Garfinkel (HP) Leo Hourvitz (Next) Brock Krizan (HP) David Laidlaw (Stellar) Dave Mellinger (Interleaf) Ron Newman (MIT) John Ousterhout (Berkeley) Andrew Palay (ITC CMU) Ralph Swick (MIT) Craig Taylor (Sun) Jeffery Vroom (Stellar) Thanks go to Al Mento of Digital's UEG Documentation Group for formatting this document. This document does not attempt to provide the rationale or pragmatics required to fully understand the protocol or to place it in perspective within a complete system. The protocol contains many management mechanisms that are not intended for normal applications. Not all mechanisms are needed to build a particular user interface. It is important to keep in mind that the protocol is intended to provide mechanism, not policy. Robert W. Scheifler X Consortium, Inc. Protocol Formats
Request Format Requestformat Every request contains an 8-bit major opcode Opcodemajor and a 16-bit length field Requestlength expressed in units of four bytes. Every request consists of four bytes of a header (containing the major opcode, the length field, and a data byte) followed by zero or more additional bytes of data. The length field defines the total length of the request, including the header. The length field in a request must equal the minimum length required to contain the request. If the specified length is smaller or larger than the required length, an error is generated. Unused bytes in a request are not required to be zero. Major opcodes 128 through 255 are reserved for extensions. Extension Extensions are intended to contain multiple requests, so extension requests typically have an additional minor opcode encoded in the second data byte in the request header. Opcodeminor However, the placement and interpretation of this minor opcode and of all other fields in extension requests are not defined by the core protocol. Every request on a given connection is implicitly assigned a sequence number, Sequence number starting with one, that is used in replies, errors, and events.
Reply Format Replyformat Every reply contains a 32-bit length field expressed in units of four bytes. Every reply consists of 32 bytes followed by zero or more additional bytes of data, as specified in the length field. Unused bytes within a reply are not guaranteed to be zero. Every reply also contains the least significant 16 bits of the sequence number of the corresponding request.
Error Format Error reportformat Error reports are 32 bytes long. Every error includes an 8-bit error code. Error codes 128 through 255 are reserved for extensions. Error Codesextensions Extensionerror codes Every error also includes the major and minor opcodes of the failed request and the least significant 16 bits of the sequence number of the request. For the following errors (see section 4), the failing resource ID is also returned: Colormap, Cursor, Drawable, Font, GContext, IDChoice, Pixmap and Window. For Atom errors, the failing atom is returned. For Value errors, the failing value is returned. Other core errors return no additional data. Unused bytes within an error are not guaranteed to be zero.
Event Format Eventformat Events are 32 bytes long. Unused bytes within an event are not guaranteed to be zero. Every event contains an 8-bit type code. The most significant bit in this code is set if the event was generated from a SendEvent request. Event codes 64 through 127 are reserved for extensions, although the core protocol does not define a mechanism for selecting interest in such events. Eventextension Extensionevent Every core event (with the exception of KeymapNotify) also contains the least significant 16 bits of the sequence number of the last request issued by the client that was (or is currently being) processed by the server.
Syntactic Conventions The rest of this document uses the following syntactic conventions. The syntax {...} encloses a set of alternatives. The syntax [...] encloses a set of structure components. In general, TYPEs are in uppercase and AlternativeValues are capitalized. Requests in section 9 are described in the following format: RequestName arg1: type1 ... argN: typeN â–¶ result1: type1 ... resultM: typeM Errors: kind1, ..., kindK Description. If no â–¶ is present in the description, then the request has no reply (it is asynchronous), although errors may still be reported. If â–¶+ is used, then one or more replies can be generated for a single request. Events in section 11 are described in the following format: EventName value1: type1 ... valueN: typeN Description. Common Types Name Value LISTofFOOTypesLISTofFOO A type name of the form LISTofFOO means a counted list of elements of type FOO. The size of the length field may vary (it is not necessarily the same size as a FOO), and in some cases, it may be implicit. It is fully specified in Appendix B. Except where explicitly noted, zero-length lists are legal. BITMASKTypesBITMASKLISTofVALUETypesLISTofVALUE The types BITMASK and LISTofVALUE are somewhat special. Various requests contain arguments of the form: value-mask: BITMASK value-list: LISTofVALUE These are used to allow the client to specify a subset of a heterogeneous collection of optional arguments. The value-mask specifies which arguments are to be provided; each such argument is assigned a unique bit position. The representation of the BITMASK will typically contain more bits than there are defined arguments. The unused bits in the value-mask must be zero (or the server generates a Value error). The value-list contains one value for each bit set to 1 in the mask, from least significant to most significant bit in the mask. Each value is represented with four bytes, but the actual value occupies only the least significant bytes as required. The values of the unused bytes do not matter. ORTypesOR A type of the form "T1 or ... or Tn" means the union of the indicated types. A single-element type is given as the element without enclosing braces. WINDOWTypesWINDOW 32-bit value (top three bits guaranteed to be zero) PIXMAPTypesPIXMAP 32-bit value (top three bits guaranteed to be zero) CURSORTypesCURSOR 32-bit value (top three bits guaranteed to be zero) FONTTypesFONT 32-bit value (top three bits guaranteed to be zero) GCONTEXTTypesGCONTEXT 32-bit value (top three bits guaranteed to be zero) COLORMAPTypesCOLORMAP 32-bit value (top three bits guaranteed to be zero) DRAWABLETypesDRAWABLE WINDOW or PIXMAP FONTABLETypesFONTABLE FONT or GCONTEXT ATOMTypesATOM 32-bit value (top three bits guaranteed to be zero) VISUALIDTypesVISUALID 32-bit value (top three bits guaranteed to be zero) VALUETypesVALUE 32-bit quantity (used only in LISTofVALUE) BYTETypesBYTE 8-bit value INT8TypesINT8 8-bit signed integer INT16TypesINT16 16-bit signed integer INT32TypesINT32 32-bit signed integer CARD8TypesCARD8 8-bit unsigned integer CARD16TypesCARD16 16-bit unsigned integer CARD32TypesCARD32 32-bit unsigned integer TIMESTAMPTypesTIMESTAMP CARD32 BITGRAVITYTypesBITGRAVITY { Forget, Static, NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast } WINGRAVITYTypesWINGRAVITY { Unmap, Static, NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast } BOOLTypesBOOL { True, False } EVENTTypesEVENT { KeyPress, KeyRelease, OwnerGrabButton, ButtonPress, ButtonRelease, EnterWindow, LeaveWindow, PointerMotion, PointerMotionHint, Button1Motion, Button2Motion, Button3Motion, Button4Motion, Button5Motion, ButtonMotion, Exposure, VisibilityChange, StructureNotify, ResizeRedirect, SubstructureNotify, SubstructureRedirect, FocusChange, PropertyChange, ColormapChange, KeymapState } POINTEREVENTTypesPOINTEREVENT { ButtonPress, ButtonRelease, EnterWindow, LeaveWindow, PointerMotion, PointerMotionHint, Button1Motion, Button2Motion, Button3Motion, Button4Motion, Button5Motion, ButtonMotion, KeymapState } DEVICEEVENTTypesDEVICEEVENT { KeyPress, KeyRelease, ButtonPress, ButtonRelease, PointerMotion, Button1Motion, Button2Motion, Button3Motion, Button4Motion, Button5Motion, ButtonMotion } KEYSYMTypesKEYSYM 32-bit value (top three bits guaranteed to be zero) KEYCODETypesKEYCODE CARD8 BUTTONTypesBUTTON CARD8 KEYMASKTypesKEYMASK { Shift, Lock, Control, Mod1, Mod2, Mod3, Mod4, Mod5 } BUTMASKTypesBUTMASK { Button1, Button2, Button3, Button4, Button5 } KEYBUTMASKTypesKEYBUTMASK KEYMASK or BUTMASK STRING8TypesSTRING8 LISTofCARD8 STRING16TypesSTRING16 LISTofCHAR2B CHAR2BTypesCHAR2B [byte1, byte2: CARD8] POINTTypesPOINT [x, y: INT16] RECTANGLETypesRECTANGLE [x, y: INT16, width, height: CARD16] ARCTypesARC [x, y: INT16, width, height: CARD16, angle1, angle2: INT16] HOSTTypesHOST [family: { Internet, InternetV6, ServerInterpreted, DECnet, Chaos } address: LISTofBYTE] The [x,y] coordinates of a RECTANGLE specify the upper-left corner. The primary interpretation of large characters in a STRING16 is that they are composed of two bytes used to index a two-dimensional matrix, hence, the use of CHAR2B rather than CARD16. This corresponds to the JIS/ISO method of indexing 2-byte characters. It is expected that most large fonts will be defined with 2-byte matrix indexing. For large fonts constructed with linear indexing, a CHAR2B can be interpreted as a 16-bit number by treating byte1 as the most significant byte. This means that clients should always transmit such 16-bit character values most significant byte first, as the server will never byte-swap CHAR2B quantities. The length, format, and interpretation of a HOST address are specific to the family (see ChangeHosts request). Errors In general, when a request terminates with an error, the request has no side effects (that is, there is no partial execution). The only requests for which this is not true are ChangeWindowAttributes, ChangeGC, PolyText8, PolyText16, FreeColors, StoreColors and ChangeKeyboardControl. The following error codes result from various requests as follows: Error Description AccessError CodesAccess An attempt is made to grab a key/button combination already grabbed by another client. An attempt is made to free a colormap entry not allocated by the client or to free an entry in a colormap that was created with all entries writable. An attempt is made to store into a read-only or an unallocated colormap entry. An attempt is made to modify the access control list from other than the local host (or otherwise authorized client). An attempt is made to select an event type that only one client can select at a time when another client has already selected it. AllocError CodesAlloc The server failed to allocate the requested resource. Note that the explicit listing of Alloc errors in request only covers allocation errors at a very coarse level and is not intended to cover all cases of a server running out of allocation space in the middle of service. The semantics when a server runs out of allocation space are left unspecified, but a server may generate an Alloc error on any request for this reason, and clients should be prepared to receive such errors and handle or discard them. AtomError CodesAtom A value for an ATOM argument does not name a defined ATOM. ColormapError CodesColormap A value for a COLORMAP argument does not name a defined COLORMAP. CursorError CodesCursor A value for a CURSOR argument does not name a defined CURSOR. DrawableError CodesDrawable A value for a DRAWABLE argument does not name a defined WINDOW or PIXMAP. FontError CodesFont A value for a FONT argument does not name a defined FONT. A value for a FONTABLE argument does not name a defined FONT or a defined GCONTEXT. GContextError CodesGContext A value for a GCONTEXT argument does not name a defined GCONTEXT. IDChoiceError CodesIDChoice The value chosen for a resource identifier either is not included in the range assigned to the client or is already in use. ImplementationError CodesImplementation The server does not implement some aspect of the request. A server that generates this error for a core request is deficient. As such, this error is not listed for any of the requests, but clients should be prepared to receive such errors and handle or discard them. LengthError CodesLength The length of a request is shorter or longer than that required to minimally contain the arguments. The length of a request exceeds the maximum length accepted by the server. MatchError CodesMatch An InputOnly window is used as a DRAWABLE. In a graphics request, the GCONTEXT argument does not have the same root and depth as the destination DRAWABLE argument. Some argument (or pair of arguments) has the correct type and range, but it fails to match in some other way required by the request. NameError CodesName A font or color of the specified name does not exist. PixmapError CodesPixmap A value for a PIXMAP argument does not name a defined PIXMAP. RequestError CodesRequest The major or minor opcode does not specify a valid request. ValueError CodesValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives typically can generate this error (due to the encoding). WindowError CodesWindow A value for a WINDOW argument does not name a defined WINDOW. The Atom, Colormap, Cursor, Drawable, Font, GContext, Pixmap and Window errors are also used when the argument type is extended by union with a set of fixed alternatives, for example, <WINDOW or PointerRoot or None>. Keyboards Keyboard A KEYCODE represents a physical (or logical) key. TypesKEYCODE Keycode Keycodes lie in the inclusive range [8,255]. A keycode value carries no intrinsic information, although server implementors may attempt to encode geometry information (for example, matrix) to be interpreted in a server-dependent fashion. The mapping between keys and keycodes cannot be changed using the protocol. A KEYSYM is an encoding of a symbol on the cap of a key. TypesKEYSYM Keysym The set of defined KEYSYMs include the character sets Latin-1, Latin-2, Latin-3, Latin-4, Kana, Arabic, Cyrillic, Greek, Tech, Special, Publish, APL, Hebrew, Thai, and Korean as well as a set of symbols common on keyboards (Return, Help, Tab, and so on). KEYSYMs with the most significant bit (of the 29 bits) set are reserved as vendor-specific. A list of KEYSYMs is associated with each KEYCODE. The list is intended to convey the set of symbols on the corresponding key. If the list (ignoring trailing NoSymbol entries) is a single KEYSYM "K", then the list is treated as if it were the list "K NoSymbol K NoSymbol". If the list (ignoring trailing NoSymbol entries) is a pair of KEYSYMs "K1 K2", then the list is treated as if it were the list "K1 K2 K1 K2". If the list (ignoring trailing NoSymbol entries) is a triple of KEYSYMs "K1 K2 K3", then the list is treated as if it were the list " K1 K2 K3 NoSymbol". When an explicit "void" element is desired in the list, the value VoidSymbol can be used. The first four elements of the list are split into two groups of KEYSYMs. Group 1 contains the first and second KEYSYMs, Group 2 contains the third and fourth KEYSYMs. Within each group, if the second element of the group is NoSymbol, then the group should be treated as if the second element were the same as the first element, except when the first element is an alphabetic KEYSYM "K" for which both lowercase and uppercase forms are defined. In that case, the group should be treated as if the first element were the lowercase form of "K" and the second element were the uppercase form of "K". The standard rules for obtaining a KEYSYM from a KeyPress KeyPress event make use of only the Group 1 and Group 2 KEYSYMs; no interpretation of other KEYSYMs in the list is defined. The modifier state determines which group to use. Switching between groups is controlled by the KEYSYM named MODE SWITCH, by attaching that KEYSYM to some KEYCODE and attaching that KEYCODE to any one of the modifiers Mod1 through Mod5. This modifier is modifiergroup called the "group modifier". For any KEYCODE, Group 1 is used when the group modifier is off, and Group 2 is used when the group modifier is on. The Lock modifierLock modifier is interpreted as CapsLock when the KEYSYM named CAPS LOCK is attached to some KEYCODE and that KEYCODE is attached to the Lock modifier. The Lock modifier is interpreted as ShiftLock when the KEYSYM named SHIFT LOCK is attached to some KEYCODE and that KEYCODE is attached to the Lock modifier. If the Lock modifier could be interpreted as both CapsLock and ShiftLock, the CapsLock interpretation is used. The operation of "keypad" keys is controlled by the KEYSYM named NUM LOCK, by attaching that KEYSYM to some KEYCODE and attaching that KEYCODE to any one of the modifiers Mod1 through Mod5. This modifier is called the modifierNumLock "numlock modifier". The standard KEYSYMs with the prefix KEYPAD in their name are called "keypad" KEYSYMs; these are KEYSYMS with numeric value in the hexadecimal range #xFF80 to #xFFBD inclusive. In addition, vendor-specific KEYSYMS in the hexadecimal range #x11000000 to #x1100FFFF are also keypad KEYSYMs. Within a group, the choice of KEYSYM is determined by applying the first rule that is satisfied from the following list: The numlock modifier is on and the second KEYSYM is a keypad KEYSYM. In this case, if the Shift modifier is on, or if the Lock modifier is on and is interpreted as ShiftLock, then the first KEYSYM is used; otherwise, the second KEYSYM is used. The Shift and Lock modifiers are both off. In this case, the first KEYSYM is used. The Shift modifier is off, and the Lock modifier is on and is interpreted as CapsLock. In this case, the first KEYSYM is used, but if that KEYSYM is lowercase alphabetic, then the corresponding uppercase KEYSYM is used instead. The Shift modifier is on, and the Lock modifier is on and is interpreted as CapsLock. In this case, the second KEYSYM is used, but if that KEYSYM is lowercase alphabetic, then the corresponding uppercase KEYSYM is used instead. The Shift modifier is on, or the Lock modifier is on and is interpreted as ShiftLock, or both. In this case, the second KEYSYM is used. The mapping between KEYCODEs and KEYSYMs is not used directly by the server; it is merely stored for reading and writing by clients. Pointers Buttons are always numbered starting with one. Buttonnumber Predefined Atoms Atompredefined Predefined atoms are not strictly necessary and may not be useful in all environments, but they will eliminate many InternAtom requests in most applications. Note that they are predefined only in the sense of having numeric values, not in the sense of having required semantics. The core protocol imposes no semantics on these names, but semantics are specified in other X Window System standards, such as the Inter-Client Communication Conventions Manual and the X Logical Font Description Conventions. The following names have predefined atom values. Note that uppercase and lowercase matter. ARC ATOM BITMAP CAP_HEIGHT CARDINAL COLORMAP COPYRIGHT CURSOR CUT_BUFFER0 CUT_BUFFER1 CUT_BUFFER2 CUT_BUFFER3 CUT_BUFFER4 CUT_BUFFER5 CUT_BUFFER6 CUT_BUFFER7 DRAWABLE END_SPACE FAMILY_NAME FONT FONT_NAME FULL_NAME INTEGER ITALIC_ANGLE MAX_SPACE MIN_SPACE NORM_SPACE NOTICE PIXMAP POINT POINT_SIZE PRIMARY QUAD_WIDTH RECTANGLE RESOLUTION RESOURCE_MANAGER RGB_BEST_MAP RGB_BLUE_MAP RGB_COLOR_MAP RGB_DEFAULT_MAP RGB_GRAY_MAP RGB_GREEN_MAP RGB_RED_MAP SECONDARY STRIKEOUT_ASCENT STRIKEOUT_DESCENT STRING SUBSCRIPT_X SUBSCRIPT_Y SUPERSCRIPT_X SUPERSCRIPT_Y UNDERLINE_POSITION UNDERLINE_THICKNESS VISUALID WEIGHT WINDOW WM_CLASS WM_CLIENT_MACHINE WM_COMMAND WM_HINTS WM_ICON_NAME WM_ICON_SIZE WM_NAME WM_NORMAL_HINTS WM_SIZE_HINTS WM_TRANSIENT_FOR WM_ZOOM_HINTS X_HEIGHT To avoid conflicts with possible future names for which semantics might be imposed (either at the protocol level or in terms of higher level user interface models), names beginning with an underscore should be used for atoms that are private to a particular vendor or organization. To guarantee no conflicts between vendors and organizations, additional prefixes need to be used. However, the protocol does not define the mechanism for choosing such prefixes. For names private to a single application or end user but stored in globally accessible locations, it is suggested that two leading underscores be used to avoid conflicts with other names. Connection Setup Connection For remote clients, the X protocol can be built on top of any reliable byte stream.
Connection Initiation Connectionopening The client must send an initial byte of data to identify the byte order to be employed. Byte order The value of the byte must be octal 102 or 154. The value 102 (ASCII uppercase B) means values are transmitted most significant byte first, and value 154 (ASCII lowercase l) means values are transmitted least significant byte first. Except where explicitly noted in the protocol, all 16-bit and 32-bit quantities sent by the client must be transmitted with this byte order, and all 16-bit and 32-bit quantities returned by the server will be transmitted with this byte order. Following the byte-order byte, the client sends the following information at connection setup:
protocol-major-version: CARD16 protocol-minor-version: CARD16 authorization-protocol-name: STRING8 authorization-protocol-data: STRING8
The version numbers indicate what version of the protocol the client expects the server to implement. The authorization name indicates what authorization (and authentication) protocol the client expects the server to use, and the data is specific to that protocol. Authorization Specification of valid authorization mechanisms is not part of the core X protocol. A server that does not implement the protocol the client expects or that only implements the host-based mechanism may simply ignore this information. If both name and data strings are empty, this is to be interpreted as "no explicit authorization."
Server Response The client receives the following information at connection setup: success: { Failed, Success, Authenticate} The client receives the following additional data if the returned success value is Failed, and the connection is not successfully established:
protocol-major-version: CARD16 protocol-minor-version: CARD16 reason: STRING8
The client receives the following additional data if the returned success value is Authenticate, and further authentication negotiation is required:
reason: STRING8
The contents of the reason string are specific to the authorization protocol in use. The semantics of this authentication negotiation are not constrained, except that the negotiation must eventually terminate with a reply from the server containing a success value of Failed or Success. The client receives the following additional data if the returned success value is Success, and the connection is successfully established:
protocol-major-version: CARD16 protocol-minor-version: CARD16 vendor: STRING8 release-number: CARD32 resource-id-base, resource-id-mask: CARD32 image-byte-order: { LSBFirst, MSBFirst } bitmap-scanline-unit: {8, 16, 32} bitmap-scanline-pad: {8, 16, 32} bitmap-bit-order: { LeastSignificant, MostSignificant } pixmap-formats: LISTofFORMAT roots: LISTofSCREEN motion-buffer-size: CARD32 maximum-request-length: CARD16 min-keycode, max-keycode: KEYCODE where:
FORMAT: [depth: CARD8, bits-per-pixel: {1, 4, 8, 16, 24, 32} scanline-pad: {8, 16, 32}] SCREEN: [root: WINDOW width-in-pixels, height-in-pixels: CARD16 width-in-millimeters, height-in-millimeters: CARD16 allowed-depths: LISTofDEPTH root-depth: CARD8 root-visual: VISUALID default-colormap: COLORMAP white-pixel, black-pixel: CARD32 min-installed-maps, max-installed-maps: CARD16 backing-stores: {Never, WhenMapped, Always} save-unders: BOOL current-input-masks: SETofEVENT] DEPTH: [depth: CARD8 visuals: LISTofVISUALTYPE] VISUALTYPE: [visual-id: VISUALID class: {StaticGray, StaticColor, TrueColor, GrayScale, PseudoColor, DirectColor} red-mask, green-mask, blue-mask: CARD32 bits-per-rgb-value: CARD8 colormap-entries: CARD16]
Server Information The information that is global to the server is: The protocol version numbers are an escape hatch in case future revisions of the protocol are necessary. In general, the major version would increment for incompatible changes, and the minor version would increment for small upward compatible changes. Barring changes, the major version will be 11, and the minor version will be 0. The protocol version numbers returned indicate the protocol the server actually supports. This might not equal the version sent by the client. The server can (but need not) refuse connections from clients that offer a different version than the server supports. A server can (but need not) support more than one version simultaneously. The vendor string gives some identification of the owner of the server implementation. The vendor controls the semantics of the release number. The resource-id-mask contains a single contiguous set of bits (at least 18). The client allocates resource IDs for types WINDOW, PIXMAP, CURSOR, FONT, GCONTEXT, and COLORMAP by choosing a value with only some subset of these bits set and ORing it with resource-id-base. ResourceID Only values constructed in this way can be used to name newly created resources over this connection. Resource IDs never have the top three bits set. The client is not restricted to linear or contiguous allocation of resource IDs. Once an ID has been freed, it can be reused. An ID must be unique with respect to the IDs of all other resources, not just other resources of the same type. However, note that the value spaces of resource identifiers, atoms, visualids, and keysyms are distinguished by context, and as such, are not required to be disjoint; for example, a given numeric value might be both a valid window ID, a valid atom, and a valid keysym. Although the server is in general responsible for byte-swapping data to match the client, images are always transmitted and received in formats (including byte order) specified by the server. The byte order for images is given by image-byte-order and applies to each scanline unit in XY format (bitmap format) and to each pixel value in Z format. A bitmap is represented in scanline order. Bitmapformat Each scanline is padded to a multiple of bits as given by bitmap-scanline-pad. The pad bits are of arbitrary value. The scanline is quantized in multiples of bits as given by bitmap-scanline-unit. The bitmap-scanline-unit is always less than or equal to the bitmap-scanline-pad. Within each unit, the leftmost bit in the bitmap is either the least significant or most significant bit in the unit, as given by bitmap-bit-order. XYFormat If a pixmap is represented in XY format, each plane is represented as a bitmap, and the planes appear from most significant to least significant in bit order with no padding between planes. Pixmap-formats contains one entry for each depth value. Pixmapformat ZFormat The entry describes the Z format used to represent images of that depth. An entry for a depth is included if any screen supports that depth, and all screens supporting that depth must support only that Z format for that depth. In Z format, the pixels are in scanline order, left to right within a scanline. The number of bits used to hold each pixel is given by bits-per-pixel. Bits-per-pixel may be larger than strictly required by the depth, in which case the least significant bits are used to hold the pixmap data, and the values of the unused high-order bits are undefined. When the bits-per-pixel is 4, the order of nibbles in the byte is the same as the image byte-order. When the bits-per-pixel is 1, the format is identical for bitmap format. Each scanline is padded to a multiple of bits as given by scanline-pad. When bits-per-pixel is 1, this will be identical to bitmap-scanline-pad. How a pointing device roams the screens is up to the server implementation and is transparent to the protocol. No geometry is defined among screens. The server may retain the recent history of pointer motion and do so to a finer granularity than is reported by MotionNotify events. The GetMotionEvents request makes such history available. The motion-buffer-size gives the approximate maximum number of elements in the history buffer. Maximum-request-length specifies the maximum length of a request accepted by the server, in 4-byte units. Requestlength That is, length is the maximum value that can appear in the length field of a request. Requests larger than this maximum generate a Length error, and the server will read and simply discard the entire request. Maximum-request-length will always be at least 4096 (that is, requests of length up to and including 16384 bytes will be accepted by all servers). TypesKEYCODE Keycode Min-keycode and max-keycode specify the smallest and largest keycode values transmitted by the server. Min-keycode is never less than 8, and max-keycode is never greater than 255. Not all keycodes in this range are required to have corresponding keys.
Screen Information Screen The information that applies per screen is: The allowed-depths specifies what pixmap and window depths are supported. Pixmaps are supported for each depth listed, and windows of that depth are supported if at least one visual type is listed for the depth. A pixmap depth of one is always supported and listed, but windows of depth one might not be supported. A depth of zero is never listed, but zero-depth InputOnly windows are always supported. Root-depth and root-visual specify the depth and visual type of the root window. Width-in-pixels and height-in-pixels specify the size of the root window (which cannot be changed). The class of the root window is always InputOutput. Width-in-millimeters and height-in-millimeters can be used to determine the physical size and the aspect ratio. The default-colormap is the one initially associated with the root window. Clients with minimal color requirements creating windows of the same depth as the root may want to allocate from this map by default. Black-pixel and white-pixel can be used in implementing a monochrome application. These pixel values are for permanently allocated entries in the default-colormap. The actual RGB values may be settable on some screens and, in any case, may not actually be black and white. The names are intended to convey the expected relative intensity of the colors. The border of the root window is initially a pixmap filled with the black-pixel. The initial background of the root window is a pixmap filled with some unspecified two-color pattern using black-pixel and white-pixel. Min-installed-maps specifies the number of maps that can be guaranteed to be installed simultaneously (with InstallColormap), regardless of the number of entries allocated in each map. Max-installed-maps specifies the maximum number of maps that might possibly be installed simultaneously, depending on their allocations. Multiple static-visual colormaps with identical contents but differing in resource ID should be considered as a single map for the purposes of this number. For the typical case of a single hardware colormap, both values will be 1. Backing store Backing-stores indicates when the server supports backing stores for this screen, although it may be storage limited in the number of windows it can support at once. If save-unders is True, the server can support the save-under mode in CreateWindow and ChangeWindowAttributes, although again it may be storage limited. The current-input-events is what GetWindowAttributes would return for the all-event-masks for the root window.
Visual Information Visualinformation The information that applies per visual-type is: A given visual type might be listed for more than one depth or for more than one screen. Colormaptypes Pixel value For PseudoColor, a pixel value indexes a colormap to produce independent RGB values; the RGB values can be changed dynamically. GrayScale is treated in the same way as PseudoColor except which primary drives the screen is undefined; thus, the client should always store the same value for red, green, and blue in colormaps. For DirectColor, a pixel value is decomposed into separate RGB subfields, and each subfield separately indexes the colormap for the corresponding value. The RGB values can be changed dynamically. TrueColor is treated in the same way as DirectColor except the colormap has predefined read-only RGB values. These values are server-dependent but provide linear or near-linear increasing ramps in each primary. StaticColor is treated in the same way as PseudoColor except the colormap has predefined read-only RGB values, which are server-dependent. StaticGray is treated in the same way as StaticColor except the red, green, and blue values are equal for any single pixel value, resulting in shades of gray. StaticGray with a two-entry colormap can be thought of as monochrome. The red-mask, green-mask, and blue-mask are only defined for DirectColor and TrueColor. Each has one contiguous set of bits set to 1 with no intersections. Usually each mask has the same number of bits set to 1. The bits-per-rgb-value specifies the log base 2 of the number of distinct color intensity values (individually) of red, green, and blue. This number need not bear any relation to the number of colormap entries. Actual RGB values are always passed in the protocol within a 16-bit spectrum, with 0 being minimum intensity and 65535 being the maximum intensity. On hardware that provides a linear zero-based intensity ramp, the following relationship exists: hw-intensity = protocol-intensity / (65536 / total-hw-intensities) Colormap entries are indexed from 0. The colormap-entries defines the number of available colormap entries in a newly created colormap. For DirectColor and TrueColor, this will usually be 2 to the power of the maximum number of bits set to 1 in red-mask, green-mask, and blue-mask.
Requests
CreateWindow CreateWindow wid, parent: WINDOW class: { InputOutput, InputOnly, CopyFromParent} depth: CARD8 visual: VISUALID or CopyFromParent x, y: INT16 width, height, border-width: CARD16 value-mask: BITMASK value-list: LISTofVALUE Errors: Alloc, Colormap, Cursor, IDChoice, Match, Pixmap, Value, Window This request creates an unmapped window and assigns the identifier wid to it. A class of CopyFromParent means the class is taken from the parent. A depth of zero for class InputOutput or CopyFromParent means the depth is taken from the parent. A visual of CopyFromParent means the visual type is taken from the parent. For class InputOutput, the visual type and depth must be a combination supported for the screen (or a Match error results). The depth need not be the same as the parent, but the parent must not be of class InputOnly (or a Match error results). For class InputOnly, the depth must be zero (or a Match error results), and the visual must be one supported for the screen (or a Match error results). However, the parent can have any depth and class. The server essentially acts as if InputOnly windows do not exist for the purposes of graphics requests, exposure processing, and VisibilityNotify events. An InputOnly window cannot be used as a drawable (as a source or destination for graphics requests). InputOnly and InputOutput windows act identically in other respects-properties, grabs, input control, and so on. The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner. The x and y coordinates for the window are relative to the parent's origin and specify the position of the upper-left outer corner of the window (not the origin). The width and height specify the inside size (not including the border) and must be nonzero (or a Value error results). The border-width for an InputOnly window must be zero (or a Match error results). The window is placed on top in the stacking order with respect to siblings. The value-mask and value-list specify attributes of the window that are to be explicitly initialized. The possible values are: Attribute Type background-pixmap PIXMAP or None or ParentRelative background-pixel CARD32 border-pixmap PIXMAP or CopyFromParent border-pixel CARD32 bit-gravity BITGRAVITY win-gravity WINGRAVITY backing-store { NotUseful, WhenMapped, Always } backing-planes CARD32 backing-pixel CARD32 save-under BOOL event-mask SETofEVENT do-not-propagate-mask SETofDEVICEEVENT override-redirect BOOL colormap COLORMAP or CopyFromParent cursor CURSOR or None The default values when attributes are not explicitly initialized are: Attribute Default background-pixmap None border-pixmap CopyFromParent bit-gravity Forget win-gravity NorthWest backing-store NotUseful backing-planes all ones backing-pixel zero save-under False event-mask {} (empty set) do-not-propagate-mask {} (empty set) override-redirect False colormap CopyFromParent cursor None Only the following attributes are defined for InputOnly windows: win-gravity event-mask do-not-propagate-mask override-redirect cursor It is a Match error to specify any other attributes for InputOnly windows. Background If background-pixmap is given, it overrides the default background-pixmap. The background pixmap and the window must have the same root and the same depth (or a Match error results). Any size pixmap can be used, although some sizes may be faster than others. If background None is specified, the window has no defined background. If background ParentRelative is specified, the parent's background is used, but the window must have the same depth as the parent (or a Match error results). If the parent has background None, then the window will also have background None. A copy of the parent's background is not made. The parent's background is reexamined each time the window background is required. If background-pixel is given, it overrides the default background-pixmap and any background-pixmap given explicitly, and a pixmap of undefined size filled with background-pixel is used for the background. Range checking is not performed on the background-pixel value; it is simply truncated to the appropriate number of bits. For a ParentRelative background, the background tile origin always aligns with the parent's background tile origin. Otherwise, the background tile origin is always the window origin. When no valid contents are available for regions of a window and the regions are either visible or the server is maintaining backing store, the server automatically tiles the regions with the window's background unless the window has a background of None. If the background is None, the previous screen contents from other windows of the same depth as the window are simply left in place if the contents come from the parent of the window or an inferior of the parent; otherwise, the initial contents of the exposed regions are undefined. Exposure events are then generated for the regions, even if the background is None. The border tile origin is always the same as the background tile origin. If border-pixmap is given, it overrides the default border-pixmap. The border pixmap and the window must have the same root and the same depth (or a Match error results). Any size pixmap can be used, although some sizes may be faster than others. If CopyFromParent is given, the parent's border pixmap is copied (subsequent changes to the parent's border attribute do not affect the child), but the window must have the same depth as the parent (or a Match error results). The pixmap might be copied by sharing the same pixmap object between the child and parent or by making a complete copy of the pixmap contents. If border-pixel is given, it overrides the default border-pixmap and any border-pixmap given explicitly, and a pixmap of undefined size filled with border-pixel is used for the border. Range checking is not performed on the border-pixel value; it is simply truncated to the appropriate number of bits. Output to a window is always clipped to the inside of the window, so that the border is never affected. The bit-gravity defines which region of the window should be retained if the window is resized, and win-gravity defines how the window should be repositioned if the parent is resized (see ConfigureWindow request). A backing-store of WhenMapped advises the server that maintaining contents of obscured regions when the window is mapped would be beneficial. A backing-store of Always advises the server that maintaining contents even when the window is unmapped would be beneficial. In this case, the server may generate an exposure event when the window is created. A value of NotUseful advises the server that maintaining contents is unnecessary, although a server may still choose to maintain contents while the window is mapped. Note that if the server maintains contents, then the server should maintain complete contents not just the region within the parent boundaries, even if the window is larger than its parent. While the server maintains contents, exposure events will not normally be generated, but the server may stop maintaining contents at any time. If save-under is True, the server is advised that when this window is mapped, saving the contents of windows it obscures would be beneficial. When the contents of obscured regions of a window are being maintained, regions obscured by noninferior windows are included in the destination (and source, when the window is the source) of graphics requests, but regions obscured by inferior windows are not included. The backing-planes indicates (with bits set to 1) which bit planes of the window hold dynamic data that must be preserved in backing-stores and during save-unders. The backing-pixel specifies what value to use in planes not covered by backing-planes. The server is free to save only the specified bit planes in the backing-store or save-under and regenerate the remaining planes with the specified pixel value. Any bits beyond the specified depth of the window in these values are simply ignored. Eventmask Eventpropagation The event-mask defines which events the client is interested in for this window (or for some event types, inferiors of the window). The do-not-propagate-mask defines which events should not be propagated to ancestor windows when no client has the event type selected in this window. The override-redirect specifies whether map and configure requests on this window should override a SubstructureRedirect on the parent, typically to inform a window manager not to tamper with the window. The colormap specifies the colormap that best reflects the true colors of the window. Servers capable of supporting multiple hardware colormaps may use this information, and window managers may use it for InstallColormap requests. The colormap must have the same visual type and root as the window (or a Match error results). If CopyFromParent is specified, the parent's colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child). However, the window must have the same visual type as the parent (or a Match error results), and the parent must not have a colormap of None (or a Match error results). For an explanation of None, see FreeColormap request. The colormap is copied by sharing the colormap object between the child and the parent, not by making a complete copy of the colormap contents. If a cursor is specified, it will be used whenever the pointer is in the window. If None is specified, the parent's cursor will be used when the pointer is in the window, and any change in the parent's cursor will cause an immediate change in the displayed cursor. This request generates a CreateNotify event. The background and border pixmaps and the cursor may be freed immediately if no further explicit references to them are to be made. Subsequent drawing into the background or border pixmap has an undefined effect on the window state. The server might or might not make a copy of the pixmap.
ChangeWindowAttributes ChangeWindowAttributes window: WINDOW value-mask: BITMASK value-list: LISTofVALUE Errors: Access, Colormap, Cursor, Match, Pixmap, Value, Window The value-mask and value-list specify which attributes are to be changed. The values and restrictions are the same as for CreateWindow. Setting a new background, whether by background-pixmap or background-pixel, overrides any previous background. Setting a new border, whether by border-pixel or border-pixmap, overrides any previous border. Changing the background does not cause the window contents to be changed. Setting the border or changing the background such that the border tile origin changes causes the border to be repainted. Changing the background of a root window to None or ParentRelative restores the default background pixmap. Changing the border of a root window to CopyFromParent restores the default border pixmap. Changing the win-gravity does not affect the current position of the window. Changing the backing-store of an obscured window to WhenMapped or Always or changing the backing-planes, backing-pixel, or save-under of a mapped window may have no immediate effect. Multiple clients can select input on the same window; their event-masks are disjoint. When an event is generated, it will be reported to all interested clients. However, only one client at a time can select for SubstructureRedirect, only one client at a time can select for ResizeRedirect, and only one client at a time can select for ButtonPress. An attempt to violate these restrictions results in an Access error. There is only one do-not-propagate-mask for a window, not one per client. Changing the colormap of a window (by defining a new map, not by changing the contents of the existing map) generates a ColormapNotify event. Changing the colormap of a visible window might have no immediate effect on the screen (see InstallColormap request). Changing the cursor of a root window to None restores the default cursor. The order in which attributes are verified and altered is server-dependent. If an error is generated, a subset of the attributes may have been altered.
GetWindowAttributes GetWindowAttributes window: WINDOW â–¶ visual: VISUALID class: { InputOutput, InputOnly} bit-gravity: BITGRAVITY win-gravity: WINGRAVITY backing-store: { NotUseful, WhenMapped, Always} backing-planes: CARD32 backing-pixel: CARD32 save-under: BOOL colormap: COLORMAP or None map-is-installed: BOOL map-state: { Unmapped, Unviewable, Viewable} all-event-masks, your-event-mask: SETofEVENT do-not-propagate-mask: SETofDEVICEEVENT override-redirect: BOOL Errors: Window This request returns the current attributes of the window. A window is Unviewable if it is mapped but some ancestor is unmapped. All-event-masks is the inclusive-OR of all event masks selected on the window by clients. Your-event-mask is the event mask selected by the querying client.
DestroyWindow DestroyWindow window: WINDOW Errors: Window If the argument window is mapped, an UnmapWindow request is performed automatically. The window and all inferiors are then destroyed, and a DestroyNotify event is generated for each window. The ordering of the DestroyNotify events is such that for any given window, DestroyNotify is generated on all inferiors of the window before being generated on the window itself. The ordering among siblings and across subhierarchies is not otherwise constrained. Normal exposure processing on formerly obscured windows is performed. If the window is a root window, this request has no effect.
DestroySubwindows DestroySubwindows window: WINDOW Errors: Window This request performs a DestroyWindow request on all children of the window, in bottom-to-top stacking order.
ChangeSaveSet ChangeSaveSet window: WINDOW mode: { Insert, Delete} Errors: Match, Value, Window This request adds or removes the specified window from the client's save-set. The window must have been created by some other client (or a Match error results). For further information about the use of the save-set, see section 10. When windows are destroyed, the server automatically removes them from the save-set.
ReparentWindow ReparentWindow window, parent: WINDOW x, y: INT16 Errors: Match, Window If the window is mapped, an UnmapWindow request is performed automatically first. The window is then removed from its current position in the hierarchy and is inserted as a child of the specified parent. The x and y coordinates are relative to the parent's origin and specify the new position of the upper-left outer corner of the window. The window is placed on top in the stacking order with respect to siblings. A ReparentNotify event is then generated. The override-redirect attribute of the window is passed on in this event; a value of True indicates that a window manager should not tamper with this window. Finally, if the window was originally mapped, a MapWindow request is performed automatically. Normal exposure processing on formerly obscured windows is performed. The server might not generate exposure events for regions from the initial unmap that are immediately obscured by the final map. A Match error is generated if: The new parent is not on the same screen as the old parent. The new parent is the window itself or an inferior of the window. The new parent is InputOnly, and the window is not. The window has a ParentRelative background, and the new parent is not the same depth as the window.
MapWindow MapWindow Mapped window window: WINDOW Errors: Window If the window is already mapped, this request has no effect. If the override-redirect attribute of the window is False and some other client has selected SubstructureRedirect on the parent, then a MapRequest event is generated, but the window remains unmapped. Otherwise, the window is mapped, and a MapNotify event is generated. If the window is now viewable and its contents have been discarded, the window is tiled with its background (if no background is defined, the existing screen contents are not altered), and zero or more exposure events are generated. If a backing-store has been maintained while the window was unmapped, no exposure events are generated. If a backing-store will now be maintained, a full-window exposure is always generated. Otherwise, only visible regions may be reported. Similar tiling and exposure take place for any newly viewable inferiors.
MapSubwindows MapSubwindows window: WINDOW Errors: Window This request performs a MapWindow request on all unmapped children of the window, in top-to-bottom stacking order.
UnmapWindow UnmapWindow window: WINDOW Errors: Window If the window is already unmapped, this request has no effect. Otherwise, the window is unmapped, and an UnmapNotify event is generated. Normal exposure processing on formerly obscured windows is performed.
UnmapSubwindows UnmapSubwindows window: WINDOW Errors: Window This request performs an UnmapWindow request on all mapped children of the window, in bottom-to-top stacking order.
ConfigureWindow ConfigureWindow window: WINDOW value-mask: BITMASK value-list: LISTofVALUE Errors: Match, Value, Window This request changes the configuration of the window. The value-mask and value-list specify which values are to be given. The possible values are: Attribute Type x INT16 y INT16 width CARD16 height CARD16 border-width CARD16 sibling WINDOW stack-mode { Above, Below, TopIf, BottomIf, Opposite } The x and y coordinates are relative to the parent's origin and specify the position of the upper-left outer corner of the window. The width and height specify the inside size, not including the border, and must be nonzero (or a Value error results). Those values not specified are taken from the existing geometry of the window. Note that changing just the border-width leaves the outer-left corner of the window in a fixed position but moves the absolute position of the window's origin. It is a Match error to attempt to make the border-width of an InputOnly window nonzero. If the override-redirect attribute of the window is False and some other client has selected SubstructureRedirect on the parent, a ConfigureRequest event is generated, and no further processing is performed. Otherwise, the following is performed: If some other client has selected ResizeRedirect on the window and the inside width or height of the window is being changed, a ResizeRequest event is generated, and the current inside width and height are used instead. Note that the override-redirect attribute of the window has no effect on ResizeRedirect and that SubstructureRedirect on the parent has precedence over ResizeRedirect on the window. Gravity Bitgravity Windowgravity The geometry of the window is changed as specified, the window is restacked among siblings, and a ConfigureNotify event is generated if the state of the window actually changes. If the inside width or height of the window has actually changed, then children of the window are affected, according to their win-gravity. Exposure processing is performed on formerly obscured windows (including the window itself and its inferiors if regions of them were obscured but now are not). Exposure processing is also performed on any new regions of the window (as a result of increasing the width or height) and on any regions where window contents are lost. If the inside width or height of a window is not changed but the window is moved or its border is changed, then the contents of the window are not lost but move with the window. Changing the inside width or height of the window causes its contents to be moved or lost, depending on the bit-gravity of the window. It also causes children to be reconfigured, depending on their win-gravity. For a change of width and height of W and H, we define the [x, y] pairs as: Direction Deltas NorthWest [0, 0] North [W/2, 0] NorthEast [W, 0] West [0, H/2] Center [W/2, H/2] East [W, H/2] SouthWest [0, H] South [W/2, H] SouthEast [W, H] When a window with one of these bit-gravities is resized, the corresponding pair defines the change in position of each pixel in the window. When a window with one of these win-gravities has its parent window resized, the corresponding pair defines the change in position of the window within the parent. This repositioning generates a GravityNotify event. GravityNotify events are generated after the ConfigureNotify event is generated. A gravity of Static indicates that the contents or origin should not move relative to the origin of the root window. If the change in size of the window is coupled with a change in position of [X, Y], then for bit-gravity the change in position of each pixel is [-X, -Y] and for win-gravity the change in position of a child when its parent is so resized is [-X, -Y]. Note that Static gravity still only takes effect when the width or height of the window is changed, not when the window is simply moved. A bit-gravity of Forget indicates that the window contents are always discarded after a size change, even if backing-store or save-under has been requested. The window is tiled with its background (except, if no background is defined, the existing screen contents are not altered) and zero or more exposure events are generated. The contents and borders of inferiors are not affected by their parent's bit-gravity. A server is permitted to ignore the specified bit-gravity and use Forget instead. A win-gravity of Unmap is like NorthWest, but the child is also unmapped when the parent is resized, and an UnmapNotify event is generated. UnmapNotify events are generated after the ConfigureNotify event is generated. If a sibling and a stack-mode are specified, the window is restacked as follows: Above The window is placed just above the sibling. Below The window is placed just below the sibling. TopIf If the sibling occludes the window, then the window is placed at the top of the stack. BottomIf If the window occludes the sibling, then the window is placed at the bottom of the stack. Opposite If the sibling occludes the window, then the window is placed at the top of the stack. Otherwise, if the window occludes the sibling, then the window is placed at the bottom of the stack. If a stack-mode is specified but no sibling is specified, the window is restacked as follows: Above The window is placed at the top of the stack. Below The window is placed at the bottom of the stack. TopIf If any sibling occludes the window, then the window is placed at the top of the stack. BottomIf If the window occludes any sibling, then the window is placed at the bottom of the stack. Opposite If any sibling occludes the window, then the window is placed at the top of the stack. Otherwise, if the window occludes any sibling, then the window is placed at the bottom of the stack. It is a Match error if a sibling is specified without a stack-mode or if the window is not actually a sibling. Note that the computations for BottomIf, TopIf, and Opposite are performed with respect to the window's final geometry (as controlled by the other arguments to the request), not to its initial geometry. Attempts to configure a root window have no effect.
CirculateWindow CirculateWindow window: WINDOW direction: { RaiseLowest, LowerHighest} Errors: Value, Window If some other client has selected SubstructureRedirect on the window, then a CirculateRequest event is generated, and no further processing is performed. Otherwise, the following is performed, and then a CirculateNotify event is generated if the window is actually restacked. For RaiseLowest, CirculateWindow raises the lowest mapped child (if any) that is occluded by another child to the top of the stack. For LowerHighest, CirculateWindow lowers the highest mapped child (if any) that occludes another child to the bottom of the stack. Exposure processing is performed on formerly obscured windows.
GetGeometry GetGeometry drawable: DRAWABLE â–¶ root: WINDOW depth: CARD8 x, y: INT16 width, height, border-width: CARD16 Errors: Drawable This request returns the root and current geometry of the drawable. The depth is the number of bits per pixel for the object. The x, y, and border-width will always be zero for pixmaps. For a window, the x and y coordinates specify the upper-left outer corner of the window relative to its parent's origin, and the width and height specify the inside size, not including the border. It is legal to pass an InputOnly window as a drawable to this request.
QueryTree QueryTree Children window: WINDOW â–¶ root: WINDOW parent: WINDOW or None children: LISTofWINDOW Errors: Window This request returns the root, the parent, and the children of the window. The children are listed in bottom-to-top stacking order.
InternAtom InternAtom Atom name: STRING8 only-if-exists: BOOL â–¶ atom: ATOM or None Errors: Alloc, Value This request returns the atom for the given name. If only-if-exists is False, then the atom is created if it does not exist. The string should use the ISO Latin-1 encoding. Uppercase and lowercase matter. The lifetime of an atom is not tied to the interning client. Atoms remain defined until server reset (see section 10).
GetAtomName GetAtomName atom: ATOM â–¶ name: STRING8 Errors: Atom This request returns the name for the given atom.
ChangeProperty ChangeProperty Property window: WINDOW property, type: ATOM format: {8, 16, 32} mode: { Replace, Prepend, Append} data: LISTofINT8 or LISTofINT16 or LISTofINT32 Errors: Alloc, Atom, Match, Value, Window This request alters the property for the specified window. The type is uninterpreted by the server. The format specifies whether the data should be viewed as a list of 8-bit, 16-bit, or 32-bit quantities so that the server can correctly byte-swap as necessary. If the mode is Replace, the previous property value is discarded. If the mode is Prepend or Append, then the type and format must match the existing property value (or a Match error results). If the property is undefined, it is treated as defined with the correct type and format with zero-length data. For Prepend, the data is tacked on to the beginning of the existing data, and for Append, it is tacked on to the end of the existing data. This request generates a PropertyNotify event on the window. The lifetime of a property is not tied to the storing client. Properties remain until explicitly deleted, until the window is destroyed, or until server reset (see section 10). The maximum size of a property is server-dependent and may vary dynamically.
DeleteProperty DeleteProperty window: WINDOW property: ATOM Errors: Atom, Window This request deletes the property from the specified window if the property exists and generates a PropertyNotify event on the window unless the property does not exist.
GetProperty GetProperty window: WINDOW property: ATOM type: ATOM or AnyPropertyType long-offset, long-length: CARD32 delete: BOOL â–¶ type: ATOM or None format: {0, 8, 16, 32} bytes-after: CARD32 value: LISTofINT8 or LISTofINT16 or LISTofINT32 Errors: Atom, Value, Window If the specified property does not exist for the specified window, then the return type is None, the format and bytes-after are zero, and the value is empty. The delete argument is ignored in this case. If the specified property exists but its type does not match the specified type, then the return type is the actual type of the property, the format is the actual format of the property (never zero), the bytes-after is the length of the property in bytes (even if the format is 16 or 32), and the value is empty. The delete argument is ignored in this case. If the specified property exists and either AnyPropertyType is specified or the specified type matches the actual type of the property, then the return type is the actual type of the property, the format is the actual format of the property (never zero), and the bytes-after and value are as follows, given: N = actual length of the stored property in bytes (even if the format is 16 or 32) I = 4 * long-offset T = N - I L = MINIMUM(T, 4 * long-length) A = N - (I + L) The returned value starts at byte index I in the property (indexing from 0), and its length in bytes is L. However, it is a Value error if long-offset is given such that L is negative. The value of bytes-after is A, giving the number of trailing unread bytes in the stored property. If delete is True and the bytes-after is zero, the property is also deleted from the window, and a PropertyNotify event is generated on the window.
RotateProperties RotateProperties window: WINDOW delta: INT16 properties: LISTofATOM Errors: Atom, Match, Window If the property names in the list are viewed as being numbered starting from zero, and there are N property names in the list, then the value associated with property name I becomes the value associated with property name (I + delta) mod N, for all I from zero to N - 1. The effect is to rotate the states by delta places around the virtual ring of property names (right for positive delta, left for negative delta). If delta mod N is nonzero, a PropertyNotify event is generated for each property in the order listed. If an atom occurs more than once in the list or no property with that name is defined for the window, a Match error is generated. If an Atom or Match error is generated, no properties are changed.
ListProperties ListProperties window: WINDOW â–¶ atoms: LISTofATOM Errors: Window This request returns the atoms of properties currently defined on the window.
SetSelectionOwner SetSelectionOwner Selection selection: ATOM owner: WINDOW or None time: TIMESTAMP or CurrentTime Errors: Atom, Window This request changes the owner, owner window, and last-change time of the specified selection. This request has no effect if the specified time is earlier than the current last-change time of the specified selection or is later than the current server time. Otherwise, the last-change time is set to the specified time with CurrentTime replaced by the current server time. If the owner window is specified as None, then the owner of the selection becomes None (that is, no owner). Otherwise, the owner of the selection becomes the client executing the request. If the new owner (whether a client or None) is not the same as the current owner and the current owner is not None, then the current owner is sent a SelectionClear event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) or if the owner window it has specified in the request is later destroyed, then the owner of the selection automatically reverts to None, but the last-change time is not affected. The selection atom is uninterpreted by the server. The owner window is returned by the GetSelectionOwner request and is reported in SelectionRequest and SelectionClear events. Selections are global to the server.
GetSelectionOwner GetSelectionOwner selection: ATOM â–¶ owner: WINDOW or None Errors: Atom This request returns the current owner window of the specified selection, if any. If None is returned, then there is no owner for the selection.
ConvertSelection ConvertSelection selection, target: ATOM property: ATOM or None requestor: WINDOW time: TIMESTAMP or CurrentTime Errors: Atom, Window If the specified selection has an owner, the server sends a SelectionRequest event to that owner. If no owner for the specified selection exists, the server generates a SelectionNotify event to the requestor with property None. The arguments are passed on unchanged in either of the events.
SendEvent SendEvent Eventsending destination: WINDOW or PointerWindow or InputFocus propagate: BOOL event-mask: SETofEVENT event: <normal-event-format> Errors: Value, Window If PointerWindow is specified, destination is replaced with the window that the pointer is in. If InputFocus is specified and the focus window contains the pointer, destination is replaced with the window that the pointer is in. Otherwise, destination is replaced with the focus window. If the event-mask is the empty set, then the event is sent to the client that created the destination window. If that client no longer exists, no event is sent. If propagate is False, then the event is sent to every client selecting on destination any of the event types in event-mask. If propagate is True and no clients have selected on destination any of the event types in event-mask, then destination is replaced with the closest ancestor of destination for which some client has selected a type in event-mask and no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and InputFocus was originally specified as the destination, then the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of the types specified in event-mask. The event code must be one of the core events or one of the events defined by an extension (or a Value error results) so that the server can correctly byte-swap the contents as necessary. The contents of the event are otherwise unaltered and unchecked by the server except to force on the most significant bit of the event code and to set the sequence number in the event correctly. Active grabs are ignored for this request.
GrabPointer GrabPointer Active grabpointer Pointergrabbing grab-window: WINDOW owner-events: BOOL event-mask: SETofPOINTEREVENT pointer-mode, keyboard-mode: { Synchronous, Asynchronous} confine-to: WINDOW or None cursor: CURSOR or None time: TIMESTAMP or CurrentTime â–¶ status: { Success, AlreadyGrabbed, Frozen, InvalidTime, NotViewable} Errors: Cursor, Value, Window This request actively grabs control of the pointer. Further pointer events are only reported to the grabbing client. The request overrides any active pointer grab by this client. If owner-events is False, all generated pointer events are reported with respect to grab-window and are only reported if selected by event-mask. If owner-events is True and a generated pointer event would normally be reported to this client, it is reported normally. Otherwise, the event is reported with respect to the grab-window and is only reported if selected by event-mask. For either value of owner-events, unreported events are simply discarded. If pointer-mode is Asynchronous, pointer event processing continues normally. If the pointer is currently frozen by this client, then processing of pointer events is resumed. If pointer-mode is Synchronous, the state of the pointer (as seen by means of the protocol) appears to freeze, and no further pointer events are generated by the server until the grabbing client issues a releasing AllowEvents request or until the pointer grab is released. Actual pointer changes are not lost while the pointer is frozen. They are simply queued for later processing. If keyboard-mode is Asynchronous, keyboard event processing is unaffected by activation of the grab. If keyboard-mode is Synchronous, the state of the keyboard (as seen by means of the protocol) appears to freeze, and no further keyboard events are generated by the server until the grabbing client issues a releasing AllowEvents request or until the pointer grab is released. Actual keyboard changes are not lost while the keyboard is frozen. They are simply queued for later processing. If a cursor is specified, then it is displayed regardless of what window the pointer is in. If no cursor is specified, then when the pointer is in grab-window or one of its subwindows, the normal cursor for that window is displayed. Otherwise, the cursor for grab-window is displayed. If a confine-to window is specified, then the pointer will be restricted to stay contained in that window. The confine-to window need have no relationship to the grab-window. If the pointer is not initially in the confine-to window, then it is warped automatically to the closest edge (and enter/leave events are generated normally) just before the grab activates. If the confine-to window is subsequently reconfigured, the pointer will be warped automatically as necessary to keep it contained in the window. This request generates EnterNotify and LeaveNotify events. The request fails with status AlreadyGrabbed if the pointer is actively grabbed by some other client. The request fails with status Frozen if the pointer is frozen by an active grab of another client. The request fails with status NotViewable if grab-window or confine-to window is not viewable or if the confine-to window lies completely outside the boundaries of the root window. The request fails with status InvalidTime if the specified time is earlier than the last-pointer-grab time or later than the current server time. Otherwise, the last-pointer-grab time is set to the specified time, with CurrentTime replaced by the current server time.
UngrabPointer UngrabPointer time: TIMESTAMP or CurrentTime This request releases the pointer if this client has it actively grabbed (from either GrabPointer or GrabButton or from a normal button press) and releases any queued events. The request has no effect if the specified time is earlier than the last-pointer-grab time or is later than the current server time. This request generates EnterNotify and LeaveNotify events. An UngrabPointer request is performed automatically if the event window or confine-to window for an active pointer grab becomes not viewable or if window reconfiguration causes the confine-to window to lie completely outside the boundaries of the root window.
GrabButton GrabButton Buttongrabbing modifiers: SETofKEYMASK or AnyModifier button: BUTTON or AnyButton grab-window: WINDOW owner-events: BOOL event-mask: SETofPOINTEREVENT pointer-mode, keyboard-mode: { Synchronous, Asynchronous} confine-to: WINDOW or None cursor: CURSOR or None Errors: Access, Cursor, Value, Window This request establishes a passive grab. Passive grabpointer In the future, the pointer is actively grabbed as described in GrabPointer, the last-pointer-grab time is set to the time at which the button was pressed (as transmitted in the ButtonPress event), and the ButtonPress event is reported if all of the following conditions are true: The pointer is not grabbed and the specified button is logically pressed when the specified modifier keys are logically down, and no other buttons or modifier keys are logically down. The grab-window contains the pointer. The confine-to window (if any) is viewable. A passive grab on the same button/key combination does not exist on any ancestor of grab-window. The interpretation of the remaining arguments is the same as for GrabPointer. The active grab is terminated automatically when the logical state of the pointer has all buttons released, independent of the logical state of modifier keys. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen. This request overrides all previous passive grabs by the same client on the same button/key combinations on the same window. A modifier of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all specified modifiers have currently assigned keycodes. A button of AnyButton is equivalent to issuing the request for all possible buttons. Otherwise, it is not required that the button specified currently be assigned to a physical button. An Access error is generated if some other client has already issued a GrabButton request with the same button/key combination on the same window. When using AnyModifier or AnyButton, the request fails completely (no grabs are established), and an Access error is generated if there is a conflicting grab for any combination. The request has no effect on an active grab.
UngrabButton UngrabButton modifiers: SETofKEYMASK or AnyModifier button: BUTTON or AnyButton grab-window: WINDOW Errors: Value, Window This request releases the passive button/key combination on the specified window if it was grabbed by this client. A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). A button of AnyButton is equivalent to issuing the request for all possible buttons. The request has no effect on an active grab.
ChangeActivePointerGrab ChangeActivePointerGrab Active grabpointer event-mask: SETofPOINTEREVENT cursor: CURSOR or None time: TIMESTAMP or CurrentTime Errors: Cursor, Value This request changes the specified dynamic parameters if the pointer is actively grabbed by the client and the specified time is no earlier than the last-pointer-grab time and no later than the current server time. The interpretation of event-mask and cursor are the same as in GrabPointer. This request has no effect on the parameters of any passive grabs established with GrabButton.
GrabKeyboard GrabKeyboard Active grabkeyboard Keyboardgrabbing grab-window: WINDOW owner-events: BOOL pointer-mode, keyboard-mode: { Synchronous, Asynchronous} time: TIMESTAMP or CurrentTime â–¶ status: { Success, AlreadyGrabbed, Frozen, InvalidTime, NotViewable} Errors: Value, Window This request actively grabs control of the keyboard. Further key events are reported only to the grabbing client. This request overrides any active keyboard grab by this client. If owner-events is False, all generated key events are reported with respect to grab-window. If owner-events is True and if a generated key event would normally be reported to this client, it is reported normally. Otherwise, the event is reported with respect to the grab-window. Both KeyPress and KeyRelease events are always reported, independent of any event selection made by the client. If keyboard-mode is Asynchronous, keyboard event processing continues normally. If the keyboard is currently frozen by this client, then processing of keyboard events is resumed. If keyboard-mode is Synchronous, the state of the keyboard (as seen by means of the protocol) appears to freeze. No further keyboard events are generated by the server until the grabbing client issues a releasing AllowEvents request or until the keyboard grab is released. Actual keyboard changes are not lost while the keyboard is frozen. They are simply queued for later processing. If pointer-mode is Asynchronous, pointer event processing is unaffected by activation of the grab. If pointer-mode is Synchronous, the state of the pointer (as seen by means of the protocol) appears to freeze. No further pointer events are generated by the server until the grabbing client issues a releasing AllowEvents request or until the keyboard grab is released. Actual pointer changes are not lost while the pointer is frozen. They are simply queued for later processing. This request generates FocusIn and FocusOut events. The request fails with status AlreadyGrabbed if the keyboard is actively grabbed by some other client. The request fails with status Frozen if the keyboard is frozen by an active grab of another client. The request fails with status NotViewable if grab-window is not viewable. The request fails with status InvalidTime if the specified time is earlier than the last-keyboard-grab time or later than the current server time. Otherwise, the last-keyboard-grab time is set to the specified time with CurrentTime replaced by the current server time.
UngrabKeyboard UngrabKeyboard time: TIMESTAMP or CurrentTime This request releases the keyboard if this client has it actively grabbed (as a result of either GrabKeyboard or GrabKey) and releases any queued events. The request has no effect if the specified time is earlier than the last-keyboard-grab time or is later than the current server time. This request generates FocusIn and FocusOut events. An UngrabKeyboard is performed automatically if the event window for an active keyboard grab becomes not viewable.
GrabKey GrabKey Keygrabbing key: KEYCODE or AnyKey modifiers: SETofKEYMASK or AnyModifier grab-window: WINDOW owner-events: BOOL pointer-mode, keyboard-mode: { Synchronous, Asynchronous} Errors: Access, Value, Window This request establishes a passive grab on the keyboard. Passive grabkeyboard In the future, the keyboard is actively grabbed as described in GrabKeyboard, the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the KeyPress event), and the KeyPress event is reported if all of the following conditions are true: The keyboard is not grabbed and the specified key (which can itself be a modifier key) is logically pressed when the specified modifier keys are logically down, and no other modifier keys are logically down. Either the grab-window is an ancestor of (or is) the focus window, or the grab-window is a descendent of the focus window and contains the pointer. A passive grab on the same key combination does not exist on any ancestor of grab-window. The interpretation of the remaining arguments is the same as for GrabKeyboard. The active grab is terminated automatically when the logical state of the keyboard has the specified key released, independent of the logical state of modifier keys. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen. This request overrides all previous passive grabs by the same client on the same key combinations on the same window. A modifier of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified have currently assigned keycodes. A key of AnyKey is equivalent to issuing the request for all possible keycodes. Otherwise, the key must be in the range specified by min-keycode and max-keycode in the connection setup (or a Value error results). An Access error is generated if some other client has issued a GrabKey with the same key combination on the same window. When using AnyModifier or AnyKey, the request fails completely (no grabs are established), and an Access error is generated if there is a conflicting grab for any combination.
UngrabKey UngrabKey key: KEYCODE or AnyKey modifiers: SETofKEYMASK or AnyModifier grab-window: WINDOW Errors: Value, Window This request releases the key combination on the specified window if it was grabbed by this client. A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). A key of AnyKey is equivalent to issuing the request for all possible keycodes. This request has no effect on an active grab.
AllowEvents AllowEvents mode: { AsyncPointer, SyncPointer, ReplayPointer, AsyncKeyboard, SyncKeyboard, ReplayKeyboard, AsyncBoth, SyncBoth} time: TIMESTAMP or CurrentTime Errors: Value This request releases some queued events if the client has caused a device to freeze. The request has no effect if the specified time is earlier than the last-grab time of the most recent active grab for the client or if the specified time is later than the current server time. For AsyncPointer, if the pointer is frozen by the client, pointer event processing continues normally. If the pointer is frozen twice by the client on behalf of two separate grabs, AsyncPointer thaws for both. AsyncPointer has no effect if the pointer is not frozen by the client, but the pointer need not be grabbed by the client. For SyncPointer, if the pointer is frozen and actively grabbed by the client, pointer event processing continues normally until the next ButtonPress or ButtonRelease event is reported to the client, at which time the pointer again appears to freeze. However, if the reported event causes the pointer grab to be released, then the pointer does not freeze. SyncPointer has no effect if the pointer is not frozen by the client or if the pointer is not grabbed by the client. For ReplayPointer, if the pointer is actively grabbed by the client and is frozen as the result of an event having been sent to the client (either from the activation of a GrabButton or from a previous AllowEvents with mode SyncPointer but not from a GrabPointer), then the pointer grab is released and that event is completely reprocessed, this time ignoring any passive grabs at or above (towards the root) the grab-window of the grab just released. The request has no effect if the pointer is not grabbed by the client or if the pointer is not frozen as the result of an event. For AsyncKeyboard, if the keyboard is frozen by the client, keyboard event processing continues normally. If the keyboard is frozen twice by the client on behalf of two separate grabs, AsyncKeyboard thaws for both. AsyncKeyboard has no effect if the keyboard is not frozen by the client, but the keyboard need not be grabbed by the client. For SyncKeyboard, if the keyboard is frozen and actively grabbed by the client, keyboard event processing continues normally until the next KeyPress or KeyRelease event is reported to the client, at which time the keyboard again appears to freeze. However, if the reported event causes the keyboard grab to be released, then the keyboard does not freeze. SyncKeyboard has no effect if the keyboard is not frozen by the client or if the keyboard is not grabbed by the client. For ReplayKeyboard, if the keyboard is actively grabbed by the client and is frozen as the result of an event having been sent to the client (either from the activation of a GrabKey or from a previous AllowEvents with mode SyncKeyboard but not from a GrabKeyboard), then the keyboard grab is released and that event is completely reprocessed, this time ignoring any passive grabs at or above (towards the root) the grab-window of the grab just released. The request has no effect if the keyboard is not grabbed by the client or if the keyboard is not frozen as the result of an event. For SyncBoth, if both pointer and keyboard are frozen by the client, event processing (for both devices) continues normally until the next ButtonPress, ButtonRelease, KeyPress, or KeyRelease event is reported to the client for a grabbed device (button event for the pointer, key event for the keyboard), at which time the devices again appear to freeze. However, if the reported event causes the grab to be released, then the devices do not freeze (but if the other device is still grabbed, then a subsequent event for it will still cause both devices to freeze). SyncBoth has no effect unless both pointer and keyboard are frozen by the client. If the pointer or keyboard is frozen twice by the client on behalf of two separate grabs, SyncBoth thaws for both (but a subsequent freeze for SyncBoth will only freeze each device once). For AsyncBoth, if the pointer and the keyboard are frozen by the client, event processing for both devices continues normally. If a device is frozen twice by the client on behalf of two separate grabs, AsyncBoth thaws for both. AsyncBoth has no effect unless both pointer and keyboard are frozen by the client. AsyncPointer, SyncPointer, and ReplayPointer have no effect on processing of keyboard events. AsyncKeyboard, SyncKeyboard, and ReplayKeyboard have no effect on processing of pointer events. It is possible for both a pointer grab and a keyboard grab to be active simultaneously (by the same or different clients). When a device is frozen on behalf of either grab, no event processing is performed for the device. It is possible for a single device to be frozen because of both grabs. In this case, the freeze must be released on behalf of both grabs before events can again be processed. If a device is frozen twice by a single client, then a single AllowEvents releases both.
GrabServer GrabServer Servergrabbing This request disables processing of requests and close-downs on all connections other than the one this request arrived on.
UngrabServer UngrabServer This request restarts processing of requests and close-downs on other connections.
QueryPointer QueryPointer window: WINDOW â–¶ root: WINDOW child: WINDOW or None same-screen: BOOL root-x, root-y, win-x, win-y: INT16 mask: SETofKEYBUTMASK Errors: Window The root window the pointer is logically on and the pointer coordinates relative to the root's origin are returned. If same-screen is False, then the pointer is not on the same screen as the argument window, child is None, and win-x and win-y are zero. If same-screen is True, then win-x and win-y are the pointer coordinates relative to the argument window's origin, and child is the child containing the pointer, if any. The current logical state of the modifier keys and the buttons are also returned. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen.
GetMotionEvents GetMotionEvents start, stop: TIMESTAMP or CurrentTime window: WINDOW â–¶ events: LISTofTIMECOORD where: TIMECOORD: [x, y: INT16 time: TIMESTAMP] Errors: Window This request returns all events in the motion history buffer that fall between the specified start and stop times (inclusive) and that have coordinates that lie within (including borders) the specified window at its present placement. The x and y coordinates are reported relative to the origin of the window. If the start time is later than the stop time or if the start time is in the future, no events are returned. If the stop time is in the future, it is equivalent to specifying CurrentTime.
TranslateCoordinates TranslateCoordinates Coordinate systemtranslating src-window, dst-window: WINDOW src-x, src-y: INT16 â–¶ same-screen: BOOL child: WINDOW or None dst-x, dst-y: INT16 Errors: Window The src-x and src-y coordinates are taken relative to src-window's origin and are returned as dst-x and dst-y coordinates relative to dst-window's origin. If same-screen is False, then src-window and dst-window are on different screens, and dst-x and dst-y are zero. If the coordinates are contained in a mapped child of dst-window, then that child is returned.
WarpPointer WarpPointer src-window: WINDOW or None dst-window: WINDOW or None src-x, src-y: INT16 src-width, src-height: CARD16 dst-x, dst-y: INT16 Errors: Window If dst-window is None, this request moves the pointer by offsets [dst-x, dst-y] relative to the current position of the pointer. If dst-window is a window, this request moves the pointer to [dst-x, dst-y] relative to dst-window's origin. However, if src-window is not None, the move only takes place if src-window contains the pointer and the pointer is contained in the specified rectangle of src-window. The src-x and src-y coordinates are relative to src-window's origin. If src-height is zero, it is replaced with the current height of src-window minus src-y. If src-width is zero, it is replaced with the current width of src-window minus src-x. This request cannot be used to move the pointer outside the confine-to window of an active pointer grab. An attempt will only move the pointer as far as the closest edge of the confine-to window. This request will generate events just as if the user had instantaneously moved the pointer.
SetInputFocus SetInputFocus Input focus focus: WINDOW or PointerRoot or None revert-to: { Parent, PointerRoot, None} time: TIMESTAMP or CurrentTime Errors: Match, Value, Window This request changes the input focus and the last-focus-change time. The request has no effect if the specified time is earlier than the current last-focus-change time or is later than the current server time. Otherwise, the last-focus-change time is set to the specified time with CurrentTime replaced by the current server time. If None is specified as the focus, all keyboard events are discarded until a new focus window is set. In this case, the revert-to argument is ignored. If a window is specified as the focus, it becomes the keyboard's focus window. If a generated keyboard event would normally be reported to this window or one of its inferiors, the event is reported normally. Otherwise, the event is reported with respect to the focus window. If PointerRoot is specified as the focus, the focus window is dynamically taken to be the root window of whatever screen the pointer is on at each keyboard event. In this case, the revert-to argument is ignored. This request generates FocusIn and FocusOut events. The specified focus window must be viewable at the time of the request (or a Match error results). If the focus window later becomes not viewable, the new focus window depends on the revert-to argument. If revert-to is Parent, the focus reverts to the parent (or the closest viewable ancestor) and the new revert-to value is taken to be None. If revert-to is PointerRoot or None, the focus reverts to that value. When the focus reverts, FocusIn and FocusOut events are generated, but the last-focus-change time is not affected.
GetInputFocus GetInputFocus â–¶ focus: WINDOW or PointerRoot or None revert-to: { Parent, PointerRoot, None} This request returns the current focus state.
QueryKeymap QueryKeymap â–¶ keys: LISTofCARD8 This request returns a bit vector for the logical state of the keyboard. Each bit set to 1 indicates that the corresponding key is currently pressed. The vector is represented as 32 bytes. Byte N (from 0) contains the bits for keys 8N to 8N + 7 with the least significant bit in the byte representing key 8N. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen.
OpenFont OpenFont Font fid: FONT name: STRING8 Errors: Alloc, IDChoice, Name This request loads the specified font, if necessary, and associates identifier fid with it. The font name should use the ISO Latin-1 encoding, and uppercase and lowercase do not matter. When the characters ? and * are used in a font name, a pattern match is performed and any matching font is used. In the pattern, the ? character (octal value 77) will match any single character, and the * character (octal value 52) will match any number of characters. A structured format for font names is specified in the X.Org standard X Logical Font Description Conventions. Fonts are not associated with a particular screen and can be stored as a component of any graphics context.
CloseFont CloseFont font: FONT Errors: Font This request deletes the association between the resource ID and the font. The font itself will be freed when no other resource references it.
QueryFont QueryFont font: FONTABLE â–¶ font-info: FONTINFO char-infos: LISTofCHARINFO where: FONTINFO: [draw-direction: { LeftToRight, RightToLeft } min-char-or-byte2, max-char-or-byte2: CARD16 min-byte1, max-byte1: CARD8 all-chars-exist: BOOL default-char: CARD16 min-bounds: CHARINFO max-bounds: CHARINFO font-ascent: INT16 font-descent: INT16 properties: LISTofFONTPROP] FONTPROP: [name: ATOM value: <32-bit-value>] CHARINFO: [left-side-bearing: INT16 right-side-bearing: INT16 character-width: INT16 ascent: INT16 descent: INT16 attributes: CARD16] Errors: Font This request returns logical information about a font. If a gcontext is given for font, the currently contained font is used. The draw-direction is just a hint and indicates whether most char-infos have a positive, LeftToRight, or a negative, RightToLeft, character-width metric. The core protocol defines no support for vertical text. If min-byte1 and max-byte1 are both zero, then min-char-or-byte2 specifies the linear character index corresponding to the first element of char-infos, and max-char-or-byte2 specifies the linear character index of the last element. If either min-byte1 or max-byte1 are nonzero, then both min-char-or-byte2 and max-char-or-byte2 will be less than 256, and the 2-byte character index values corresponding to char-infos element N (counting from 0) are: byte1 = N/D + min-byte1 byte2 = N\\D + min-char-or-byte2 where: D = max-char-or-byte2 - min-char-or-byte2 + 1 / = integer division \\ = integer modulus If char-infos has length zero, then min-bounds and max-bounds will be identical, and the effective char-infos is one filled with this char-info, of length: L = D * (max-byte1 - min-byte1 + 1) That is, all glyphs in the specified linear or matrix range have the same information, as given by min-bounds (and max-bounds). If all-chars-exist is True, then all characters in char-infos have nonzero bounding boxes. The default-char specifies the character that will be used when an undefined or nonexistent character is used. Note that default-char is a CARD16, not CHAR2B. For a font using 2-byte matrix format, the default-char has byte1 in the most significant byte and byte2 in the least significant byte. If the default-char itself specifies an undefined or nonexistent character, then no printing is performed for an undefined or nonexistent character. The min-bounds and max-bounds contain the minimum and maximum values of each individual CHARINFO component over all char-infos (ignoring nonexistent characters). The bounding box of the font (that is, the smallest rectangle enclosing the shape obtained by superimposing all characters at the same origin [x,y]) has its upper-left coordinate at: [x + min-bounds.left-side-bearing, y - max-bounds.ascent] with a width of: max-bounds.right-side-bearing - min-bounds.left-side-bearing and a height of: max-bounds.ascent + max-bounds.descent The font-ascent is the logical extent of the font above the baseline and is used for determining line spacing. Specific characters may extend beyond this. The font-descent is the logical extent of the font at or below the baseline and is used for determining line spacing. Specific characters may extend beyond this. If the baseline is at Y-coordinate y, then the logical extent of the font is inclusive between the Y-coordinate values (y - font-ascent) and (y + font-descent - 1). A font is not guaranteed to have any properties. The interpretation of the property value (for example, INT32, CARD32) must be derived from a priori knowledge of the property. A basic set of font properties is specified in the X.Org standard X Logical Font Description Conventions. For a character origin at [x,y], the bounding box of a character (that is, the smallest rectangle enclosing the character's shape), described in terms of CHARINFO components, is a rectangle with its upper-left corner at: [x + left-side-bearing, y - ascent] with a width of: right-side-bearing - left-side-bearing and a height of: ascent + descent and the origin for the next character is defined to be: [x + character-width, y] Note that the baseline is logically viewed as being just below nondescending characters (when descent is zero, only pixels with Y-coordinates less than y are drawn) and that the origin is logically viewed as being coincident with the left edge of a nonkerned character (when left-side-bearing is zero, no pixels with X-coordinate less than x are drawn). Note that CHARINFO metric values can be negative. A nonexistent character is represented with all CHARINFO components zero. The interpretation of the per-character attributes field is server-dependent.
QueryTextExtents QueryTextExtents font: FONTABLE string: STRING16 â–¶ draw-direction: { LeftToRight, RightToLeft} font-ascent: INT16 font-descent: INT16 overall-ascent: INT16 overall-descent: INT16 overall-width: INT32 overall-left: INT32 overall-right: INT32 Errors: Font This request returns the logical extents of the specified string of characters in the specified font. If a gcontext is given for font, the currently contained font is used. The draw-direction, font-ascent, and font-descent are the same as described in QueryFont. The overall-ascent is the maximum of the ascent metrics of all characters in the string, and the overall-descent is the maximum of the descent metrics. The overall-width is the sum of the character-width metrics of all characters in the string. For each character in the string, let W be the sum of the character-width metrics of all characters preceding it in the string, let L be the left-side-bearing metric of the character plus W, and let R be the right-side-bearing metric of the character plus W. The overall-left is the minimum L of all characters in the string, and the overall-right is the maximum R. For fonts defined with linear indexing rather than 2-byte matrix indexing, the server will interpret each CHAR2B as a 16-bit number that has been transmitted most significant byte first (that is, byte1 of the CHAR2B is taken as the most significant byte). Characters with all zero metrics are ignored. If the font has no defined default-char, then undefined characters in the string are also ignored.
ListFonts ListFonts pattern: STRING8 max-names: CARD16 â–¶ names: LISTofSTRING8 This request returns a list of available font names (as controlled by the font search path; see SetFontPath request) that match the pattern. At most, max-names names will be returned. The pattern should use the ISO Latin-1 encoding, and uppercase and lowercase do not matter. In the pattern, the ? character (octal value 77) will match any single character, and the * character (octal value 52) will match any number of characters. The returned names are in lowercase.
ListFontsWithInfo ListFontsWithInfo pattern: STRING8 max-names: CARD16 â–¶ name: STRING8 info FONTINFO replies-hint: CARD32 where: FONTINFO: <same type definition as in QueryFont> This request is similar to ListFonts, but it also returns information about each font. The information returned for each font is identical to what QueryFont would return except that the per-character metrics are not returned. Note that this request can generate multiple replies. With each reply, replies-hint may provide an indication of how many more fonts will be returned. This number is a hint only and may be larger or smaller than the number of fonts actually returned. A zero value does not guarantee that no more fonts will be returned. After the font replies, a reply with a zero-length name is sent to indicate the end of the reply sequence.
SetFontPath SetFontPath path: LISTofSTRING8 Errors: Value This request defines the search path for font lookup. There is only one search path per server, not one per client. The interpretation of the strings is operating-system-dependent, but the strings are intended to specify directories to be searched in the order listed. Setting the path to the empty list restores the default path defined for the server. As a side effect of executing this request, the server is guaranteed to flush all cached information about fonts for which there currently are no explicit resource IDs allocated. The meaning of an error from this request is system specific.
GetFontPath GetFontPath â–¶ path: LISTofSTRING8 This request returns the current search path for fonts.
CreatePixmap CreatePixmap pid: PIXMAP drawable: DRAWABLE depth: CARD8 width, height: CARD16 Errors: Alloc, Drawable, IDChoice, Value This request creates a pixmap and assigns the identifier pid to it. The width and height must be nonzero (or a Value error results). The depth must be one of the depths supported by the root of the specified drawable (or a Value error results). The initial contents of the pixmap are undefined. It is legal to pass an InputOnly window as a drawable to this request.
FreePixmap FreePixmap pixmap: PIXMAP Errors: Pixmap This request deletes the association between the resource ID and the pixmap. The pixmap storage will be freed when no other resource references it.
CreateGC CreateGC Graphics context cid: GCONTEXT drawable: DRAWABLE value-mask: BITMASK value-list: LISTofVALUE Errors: Alloc, Drawable, Font, IDChoice, Match, Pixmap, Value This request creates a graphics context and assigns the identifier cid to it. The gcontext can be used with any destination drawable having the same root and depth as the specified drawable; use with other drawables results in a Match error. The value-mask and value-list specify which components are to be explicitly initialized. The context components are: Component Type function { Clear, And, AndReverse, Copy, AndInverted, NoOp, Xor, Or, Nor, Equiv, Invert, OrReverse, CopyInverted, OrInverted, Nand, Set } plane-mask CARD32 foreground CARD32 background CARD32 line-width CARD16 line-style { Solid, OnOffDash, DoubleDash } cap-style { NotLast, Butt, Round, Projecting } join-style { Miter, Round, Bevel } fill-style { Solid, Tiled, OpaqueStippled, Stippled } fill-rule { EvenOdd, Winding } arc-mode { Chord, PieSlice } tile PIXMAP stipple PIXMAP tile-stipple-x-origin INT16 tile-stipple-y-origin INT16 font FONT subwindow-mode { ClipByChildren, IncludeInferiors } graphics-exposures BOOL clip-x-origin INT16 clip-y-origin INT16 clip-mask PIXMAP or None dash-offset CARD16 dashes CARD8 Planemask In graphics operations, given a source and destination pixel, the result is computed bitwise on corresponding bits of the pixels; that is, a Boolean operation is performed in each bit plane. The plane-mask restricts the operation to a subset of planes, so the result is: ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) Range checking is not performed on the values for foreground, background, or plane-mask. They are simply truncated to the appropriate number of bits. The meanings of the functions are: Function Operation Clear 0 And src AND dst AndReverse src AND (NOT dst) Copy src AndInverted (NOT src) AND dst NoOp dst Xor src XOR dst Or src OR dst Nor (NOT src) AND (NOT dst) Equiv (NOT src) XOR dst Invert NOT dst OrReverse src OR (NOT dst) CopyInverted NOT src OrInverted (NOT src) OR dst Nand (NOT src) OR (NOT dst) Set 1 Linedrawing The line-width is measured in pixels and can be greater than or equal to one, a wide line, or the special value zero, a thin line. Wide lines are drawn centered on the path described by the graphics request. Unless otherwise specified by the join or cap style, the bounding box of a wide line with endpoints [x1, y1], [x2, y2] and width w is a rectangle with vertices at the following real coordinates: [x1-(w*sn/2), y1+(w*cs/2)], [x1+(w*sn/2), y1-(w*cs/2)], [x2-(w*sn/2), y2+(w*cs/2)], [x2+(w*sn/2), y2-(w*cs/2)] The sn is the sine of the angle of the line and cs is the cosine of the angle of the line. A pixel is part of the line (and hence drawn) if the center of the pixel is fully inside the bounding box, which is viewed as having infinitely thin edges. If the center of the pixel is exactly on the bounding box, it is part of the line if and only if the interior is immediately to its right (x increasing direction). Pixels with centers on a horizontal edge are a special case and are part of the line if and only if the interior or the boundary is immediately below (y increasing direction) and if the interior or the boundary is immediately to the right (x increasing direction). Note that this description is a mathematical model describing the pixels that are drawn for a wide line and does not imply that trigonometry is required to implement such a model. Real or fixed point arithmetic is recommended for computing the corners of the line endpoints for lines greater than one pixel in width. Thin lines (zero line-width) are nominally one pixel wide lines drawn using an unspecified, device-dependent algorithm. There are only two constraints on this algorithm. First, if a line is drawn unclipped from [x1,y1] to [x2,y2] and another line is drawn unclipped from [x1+dx,y1+dy] to [x2+dx,y2+dy], then a point [x,y] is touched by drawing the first line if and only if the point [x+dx,y+dy] is touched by drawing the second line. Second, the effective set of points comprising a line cannot be affected by clipping. Thus, a point is touched in a clipped line if and only if the point lies inside the clipping region and the point would be touched by the line when drawn unclipped. Note that a wide line drawn from [x1,y1] to [x2,y2] always draws the same pixels as a wide line drawn from [x2,y2] to [x1,y1], not counting cap-style and join-style. Implementors are encouraged to make this property true for thin lines, but it is not required. A line-width of zero may differ from a line-width of one in which pixels are drawn. In general, drawing a thin line will be faster than drawing a wide line of width one, but thin lines may not mix well aesthetically with wide lines because of the different drawing algorithms. If it is desirable to obtain precise and uniform results across all displays, a client should always use a line-width of one, rather than a line-width of zero. The line-style defines which sections of a line are drawn: Solid The full path of the line is drawn. DoubleDash The full path of the line is drawn, but the even dashes are filled differently than the odd dashes (see fill-style), with Butt cap-style used where even and odd dashes meet. OnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of the individual dashes (except NotLast is treated as Butt). The cap-style defines how the endpoints of a path are drawn: NotLast The result is equivalent to Butt, except that for a line-width of zero the final endpoint is not drawn. Butt The result is square at the endpoint (perpendicular to the slope of the line) with no projection beyond. Round The result is a circular arc with its diameter equal to the line-width, centered on the endpoint; it is equivalent to Butt for line-width zero. Projecting The result is square at the end, but the path continues beyond the endpoint for a distance equal to half the line-width; it is equivalent to Butt for line-width zero. The join-style defines how corners are drawn for wide lines: Miter The outer edges of the two lines extend to meet at an angle. However, if the angle is less than 11 degrees, a Bevel join-style is used instead. Round The result is a circular arc with a diameter equal to the line-width, centered on the joinpoint. Bevel The result is Butt endpoint styles, and then the triangular notch is filled. For a line with coincident endpoints (x1=x2, y1=y2), when the cap-style is applied to both endpoints, the semantics depends on the line-width and the cap-style: NotLast thin This is device-dependent, but the desired effect is that nothing is drawn. Butt thin This is device-dependent, but the desired effect is that a single pixel is drawn. Round thin This is the same as Butt/thin. Projecting thin This is the same as Butt/thin. Butt wide Nothing is drawn. Round wide The closed path is a circle, centered at the endpoint and with a diameter equal to the line-width. Projecting wide The closed path is a square, aligned with the coordinate axes, centered at the endpoint and with sides equal to the line-width. For a line with coincident endpoints (x1=x2, y1=y2), when the join-style is applied at one or both endpoints, the effect is as if the line was removed from the overall path. However, if the total path consists of (or is reduced to) a single point joined with itself, the effect is the same as when the cap-style is applied at both endpoints. The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all dimensions. When that plane is superimposed on the drawable for use in a graphics operation, the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the origin of whatever destination drawable is specified in a graphics request. The tile pixmap must have the same root and depth as the gcontext (or a Match error results). The stipple pixmap must have depth one and must have the same root as the gcontext (or a Match error results). For fill-style Stippled (but not fill-style OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an additional clip mask to be ANDed with the clip-mask. Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than others. The fill-style defines the contents of the source for line, text, and fill requests. For all text and fill requests (for example, PolyText8, PolyText16, PolyFillRectangle, FillPoly, and PolyFillArc) as well as for line requests with line-style Solid, (for example, PolyLine, PolySegment, PolyRectangle, PolyArc ) and for the even dashes for line requests with line-style OnOffDash or DoubleDash: Solid Foreground Tiled Tile OpaqueStippled A tile with the same width and height as stipple but with background everywhere stipple has a zero and with foreground everywhere stipple has a one Stippled Foreground masked by stipple For the odd dashes for line requests with line-style DoubleDash: Solid Background Tiled Same as for even dashes OpaqueStippled Same as for even dashes Stippled Background masked by stipple The dashes value allowed here is actually a simplified form of the more general patterns that can be set with SetDashes. Specifying a value of N here is equivalent to specifying the two element list [N, N] in SetDashes. The value must be nonzero (or a Value error results). The meaning of dash-offset and dashes are explained in the SetDashes request. Clipping region The clip-mask restricts writes to the destination drawable. Only pixels where the clip-mask has bits set to 1 are drawn. Pixels are not drawn outside the area covered by the clip-mask or where the clip-mask has bits set to 0. The clip-mask affects all graphics requests, but it does not clip sources. The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. If a pixmap is specified as the clip-mask, it must have depth 1 and have the same root as the gcontext (or a Match error results). If clip-mask is None, then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the SetClipRectangles request. For ClipByChildren, both source and destination windows are additionally clipped by all viewable InputOutput children. For IncludeInferiors, neither source nor destination window is clipped by inferiors. This will result in including subwindow contents in the source and drawing through subwindow boundaries of the destination. The use of IncludeInferiors with a source or destination window of one depth with mapped inferiors of differing depth is not illegal, but the semantics is undefined by the core protocol. Winding rule Fill rule The fill-rule defines what pixels are inside (that is, are drawn) for paths given in FillPoly requests. EvenOdd means a point is inside if an infinite ray with the point as origin crosses the path an odd number of times. For Winding, a point is inside if an infinite ray with the point as origin crosses an unequal number of clockwise and counterclockwise directed path segments. A clockwise directed path segment is one that crosses the ray from left to right as observed from the point. A counter-clockwise segment is one that crosses the ray from right to left as observed from the point. The case where a directed line segment is coincident with the ray is uninteresting because one can simply choose a different ray that is not coincident with a segment. For both fill rules, a point is infinitely small and the path is an infinitely thin line. A pixel is inside if the center point of the pixel is inside and the center point is not on the boundary. If the center point is on the boundary, the pixel is inside if and only if the polygon interior is immediately to its right (x increasing direction). Pixels with centers along a horizontal edge are a special case and are inside if and only if the polygon interior is immediately below (y increasing direction). The arc-mode controls filling in the PolyFillArc request. The graphics-exposures flag controls GraphicsExposure event generation for CopyArea and CopyPlane requests (and any similar requests defined by extensions). The default component values are: Component Default function Copy plane-mask all ones foreground 0 background 1 line-width 0 line-style Solid cap-style Butt join-style Miter fill-style Solid fill-rule EvenOdd arc-mode PieSlice tile Pixmap of unspecified size filled with foreground pixel (that is, client specified pixel if any, else 0) (subsequent changes to foreground do not affect this pixmap) stipple Pixmap of unspecified size filled with ones tile-stipple-x-origin 0 tile-stipple-y-origin 0 font <server-dependent-font> subwindow-mode ClipByChildren graphics-exposures True clip-x-origin 0 clip-y-origin 0 clip-mask None dash-offset 0 dashes 4 (that is, the list [4, 4]) Storing a pixmap in a gcontext might or might not result in a copy being made. If the pixmap is later used as the destination for a graphics request, the change might or might not be reflected in the gcontext. If the pixmap is used simultaneously in a graphics request as both a destination and as a tile or stipple, the results are not defined. It is quite likely that some amount of gcontext information will be cached in display hardware and that such hardware can only cache a small number of gcontexts. Given the number and complexity of components, clients should view switching between gcontexts with nearly identical state as significantly more expensive than making minor changes to a single gcontext.
ChangeGC ChangeGC gc: GCONTEXT value-mask: BITMASK value-list: LISTofVALUE Errors: Alloc, Font, GContext, Match, Pixmap, Value This request changes components in gc. The value-mask and value-list specify which components are to be changed. The values and restrictions are the same as for CreateGC. Changing the clip-mask also overrides any previous SetClipRectangles request on the context. Changing dash-offset or dashes overrides any previous SetDashes request on the context. The order in which components are verified and altered is server-dependent. If an error is generated, a subset of the components may have been altered.
CopyGC CopyGC src-gc, dst-gc: GCONTEXT value-mask: BITMASK Errors: Alloc, GContext, Match, Value This request copies components from src-gc to dst-gc. The value-mask specifies which components to copy, as for CreateGC. The two gcontexts must have the same root and the same depth (or a Match error results).
SetDashes SetDashes gc: GCONTEXT dash-offset: CARD16 dashes: LISTofCARD8 Errors: Alloc, GContext, Value This request sets dash-offset and dashes in gc for dashed line styles. Dashes cannot be empty (or a Value error results). Specifying an odd-length list is equivalent to specifying the same list concatenated with itself to produce an even-length list. The initial and alternating elements of dashes are the even dashes; the others are the odd dashes. Each element specifies a dash length in pixels. All of the elements must be nonzero (or a Value error results). The dash-offset defines the phase of the pattern, specifying how many pixels into dashes the pattern should actually begin in any single graphics request. Dashing is continuous through path elements combined with a join-style but is reset to the dash-offset between each sequence of joined lines. The unit of measure for dashes is the same as in the ordinary coordinate system. Ideally, a dash length is measured along the slope of the line, but implementations are only required to match this ideal for horizontal and vertical lines. Failing the ideal semantics, it is suggested that the length be measured along the major axis of the line. The major axis is defined as the x axis for lines drawn at an angle of between -45 and +45 degrees or between 135 and 225 degrees from the x axis. For all other lines, the major axis is the y axis. For any graphics primitive, the computation of the endpoint of an individual dash only depends on the geometry of the primitive, the start position of the dash, the direction of the dash, and the dash length. For any graphics primitive, the total set of pixels used to render the primitive (both even and odd numbered dash elements) with DoubleDash line-style is the same as the set of pixels used to render the primitive with Solid line-style. For any graphics primitive, if the primitive is drawn with OnOffDash or DoubleDash line-style unclipped at position [x,y] and again at position [x+dx,y+dy], then a point [x1,y1] is included in a dash in the first instance if and only if the point [x1+dx,y1+dy] is included in the dash in the second instance. In addition, the effective set of points comprising a dash cannot be affected by clipping. A point is included in a clipped dash if and only if the point lies inside the clipping region and the point would be included in the dash when drawn unclipped.
SetClipRectangles SetClipRectangles gc: GCONTEXT clip-x-origin, clip-y-origin: INT16 rectangles: LISTofRECTANGLE ordering: { UnSorted, YSorted, YXSorted, YXBanded} Errors: Alloc, GContext, Match, Value This request changes clip-mask in gc to the specified list of rectangles and sets the clip origin. Output will be clipped to remain contained within the rectangles. The clip origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. The rectangle coordinates are interpreted relative to the clip origin. The rectangles should be nonintersecting, or graphics results will be undefined. Note that the list of rectangles can be empty, which effectively disables output. This is the opposite of passing None as the clip-mask in CreateGC and ChangeGC. If known by the client, ordering relations on the rectangles can be specified with the ordering argument. This may provide faster operation by the server. If an incorrect ordering is specified, the server may generate a Match error, but it is not required to do so. If no error is generated, the graphics results are undefined. UnSorted means that the rectangles are in arbitrary order. YSorted means that the rectangles are nondecreasing in their Y origin. YXSorted additionally constrains YSorted order in that all rectangles with an equal Y origin are nondecreasing in their X origin. YXBanded additionally constrains YXSorted by requiring that, for every possible Y scanline, all rectangles that include that scanline have identical Y origins and Y extents.
FreeGC FreeGC gc: GCONTEXT Errors: GContext This request deletes the association between the resource ID and the gcontext and destroys the gcontext.
ClearArea ClearArea Background window: WINDOW x, y: INT16 width, height: CARD16 exposures: BOOL Errors: Match, Value, Window The x and y coordinates are relative to the window's origin and specify the upper-left corner of the rectangle. If width is zero, it is replaced with the current width of the window minus x. If height is zero, it is replaced with the current height of the window minus y. If the window has a defined background tile, the rectangle is tiled with a plane-mask of all ones and function of Copy and a subwindow-mode of ClipByChildren. If the window has background None, the contents of the window are not changed. In either case, if exposures is True, then one or more exposure events are generated for regions of the rectangle that are either visible or are being retained in a backing store. It is a Match error to use an InputOnly window in this request.
CopyArea CopyArea src-drawable, dst-drawable: DRAWABLE gc: GCONTEXT src-x, src-y: INT16 width, height: CARD16 dst-x, dst-y: INT16 Errors: Drawable, GContext, Match This request combines the specified rectangle of src-drawable with the specified rectangle of dst-drawable. The src-x and src-y coordinates are relative to src-drawable's origin. The dst-x and dst-y are relative to dst-drawable's origin, each pair specifying the upper-left corner of the rectangle. The src-drawable must have the same root and the same depth as dst-drawable (or a Match error results). If regions of the source rectangle are obscured and have not been retained in backing store or if regions outside the boundaries of the source drawable are specified, then those regions are not copied, but the following occurs on all corresponding destination regions that are either visible or are retained in backing-store. If the dst-drawable is a window with a background other than None, these corresponding destination regions are tiled (with plane-mask of all ones and function Copy) with that background. Regardless of tiling and whether the destination is a window or a pixmap, if graphics-exposures in gc is True, then GraphicsExposure events for all corresponding destination regions are generated. If graphics-exposures is True but no GraphicsExposure events are generated, then a NoExposure event is generated. GC components: function, plane-mask, subwindow-mode, graphics-exposures, clip-x-origin, clip-y-origin, clip-mask
CopyPlane CopyPlane src-drawable, dst-drawable: DRAWABLE gc: GCONTEXT src-x, src-y: INT16 width, height: CARD16 dst-x, dst-y: INT16 bit-plane: CARD32 Errors: Drawable, GContext, Match, Value The src-drawable must have the same root as dst-drawable (or a Match error results), but it need not have the same depth. The bit-plane must have exactly one bit set to 1 and the value of bit-plane must be less than %2 sup n% where n is the depth of src-drawable (or a Value error results). Effectively, a pixmap of the same depth as dst-drawable and with size specified by the source region is formed using the foreground/background pixels in gc (foreground everywhere the bit-plane in src-drawable contains a bit set to 1, background everywhere the bit-plane contains a bit set to 0), and the equivalent of a CopyArea is performed, with all the same exposure semantics. This can also be thought of as using the specified region of the source bit-plane as a stipple with a fill-style of OpaqueStippled for filling a rectangular area of the destination. GC components: function, plane-mask, foreground, background, subwindow-mode, graphics-exposures, clip-x-origin, clip-y-origin, clip-mask
PolyPoint PolyPoint drawable: DRAWABLE gc: GCONTEXT coordinate-mode: { Origin, Previous} points: LISTofPOINT Errors: Drawable, GContext, Match, Value This request combines the foreground pixel in gc with the pixel at each point in the drawable. The points are drawn in the order listed. The first point is always relative to the drawable's origin. The rest are relative either to that origin or the previous point, depending on the coordinate-mode. GC components: function, plane-mask, foreground, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask
PolyLine PolyLine Linedrawing drawable: DRAWABLE gc: GCONTEXT coordinate-mode: { Origin, Previous} points: LISTofPOINT Errors: Drawable, GContext, Match, Value This request draws lines between each pair of points (point[i], point[i+1]). The lines are drawn in the order listed. The lines join correctly at all intermediate points, and if the first and last points coincide, the first and last lines also join correctly. For any given line, no pixel is drawn more than once. If thin (zero line-width) lines intersect, the intersecting pixels are drawn multiple times. If wide lines intersect, the intersecting pixels are drawn only once, as though the entire PolyLine were a single filled shape. The first point is always relative to the drawable's origin. The rest are relative either to that origin or the previous point, depending on the coordinate-mode. When either of the two lines involved in a Bevel join is neither vertical nor horizontal, then the slope and position of the line segment defining the bevel join edge is implementation dependent. However, the computation of the slope and distance (relative to the join point) only depends on the line width and the slopes of the two lines. GC components: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dashes
PolySegment PolySegment drawable: DRAWABLE gc: GCONTEXT segments: LISTofSEGMENT where: SEGMENT: [x1, y1, x2, y2: INT16] Errors: Drawable, GContext, Match For each segment, this request draws a line between [x1, y1] and [x2, y2]. The lines are drawn in the order listed. No joining is performed at coincident endpoints. For any given line, no pixel is drawn more than once. If lines intersect, the intersecting pixels are drawn multiple times. GC components: function, plane-mask, line-width, line-style, cap-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dashes
PolyRectangle PolyRectangle drawable: DRAWABLE gc: GCONTEXT rectangles: LISTofRECTANGLE Errors: Drawable, GContext, Match This request draws the outlines of the specified rectangles, as if a five-point PolyLine were specified for each rectangle: [x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y] The x and y coordinates of each rectangle are relative to the drawable's origin and define the upper-left corner of the rectangle. The rectangles are drawn in the order listed. For any given rectangle, no pixel is drawn more than once. If rectangles intersect, the intersecting pixels are drawn multiple times. GC components: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dashes
PolyArc PolyArc drawable: DRAWABLE gc: GCONTEXT arcs: LISTofARC Errors: Drawable, GContext, Match This request draws circular or elliptical arcs. Each arc is specified by a rectangle and two angles. The angles are signed integers in degrees scaled by 64, with positive indicating counterclockwise motion and negative indicating clockwise motion. The start of the arc is specified by angle1 relative to the three-o'clock position from the center of the rectangle, and the path and extent of the arc is specified by angle2 relative to the start of the arc. If the magnitude of angle2 is greater than 360 degrees, it is truncated to 360 degrees. The x and y coordinates of the rectangle are relative to the origin of the drawable. For an arc specified as [x,y,w,h,a1,a2], the origin of the major and minor axes is at [x+(w/2),y+(h/2)], and the infinitely thin path describing the entire circle/ellipse intersects the horizontal axis at [x,y+(h/2)] and [x+w,y+(h/2)] and intersects the vertical axis at [x+(w/2),y] and [x+(w/2),y+h]. These coordinates are not necessarily integral; that is, they are not truncated to discrete coordinates. For a wide line with line-width lw, the ideal bounding outlines for filling are given by the two infinitely thin paths consisting of all points whose perpendicular distance from a tangent to the path of the circle/ellipse is equal to lw/2 (which may be a fractional value). When the width and height of the arc are not equal and both are nonzero, then the actual bounding outlines are implementation dependent. However, the computation of the shape and position of the bounding outlines (relative to the center of the arc) only depends on the width and height of the arc and the line-width. The cap-style is applied the same as for a line corresponding to the tangent of the circle/ellipse at the endpoint. When the angle of an arc face is not an integral multiple of 90 degrees, and the width and height of the arc are both are nonzero, then the shape and position of the cap at that face is implementation dependent. However, for a Butt cap, the face is defined by a straight line, and the computation of the position (relative to the center of the arc) and the slope of the line only depends on the width and height of the arc and the angle of the arc face. For other cap styles, the computation of the position (relative to the center of the arc) and the shape of the cap only depends on the width and height of the arc, the line-width, the angle of the arc face, and the direction (clockwise or counter clockwise) of the arc from the endpoint. The join-style is applied the same as for two lines corresponding to the tangents of the circles/ellipses at the join point. When the width and height of both arcs are nonzero, and the angle of either arc face is not an integral multiple of 90 degrees, then the shape of the join is implementation dependent. However, the computation of the shape only depends on the width and height of each arc, the line-width, the angles of the two arc faces, the direction (clockwise or counter clockwise) of the arcs from the join point, and the relative orientation of the two arc center points. For an arc specified as [x,y,w,h,a1,a2], the angles must be specified in the effectively skewed coordinate system of the ellipse (for a circle, the angles and coordinate systems are identical). The relationship between these angles and angles expressed in the normal coordinate system of the screen (as measured with a protractor) is as follows: skewed-angle = atan(tan(normal-angle) * w/h) + adjust The skewed-angle and normal-angle are expressed in radians (rather than in degrees scaled by 64) in the range [0,2*PI). The atan returns a value in the range [-PI/2,PI/2]. The adjust is: 0 for normal-angle in the range [0,PI/2) PI for normal-angle in the range [PI/2,(3*PI)/2) 2*PI for normal-angle in the range [(3*PI)/2,2*PI) The arcs are drawn in the order listed. If the last point in one arc coincides with the first point in the following arc, the two arcs will join correctly. If the first point in the first arc coincides with the last point in the last arc, the two arcs will join correctly. For any given arc, no pixel is drawn more than once. If two arcs join correctly and the line-width is greater than zero and the arcs intersect, no pixel is drawn more than once. Otherwise, the intersecting pixels of intersecting arcs are drawn multiple times. Specifying an arc with one endpoint and a clockwise extent draws the same pixels as specifying the other endpoint and an equivalent counterclockwise extent, except as it affects joins. By specifying one axis to be zero, a horizontal or vertical line can be drawn. Angles are computed based solely on the coordinate system, ignoring the aspect ratio. GC components: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dashes
FillPoly FillPoly drawable: DRAWABLE gc: GCONTEXT shape: { Complex, Nonconvex, Convex} coordinate-mode: { Origin, Previous} points: LISTofPOINT Errors: Drawable, GContext, Match, Value This request fills the region closed by the specified path. The path is closed automatically if the last point in the list does not coincide with the first point. No pixel of the region is drawn more than once. The first point is always relative to the drawable's origin. The rest are relative either to that origin or the previous point, depending on the coordinate-mode. The shape parameter may be used by the server to improve performance. Complex means the path may self-intersect. Contiguous coincident points in the path are not treated as self-intersection. Nonconvex means the path does not self-intersect, but the shape is not wholly convex. If known by the client, specifying Nonconvex over Complex may improve performance. If Nonconvex is specified for a self-intersecting path, the graphics results are undefined. Convex means that for every pair of points inside the polygon, the line segment connecting them does not intersect the path. If known by the client, specifying Convex can improve performance. If Convex is specified for a path that is not convex, the graphics results are undefined. GC components: function, plane-mask, fill-style, fill-rule, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin
PolyFillRectangle PolyFillRectangle drawable: DRAWABLE gc: GCONTEXT rectangles: LISTofRECTANGLE Errors: Drawable, GContext, Match This request fills the specified rectangles, as if a four-point FillPoly were specified for each rectangle: [x,y] [x+width,y] [x+width,y+height] [x,y+height] The x and y coordinates of each rectangle are relative to the drawable's origin and define the upper-left corner of the rectangle. The rectangles are drawn in the order listed. For any given rectangle, no pixel is drawn more than once. If rectangles intersect, the intersecting pixels are drawn multiple times. GC components: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin
PolyFillArc PolyFillArc drawable: DRAWABLE gc: GCONTEXT arcs: LISTofARC Errors: Drawable, GContext, Match For each arc, this request fills the region closed by the infinitely thin path described by the specified arc and one or two line segments, depending on the arc-mode. For Chord, the single line segment joining the endpoints of the arc is used. For PieSlice, the two line segments joining the endpoints of the arc with the center point are used. For an arc specified as [x,y,w,h,a1,a2], the origin of the major and minor axes is at [x+(w/2),y+(h/2)], and the infinitely thin path describing the entire circle/ellipse intersects the horizontal axis at [x,y+(h/2)] and [x+w,y+(h/2)] and intersects the vertical axis at [x+(w/2),y] and [x+(w/2),y+h]. These coordinates are not necessarily integral; that is, they are not truncated to discrete coordinates. The arc angles are interpreted as specified in the PolyArc request. When the angle of an arc face is not an integral multiple of 90 degrees, then the precise endpoint on the arc is implementation dependent. However, for Chord arc-mode, the computation of the pair of endpoints (relative to the center of the arc) only depends on the width and height of the arc and the angles of the two arc faces. For PieSlice arc-mode, the computation of an endpoint only depends on the angle of the arc face for that endpoint and the ratio of the arc width to arc height. The arcs are filled in the order listed. For any given arc, no pixel is drawn more than once. If regions intersect, the intersecting pixels are drawn multiple times. GC components: function, plane-mask, fill-style, arc-mode, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin
PutImage PutImage drawable: DRAWABLE gc: GCONTEXT depth: CARD8 width, height: CARD16 dst-x, dst-y: INT16 left-pad: CARD8 format: { Bitmap, XYPixmap, ZPixmap} data: LISTofBYTE Errors: Drawable, GContext, Match, Value This request combines an image with a rectangle of the drawable. The dst-x and dst-y coordinates are relative to the drawable's origin. If Bitmap format is used, then depth must be one (or a Match error results), and the image must be in XY format. The foreground pixel in gc defines the source for bits set to 1 in the image, and the background pixel defines the source for the bits set to 0. For XYPixmap and ZPixmap, the depth must match the depth of the drawable (or a Match error results). For XYPixmap, the image must be sent in XY format. For ZPixmap, the image must be sent in the Z format defined for the given depth. The left-pad must be zero for ZPixmap format (or a Match error results). For Bitmap and XYPixmap format, left-pad must be less than bitmap-scanline-pad as given in the server connection setup information (or a Match error results). The first left-pad bits in every scanline are to be ignored by the server. The actual image begins that many bits into the data. The width argument defines the width of the actual image and does not include left-pad. GC components: function, plane-mask, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background
GetImage GetImage drawable: DRAWABLE x, y: INT16 width, height: CARD16 plane-mask: CARD32 format: { XYPixmap, ZPixmap} â–¶ depth: CARD8 visual: VISUALID or None data: LISTofBYTE Errors: Drawable, Match, Value This request returns the contents of the given rectangle of the drawable in the given format. The x and y coordinates are relative to the drawable's origin and define the upper-left corner of the rectangle. If XYPixmap is specified, only the bit planes specified in plane-mask are transmitted, with the planes appearing from most significant to least significant in bit order. If ZPixmap is specified, then bits in all planes not specified in plane-mask are transmitted as zero. Range checking is not performed on plane-mask; extraneous bits are simply ignored. The returned depth is as specified when the drawable was created and is the same as a depth component in a FORMAT structure (in the connection setup), not a bits-per-pixel component. If the drawable is a window, its visual type is returned. If the drawable is a pixmap, the visual is None. If the drawable is a pixmap, then the given rectangle must be wholly contained within the pixmap (or a Match error results). If the drawable is a window, the window must be viewable, and it must be the case that, if there were no inferiors or overlapping windows, the specified rectangle of the window would be fully visible on the screen and wholly contained within the outside edges of the window (or a Match error results). Note that the borders of the window can be included and read with this request. If the window has a backing store, then the backing-store contents are returned for regions of the window that are obscured by noninferior windows; otherwise, the returned contents of such obscured regions are undefined. Also undefined are the returned contents of visible regions of inferiors of different depth than the specified window. The pointer cursor image is not included in the contents returned. This request is not general-purpose in the same sense as other graphics-related requests. It is intended specifically for rudimentary hardcopy support.
PolyText8 PolyText8 drawable: DRAWABLE gc: GCONTEXT x, y: INT16 items: LISTofTEXTITEM8 where: TEXTITEM8: TEXTELT8 or FONT TEXTELT8: [delta: INT8 string: STRING8] Errors: Drawable, Font, GContext, Match The x and y coordinates are relative to the drawable's origin and specify the baseline starting position (the initial character origin). Each text item is processed in turn. A font item causes the font to be stored in gc and to be used for subsequent text. Switching among fonts does not affect the next character origin. A text element delta specifies an additional change in the position along the x axis before the string is drawn; the delta is always added to the character origin. Each character image, as defined by the font in gc, is treated as an additional mask for a fill operation on the drawable. All contained FONTs are always transmitted most significant byte first. If a Font error is generated for an item, the previous items may have been drawn. For fonts defined with 2-byte matrix indexing, each STRING8 byte is interpreted as a byte2 value of a CHAR2B with a byte1 value of zero. GC components: function, plane-mask, fill-style, font, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin
PolyText16 PolyText16 drawable: DRAWABLE gc: GCONTEXT x, y: INT16 items: LISTofTEXTITEM16 where: TEXTITEM16: TEXTELT16 or FONT TEXTELT16: [delta: INT8 string: STRING16] Errors: Drawable, Font, GContext, Match This request is similar to PolyText8, except 2-byte (or 16-bit) characters are used. For fonts defined with linear indexing rather than 2-byte matrix indexing, the server will interpret each CHAR2B as a 16-bit number that has been transmitted most significant byte first (that is, byte1 of the CHAR2B is taken as the most significant byte).
ImageText8 ImageText8 drawable: DRAWABLE gc: GCONTEXT x, y: INT16 string: STRING8 Errors: Drawable, GContext, Match The x and y coordinates are relative to the drawable's origin and specify the baseline starting position (the initial character origin). The effect is first to fill a destination rectangle with the background pixel defined in gc and then to paint the text with the foreground pixel. The upper-left corner of the filled rectangle is at: [x, y - font-ascent] the width is: overall-width and the height is: font-ascent + font-descent The overall-width, font-ascent, and font-descent are as they would be returned by a QueryTextExtents call using gc and string. The function and fill-style defined in gc are ignored for this request. The effective function is Copy, and the effective fill-style Solid. For fonts defined with 2-byte matrix indexing, each STRING8 byte is interpreted as a byte2 value of a CHAR2B with a byte1 value of zero. GC components: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask
ImageText16 ImageText16 drawable: DRAWABLE gc: GCONTEXT x, y: INT16 string: STRING16 Errors: Drawable, GContext, Match This request is similar to ImageText8, except 2-byte (or 16-bit) characters are used. For fonts defined with linear indexing rather than 2-byte matrix indexing, the server will interpret each CHAR2B as a 16-bit number that has been transmitted most significant byte first (that is, byte1 of the CHAR2B is taken as the most significant byte).
CreateColormap CreateColormap Colormap mid: COLORMAP visual: VISUALID window: WINDOW alloc: { None, All} Errors: Alloc, IDChoice, Match, Value, Window This request creates a colormap of the specified visual type for the screen on which the window resides and associates the identifier mid with it. The visual type must be one supported by the screen (or a Match error results). The initial values of the colormap entries are undefined for classes GrayScale, PseudoColor, and DirectColor. For StaticGray, StaticColor, and TrueColor, the entries will have defined values, but those values are specific to the visual and are not defined by the core protocol. For StaticGray, StaticColor, and TrueColor, alloc must be specified as None (or a Match error results). For the other classes, if alloc is None, the colormap initially has no allocated entries, and clients can allocate entries. If alloc is All, then the entire colormap is allocated writable. The initial values of all allocated entries are undefined. For GrayScale and PseudoColor, the effect is as if an AllocColorCells request returned all pixel values from zero to N - 1, where N is the colormap-entries value in the specified visual. For DirectColor, the effect is as if an AllocColorPlanes request returned a pixel value of zero and red-mask, green-mask, and blue-mask values containing the same bits as the corresponding masks in the specified visual. However, in all cases, none of these entries can be freed with FreeColors.
FreeColormap FreeColormap cmap: COLORMAP Errors: Colormap This request deletes the association between the resource ID and the colormap and frees the colormap storage. If the colormap is an installed map for a screen, it is uninstalled (see UninstallColormap request). If the colormap is defined as the colormap for a window (by means of CreateWindow or ChangeWindowAttributes), the colormap for the window is changed to None, and a ColormapNotify event is generated. The protocol does not define the colors displayed for a window with a colormap of None. This request has no effect on a default colormap for a screen.
CopyColormapAndFree CopyColormapAndFree mid, src-cmap: COLORMAP Errors: Alloc, Colormap, IDChoice This request creates a colormap of the same visual type and for the same screen as src-cmap, and it associates identifier mid with it. It also moves all of the client's existing allocations from src-cmap to the new colormap with their color values intact and their read-only or writable characteristics intact, and it frees those entries in src-cmap. Color values in other entries in the new colormap are undefined. If src-cmap was created by the client with alloc All (see CreateColormap request), then the new colormap is also created with alloc All, all color values for all entries are copied from src-cmap, and then all entries in src-cmap are freed. If src-cmap was not created by the client with alloc All, then the allocations to be moved are all those pixels and planes that have been allocated by the client using either AllocColor, AllocNamedColor, AllocColorCells, or AllocColorPlanes and that have not been freed since they were allocated.
InstallColormap InstallColormap cmap: COLORMAP Errors: Colormap This request makes this colormap an installed map for its screen. All windows associated with this colormap immediately display with true colors. As a side effect, additional colormaps might be implicitly installed or uninstalled by the server. Which other colormaps get installed or uninstalled is server-dependent except that the required list must remain installed. If cmap is not already an installed map, a ColormapNotify event is generated on every window having cmap as an attribute. In addition, for every other colormap that is installed or uninstalled as a result of the request, a ColormapNotify event is generated on every window having that colormap as an attribute. At any time, there is a subset of the installed maps that are viewed as an ordered list and are called the required list. The length of the required list is at most M, where M is the min-installed-maps specified for the screen in the connection setup. The required list is maintained as follows. When a colormap is an explicit argument to InstallColormap, it is added to the head of the list; the list is truncated at the tail, if necessary, to keep the length of the list to at most M. When a colormap is an explicit argument to UninstallColormap and it is in the required list, it is removed from the list. A colormap is not added to the required list when it is installed implicitly by the server, and the server cannot implicitly uninstall a colormap that is in the required list. Initially the default colormap for a screen is installed (but is not in the required list).
UninstallColormap UninstallColormap cmap: COLORMAP Errors: Colormap If cmap is on the required list for its screen (see InstallColormap request), it is removed from the list. As a side effect, cmap might be uninstalled, and additional colormaps might be implicitly installed or uninstalled. Which colormaps get installed or uninstalled is server-dependent except that the required list must remain installed. If cmap becomes uninstalled, a ColormapNotify event is generated on every window having cmap as an attribute. In addition, for every other colormap that is installed or uninstalled as a result of the request, a ColormapNotify event is generated on every window having that colormap as an attribute.
ListInstalledColormaps ListInstalledColormaps window: WINDOW â–¶ cmaps: LISTofCOLORMAP Errors: Window This request returns a list of the currently installed colormaps for the screen of the specified window. The order of colormaps is not significant, and there is no explicit indication of the required list (see InstallColormap request).
AllocColor AllocColor cmap: COLORMAP red, green, blue: CARD16 â–¶ pixel: CARD32 red, green, blue: CARD16 Errors: Alloc, Colormap This request allocates a read-only colormap entry corresponding to the closest RGB values provided by the hardware. It also returns the pixel and the RGB values actually used. Multiple clients requesting the same effective RGB values can be assigned the same read-only entry, allowing entries to be shared.
AllocNamedColor AllocNamedColor cmap: COLORMAP name: STRING8 â–¶ pixel: CARD32 exact-red, exact-green, exact-blue: CARD16 visual-red, visual-green, visual-blue: CARD16 Errors: Alloc, Colormap, Name This request looks up the named color with respect to the screen associated with the colormap. Then, it does an AllocColor on cmap. The name should use the ISO Latin-1 encoding, and uppercase and lowercase do not matter. The exact RGB values specify the true values for the color, and the visual values specify the values actually used in the colormap.
AllocColorCells AllocColorCells cmap: COLORMAP colors, planes: CARD16 contiguous: BOOL â–¶ pixels, masks: LISTofCARD32 Errors: Alloc, Colormap, Value The number of colors must be positive, and the number of planes must be nonnegative (or a Value error results). If C colors and P planes are requested, then C pixels and P masks are returned. No mask will have any bits in common with any other mask or with any of the pixels. By ORing together masks and pixels, C*%2 sup P% distinct pixels can be produced; all of these are allocated writable by the request. For GrayScale or PseudoColor, each mask will have exactly one bit set to 1; for DirectColor, each will have exactly three bits set to 1. If contiguous is True and if all masks are ORed together, a single contiguous set of bits will be formed for GrayScale or PseudoColor, and three contiguous sets of bits (one within each pixel subfield) for DirectColor. The RGB values of the allocated entries are undefined.
AllocColorPlanes AllocColorPlanes cmap: COLORMAP colors, reds, greens, blues: CARD16 contiguous: BOOL â–¶ pixels: LISTofCARD32 red-mask, green-mask, blue-mask: CARD32 Errors: Alloc, Colormap, Value The number of colors must be positive, and the reds, greens, and blues must be nonnegative (or a Value error results). If C colors, R reds, G greens, and B blues are requested, then C pixels are returned, and the masks have R, G, and B bits set, respectively. If contiguous is True, then each mask will have a contiguous set of bits. No mask will have any bits in common with any other mask or with any of the pixels. For DirectColor, each mask will lie within the corresponding pixel subfield. By ORing together subsets of masks with pixels, C*%2 sup R+G+B% distinct pixels can be produced; all of these are allocated writable by the request. The initial RGB values of the allocated entries are undefined. In the colormap, there are only C*%2 sup R% independent red entries, C*%2 sup G% independent green entries, and C*%2 sup B% independent blue entries. This is true even for PseudoColor. When the colormap entry for a pixel value is changed using StoreColors or StoreNamedColor, the pixel is decomposed according to the masks and the corresponding independent entries are updated.
FreeColors FreeColors cmap: COLORMAP pixels: LISTofCARD32 plane-mask: CARD32 Errors: Access, Colormap, Value The plane-mask should not have any bits in common with any of the pixels. The set of all pixels is produced by ORing together subsets of plane-mask with the pixels. The request frees all of these pixels that were allocated by the client (using AllocColor, AllocNamedColor, AllocColorCells, and AllocColorPlanes). Note that freeing an individual pixel obtained from AllocColorPlanes may not actually allow it to be reused until all of its related pixels are also freed. Similarly, a read-only entry is not actually freed until it has been freed by all clients, and if a client allocates the same read-only entry multiple times, it must free the entry that many times before the entry is actually freed. All specified pixels that are allocated by the client in cmap are freed, even if one or more pixels produce an error. A Value error is generated if a specified pixel is not a valid index into cmap. An Access error is generated if a specified pixel is not allocated by the client (that is, is unallocated or is only allocated by another client) or if the colormap was created with all entries writable (using an alloc value of All in CreateColormap). If more than one pixel is in error, it is arbitrary as to which pixel is reported.
StoreColors StoreColors cmap: COLORMAP items: LISTofCOLORITEM where: COLORITEM: [pixel: CARD32 do-red, do-green, do-blue: BOOL red, green, blue: CARD16] Errors: Access, Colormap, Value This request changes the colormap entries of the specified pixels. The do-red, do-green, and do-blue fields indicate which components should actually be changed. If the colormap is an installed map for its screen, the changes are visible immediately. All specified pixels that are allocated writable in cmap (by any client) are changed, even if one or more pixels produce an error. A Value error is generated if a specified pixel is not a valid index into cmap, and an Access error is generated if a specified pixel is unallocated or is allocated read-only. If more than one pixel is in error, it is arbitrary as to which pixel is reported.
StoreNamedColor StoreNamedColor cmap: COLORMAP pixel: CARD32 name: STRING8 do-red, do-green, do-blue: BOOL Errors: Access, Colormap, Name, Value This request looks up the named color with respect to the screen associated with cmap and then does a StoreColors in cmap. The name should use the ISO Latin-1 encoding, and uppercase and lowercase do not matter. The Access and Value errors are the same as in StoreColors.
QueryColors QueryColors cmap: COLORMAP pixels: LISTofCARD32 â–¶ colors: LISTofRGB where: RGB: [red, green, blue: CARD16] Errors: Colormap, Value This request returns the hardware-specific color values stored in cmap for the specified pixels. The values returned for an unallocated entry are undefined. A Value error is generated if a pixel is not a valid index into cmap. If more than one pixel is in error, it is arbitrary as to which pixel is reported.
LookupColor LookupColor cmap: COLORMAP name: STRING8 â–¶ exact-red, exact-green, exact-blue: CARD16 visual-red, visual-green, visual-blue: CARD16 Errors: Colormap, Name This request looks up the string name of a color with respect to the screen associated with cmap and returns both the exact color values and the closest values provided by the hardware with respect to the visual type of cmap. The name should use the ISO Latin-1 encoding, and uppercase and lowercase do not matter.
CreateCursor CreateCursor Cursor cid: CURSOR source: PIXMAP mask: PIXMAP or None fore-red, fore-green, fore-blue: CARD16 back-red, back-green, back-blue: CARD16 x, y: CARD16 Errors: Alloc, IDChoice, Match, Pixmap This request creates a cursor and associates identifier cid with it. The foreground and background RGB values must be specified, even if the server only has a StaticGray or GrayScale screen. The foreground is used for the bits set to 1 in the source, and the background is used for the bits set to 0. Both source and mask (if specified) must have depth one (or a Match error results), but they can have any root. The mask pixmap defines the shape of the cursor. That is, the bits set to 1 in the mask define which source pixels will be displayed, and where the mask has bits set to 0, the corresponding bits of the source pixmap are ignored. If no mask is given, all pixels of the source are displayed. The mask, if present, must be the same size as the source (or a Match error results). The x and y coordinates define the hotspot relative to the source's origin and must be a point within the source (or a Match error results). The components of the cursor may be transformed arbitrarily to meet display limitations. The pixmaps can be freed immediately if no further explicit references to them are to be made. Subsequent drawing in the source or mask pixmap has an undefined effect on the cursor. The server might or might not make a copy of the pixmap.
CreateGlyphCursor CreateGlyphCursor cid: CURSOR source-font: FONT mask-font: FONT or None source-char, mask-char: CARD16 fore-red, fore-green, fore-blue: CARD16 back-red, back-green, back-blue: CARD16 Errors: Alloc, Font, IDChoice, Value This request is similar to CreateCursor, except the source and mask bitmaps are obtained from the specified font glyphs. The source-char must be a defined glyph in source-font, and if mask-font is given, mask-char must be a defined glyph in mask-font (or a Value error results). The mask font and character are optional. The origins of the source and mask (if it is defined) glyphs are positioned coincidently and define the hotspot. The source and mask need not have the same bounding box metrics, and there is no restriction on the placement of the hotspot relative to the bounding boxes. If no mask is given, all pixels of the source are displayed. Note that source-char and mask-char are CARD16, not CHAR2B. For 2-byte matrix fonts, the 16-bit value should be formed with byte1 in the most significant byte and byte2 in the least significant byte. The components of the cursor may be transformed arbitrarily to meet display limitations. The fonts can be freed immediately if no further explicit references to them are to be made.
FreeCursor FreeCursor cursor: CURSOR Errors: Cursor This request deletes the association between the resource ID and the cursor. The cursor storage will be freed when no other resource references it.
RecolorCursor RecolorCursor cursor: CURSOR fore-red, fore-green, fore-blue: CARD16 back-red, back-green, back-blue: CARD16 Errors: Cursor This request changes the color of a cursor. If the cursor is being displayed on a screen, the change is visible immediately.
QueryBestSize QueryBestSize class: { Cursor, Tile, Stipple} drawable: DRAWABLE width, height: CARD16 â–¶ width, height: CARD16 Errors: Drawable, Match, Value This request returns the best size that is closest to the argument size. For Cursor, this is the largest size that can be fully displayed. For Tile, this is the size that can be tiled fastest. For Stipple, this is the size that can be stippled fastest. For Cursor, the drawable indicates the desired screen. For Tile and Stipple, the drawable indicates the screen and also possibly the window class and depth. An InputOnly window cannot be used as the drawable for Tile or Stipple (or a Match error results).
QueryExtension QueryExtension Extensionquerying name: STRING8 â–¶ present: BOOL major-opcode: CARD8 first-event: CARD8 first-error: CARD8 This request determines if the named extension is present. If so, the major opcode for the extension is returned, if it has one. Otherwise, zero is returned. Any minor opcode and the request formats are specific to the extension. If the extension involves additional event types, the base event type code is returned. Otherwise, zero is returned. The format of the events is specific to the extension. If the extension involves additional error codes, the base error code is returned. Otherwise, zero is returned. The format of additional data in the errors is specific to the extension. The extension name should use the ISO Latin-1 encoding, and uppercase and lowercase matter.
ListExtensions ListExtensions Extensionlisting â–¶ names: LISTofSTRING8 This request returns a list of all extensions supported by the server.
SetModifierMapping SetModifierMapping Modifier keys keycodes-per-modifier: CARD8 keycodes: LISTofKEYCODE â–¶ status: { Success, Busy, Failed} Errors: Alloc, Value This request specifies the keycodes (if any) of the keys to be used as modifiers. The number of keycodes in the list must be 8*keycodes-per-modifier (or a Length error results). The keycodes are divided into eight sets, with each set containing keycodes-per-modifier elements. The sets are assigned to the modifiers Shift, Lock, Control, Mod1, Mod2, Mod3, Mod4, and Mod5, in order. Only nonzero keycode values are used within each set; zero values are ignored. All of the nonzero keycodes must be in the range specified by min-keycode and max-keycode in the connection setup (or a Value error results). The order of keycodes within a set does not matter. If no nonzero values are specified in a set, the use of the corresponding modifier is disabled, and the modifier bit will always be zero. Otherwise, the modifier bit will be one whenever at least one of the keys in the corresponding set is in the down position. A server can impose restrictions on how modifiers can be changed (for example, if certain keys do not generate up transitions in hardware, if auto-repeat cannot be disabled on certain keys, or if multiple keys per modifier are not supported). The status reply is Failed if some such restriction is violated, and none of the modifiers is changed. If the new nonzero keycodes specified for a modifier differ from those currently defined and any (current or new) keys for that modifier are logically in the down state, then the status reply is Busy, and none of the modifiers is changed. This request generates a MappingNotify event on a Success status.
GetModifierMapping GetModifierMapping Modifier keys â–¶ keycodes-per-modifier: CARD8 keycodes: LISTofKEYCODE This request returns the keycodes of the keys being used as modifiers. The number of keycodes in the list is 8*keycodes-per-modifier. The keycodes are divided into eight sets, with each set containing keycodes-per-modifier elements. The sets are assigned to the modifiers Shift, Lock, Control, Mod1, Mod2, Mod3, Mod4, and Mod5, in order. The keycodes-per-modifier value is chosen arbitrarily by the server; zeroes are used to fill in unused elements within each set. If only zero values are given in a set, the use of the corresponding modifier has been disabled. The order of keycodes within each set is chosen arbitrarily by the server.
ChangeKeyboardMapping ChangeKeyboardMapping Keysym first-keycode: KEYCODE keysyms-per-keycode: CARD8 keysyms: LISTofKEYSYM Errors: Alloc, Value This request defines the symbols for the specified number of keycodes, starting with the specified keycode. The symbols for keycodes outside this range remained unchanged. The number of elements in the keysyms list must be a multiple of keysyms-per-keycode (or a Length error results). The first-keycode must be greater than or equal to min-keycode as returned in the connection setup (or a Value error results) and: first-keycode + (keysyms-length / keysyms-per-keycode) - 1 must be less than or equal to max-keycode as returned in the connection setup (or a Value error results). KEYSYM number N (counting from zero) for keycode K has an index (counting from zero) of: (K - first-keycode) * keysyms-per-keycode + N in keysyms. The keysyms-per-keycode can be chosen arbitrarily by the client to be large enough to hold all desired symbols. A special KEYSYM value of NoSymbol should be used to fill in unused elements for individual keycodes. It is legal for NoSymbol to appear in nontrailing positions of the effective list for a keycode. This request generates a MappingNotify event. There is no requirement that the server interpret this mapping; it is merely stored for reading and writing by clients (see section 5).
GetKeyboardMapping GetKeyboardMapping Keysym first-keycode: KEYCODE count: CARD8 â–¶ keysyms-per-keycode: CARD8 keysyms: LISTofKEYSYM Errors: Value This request returns the symbols for the specified number of keycodes, starting with the specified keycode. The first-keycode must be greater than or equal to min-keycode as returned in the connection setup (or a Value error results), and: first-keycode + count - 1 must be less than or equal to max-keycode as returned in the connection setup (or a Value error results). The number of elements in the keysyms list is: count * keysyms-per-keycode and KEYSYM number N (counting from zero) for keycode K has an index (counting from zero) of: (K - first-keycode) * keysyms-per-keycode + N in keysyms. The keysyms-per-keycode value is chosen arbitrarily by the server to be large enough to report all requested symbols. A special KEYSYM value of NoSymbol is used to fill in unused elements for individual keycodes.
ChangeKeyboardControl ChangeKeyboardControl value-mask: BITMASK value-list: LISTofVALUE Errors: Match, Value This request controls various aspects of the keyboard. The value-mask and value-list specify which controls are to be changed. The possible values are: Control Type key-click-percent INT8 bell-percent INT8 bell-pitch INT16 bell-duration INT16 led CARD8 led-mode { On, Off } key KEYCODE auto-repeat-mode { On, Off, Default } The key-click-percent sets the volume for key clicks between 0 (off) and 100 (loud) inclusive, if possible. Setting to -1 restores the default. Other negative values generate a Value error. The bell-percent sets the base volume for the bell between 0 (off) and 100 (loud) inclusive, if possible. Setting to -1 restores the default. Other negative values generate a Value error. The bell-pitch sets the pitch (specified in Hz) of the bell, if possible. Setting to -1 restores the default. Other negative values generate a Value error. The bell-duration sets the duration of the bell (specified in milliseconds), if possible. Setting to -1 restores the default. Other negative values generate a Value error. If both led-mode and led are specified, then the state of that LED is changed, if possible. If only led-mode is specified, then the state of all LEDs are changed, if possible. At most 32 LEDs, numbered from one, are supported. No standard interpretation of LEDs is defined. It is a Match error if an led is specified without an led-mode. If both auto-repeat-mode and key are specified, then the auto-repeat mode of that key is changed, if possible. If only auto-repeat-mode is specified, then the global auto-repeat mode for the entire keyboard is changed, if possible, without affecting the per-key settings. It is a Match error if a key is specified without an auto-repeat-mode. Each key has an individual mode of whether or not it should auto-repeat and a default setting for that mode. In addition, there is a global mode of whether auto-repeat should be enabled or not and a default setting for that mode. When the global mode is On, keys should obey their individual auto-repeat modes. When the global mode is Off, no keys should auto-repeat. An auto-repeating key generates alternating KeyPress and KeyRelease events. When a key is used as a modifier, it is desirable for the key not to auto-repeat, regardless of the auto-repeat setting for that key. A bell generator connected with the console but not directly on the keyboard is treated as if it were part of the keyboard. The order in which controls are verified and altered is server-dependent. If an error is generated, a subset of the controls may have been altered.
GetKeyboardControl GetKeyboardControl â–¶ key-click-percent: CARD8 bell-percent: CARD8 bell-pitch: CARD16 bell-duration: CARD16 led-mask: CARD32 global-auto-repeat: { On, Off} auto-repeats: LISTofCARD8 This request returns the current control values for the keyboard. For the LEDs, the least significant bit of led-mask corresponds to LED one, and each one bit in led-mask indicates an LED that is lit. The auto-repeats is a bit vector; each one bit indicates that auto-repeat is enabled for the corresponding key. The vector is represented as 32 bytes. Byte N (from 0) contains the bits for keys 8N to 8N + 7, with the least significant bit in the byte representing key 8N.
Bell Bell percent: INT8 Errors: Value This request rings the bell on the keyboard at a volume relative to the base volume for the keyboard, if possible. Percent can range from -100 to 100 inclusive (or a Value error results). The volume at which the bell is rung when percent is nonnegative is: base - [(base * percent) / 100] + percent When percent is negative, it is: base + [(base * percent) / 100]
SetPointerMapping SetPointerMapping map: LISTofCARD8 â–¶ status: { Success, Busy} Errors: Value This request sets the mapping of the pointer. Elements of the list are indexed starting from one. The length of the list must be the same as GetPointerMapping would return (or a Value error results). The index is a core button number, and the element of the list defines the effective number. A zero element disables a button. Elements are not restricted in value by the number of physical buttons, but no two elements can have the same nonzero value (or a Value error results). If any of the buttons to be altered are logically in the down state, the status reply is Busy, and the mapping is not changed. This request generates a MappingNotify event on a Success status.
GetPointerMapping GetPointerMapping â–¶ map: LISTofCARD8 This request returns the current mapping of the pointer. Elements of the list are indexed starting from one. The length of the list indicates the number of physical buttons. The nominal mapping for a pointer is the identity mapping: map[i]=i.
ChangePointerControl ChangePointerControl do-acceleration, do-threshold: BOOL acceleration-numerator, acceleration-denominator: INT16 threshold: INT16 Errors: Value This request defines how the pointer moves. The acceleration is a multiplier for movement expressed as a fraction. For example, specifying 3/1 means the pointer moves three times as fast as normal. The fraction can be rounded arbitrarily by the server. Acceleration only takes effect if the pointer moves more than threshold number of pixels at once and only applies to the amount beyond the threshold. Setting a value to -1 restores the default. Other negative values generate a Value error, as does a zero value for acceleration-denominator.
GetPointerControl GetPointerControl â–¶ acceleration-numerator, acceleration-denominator: CARD16 threshold: CARD16 This request returns the current acceleration and threshold for the pointer.
SetScreenSaver SetScreenSaver timeout, interval: INT16 prefer-blanking: { Yes, No, Default} allow-exposures: { Yes, No, Default} Errors: Value The timeout and interval are specified in seconds; setting a value to -1 restores the default. Other negative values generate a Value error. If the timeout value is zero, screen-saver is disabled (but an activated screen-saver is not deactivated). If the timeout value is nonzero, screen-saver is enabled. Once screen-saver is enabled, if no input from the keyboard or pointer is generated for timeout seconds, screen-saver is activated. For each screen, if blanking is preferred and the hardware supports video blanking, the screen will simply go blank. Otherwise, if either exposures are allowed or the screen can be regenerated without sending exposure events to clients, the screen is changed in a server-dependent fashion to avoid phosphor burn. Otherwise, the state of the screens does not change, and screen-saver is not activated. At the next keyboard or pointer input or at the next ForceScreenSaver with mode Reset, screen-saver is deactivated, and all screen states are restored. If the server-dependent screen-saver method is amenable to periodic change, interval serves as a hint about how long the change period should be, with zero hinting that no periodic change should be made. Examples of ways to change the screen include scrambling the color map periodically, moving an icon image about the screen periodically, or tiling the screen with the root window background tile, randomly reorigined periodically.
GetScreenSaver GetScreenSaver â–¶ timeout, interval: CARD16 prefer-blanking: { Yes, No} allow-exposures: { Yes, No} This request returns the current screen-saver control values.
ForceScreenSaver ForceScreenSaver mode: { Activate, Reset} Errors: Value If the mode is Activate and screen-saver is currently deactivated, then screen-saver is activated (even if screen-saver has been disabled with a timeout value of zero). If the mode is Reset and screen-saver is currently enabled, then screen-saver is deactivated (if it was activated), and the activation timer is reset to its initial state as if device input had just been received.
ChangeHosts ChangeHosts mode: { Insert, Delete} host: HOST Errors: Access, Value This request adds or removes the specified host from the access control list. Access control list When the access control mechanism is enabled and a client attempts to establish a connection to the server, the host on which the client resides must be in the access control list, or the client must have been granted permission by a server-dependent method, or the server will refuse the connection. The client must reside on the same host as the server and/or have been granted permission by a server-dependent method to execute this request (or an Access error results). An initial access control list can usually be specified, typically by naming a file that the server reads at startup and reset. The following address families are defined. TypesHOST A server is not required to support these families and may support families not listed here. Use of an unsupported family, an improper address format, or an improper address length within a supported family results in a Value error. For the Internet family, the address must be four bytes long. The address bytes are in standard IP order; the server performs no automatic swapping on the address bytes. The Internet family supports IP version 4 addresses only. For the InternetV6 family, the address must be sixteen bytes long. The address bytes are in standard IP order; the server performs no automatic swapping on the address bytes. The InternetV6 family supports IP version 6 addresses only. For the DECnet family, the server performs no automatic swapping on the address bytes. A Phase IV address is two bytes long: the first byte contains the least significant eight bits of the node number, and the second byte contains the most significant two bits of the node number in the least significant two bits of the byte and the area in the most significant six bits of the byte. For the Chaos family, the address must be two bytes long. The host number is always the first byte in the address, and the subnet number is always the second byte. The server performs no automatic swapping on the address bytes. For the ServerInterpreted family, the address may be of any length up to 65535 bytes. The address consists of two strings of ASCII characters, separated by a byte with a value of 0. The first string represents the type of address, and the second string contains the address value. Address types and the syntax for their associated values will be registered via the X.Org Registry. Implementors who wish to add implementation specific types may register a unique prefix with the X.Org registry to prevent namespace collisions. Use of a host address in the ChangeHosts request is deprecated. It is only useful when a host has a unique, constant address, a requirement that is increasingly unmet as sites adopt dynamically assigned addresses, network address translation gateways, IPv6 link local addresses, and various other technologies. It also assumes all users of a host share equivalent access rights, and as such has never been suitable for many multi-user machine environments. Instead, more secure forms of authentication, such as those based on shared secrets or public key encryption, are recommended.
ListHosts ListHosts â–¶ mode: { Enabled, Disabled} hosts: LISTofHOST This request returns the hosts on the access control list and whether use of the list at connection setup is currently enabled or disabled. Each HOST is padded to a multiple of four bytes.
SetAccessControl SetAccessControl mode: { Enable, Disable} Errors: Access, Value This request enables or disables the use of the access control list at connection setups. The client must reside on the same host as the server and/or have been granted permission by a server-dependent method to execute this request (or an Access error results).
SetCloseDownMode SetCloseDownMode mode: { Destroy, RetainPermanent, RetainTemporary} Errors: Value This request defines what will happen to the client's resources at connection close. A connection starts in Destroy mode. The meaning of the close-down mode is described in section 10.
KillClient KillClient resource: CARD32 or AllTemporary Errors: Value If a valid resource is specified, KillClient forces a close-down of the client that created the resource. If the client has already terminated in either RetainPermanent or RetainTemporary mode, all of the client's resources are destroyed (see section 10). If AllTemporary is specified, then the resources of all clients that have terminated in RetainTemporary are destroyed.
NoOperation NoOperation This request has no arguments and no results, but the request length field allows the request to be any multiple of four bytes in length. The bytes contained in the request are uninterpreted by the server. This request can be used in its minimum four byte form as padding where necessary by client libraries that find it convenient to force requests to begin on 64-bit boundaries.
Connection Close Connectionclosing At connection close, all event selections made by the client are discarded. If the client has the pointer actively grabbed, an UngrabPointer is performed. If the client has the keyboard actively grabbed, an UngrabKeyboard is performed. All passive grabs by the client are released. If the client has the server grabbed, an UngrabServer is performed. All selections (see SetSelectionOwner request) owned by the client are disowned. If close-down mode (see SetCloseDownMode request) is RetainPermanent or RetainTemporary, then all resources (including colormap entries) allocated by the client are marked as permanent or temporary, respectively (but this does not prevent other clients from explicitly destroying them). If the mode is Destroy, all of the client's resources are destroyed. When a client's resources are destroyed, for each window in the client's save-set, if the window is an inferior of a window created by the client, the save-set window is reparented to the closest ancestor such that the save-set window is not an inferior of a window created by the client. If the save-set window is unmapped, a MapWindow request is performed on it (even if it was not an inferior of a window created by the client). The reparenting leaves unchanged the absolute coordinates (with respect to the root window) of the upper-left outer corner of the save-set window. After save-set processing, all windows created by the client are destroyed. For each nonwindow resource created by the client, the appropriate Free request is performed. All colors and colormap entries allocated by the client are freed. A server goes through a cycle of having no connections and having some connections. At every transition to the state of having no connections as a result of a connection closing with a Destroy close-down mode, the server resets its state as if it had just been started. This starts by destroying all lingering resources from clients that have terminated in RetainPermanent or RetainTemporary mode. It additionally includes deleting all but the predefined atom identifiers, deleting all properties on all root windows, resetting all device maps and attributes (key click, bell volume, acceleration), resetting the access control list, restoring the standard root tiles and cursors, restoring the default font path, and restoring the input focus to state PointerRoot. Note that closing a connection with a close-down mode of RetainPermanent or RetainTemporary will not cause the server to reset. Events Event When a button press is processed with the pointer in some window W and no active pointer grab is in progress, the ancestors of W are searched from the root down, looking for a passive grab to activate. If no matching passive grab on the button exists, then an active grab is started automatically for the client receiving the event, and the last-pointer-grab time is set to the current server time. The effect is essentially equivalent to a GrabButton with arguments: Argument Value event-window Event window event-mask Client's selected pointer events on the event window pointer-mode and keyboard-mode Asynchronous owner-events True if the client has OwnerGrabButton selected on the event window, otherwise False confine-to None cursor None The grab is terminated automatically when the logical state of the pointer has all buttons released. UngrabPointer and ChangeActivePointerGrab can both be used to modify the active grab.
Input Device events Input deviceevents KeyPress KeyPress KeyRelease KeyRelease ButtonPress ButtonPress ButtonRelease ButtonRelease MotionNotify MotionNotify root, event: WINDOW child: WINDOW or None same-screen: BOOL root-x, root-y, event-x, event-y: INT16 detail: <see below> state: SETofKEYBUTMASK time: TIMESTAMP These events are generated either when a key or button logically changes state or when the pointer logically moves. The generation of these logical changes may lag the physical changes if device event processing is frozen. Note that KeyPress and KeyRelease are generated for all keys, even those mapped to modifier bits. The source of the event is the window the pointer is in. Eventsource The window the event is reported with respect to is called the event window. The event window is found by starting with the source window and looking up the hierarchy for the first window on which any client has selected interest in the event (provided no intervening window prohibits event generation by including the event type in its do-not-propagate-mask). The actual window used for reporting can be modified by active grabs and, in the case of keyboard events, can be modified by the focus window. The root is the root window of the source window, and root-x and root-y are the pointer coordinates relative to root's origin at the time of the event. Event is the event window. If the event window is on the same screen as root, then event-x and event-y are the pointer coordinates relative to the event window's origin. Otherwise, event-x and event-y are zero. If the source window is an inferior of the event window, then child is set to the child of the event window that is an ancestor of (or is) the source window. Otherwise, it is set to None. The state component gives the logical state of the buttons and modifier keys just before the event. The detail component type varies with the event type: Event Component KeyPress, KeyRelease KEYCODE ButtonPress, ButtonRelease BUTTON MotionNotify { Normal Hint } MotionNotify events are only generated when the motion begins and ends in the window. The granularity of motion events is not guaranteed, but a client selecting for motion events is guaranteed to get at least one event when the pointer moves and comes to rest. Selecting PointerMotion receives events independent of the state of the pointer buttons. By selecting some subset of Button[1-5]Motion instead, MotionNotify events will only be received when one or more of the specified buttons are pressed. By selecting ButtonMotion, MotionNotify events will be received only when at least one button is pressed. The events are always of type MotionNotify, independent of the selection. If PointerMotionHint is selected, the server is free to send only one MotionNotify event (with detail Hint) to the client for the event window until either the key or button state changes, the pointer leaves the event window, or the client issues a QueryPointer or GetMotionEvents request.
Pointer Window events EnterNotify EnterNotify LeaveNotify LeaveNotify root, event: WINDOW child: WINDOW or None same-screen: BOOL root-x, root-y, event-x, event-y: INT16 mode: { Normal, Grab, Ungrab} detail: { Ancestor, Virtual, Inferior, Nonlinear, NonlinearVirtual} focus: BOOL state: SETofKEYBUTMASK time: TIMESTAMP If pointer motion or window hierarchy change causes the pointer to be in a different window than before, EnterNotify and LeaveNotify events are generated instead of a MotionNotify event. Only clients selecting EnterWindow on a window receive EnterNotify events, and only clients selecting LeaveWindow receive LeaveNotify events. The pointer position reported in the event is always the final position, not the initial position of the pointer. The root is the root window for this position, and root-x and root-y are the pointer coordinates relative to root's origin at the time of the event. Event is the event window. If the event window is on the same screen as root, then event-x and event-y are the pointer coordinates relative to the event window's origin. Otherwise, event-x and event-y are zero. In a LeaveNotify event, if a child of the event window contains the initial position of the pointer, then the child component is set to that child. Otherwise, it is None. For an EnterNotify event, if a child of the event window contains the final pointer position, then the child component is set to that child. Otherwise, it is None. If the event window is the focus window or an inferior of the focus window, then focus is True. Otherwise, focus is False. Normal pointer motion events have mode Normal. Pseudo-motion events when a grab activates have mode Grab, and pseudo-motion events when a grab deactivates have mode Ungrab. All EnterNotify and LeaveNotify events caused by a hierarchy change are generated after any hierarchy event caused by that change (that is, UnmapNotify, MapNotify, ConfigureNotify, GravityNotify, CirculateNotify), but the ordering of EnterNotify and LeaveNotify events with respect to FocusOut, VisibilityNotify, and Expose events is not constrained. Normal events are generated as follows: When the pointer moves from window A to window B and A is an inferior of B: LeaveNotify with detail Ancestor is generated on A. LeaveNotify with detail Virtual is generated on each window between A and B exclusive (in that order). EnterNotify with detail Inferior is generated on B. When the pointer moves from window A to window B and B is an inferior of A: LeaveNotify with detail Inferior is generated on A. EnterNotify with detail Virtual is generated on each window between A and B exclusive (in that order). EnterNotify with detail Ancestor is generated on B. When the pointer moves from window A to window B and window C is their least common ancestor: LeaveNotify with detail Nonlinear is generated on A. LeaveNotify with detail NonlinearVirtual is generated on each window between A and C exclusive (in that order). EnterNotify with detail NonlinearVirtual is generated on each window between C and B exclusive (in that order). EnterNotify with detail Nonlinear is generated on B. When the pointer moves from window A to window B on different screens: LeaveNotify with detail Nonlinear is generated on A. If A is not a root window, LeaveNotify with detail NonlinearVirtual is generated on each window above A up to and including its root (in order). If B is not a root window, EnterNotify with detail NonlinearVirtual is generated on each window from B's root down to but not including B (in order). EnterNotify with detail Nonlinear is generated on B. When a pointer grab activates (but after any initial warp into a confine-to window and before generating any actual ButtonPress event that activates the grab), G is the grab-window for the grab, and P is the window the pointer is in: EnterNotify and LeaveNotify events with mode Grab are generated (as for Normal above) as if the pointer were to suddenly warp from its current position in P to some position in G. However, the pointer does not warp, and the pointer position is used as both the initial and final positions for the events. When a pointer grab deactivates (but after generating any actual ButtonRelease event that deactivates the grab), G is the grab-window for the grab, and P is the window the pointer is in: EnterNotify and LeaveNotify events with mode Ungrab are generated (as for Normal above) as if the pointer were to suddenly warp from some position in G to its current position in P. However, the pointer does not warp, and the current pointer position is used as both the initial and final positions for the events.
Input Focus events Input focusevents FocusIn FocusIn FocusOut FocusOut event: WINDOW mode: { Normal, WhileGrabbed, Grab, Ungrab} detail: { Ancestor, Virtual, Inferior, Nonlinear, NonlinearVirtual, Pointer, PointerRoot, None } These events are generated when the input focus changes and are reported to clients selecting FocusChange on the window. Events generated by SetInputFocus when the keyboard is not grabbed have mode Normal. Events generated by SetInputFocus when the keyboard is grabbed have mode WhileGrabbed. Events generated when a keyboard grab activates have mode Grab, and events generated when a keyboard grab deactivates have mode Ungrab. All FocusOut events caused by a window unmap are generated after any UnmapNotify event, but the ordering of FocusOut with respect to generated EnterNotify, LeaveNotify, VisibilityNotify, and Expose events is not constrained. Normal and WhileGrabbed events are generated as follows: When the focus moves from window A to window B, A is an inferior of B, and the pointer is in window P: FocusOut with detail Ancestor is generated on A. FocusOut with detail Virtual is generated on each window between A and B exclusive (in order). FocusIn with detail Inferior is generated on B. If P is an inferior of B but P is not A or an inferior of A or an ancestor of A, FocusIn with detail Pointer is generated on each window below B down to and including P (in order). When the focus moves from window A to window B, B is an inferior of A, and the pointer is in window P: If P is an inferior of A but P is not an inferior of B or an ancestor of B, FocusOut with detail Pointer is generated on each window from P up to but not including A (in order). FocusOut with detail Inferior is generated on A. FocusIn with detail Virtual is generated on each window between A and B exclusive (in order). FocusIn with detail Ancestor is generated on B. When the focus moves from window A to window B, window C is their least common ancestor, and the pointer is in window P: If P is an inferior of A, FocusOut with detail Pointer is generated on each window from P up to but not including A (in order). FocusOut with detail Nonlinear is generated on A. FocusOut with detail NonlinearVirtual is generated on each window between A and C exclusive (in order). FocusIn with detail NonlinearVirtual is generated on each window between C and B exclusive (in order). FocusIn with detail Nonlinear is generated on B. If P is an inferior of B, FocusIn with detail Pointer is generated on each window below B down to and including P (in order). When the focus moves from window A to window B on different screens and the pointer is in window P: If P is an inferior of A, FocusOut with detail Pointer is generated on each window from P up to but not including A (in order). FocusOut with detail Nonlinear is generated on A. If A is not a root window, FocusOut with detail NonlinearVirtual is generated on each window above A up to and including its root (in order). If B is not a root window, FocusIn with detail NonlinearVirtual is generated on each window from B's root down to but not including B (in order). FocusIn with detail Nonlinear is generated on B. If P is an inferior of B, FocusIn with detail Pointer is generated on each window below B down to and including P (in order). When the focus moves from window A to PointerRoot (or None) and the pointer is in window P: If P is an inferior of A, FocusOut with detail Pointer is generated on each window from P up to but not including A (in order). FocusOut with detail Nonlinear is generated on A. If A is not a root window, FocusOut with detail NonlinearVirtual is generated on each window above A up to and including its root (in order). FocusIn with detail PointerRoot (or None) is generated on all root windows. If the new focus is PointerRoot, FocusIn with detail Pointer is generated on each window from P's root down to and including P (in order). When the focus moves from PointerRoot (or None) to window A and the pointer is in window P: If the old focus is PointerRoot, FocusOut with detail Pointer is generated on each window from P up to and including P's root (in order). FocusOut with detail PointerRoot (or None) is generated on all root windows. If A is not a root window, FocusIn with detail NonlinearVirtual is generated on each window from A's root down to but not including A (in order). FocusIn with detail Nonlinear is generated on A. If P is an inferior of A, FocusIn with detail Pointer is generated on each window below A down to and including P (in order). When the focus moves from PointerRoot to None (or vice versa) and the pointer is in window P: If the old focus is PointerRoot, FocusOut with detail Pointer is generated on each window from P up to and including P's root (in order). FocusOut with detail PointerRoot (or None) is generated on all root windows. FocusIn with detail None (or PointerRoot) is generated on all root windows. If the new focus is PointerRoot, FocusIn with detail Pointer is generated on each window from P's root down to and including P (in order). When a keyboard grab activates (but before generating any actual KeyPress event that activates the grab), G is the grab-window for the grab, and F is the current focus: FocusIn and FocusOut events with mode Grab are generated (as for Normal above) as if the focus were to change from F to G. When a keyboard grab deactivates (but after generating any actual KeyRelease event that deactivates the grab), G is the grab-window for the grab, and F is the current focus: FocusIn and FocusOut events with mode Ungrab are generated (as for Normal above) as if the focus were to change from G to F.
KeymapNotify KeymapNotify KeymapNotify keys: LISTofCARD8 The value is a bit vector as described in QueryKeymap. This event is reported to clients selecting KeymapState on a window and is generated immediately after every EnterNotify and FocusIn.
Expose Expose EventExposure Expose window: WINDOW x, y, width, height: CARD16 count: CARD16 This event is reported to clients selecting Exposure on the window. It is generated when no valid contents are available for regions of a window, and either the regions are visible, the regions are viewable and the server is (perhaps newly) maintaining backing store on the window, or the window is not viewable but the server is (perhaps newly) honoring window's backing-store attribute of Always or WhenMapped. The regions are decomposed into an arbitrary set of rectangles, and an Expose event is generated for each rectangle. For a given action causing exposure events, the set of events for a given window are guaranteed to be reported contiguously. If count is zero, then no more Expose events for this window follow. If count is nonzero, then at least that many more Expose events for this window follow (and possibly more). The x and y coordinates are relative to window's origin and specify the upper-left corner of a rectangle. The width and height specify the extent of the rectangle. Expose events are never generated on InputOnly windows. All Expose events caused by a hierarchy change are generated after any hierarchy event caused by that change (for example, UnmapNotify, MapNotify, ConfigureNotify, GravityNotify, CirculateNotify). All Expose events on a given window are generated after any VisibilityNotify event on that window, but it is not required that all Expose events on all windows be generated after all Visibilitity events on all windows. The ordering of Expose events with respect to FocusOut, EnterNotify, and LeaveNotify events is not constrained.
GraphicsExposure GraphicsExposure GraphicsExposure drawable: DRAWABLE x, y, width, height: CARD16 count: CARD16 major-opcode: CARD8 minor-opcode: CARD16 This event is reported to a client using a graphics context with graphics-exposures selected and is generated when a destination region could not be computed due to an obscured or out-of-bounds source region. All of the regions exposed by a given graphics request are guaranteed to be reported contiguously. If count is zero then no more GraphicsExposure events for this window follow. If count is nonzero, then at least that many more GraphicsExposure events for this window follow (and possibly more). The x and y coordinates are relative to drawable's origin and specify the upper-left corner of a rectangle. The width and height specify the extent of the rectangle. The major and minor opcodes identify the graphics request used. For the core protocol, major-opcode is always CopyArea or CopyPlane, and minor-opcode is always zero.
NoExposure NoExposure NoExposure drawable: DRAWABLE major-opcode: CARD8 minor-opcode: CARD16 This event is reported to a client using a graphics context with graphics-exposures selected and is generated when a graphics request that might produce GraphicsExposure events does not produce any. The drawable specifies the destination used for the graphics request. The major and minor opcodes identify the graphics request used. For the core protocol, major-opcode is always CopyArea or CopyPlane, and the minor-opcode is always zero.
VisibilityNotify VisibilityNotify VisibilityNotify window: WINDOW state: { Unobscured, PartiallyObscured, FullyObscured} This event is reported to clients selecting VisibilityChange on the window. In the following, the state of the window is calculated ignoring all of the window's subwindows. When a window changes state from partially or fully obscured or not viewable to viewable and completely unobscured, an event with Unobscured is generated. When a window changes state from viewable and completely unobscured, from viewable and completely obscured, or from not viewable, to viewable and partially obscured, an event with PartiallyObscured is generated. When a window changes state from viewable and completely unobscured, from viewable and partially obscured, or from not viewable to viewable and fully obscured, an event with FullyObscured is generated. VisibilityNotify events are never generated on InputOnly windows. All VisibilityNotify events caused by a hierarchy change are generated after any hierarchy event caused by that change (for example, UnmapNotify, MapNotify, ConfigureNotify, GravityNotify, CirculateNotify). Any VisibilityNotify event on a given window is generated before any Expose events on that window, but it is not required that all VisibilityNotify events on all windows be generated before all Expose events on all windows. The ordering of VisibilityNotify events with respect to FocusOut, EnterNotify, and LeaveNotify events is not constrained.
CreateNotify CreateNotify CreateNotify parent, window: WINDOW x, y: INT16 width, height, border-width: CARD16 override-redirect: BOOL This event is reported to clients selecting SubstructureNotify on the parent and is generated when the window is created. The arguments are as in the CreateWindow request.
DestroyNotify DestroyNotify DestroyNotify event, window: WINDOW This event is reported to clients selecting StructureNotify on the window and to clients selecting SubstructureNotify on the parent. It is generated when the window is destroyed. The event is the window on which the event was generated, and the window is the window that is destroyed. The ordering of the DestroyNotify events is such that for any given window, DestroyNotify is generated on all inferiors of the window before being generated on the window itself. The ordering among siblings and across subhierarchies is not otherwise constrained.
UnmapNotify UnmapNotify UnmapNotify event, window: WINDOW from-configure: BOOL This event is reported to clients selecting StructureNotify on the window and to clients selecting SubstructureNotify on the parent. It is generated when the window changes state from mapped to unmapped. The event is the window on which the event was generated, and the window is the window that is unmapped. The from-configure flag is True if the event was generated as a result of the window's parent being resized when the window itself had a win-gravity of Unmap.
MapNotify MapNotify Mapped window MapNotify event, window: WINDOW override-redirect: BOOL This event is reported to clients selecting StructureNotify on the window and to clients selecting SubstructureNotify on the parent. It is generated when the window changes state from unmapped to mapped. The event is the window on which the event was generated, and the window is the window that is mapped. The override-redirect flag is from the window's attribute.
MapRequest MapRequest MapRequest parent, window: WINDOW This event is reported to the client selecting SubstructureRedirect on the parent and is generated when a MapWindow request is issued on an unmapped window with an override-redirect attribute of False.
ReparentNotify ReparentNotify ReparentNotify event, window, parent: WINDOW x, y: INT16 override-redirect: BOOL This event is reported to clients selecting SubstructureNotify on either the old or the new parent and to clients selecting StructureNotify on the window. It is generated when the window is reparented. The event is the window on which the event was generated. The window is the window that has been rerooted. The parent specifies the new parent. The x and y coordinates are relative to the new parent's origin and specify the position of the upper-left outer corner of the window. The override-redirect flag is from the window's attribute.
ConfigureNotify ConfigureNotify ConfigureNotify event, window: WINDOW x, y: INT16 width, height, border-width: CARD16 above-sibling: WINDOW or None override-redirect: BOOL This event is reported to clients selecting StructureNotify on the window and to clients selecting SubstructureNotify on the parent. It is generated when a ConfigureWindow request actually changes the state of the window. The event is the window on which the event was generated, and the window is the window that is changed. The x and y coordinates are relative to the new parent's origin and specify the position of the upper-left outer corner of the window. The width and height specify the inside size, not including the border. If above-sibling is None, then the window is on the bottom of the stack with respect to siblings. Otherwise, the window is immediately on top of the specified sibling. The override-redirect flag is from the window's attribute.
GravityNotify GravityNotify GravityNotify event, window: WINDOW x, y: INT16 This event is reported to clients selecting SubstructureNotify on the parent and to clients selecting StructureNotify on the window. It is generated when a window is moved because of a change in size of the parent. The event is the window on which the event was generated, and the window is the window that is moved. The x and y coordinates are relative to the new parent's origin and specify the position of the upper-left outer corner of the window.
ResizeRequest ResizeRequest ResizeRequest window: WINDOW width, height: CARD16 This event is reported to the client selecting ResizeRedirect on the window and is generated when a ConfigureWindow request by some other client on the window attempts to change the size of the window. The width and height are the requested inside size, not including the border.
ConfigureRequest ConfigureRequest ConfigureRequest parent, window: WINDOW x, y: INT16 width, height, border-width: CARD16 sibling: WINDOW or None stack-mode: { Above, Below, TopIf, BottomIf, Opposite} value-mask: BITMASK This event is reported to the client selecting SubstructureRedirect on the parent and is generated when a ConfigureWindow request is issued on the window by some other client. The value-mask indicates which components were specified in the request. The value-mask and the corresponding values are reported as given in the request. The remaining values are filled in from the current geometry of the window, except in the case of sibling and stack-mode, which are reported as None and Above (respectively) if not given in the request.
CirculateNotify CirculateNotify CirculateNotify event, window: WINDOW place: { Top, Bottom} This event is reported to clients selecting StructureNotify on the window and to clients selecting SubstructureNotify on the parent. It is generated when the window is actually restacked from a CirculateWindow request. The event is the window on which the event was generated, and the window is the window that is restacked. If place is Top, the window is now on top of all siblings. Otherwise, it is below all siblings.
CirculateRequest CirculateRequest CirculateRequest parent, window: WINDOW place: { Top, Bottom} This event is reported to the client selecting SubstructureRedirect on the parent and is generated when a CirculateWindow request is issued on the parent and a window actually needs to be restacked. The window specifies the window to be restacked, and the place specifies what the new position in the stacking order should be.
PropertyNotify PropertyNotify PropertyNotify window: WINDOW atom: ATOM state: { NewValue, Deleted} time: TIMESTAMP This event is reported to clients selecting PropertyChange on the window and is generated with state NewValue when a property of the window is changed using ChangeProperty or RotateProperties, even when adding zero-length data using ChangeProperty and when replacing all or part of a property with identical data using ChangeProperty or RotateProperties. It is generated with state Deleted when a property of the window is deleted using request DeleteProperty or GetProperty. The timestamp indicates the server time when the property was changed.
SelectionClear SelectionClear SelectionClear owner: WINDOW selection: ATOM time: TIMESTAMP This event is reported to the current owner of a selection and is generated when a new owner is being defined by means of SetSelectionOwner. The timestamp is the last-change time recorded for the selection. The owner argument is the window that was specified by the current owner in its SetSelectionOwner request.
SelectionRequest SelectionRequest SelectionRequest owner: WINDOW selection: ATOM target: ATOM property: ATOM or None requestor: WINDOW time: TIMESTAMP or CurrentTime This event is reported to the owner of a selection and is generated when a client issues a ConvertSelection request. The owner argument is the window that was specified in the SetSelectionOwner request. The remaining arguments are as in the ConvertSelection request. The owner should convert the selection based on the specified target type and send a SelectionNotify back to the requestor. A complete specification for using selections is given in the X.Org standard Inter-Client Communication Conventions Manual.
SelectionNotify SelectionNotify SelectionNotify requestor: WINDOW selection, target: ATOM property: ATOM or None time: TIMESTAMP or CurrentTime This event is generated by the server in response to a ConvertSelection request when there is no owner for the selection. When there is an owner, it should be generated by the owner using SendEvent. The owner of a selection should send this event to a requestor either when a selection has been converted and stored as a property or when a selection conversion could not be performed (indicated with property None).
ColormapNotify ColormapNotify ColormapNotify window: WINDOW colormap: COLORMAP or None new: BOOL state: { Installed, Uninstalled} This event is reported to clients selecting ColormapChange on the window. It is generated with value True for new when the colormap attribute of the window is changed and is generated with value False for new when the colormap of a window is installed or uninstalled. In either case, the state indicates whether the colormap is currently installed.
MappingNotify MappingNotify MappingNotify request: { Modifier, Keyboard, Pointer} first-keycode, count: CARD8 This event is sent to all clients. There is no mechanism to express disinterest in this event. The detail indicates the kind of change that occurred: Modifiers for a successful SetModifierMapping, Keyboard for a successful ChangeKeyboardMapping, and Pointer for a successful SetPointerMapping. If the detail is Keyboard, then first-keycode and count indicate the range of altered keycodes.
ClientMessage ClientMessage ClientMessage window: WINDOW type: ATOM format: {8, 16, 32} data: LISTofINT8 or LISTofINT16 or LISTofINT32 This event is only generated by clients using SendEvent. The type specifies how the data is to be interpreted by the receiving client; the server places no interpretation on the type or the data. The format specifies whether the data should be viewed as a list of 8-bit, 16-bit, or 32-bit quantities, so that the server can correctly byte-swap, as necessary. The data always consists of either 20 8-bit values or 10 16-bit values or 5 32-bit values, although particular message types might not make use of all of these values.
Flow Control and Concurrency Whenever the server is writing to a given connection, it is permissible for the server to stop reading from that connection (but if the writing would block, it must continue to service other connections). The server is not required to buffer more than a single request per connection at one time. For a given connection to the server, a client can block while reading from the connection but should undertake to read (events and errors) when writing would block. Failure on the part of a client to obey this rule could result in a deadlocked connection, although deadlock is probably unlikely unless either the transport layer has very little buffering or the client attempts to send large numbers of requests without ever reading replies or checking for errors and events. Whether or not a server is implemented with internal concurrency, the overall effect must be as if individual requests are executed to completion in some serial order, and requests from a given connection must be executed in delivery order (that is, the total execution order is a shuffle of the individual streams). The execution of a request includes validating all arguments, collecting all data for any reply, and generating and queueing all required events. However, it does not include the actual transmission of the reply and the events. In addition, the effect of any other cause that can generate multiple events (for example, activation of a grab or pointer motion) must effectively generate and queue all required events indivisibly with respect to all other causes and requests. For a request from a given client, any events destined for that client that are caused by executing the request must be sent to the client before any reply or error is sent.
xorgproto-2023.2/specs/xproto/Makefile.am0000644000175000017500000000067014443010026015267 00000000000000if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = x11protocol.xml # Included chapters, appendix, images chapters = \ encoding.xml \ glossary.xml \ keysyms.xml \ sect1-9.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/xproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/xproto/Makefile.in0000644000175000017500000005604014443010031015276 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/xproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = x11protocol.xml encoding.xml glossary.xml \ keysyms.xml sect1-9.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = x11protocol.xml # Included chapters, appendix, images @ENABLE_SPECS_TRUE@chapters = \ @ENABLE_SPECS_TRUE@ encoding.xml \ @ENABLE_SPECS_TRUE@ glossary.xml \ @ENABLE_SPECS_TRUE@ keysyms.xml \ @ENABLE_SPECS_TRUE@ sect1-9.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/xproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/xproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/xproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/xproto/keysyms.xml0000644000175000017500000044525314443010026015473 00000000000000 KEYSYM Encoding TypesKEYSYM Keysym KEYSYM values are 32-bit integers that encode the symbols on the keycaps of a keyboard. The three most significant bits are always zero, which leaves a 29-bit number space. For convenience, KEYSYM values can be viewed as split into four bytes: Byte 1 is the most significant eight bits (three zero bits and the most-significant five bits of the 29-bit effective value) Byte 2 is the next most-significant eight bits Byte 3 is the next most-significant eight bits Byte 4 is the least-significant eight bits There are six categories of KEYSYM values. Special KEYSYMs There are two special values: NoSymbol and VoidSymbol. They are used to indicate the absence of symbols (see Section 5, Keyboards). Byte 1 Byte 2 Byte 3 Byte 4 Hex. value Name 0 0 0 0 #x00000000 NoSymbol 0 255 255 255 #x00FFFFFF VoidSymbol Latin-1 KEYSYMs The Latin-1 KEYSYMs occupy the range #x0020 to #x007E and #x00A0 to #00FF and represent the ISO 10646 / Unicode characters U+0020 to U+007E and U+00A0 to U+00FF, respectively. Unicode KEYSYMs KeysymUnicode These occupy the range #x01000100 to #x0110FFFF and represent the ISO 10646 / Unicode characters U+0100 to U+10FFFF, respectively. The numeric value of a Unicode KEYSYM is the Unicode position of the corresponding character plus #x01000000. In the interest of backwards compatibility, clients should be able to process both the Unicode KEYSYM and the Legacy KEYSYM for those characters where both exist. Dead keys, which place an accent on the next character entered, shall be encoded as Function KEYSYMs, and not as the Unicode KEYSYM corresponding to an equivalent combining character. Where a keycap indicates a specific function with a graphical symbol that is also available in Unicode (e.g., an upwards arrow for the cursor up function), the appropriate Function KEYSYM should be used, and not the Unicode KEYSYM corresponding to the depicted symbol. Function KEYSYMs These represent keycap symbols that do not directly represent elements of a coded character set. Instead, they typically identify a software function, mode, or operation (e.g., cursor up, caps lock, insert) that can be activated using a dedicated key. Function KEYSYMs have zero values for bytes 1 and 2. Byte 3 distinguishes between several 8-bit sets within which byte 4 identifies the individual function key. Byte 3 Byte 4 255 Keyboard 254 Keyboard (XKB) Extension 253 3270 Within a national market, keyboards tend to be comparatively standard with respect to the character keys, but they can differ significantly on the miscellaneous function keys. Some have function keys left over from early timesharing days, others were designed for a specific application, such as text processing, web browsing, or accessing audiovisual data. The symbols on the keycaps can differ significantly between manufacturers and national markets, even where they denote the same software function (e.g., Ctrl in the U.S. versus Strg in Germany) There are two ways of thinking about how to define KEYSYMs for such a world: The Engraving approach The Common approach The Engraving approach is to create a KEYSYM for every unique key engraving. This is effectively taking the union of all key engravings on all keyboards. For example, some keyboards label function keys across the top as F1 through Fn, and others label them as PF1 through PFn. These would be different keys under the Engraving approach. Likewise, Lock would differ from Shift Lock, which is different from the up-arrow symbol that has the effect of changing lowercase to uppercase. There are lots of other aliases such as Del, DEL, Delete, Remove, and so forth. The Engraving approach makes it easy to decide if a new entry should be added to the KEYSYM set: if it does not exactly match an existing one, then a new one is created. The Common approach tries to capture all of the keys present on an interesting number of keyboards, folding likely aliases into the same KEYSYM. For example, Del, DEL, and Delete are all merged into a single KEYSYM. Vendors can augment the KEYSYM set (using the vendor-specific encoding space) to include all of their unique keys that were not included in the standard set. Each vendor decides which of its keys map into the standard KEYSYMs, which presumably can be overridden by a user. It is more difficult to implement this approach, because judgment is required about when a sufficient set of keyboards implements an engraving to justify making it a KEYSYM in the standard set and about which engravings should be merged into a single KEYSYM. Although neither scheme is perfect or elegant, the Common approach has been selected because it makes it easier to write a portable application. Having the Delete functionality merged into a single KEYSYM allows an application to implement a deletion function and expect reasonable bindings on a wide set of workstations. Under the Common approach, application writers are still free to look for and interpret vendor-specific KEYSYMs, but because they are in the extended set, the application developer is more conscious that they are writing the application in a nonportable fashion. The Keyboard set is a miscellaneous collection of commonly occurring keys on keyboards. Within this set, the numeric keypad symbols are generally duplicates of symbols found on keys on the main part of the keyboard, but they are distinguished here because they often have a distinguishable semantics associated with them. KEYSYM value Name Set #xFF08 BACKSPACE, BACK SPACE, BACK CHAR Keyboard #xFF09 TAB Keyboard #xFF0A LINEFEED, LF Keyboard #xFF0B CLEAR Keyboard #xFF0D RETURN, ENTER Keyboard #xFF13 PAUSE, HOLD Keyboard #xFF14 SCROLL LOCK Keyboard #xFF15 SYS REQ, SYSTEM REQUEST Keyboard #xFF1B ESCAPE Keyboard #xFF20 MULTI-KEY CHARACTER PREFACE Keyboard #xFF21 KANJI, KANJI CONVERT Keyboard #xFF22 MUHENKAN Keyboard #xFF23 HENKAN MODE Keyboard #xFF24 ROMAJI Keyboard #xFF25 HIRAGANA Keyboard #xFF26 KATAKANA Keyboard #xFF27 HIRAGANA/KATAKANA TOGGLE Keyboard #xFF28 ZENKAKU Keyboard #xFF29 HANKAKU Keyboard #xFF2A ZENKAKU/HANKAKU TOGGLE Keyboard #xFF2B TOUROKU Keyboard #xFF2C MASSYO Keyboard #xFF2D KANA LOCK Keyboard #xFF2E KANA SHIFT Keyboard #xFF2F EISU SHIFT Keyboard #xFF30 EISU TOGGLE Keyboard #xFF31 HANGUL START/STOP (TOGGLE) Keyboard #xFF32 HANGUL START Keyboard #xFF33 HANGUL END, ENGLISH START Keyboard #xFF34 START HANGUL/HANJA CONVERSION Keyboard #xFF35 HANGUL JAMO MODE Keyboard #xFF36 HANGUL ROMAJA MODE Keyboard #xFF37 HANGUL CODE INPUT Keyboard #xFF38 HANGUL JEONJA MODE Keyboard #xFF39 HANGUL BANJA MODE Keyboard #xFF3A HANGUL PREHANJA CONVERSION Keyboard #xFF3B HANGUL POSTHANJA CONVERSION Keyboard #xFF3C HANGUL SINGLE CANDIDATE Keyboard #xFF3D HANGUL MULTIPLE CANDIDATE Keyboard #xFF3E HANGUL PREVIOUS CANDIDATE Keyboard #xFF3F HANGUL SPECIAL SYMBOLS Keyboard #xFF50 HOME Keyboard #xFF51 LEFT, MOVE LEFT, LEFT ARROW Keyboard #xFF52 UP, MOVE UP, UP ARROW Keyboard #xFF53 RIGHT, MOVE RIGHT, RIGHT ARROW Keyboard #xFF54 DOWN, MOVE DOWN, DOWN ARROW Keyboard #xFF55 PRIOR, PREVIOUS, PAGE UP Keyboard #xFF56 NEXT, PAGE DOWN Keyboard #xFF57 END, EOL Keyboard #xFF58 BEGIN, BOL Keyboard #xFF60 SELECT, MARK Keyboard #xFF61 PRINT Keyboard #xFF62 EXECUTE, RUN, DO Keyboard #xFF63 INSERT, INSERT HERE Keyboard #xFF65 UNDO, OOPS Keyboard #xFF66 REDO, AGAIN Keyboard #xFF67 MENU Keyboard #xFF68 FIND, SEARCH Keyboard #xFF69 CANCEL, STOP, ABORT, EXIT Keyboard #xFF6A HELP Keyboard #xFF6B BREAK Keyboard #xFF7E MODE SWITCH, SCRIPT SWITCH, CHARACTER SET SWITCH Keyboard #xFF7F NUM LOCK Keyboard #xFF80 KEYPAD SPACE Keyboard #xFF89 KEYPAD TAB Keyboard #xFF8D KEYPAD ENTER Keyboard #xFF91 KEYPAD F1, PF1, A Keyboard #xFF92 KEYPAD F2, PF2, B Keyboard #xFF93 KEYPAD F3, PF3, C Keyboard #xFF94 KEYPAD F4, PF4, D Keyboard #xFF95 KEYPAD HOME Keyboard #xFF96 KEYPAD LEFT Keyboard #xFF97 KEYPAD UP Keyboard #xFF98 KEYPAD RIGHT Keyboard #xFF99 KEYPAD DOWN Keyboard #xFF9A KEYPAD PRIOR, PAGE UP Keyboard #xFF9B KEYPAD NEXT, PAGE DOWN Keyboard #xFF9C KEYPAD END Keyboard #xFF9D KEYPAD BEGIN Keyboard #xFF9E KEYPAD INSERT Keyboard #xFF9F KEYPAD DELETE Keyboard #xFFAA KEYPAD MULTIPLICATION SIGN, ASTERISK Keyboard #xFFAB KEYPAD PLUS SIGN Keyboard #xFFAC KEYPAD SEPARATOR, COMMA Keyboard #xFFAD KEYPAD MINUS SIGN, HYPHEN Keyboard #xFFAE KEYPAD DECIMAL POINT, FULL STOP Keyboard #xFFAF KEYPAD DIVISION SIGN, SOLIDUS Keyboard #xFFB0 KEYPAD DIGIT ZERO Keyboard #xFFB1 KEYPAD DIGIT ONE Keyboard #xFFB2 KEYPAD DIGIT TWO Keyboard #xFFB3 KEYPAD DIGIT THREE Keyboard #xFFB4 KEYPAD DIGIT FOUR Keyboard #xFFB5 KEYPAD DIGIT FIVE Keyboard #xFFB6 KEYPAD DIGIT SIX Keyboard #xFFB7 KEYPAD DIGIT SEVEN Keyboard #xFFB8 KEYPAD DIGIT EIGHT Keyboard #xFFB9 KEYPAD DIGIT NINE Keyboard #xFFBD KEYPAD EQUALS SIGN Keyboard #xFFBE F1 Keyboard #xFFBF F2 Keyboard #xFFC0 F3 Keyboard #xFFC1 F4 Keyboard #xFFC2 F5 Keyboard #xFFC3 F6 Keyboard #xFFC4 F7 Keyboard #xFFC5 F8 Keyboard #xFFC6 F9 Keyboard #xFFC7 F10 Keyboard #xFFC8 F11, L1 Keyboard #xFFC9 F12, L2 Keyboard #xFFCA F13, L3 Keyboard #xFFCB F14, L4 Keyboard #xFFCC F15, L5 Keyboard #xFFCD F16, L6 Keyboard #xFFCE F17, L7 Keyboard #xFFCF F18, L8 Keyboard #xFFD0 F19, L9 Keyboard #xFFD1 F20, L10 Keyboard #xFFD2 F21, R1 Keyboard #xFFD3 F22, R2 Keyboard #xFFD4 F23, R3 Keyboard #xFFD5 F24, R4 Keyboard #xFFD6 F25, R5 Keyboard #xFFD7 F26, R6 Keyboard #xFFD8 F27, R7 Keyboard #xFFD9 F28, R8 Keyboard #xFFDA F29, R9 Keyboard #xFFDB F30, R10 Keyboard #xFFDC F31, R11 Keyboard #xFFDD F32, R12 Keyboard #xFFDE F33, R13 Keyboard #xFFDF F34, R14 Keyboard #xFFE0 F35, R15 Keyboard #xFFE1 LEFT SHIFT Keyboard #xFFE2 RIGHT SHIFT Keyboard #xFFE3 LEFT CONTROL Keyboard #xFFE4 RIGHT CONTROL Keyboard #xFFE5 CAPS LOCK Keyboard #xFFE6 SHIFT LOCK Keyboard #xFFE7 LEFT META Keyboard #xFFE8 RIGHT META Keyboard #xFFE9 LEFT ALT Keyboard #xFFEA RIGHT ALT Keyboard #xFFEB LEFT SUPER Keyboard #xFFEC RIGHT SUPER Keyboard #xFFED LEFT HYPER Keyboard #xFFEE RIGHT HYPER Keyboard #xFFFF DELETE, RUBOUT Keyboard The Keyboard (XKB) Extension set, which provides among other things a range of dead keys, is defined in "The X Keyboard Extension: Protocol Specification", Appendix C. The 3270 set defines additional keys that are specific to IBM 3270 terminals. KEYSYM value Name Set #xFD01 3270 DUPLICATE 3270 #xFD02 3270 FIELDMARK 3270 #xFD03 3270 RIGHT2 3270 #xFD04 3270 LEFT2 3270 #xFD05 3270 BACKTAB 3270 #xFD06 3270 ERASEEOF 3270 #xFD07 3270 ERASEINPUT 3270 #xFD08 3270 RESET 3270 #xFD09 3270 QUIT 3270 #xFD0A 3270 PA1 3270 #xFD0B 3270 PA2 3270 #xFD0C 3270 PA3 3270 #xFD0D 3270 TEST 3270 #xFD0E 3270 ATTN 3270 #xFD0F 3270 CURSORBLINK 3270 #xFD10 3270 ALTCURSOR 3270 #xFD11 3270 KEYCLICK 3270 #xFD12 3270 JUMP 3270 #xFD13 3270 IDENT 3270 #xFD14 3270 RULE 3270 #xFD15 3270 COPY 3270 #xFD16 3270 PLAY 3270 #xFD17 3270 SETUP 3270 #xFD18 3270 RECORD 3270 #xFD19 3270 CHANGESCREEN 3270 #xFD1A 3270 DELETEWORD 3270 #xFD1B 3270 EXSELECT 3270 #xFD1C 3270 CURSORSELECT 3270 #xFD1D 3270 PRINTSCREEN 3270 #xFD1E 3270 ENTER 3270 Vendor KEYSYMs The KEYSYM number range #x10000000 to #x1FFFFFFF is available for vendor-specific extensions. Among these, the range #x11000000 to #x1100FFFF is designated for keypad KEYSYMs. Legacy KEYSYMs These date from the time before ISO 10646 / Unicode was available. They represent characters from a number of different older 8-bit coded character sets and have zero values for bytes 1 and 2. Byte 3 indicates a coded character set and byte 4 is the 8-bit value of the particular character within that set. Byte 3 Byte 4 Byte 3 Byte 4 1 Latin-2 11 APL 2 Latin-3 12 Hebrew 3 Latin-4 13 Thai 4 Kana 14 Korean 5 Arabic 15 Latin-5 6 Cyrillic 16 Latin-6 7 Greek 17 Latin-7 8 Technical 18 Latin-8 9 Special 19 Latin-9 10 Publishing 32 Currency Each character set contains gaps where codes have been removed that were duplicates with codes in previous character sets (that is, character sets with lesser byte 3 value). The Latin, Arabic, Cyrillic, Greek, Hebrew, and Thai sets were taken from the early drafts of the relevant ISO 8859 parts available at the time. However, in the case of the Cyrillic and Greek sets, these turned out differently in the final versions of the ISO standard. The Technical, Special, and Publishing sets are based on Digital Equipment Corporation standards, as no equivalent international standards were available at the time. The table below lists all standardized Legacy KEYSYMs, along with the name used in the source document. Where there exists an unambiguous equivalent in Unicode, as it is the case with all ISO 8859 characters, it is given in the second column as a cross reference. Where there is no Unicode number provided, the exact semantics of the KEYSYM may have been lost and a Unicode KEYSYM should be used instead, if available. As support of Unicode KEYSYMs increases, some or all of the Legacy KEYSYMs may be phased out and withdrawn in future versions of this standard. Most KEYSYMs in the sets Technical, Special, Publishing, APL and Currency (with the exception of #x20AC) were probably never used in practice, and were not supported by pre-Unicode fonts. In particular, the Currency set, which was copied from Unicode, has already been deprecated by the introduction of the Unicode KEYSYMs. KEYSYM value Unicode value Name Set #x01A1 U+0104 LATIN CAPITAL LETTER A WITH OGONEK Latin-2 #x01A2 U+02D8 BREVE Latin-2 #x01A3 U+0141 LATIN CAPITAL LETTER L WITH STROKE Latin-2 #x01A5 U+013D LATIN CAPITAL LETTER L WITH CARON Latin-2 #x01A6 U+015A LATIN CAPITAL LETTER S WITH ACUTE Latin-2 #x01A9 U+0160 LATIN CAPITAL LETTER S WITH CARON Latin-2 #x01AA U+015E LATIN CAPITAL LETTER S WITH CEDILLA Latin-2 #x01AB U+0164 LATIN CAPITAL LETTER T WITH CARON Latin-2 #x01AC U+0179 LATIN CAPITAL LETTER Z WITH ACUTE Latin-2 #x01AE U+017D LATIN CAPITAL LETTER Z WITH CARON Latin-2 #x01AF U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE Latin-2 #x01B1 U+0105 LATIN SMALL LETTER A WITH OGONEK Latin-2 #x01B2 U+02DB OGONEK Latin-2 #x01B3 U+0142 LATIN SMALL LETTER L WITH STROKE Latin-2 #x01B5 U+013E LATIN SMALL LETTER L WITH CARON Latin-2 #x01B6 U+015B LATIN SMALL LETTER S WITH ACUTE Latin-2 #x01B7 U+02C7 CARON Latin-2 #x01B9 U+0161 LATIN SMALL LETTER S WITH CARON Latin-2 #x01BA U+015F LATIN SMALL LETTER S WITH CEDILLA Latin-2 #x01BB U+0165 LATIN SMALL LETTER T WITH CARON Latin-2 #x01BC U+017A LATIN SMALL LETTER Z WITH ACUTE Latin-2 #x01BD U+02DD DOUBLE ACUTE ACCENT Latin-2 #x01BE U+017E LATIN SMALL LETTER Z WITH CARON Latin-2 #x01BF U+017C LATIN SMALL LETTER Z WITH DOT ABOVE Latin-2 #x01C0 U+0154 LATIN CAPITAL LETTER R WITH ACUTE Latin-2 #x01C3 U+0102 LATIN CAPITAL LETTER A WITH BREVE Latin-2 #x01C5 U+0139 LATIN CAPITAL LETTER L WITH ACUTE Latin-2 #x01C6 U+0106 LATIN CAPITAL LETTER C WITH ACUTE Latin-2 #x01C8 U+010C LATIN CAPITAL LETTER C WITH CARON Latin-2 #x01CA U+0118 LATIN CAPITAL LETTER E WITH OGONEK Latin-2 #x01CC U+011A LATIN CAPITAL LETTER E WITH CARON Latin-2 #x01CF U+010E LATIN CAPITAL LETTER D WITH CARON Latin-2 #x01D0 U+0110 LATIN CAPITAL LETTER D WITH STROKE Latin-2 #x01D1 U+0143 LATIN CAPITAL LETTER N WITH ACUTE Latin-2 #x01D2 U+0147 LATIN CAPITAL LETTER N WITH CARON Latin-2 #x01D5 U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE Latin-2 #x01D8 U+0158 LATIN CAPITAL LETTER R WITH CARON Latin-2 #x01D9 U+016E LATIN CAPITAL LETTER U WITH RING ABOVE Latin-2 #x01DB U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE Latin-2 #x01DE U+0162 LATIN CAPITAL LETTER T WITH CEDILLA Latin-2 #x01E0 U+0155 LATIN SMALL LETTER R WITH ACUTE Latin-2 #x01E3 U+0103 LATIN SMALL LETTER A WITH BREVE Latin-2 #x01E5 U+013A LATIN SMALL LETTER L WITH ACUTE Latin-2 #x01E6 U+0107 LATIN SMALL LETTER C WITH ACUTE Latin-2 #x01E8 U+010D LATIN SMALL LETTER C WITH CARON Latin-2 #x01EA U+0119 LATIN SMALL LETTER E WITH OGONEK Latin-2 #x01EC U+011B LATIN SMALL LETTER E WITH CARON Latin-2 #x01EF U+010F LATIN SMALL LETTER D WITH CARON Latin-2 #x01F0 U+0111 LATIN SMALL LETTER D WITH STROKE Latin-2 #x01F1 U+0144 LATIN SMALL LETTER N WITH ACUTE Latin-2 #x01F2 U+0148 LATIN SMALL LETTER N WITH CARON Latin-2 #x01F5 U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE Latin-2 #x01F8 U+0159 LATIN SMALL LETTER R WITH CARON Latin-2 #x01F9 U+016F LATIN SMALL LETTER U WITH RING ABOVE Latin-2 #x01FB U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE Latin-2 #x01FE U+0163 LATIN SMALL LETTER T WITH CEDILLA Latin-2 #x01FF U+02D9 DOT ABOVE Latin-2 #x02A1 U+0126 LATIN CAPITAL LETTER H WITH STROKE Latin-3 #x02A6 U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX Latin-3 #x02A9 U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE Latin-3 #x02AB U+011E LATIN CAPITAL LETTER G WITH BREVE Latin-3 #x02AC U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX Latin-3 #x02B1 U+0127 LATIN SMALL LETTER H WITH STROKE Latin-3 #x02B6 U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX Latin-3 #x02B9 U+0131 LATIN SMALL LETTER DOTLESS I Latin-3 #x02BB U+011F LATIN SMALL LETTER G WITH BREVE Latin-3 #x02BC U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX Latin-3 #x02C5 U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE Latin-3 #x02C6 U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX Latin-3 #x02D5 U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE Latin-3 #x02D8 U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX Latin-3 #x02DD U+016C LATIN CAPITAL LETTER U WITH BREVE Latin-3 #x02DE U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX Latin-3 #x02E5 U+010B LATIN SMALL LETTER C WITH DOT ABOVE Latin-3 #x02E6 U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX Latin-3 #x02F5 U+0121 LATIN SMALL LETTER G WITH DOT ABOVE Latin-3 #x02F8 U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX Latin-3 #x02FD U+016D LATIN SMALL LETTER U WITH BREVE Latin-3 #x02FE U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX Latin-3 #x03A2 U+0138 LATIN SMALL LETTER KRA Latin-4 #x03A3 U+0156 LATIN CAPITAL LETTER R WITH CEDILLA Latin-4 #x03A5 U+0128 LATIN CAPITAL LETTER I WITH TILDE Latin-4 #x03A6 U+013B LATIN CAPITAL LETTER L WITH CEDILLA Latin-4 #x03AA U+0112 LATIN CAPITAL LETTER E WITH MACRON Latin-4 #x03AB U+0122 LATIN CAPITAL LETTER G WITH CEDILLA Latin-4 #x03AC U+0166 LATIN CAPITAL LETTER T WITH STROKE Latin-4 #x03B3 U+0157 LATIN SMALL LETTER R WITH CEDILLA Latin-4 #x03B5 U+0129 LATIN SMALL LETTER I WITH TILDE Latin-4 #x03B6 U+013C LATIN SMALL LETTER L WITH CEDILLA Latin-4 #x03BA U+0113 LATIN SMALL LETTER E WITH MACRON Latin-4 #x03BB U+0123 LATIN SMALL LETTER G WITH CEDILLA Latin-4 #x03BC U+0167 LATIN SMALL LETTER T WITH STROKE Latin-4 #x03BD U+014A LATIN CAPITAL LETTER ENG Latin-4 #x03BF U+014B LATIN SMALL LETTER ENG Latin-4 #x03C0 U+0100 LATIN CAPITAL LETTER A WITH MACRON Latin-4 #x03C7 U+012E LATIN CAPITAL LETTER I WITH OGONEK Latin-4 #x03CC U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE Latin-4 #x03CF U+012A LATIN CAPITAL LETTER I WITH MACRON Latin-4 #x03D1 U+0145 LATIN CAPITAL LETTER N WITH CEDILLA Latin-4 #x03D2 U+014C LATIN CAPITAL LETTER O WITH MACRON Latin-4 #x03D3 U+0136 LATIN CAPITAL LETTER K WITH CEDILLA Latin-4 #x03D9 U+0172 LATIN CAPITAL LETTER U WITH OGONEK Latin-4 #x03DD U+0168 LATIN CAPITAL LETTER U WITH TILDE Latin-4 #x03DE U+016A LATIN CAPITAL LETTER U WITH MACRON Latin-4 #x03E0 U+0101 LATIN SMALL LETTER A WITH MACRON Latin-4 #x03E7 U+012F LATIN SMALL LETTER I WITH OGONEK Latin-4 #x03EC U+0117 LATIN SMALL LETTER E WITH DOT ABOVE Latin-4 #x03EF U+012B LATIN SMALL LETTER I WITH MACRON Latin-4 #x03F1 U+0146 LATIN SMALL LETTER N WITH CEDILLA Latin-4 #x03F2 U+014D LATIN SMALL LETTER O WITH MACRON Latin-4 #x03F3 U+0137 LATIN SMALL LETTER K WITH CEDILLA Latin-4 #x03F9 U+0173 LATIN SMALL LETTER U WITH OGONEK Latin-4 #x03FD U+0169 LATIN SMALL LETTER U WITH TILDE Latin-4 #x03FE U+016B LATIN SMALL LETTER U WITH MACRON Latin-4 #x047E U+203E OVERLINE Kana #x04A1 U+3002 KANA FULL STOP Kana #x04A2 U+300C KANA OPENING BRACKET Kana #x04A3 U+300D KANA CLOSING BRACKET Kana #x04A4 U+3001 KANA COMMA Kana #x04A5 U+30FB KANA CONJUNCTIVE Kana #x04A6 U+30F2 KANA LETTER WO Kana #x04A7 U+30A1 KANA LETTER SMALL A Kana #x04A8 U+30A3 KANA LETTER SMALL I Kana #x04A9 U+30A5 KANA LETTER SMALL U Kana #x04AA U+30A7 KANA LETTER SMALL E Kana #x04AB U+30A9 KANA LETTER SMALL O Kana #x04AC U+30E3 KANA LETTER SMALL YA Kana #x04AD U+30E5 KANA LETTER SMALL YU Kana #x04AE U+30E7 KANA LETTER SMALL YO Kana #x04AF U+30C3 KANA LETTER SMALL TSU Kana #x04B0 U+30FC PROLONGED SOUND SYMBOL Kana #x04B1 U+30A2 KANA LETTER A Kana #x04B2 U+30A4 KANA LETTER I Kana #x04B3 U+30A6 KANA LETTER U Kana #x04B4 U+30A8 KANA LETTER E Kana #x04B5 U+30AA KANA LETTER O Kana #x04B6 U+30AB KANA LETTER KA Kana #x04B7 U+30AD KANA LETTER KI Kana #x04B8 U+30AF KANA LETTER KU Kana #x04B9 U+30B1 KANA LETTER KE Kana #x04BA U+30B3 KANA LETTER KO Kana #x04BB U+30B5 KANA LETTER SA Kana #x04BC U+30B7 KANA LETTER SHI Kana #x04BD U+30B9 KANA LETTER SU Kana #x04BE U+30BB KANA LETTER SE Kana #x04BF U+30BD KANA LETTER SO Kana #x04C0 U+30BF KANA LETTER TA Kana #x04C1 U+30C1 KANA LETTER CHI Kana #x04C2 U+30C4 KANA LETTER TSU Kana #x04C3 U+30C6 KANA LETTER TE Kana #x04C4 U+30C8 KANA LETTER TO Kana #x04C5 U+30CA KANA LETTER NA Kana #x04C6 U+30CB KANA LETTER NI Kana #x04C7 U+30CC KANA LETTER NU Kana #x04C8 U+30CD KANA LETTER NE Kana #x04C9 U+30CE KANA LETTER NO Kana #x04CA U+30CF KANA LETTER HA Kana #x04CB U+30D2 KANA LETTER HI Kana #x04CC U+30D5 KANA LETTER FU Kana #x04CD U+30D8 KANA LETTER HE Kana #x04CE U+30DB KANA LETTER HO Kana #x04CF U+30DE KANA LETTER MA Kana #x04D0 U+30DF KANA LETTER MI Kana #x04D1 U+30E0 KANA LETTER MU Kana #x04D2 U+30E1 KANA LETTER ME Kana #x04D3 U+30E2 KANA LETTER MO Kana #x04D4 U+30E4 KANA LETTER YA Kana #x04D5 U+30E6 KANA LETTER YU Kana #x04D6 U+30E8 KANA LETTER YO Kana #x04D7 U+30E9 KANA LETTER RA Kana #x04D8 U+30EA KANA LETTER RI Kana #x04D9 U+30EB KANA LETTER RU Kana #x04DA U+30EC KANA LETTER RE Kana #x04DB U+30ED KANA LETTER RO Kana #x04DC U+30EF KANA LETTER WA Kana #x04DD U+30F3 KANA LETTER N Kana #x04DE U+309B VOICED SOUND SYMBOL Kana #x04DF U+309C SEMIVOICED SOUND SYMBOL Kana #x05AC U+060C ARABIC COMMA Arabic #x05BB U+061B ARABIC SEMICOLON Arabic #x05BF U+061F ARABIC QUESTION MARK Arabic #x05C1 U+0621 ARABIC LETTER HAMZA Arabic #x05C2 U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE Arabic #x05C3 U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE Arabic #x05C4 U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE Arabic #x05C5 U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW Arabic #x05C6 U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE Arabic #x05C7 U+0627 ARABIC LETTER ALEF Arabic #x05C8 U+0628 ARABIC LETTER BEH Arabic #x05C9 U+0629 ARABIC LETTER TEH MARBUTA Arabic #x05CA U+062A ARABIC LETTER TEH Arabic #x05CB U+062B ARABIC LETTER THEH Arabic #x05CC U+062C ARABIC LETTER JEEM Arabic #x05CD U+062D ARABIC LETTER HAH Arabic #x05CE U+062E ARABIC LETTER KHAH Arabic #x05CF U+062F ARABIC LETTER DAL Arabic #x05D0 U+0630 ARABIC LETTER THAL Arabic #x05D1 U+0631 ARABIC LETTER REH Arabic #x05D2 U+0632 ARABIC LETTER ZAIN Arabic #x05D3 U+0633 ARABIC LETTER SEEN Arabic #x05D4 U+0634 ARABIC LETTER SHEEN Arabic #x05D5 U+0635 ARABIC LETTER SAD Arabic #x05D6 U+0636 ARABIC LETTER DAD Arabic #x05D7 U+0637 ARABIC LETTER TAH Arabic #x05D8 U+0638 ARABIC LETTER ZAH Arabic #x05D9 U+0639 ARABIC LETTER AIN Arabic #x05DA U+063A ARABIC LETTER GHAIN Arabic #x05E0 U+0640 ARABIC TATWEEL Arabic #x05E1 U+0641 ARABIC LETTER FEH Arabic #x05E2 U+0642 ARABIC LETTER QAF Arabic #x05E3 U+0643 ARABIC LETTER KAF Arabic #x05E4 U+0644 ARABIC LETTER LAM Arabic #x05E5 U+0645 ARABIC LETTER MEEM Arabic #x05E6 U+0646 ARABIC LETTER NOON Arabic #x05E7 U+0647 ARABIC LETTER HEH Arabic #x05E8 U+0648 ARABIC LETTER WAW Arabic #x05E9 U+0649 ARABIC LETTER ALEF MAKSURA Arabic #x05EA U+064A ARABIC LETTER YEH Arabic #x05EB U+064B ARABIC FATHATAN Arabic #x05EC U+064C ARABIC DAMMATAN Arabic #x05ED U+064D ARABIC KASRATAN Arabic #x05EE U+064E ARABIC FATHA Arabic #x05EF U+064F ARABIC DAMMA Arabic #x05F0 U+0650 ARABIC KASRA Arabic #x05F1 U+0651 ARABIC SHADDA Arabic #x05F2 U+0652 ARABIC SUKUN Arabic #x06A1 U+0452 CYRILLIC SMALL LETTER DJE Cyrillic #x06A2 U+0453 CYRILLIC SMALL LETTER GJE Cyrillic #x06A3 U+0451 CYRILLIC SMALL LETTER IO Cyrillic #x06A4 U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE Cyrillic #x06A5 U+0455 CYRILLIC SMALL LETTER DZE Cyrillic #x06A6 U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I Cyrillic #x06A7 U+0457 CYRILLIC SMALL LETTER YI Cyrillic #x06A8 U+0458 CYRILLIC SMALL LETTER JE Cyrillic #x06A9 U+0459 CYRILLIC SMALL LETTER LJE Cyrillic #x06AA U+045A CYRILLIC SMALL LETTER NJE Cyrillic #x06AB U+045B CYRILLIC SMALL LETTER TSHE Cyrillic #x06AC U+045C CYRILLIC SMALL LETTER KJE Cyrillic #x06AD U+0491 CYRILLIC SMALL LETTER GHE WITH UPTURN Cyrillic #x06AE U+045E CYRILLIC SMALL LETTER SHORT U Cyrillic #x06AF U+045F CYRILLIC SMALL LETTER DZHE Cyrillic #x06B0 U+2116 NUMERO SIGN Cyrillic #x06B1 U+0402 CYRILLIC CAPITAL LETTER DJE Cyrillic #x06B2 U+0403 CYRILLIC CAPITAL LETTER GJE Cyrillic #x06B3 U+0401 CYRILLIC CAPITAL LETTER IO Cyrillic #x06B4 U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE Cyrillic #x06B5 U+0405 CYRILLIC CAPITAL LETTER DZE Cyrillic #x06B6 U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I Cyrillic #x06B7 U+0407 CYRILLIC CAPITAL LETTER YI Cyrillic #x06B8 U+0408 CYRILLIC CAPITAL LETTER JE Cyrillic #x06B9 U+0409 CYRILLIC CAPITAL LETTER LJE Cyrillic #x06BA U+040A CYRILLIC CAPITAL LETTER NJE Cyrillic #x06BB U+040B CYRILLIC CAPITAL LETTER TSHE Cyrillic #x06BC U+040C CYRILLIC CAPITAL LETTER KJE Cyrillic #x06BD U+0490 CYRILLIC CAPITAL LETTER GHE WITH UPTURN Cyrillic #x06BE U+040E CYRILLIC CAPITAL LETTER SHORT U Cyrillic #x06BF U+040F CYRILLIC CAPITAL LETTER DZHE Cyrillic #x06C0 U+044E CYRILLIC SMALL LETTER YU Cyrillic #x06C1 U+0430 CYRILLIC SMALL LETTER A Cyrillic #x06C2 U+0431 CYRILLIC SMALL LETTER BE Cyrillic #x06C3 U+0446 CYRILLIC SMALL LETTER TSE Cyrillic #x06C4 U+0434 CYRILLIC SMALL LETTER DE Cyrillic #x06C5 U+0435 CYRILLIC SMALL LETTER IE Cyrillic #x06C6 U+0444 CYRILLIC SMALL LETTER EF Cyrillic #x06C7 U+0433 CYRILLIC SMALL LETTER GHE Cyrillic #x06C8 U+0445 CYRILLIC SMALL LETTER HA Cyrillic #x06C9 U+0438 CYRILLIC SMALL LETTER I Cyrillic #x06CA U+0439 CYRILLIC SMALL LETTER SHORT I Cyrillic #x06CB U+043A CYRILLIC SMALL LETTER KA Cyrillic #x06CC U+043B CYRILLIC SMALL LETTER EL Cyrillic #x06CD U+043C CYRILLIC SMALL LETTER EM Cyrillic #x06CE U+043D CYRILLIC SMALL LETTER EN Cyrillic #x06CF U+043E CYRILLIC SMALL LETTER O Cyrillic #x06D0 U+043F CYRILLIC SMALL LETTER PE Cyrillic #x06D1 U+044F CYRILLIC SMALL LETTER YA Cyrillic #x06D2 U+0440 CYRILLIC SMALL LETTER ER Cyrillic #x06D3 U+0441 CYRILLIC SMALL LETTER ES Cyrillic #x06D4 U+0442 CYRILLIC SMALL LETTER TE Cyrillic #x06D5 U+0443 CYRILLIC SMALL LETTER U Cyrillic #x06D6 U+0436 CYRILLIC SMALL LETTER ZHE Cyrillic #x06D7 U+0432 CYRILLIC SMALL LETTER VE Cyrillic #x06D8 U+044C CYRILLIC SMALL LETTER SOFT SIGN Cyrillic #x06D9 U+044B CYRILLIC SMALL LETTER YERU Cyrillic #x06DA U+0437 CYRILLIC SMALL LETTER ZE Cyrillic #x06DB U+0448 CYRILLIC SMALL LETTER SHA Cyrillic #x06DC U+044D CYRILLIC SMALL LETTER E Cyrillic #x06DD U+0449 CYRILLIC SMALL LETTER SHCHA Cyrillic #x06DE U+0447 CYRILLIC SMALL LETTER CHE Cyrillic #x06DF U+044A CYRILLIC SMALL LETTER HARD SIGN Cyrillic #x06E0 U+042E CYRILLIC CAPITAL LETTER YU Cyrillic #x06E1 U+0410 CYRILLIC CAPITAL LETTER A Cyrillic #x06E2 U+0411 CYRILLIC CAPITAL LETTER BE Cyrillic #x06E3 U+0426 CYRILLIC CAPITAL LETTER TSE Cyrillic #x06E4 U+0414 CYRILLIC CAPITAL LETTER DE Cyrillic #x06E5 U+0415 CYRILLIC CAPITAL LETTER IE Cyrillic #x06E6 U+0424 CYRILLIC CAPITAL LETTER EF Cyrillic #x06E7 U+0413 CYRILLIC CAPITAL LETTER GHE Cyrillic #x06E8 U+0425 CYRILLIC CAPITAL LETTER HA Cyrillic #x06E9 U+0418 CYRILLIC CAPITAL LETTER I Cyrillic #x06EA U+0419 CYRILLIC CAPITAL LETTER SHORT I Cyrillic #x06EB U+041A CYRILLIC CAPITAL LETTER KA Cyrillic #x06EC U+041B CYRILLIC CAPITAL LETTER EL Cyrillic #x06ED U+041C CYRILLIC CAPITAL LETTER EM Cyrillic #x06EE U+041D CYRILLIC CAPITAL LETTER EN Cyrillic #x06EF U+041E CYRILLIC CAPITAL LETTER O Cyrillic #x06F0 U+041F CYRILLIC CAPITAL LETTER PE Cyrillic #x06F1 U+042F CYRILLIC CAPITAL LETTER YA Cyrillic #x06F2 U+0420 CYRILLIC CAPITAL LETTER ER Cyrillic #x06F3 U+0421 CYRILLIC CAPITAL LETTER ES Cyrillic #x06F4 U+0422 CYRILLIC CAPITAL LETTER TE Cyrillic #x06F5 U+0423 CYRILLIC CAPITAL LETTER U Cyrillic #x06F6 U+0416 CYRILLIC CAPITAL LETTER ZHE Cyrillic #x06F7 U+0412 CYRILLIC CAPITAL LETTER VE Cyrillic #x06F8 U+042C CYRILLIC CAPITAL LETTER SOFT SIGN Cyrillic #x06F9 U+042B CYRILLIC CAPITAL LETTER YERU Cyrillic #x06FA U+0417 CYRILLIC CAPITAL LETTER ZE Cyrillic #x06FB U+0428 CYRILLIC CAPITAL LETTER SHA Cyrillic #x06FC U+042D CYRILLIC CAPITAL LETTER E Cyrillic #x06FD U+0429 CYRILLIC CAPITAL LETTER SHCHA Cyrillic #x06FE U+0427 CYRILLIC CAPITAL LETTER CHE Cyrillic #x06FF U+042A CYRILLIC CAPITAL LETTER HARD SIGN Cyrillic #x07A1 U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS Greek #x07A2 U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS Greek #x07A3 U+0389 GREEK CAPITAL LETTER ETA WITH TONOS Greek #x07A4 U+038A GREEK CAPITAL LETTER IOTA WITH TONOS Greek #x07A5 U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA Greek #x07A7 U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS Greek #x07A8 U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS Greek #x07A9 U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA Greek #x07AB U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS Greek #x07AE U+0385 GREEK DIALYTIKA TONOS Greek #x07AF U+2015 HORIZONTAL BAR Greek #x07B1 U+03AC GREEK SMALL LETTER ALPHA WITH TONOS Greek #x07B2 U+03AD GREEK SMALL LETTER EPSILON WITH TONOS Greek #x07B3 U+03AE GREEK SMALL LETTER ETA WITH TONOS Greek #x07B4 U+03AF GREEK SMALL LETTER IOTA WITH TONOS Greek #x07B5 U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA Greek #x07B6 U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS Greek #x07B7 U+03CC GREEK SMALL LETTER OMICRON WITH TONOS Greek #x07B8 U+03CD GREEK SMALL LETTER UPSILON WITH TONOS Greek #x07B9 U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA Greek #x07BA U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS Greek #x07BB U+03CE GREEK SMALL LETTER OMEGA WITH TONOS Greek #x07C1 U+0391 GREEK CAPITAL LETTER ALPHA Greek #x07C2 U+0392 GREEK CAPITAL LETTER BETA Greek #x07C3 U+0393 GREEK CAPITAL LETTER GAMMA Greek #x07C4 U+0394 GREEK CAPITAL LETTER DELTA Greek #x07C5 U+0395 GREEK CAPITAL LETTER EPSILON Greek #x07C6 U+0396 GREEK CAPITAL LETTER ZETA Greek #x07C7 U+0397 GREEK CAPITAL LETTER ETA Greek #x07C8 U+0398 GREEK CAPITAL LETTER THETA Greek #x07C9 U+0399 GREEK CAPITAL LETTER IOTA Greek #x07CA U+039A GREEK CAPITAL LETTER KAPPA Greek #x07CB U+039B GREEK CAPITAL LETTER LAMDA Greek #x07CC U+039C GREEK CAPITAL LETTER MU Greek #x07CD U+039D GREEK CAPITAL LETTER NU Greek #x07CE U+039E GREEK CAPITAL LETTER XI Greek #x07CF U+039F GREEK CAPITAL LETTER OMICRON Greek #x07D0 U+03A0 GREEK CAPITAL LETTER PI Greek #x07D1 U+03A1 GREEK CAPITAL LETTER RHO Greek #x07D2 U+03A3 GREEK CAPITAL LETTER SIGMA Greek #x07D4 U+03A4 GREEK CAPITAL LETTER TAU Greek #x07D5 U+03A5 GREEK CAPITAL LETTER UPSILON Greek #x07D6 U+03A6 GREEK CAPITAL LETTER PHI Greek #x07D7 U+03A7 GREEK CAPITAL LETTER CHI Greek #x07D8 U+03A8 GREEK CAPITAL LETTER PSI Greek #x07D9 U+03A9 GREEK CAPITAL LETTER OMEGA Greek #x07E1 U+03B1 GREEK SMALL LETTER ALPHA Greek #x07E2 U+03B2 GREEK SMALL LETTER BETA Greek #x07E3 U+03B3 GREEK SMALL LETTER GAMMA Greek #x07E4 U+03B4 GREEK SMALL LETTER DELTA Greek #x07E5 U+03B5 GREEK SMALL LETTER EPSILON Greek #x07E6 U+03B6 GREEK SMALL LETTER ZETA Greek #x07E7 U+03B7 GREEK SMALL LETTER ETA Greek #x07E8 U+03B8 GREEK SMALL LETTER THETA Greek #x07E9 U+03B9 GREEK SMALL LETTER IOTA Greek #x07EA U+03BA GREEK SMALL LETTER KAPPA Greek #x07EB U+03BB GREEK SMALL LETTER LAMDA Greek #x07EC U+03BC GREEK SMALL LETTER MU Greek #x07ED U+03BD GREEK SMALL LETTER NU Greek #x07EE U+03BE GREEK SMALL LETTER XI Greek #x07EF U+03BF GREEK SMALL LETTER OMICRON Greek #x07F0 U+03C0 GREEK SMALL LETTER PI Greek #x07F1 U+03C1 GREEK SMALL LETTER RHO Greek #x07F2 U+03C3 GREEK SMALL LETTER SIGMA Greek #x07F3 U+03C2 GREEK SMALL LETTER FINAL SIGMA Greek #x07F4 U+03C4 GREEK SMALL LETTER TAU Greek #x07F5 U+03C5 GREEK SMALL LETTER UPSILON Greek #x07F6 U+03C6 GREEK SMALL LETTER PHI Greek #x07F7 U+03C7 GREEK SMALL LETTER CHI Greek #x07F8 U+03C8 GREEK SMALL LETTER PSI Greek #x07F9 U+03C9 GREEK SMALL LETTER OMEGA Greek #x08A1 U+23B7 LEFT RADICAL Technical #x08A2 - TOP LEFT RADICAL Technical #x08A3 - HORIZONTAL CONNECTOR Technical #x08A4 U+2320 TOP INTEGRAL Technical #x08A5 U+2321 BOTTOM INTEGRAL Technical #x08A6 - VERTICAL CONNECTOR Technical #x08A7 U+23A1 TOP LEFT SQUARE BRACKET Technical #x08A8 U+23A3 BOTTOM LEFT SQUARE BRACKET Technical #x08A9 U+23A4 TOP RIGHT SQUARE BRACKET Technical #x08AA U+23A6 BOTTOM RIGHT SQUARE BRACKET Technical #x08AB U+239B TOP LEFT PARENTHESIS Technical #x08AC U+239D BOTTOM LEFT PARENTHESIS Technical #x08AD U+239E TOP RIGHT PARENTHESIS Technical #x08AE U+23A0 BOTTOM RIGHT PARENTHESIS Technical #x08AF U+23A8 LEFT MIDDLE CURLY BRACE Technical #x08B0 U+23AC RIGHT MIDDLE CURLY BRACE Technical #x08B1 - TOP LEFT SUMMATION Technical #x08B2 - BOTTOM LEFT SUMMATION Technical #x08B3 - TOP VERTICAL SUMMATION CONNECTOR Technical #x08B4 - BOTTOM VERTICAL SUMMATION CONNECTOR Technical #x08B5 - TOP RIGHT SUMMATION Technical #x08B6 - BOTTOM RIGHT SUMMATION Technical #x08B7 - RIGHT MIDDLE SUMMATION Technical #x08BC U+2264 LESS THAN OR EQUAL SIGN Technical #x08BD U+2260 NOT EQUAL SIGN Technical #x08BE U+2265 GREATER THAN OR EQUAL SIGN Technical #x08BF U+222B INTEGRAL Technical #x08C0 U+2234 THEREFORE Technical #x08C1 U+221D VARIATION, PROPORTIONAL TO Technical #x08C2 U+221E INFINITY Technical #x08C5 U+2207 NABLA, DEL Technical #x08C8 U+223C IS APPROXIMATE TO Technical #x08C9 U+2243 SIMILAR OR EQUAL TO Technical #x08CD U+21D4 IF AND ONLY IF Technical #x08CE U+21D2 IMPLIES Technical #x08CF U+2261 IDENTICAL TO Technical #x08D6 U+221A RADICAL Technical #x08DA U+2282 IS INCLUDED IN Technical #x08DB U+2283 INCLUDES Technical #x08DC U+2229 INTERSECTION Technical #x08DD U+222A UNION Technical #x08DE U+2227 LOGICAL AND Technical #x08DF U+2228 LOGICAL OR Technical #x08EF U+2202 PARTIAL DERIVATIVE Technical #x08F6 U+0192 FUNCTION Technical #x08FB U+2190 LEFT ARROW Technical #x08FC U+2191 UPWARD ARROW Technical #x08FD U+2192 RIGHT ARROW Technical #x08FE U+2193 DOWNWARD ARROW Technical #x09DF - BLANK Special #x09E0 U+25C6 SOLID DIAMOND Special #x09E1 U+2592 CHECKERBOARD Special #x09E2 U+2409 "HT" Special #x09E3 U+240C "FF" Special #x09E4 U+240D "CR" Special #x09E5 U+240A "LF" Special #x09E8 U+2424 "NL" Special #x09E9 U+240B "VT" Special #x09EA U+2518 LOWER-RIGHT CORNER Special #x09EB U+2510 UPPER-RIGHT CORNER Special #x09EC U+250C UPPER-LEFT CORNER Special #x09ED U+2514 LOWER-LEFT CORNER Special #x09EE U+253C CROSSING-LINES Special #x09EF U+23BA HORIZONTAL LINE, SCAN 1 Special #x09F0 U+23BB HORIZONTAL LINE, SCAN 3 Special #x09F1 U+2500 HORIZONTAL LINE, SCAN 5 Special #x09F2 U+23BC HORIZONTAL LINE, SCAN 7 Special #x09F3 U+23BD HORIZONTAL LINE, SCAN 9 Special #x09F4 U+251C LEFT "T" Special #x09F5 U+2524 RIGHT "T" Special #x09F6 U+2534 BOTTOM "T" Special #x09F7 U+252C TOP "T" Special #x09F8 U+2502 VERTICAL BAR Special #x0AA1 U+2003 EM SPACE Publish #x0AA2 U+2002 EN SPACE Publish #x0AA3 U+2004 3/EM SPACE Publish #x0AA4 U+2005 4/EM SPACE Publish #x0AA5 U+2007 DIGIT SPACE Publish #x0AA6 U+2008 PUNCTUATION SPACE Publish #x0AA7 U+2009 THIN SPACE Publish #x0AA8 U+200A HAIR SPACE Publish #x0AA9 U+2014 EM DASH Publish #x0AAA U+2013 EN DASH Publish #x0AAC - SIGNIFICANT BLANK SYMBOL Publish #x0AAE U+2026 ELLIPSIS Publish #x0AAF U+2025 DOUBLE BASELINE DOT Publish #x0AB0 U+2153 VULGAR FRACTION ONE THIRD Publish #x0AB1 U+2154 VULGAR FRACTION TWO THIRDS Publish #x0AB2 U+2155 VULGAR FRACTION ONE FIFTH Publish #x0AB3 U+2156 VULGAR FRACTION TWO FIFTHS Publish #x0AB4 U+2157 VULGAR FRACTION THREE FIFTHS Publish #x0AB5 U+2158 VULGAR FRACTION FOUR FIFTHS Publish #x0AB6 U+2159 VULGAR FRACTION ONE SIXTH Publish #x0AB7 U+215A VULGAR FRACTION FIVE SIXTHS Publish #x0AB8 U+2105 CARE OF Publish #x0ABB U+2012 FIGURE DASH Publish #x0ABC - LEFT ANGLE BRACKET Publish #x0ABD - DECIMAL POINT Publish #x0ABE - RIGHT ANGLE BRACKET Publish #x0ABF - MARKER Publish #x0AC3 U+215B VULGAR FRACTION ONE EIGHTH Publish #x0AC4 U+215C VULGAR FRACTION THREE EIGHTHS Publish #x0AC5 U+215D VULGAR FRACTION FIVE EIGHTHS Publish #x0AC6 U+215E VULGAR FRACTION SEVEN EIGHTHS Publish #x0AC9 U+2122 TRADEMARK SIGN Publish #x0ACA - SIGNATURE MARK Publish #x0ACB - TRADEMARK SIGN IN CIRCLE Publish #x0ACC - LEFT OPEN TRIANGLE Publish #x0ACD - RIGHT OPEN TRIANGLE Publish #x0ACE - EM OPEN CIRCLE Publish #x0ACF - EM OPEN RECTANGLE Publish #x0AD0 U+2018 LEFT SINGLE QUOTATION MARK Publish #x0AD1 U+2019 RIGHT SINGLE QUOTATION MARK Publish #x0AD2 U+201C LEFT DOUBLE QUOTATION MARK Publish #x0AD3 U+201D RIGHT DOUBLE QUOTATION MARK Publish #x0AD4 U+211E PRESCRIPTION, TAKE, RECIPE Publish #x0AD5 U+2030 PER MILLE SIGN Publish #x0AD6 U+2032 MINUTES Publish #x0AD7 U+2033 SECONDS Publish #x0AD9 U+271D LATIN CROSS Publish #x0ADA - HEXAGRAM Publish #x0ADB - FILLED RECTANGLE BULLET Publish #x0ADC - FILLED LEFT TRIANGLE BULLET Publish #x0ADD - FILLED RIGHT TRIANGLE BULLET Publish #x0ADE - EM FILLED CIRCLE Publish #x0ADF - EM FILLED RECTANGLE Publish #x0AE0 - EN OPEN CIRCLE BULLET Publish #x0AE1 - EN OPEN SQUARE BULLET Publish #x0AE2 - OPEN RECTANGULAR BULLET Publish #x0AE3 - OPEN TRIANGULAR BULLET UP Publish #x0AE4 - OPEN TRIANGULAR BULLET DOWN Publish #x0AE5 - OPEN STAR Publish #x0AE6 - EN FILLED CIRCLE BULLET Publish #x0AE7 - EN FILLED SQUARE BULLET Publish #x0AE8 - FILLED TRIANGULAR BULLET UP Publish #x0AE9 - FILLED TRIANGULAR BULLET DOWN Publish #x0AEA - LEFT POINTER Publish #x0AEB - RIGHT POINTER Publish #x0AEC U+2663 CLUB Publish #x0AED U+2666 DIAMOND Publish #x0AEE U+2665 HEART Publish #x0AF0 U+2720 MALTESE CROSS Publish #x0AF1 U+2020 DAGGER Publish #x0AF2 U+2021 DOUBLE DAGGER Publish #x0AF3 U+2713 CHECK MARK, TICK Publish #x0AF4 U+2717 BALLOT CROSS Publish #x0AF5 U+266F MUSICAL SHARP Publish #x0AF6 U+266D MUSICAL FLAT Publish #x0AF7 U+2642 MALE SYMBOL Publish #x0AF8 U+2640 FEMALE SYMBOL Publish #x0AF9 U+260E TELEPHONE SYMBOL Publish #x0AFA U+2315 TELEPHONE RECORDER SYMBOL Publish #x0AFB U+2117 PHONOGRAPH COPYRIGHT SIGN Publish #x0AFC U+2038 CARET Publish #x0AFD U+201A SINGLE LOW QUOTATION MARK Publish #x0AFE U+201E DOUBLE LOW QUOTATION MARK Publish #x0AFF - CURSOR Publish #x0BA3 - LEFT CARET APL #x0BA6 - RIGHT CARET APL #x0BA8 - DOWN CARET APL #x0BA9 - UP CARET APL #x0BC0 - OVERBAR APL #x0BC2 U+22A5 DOWN TACK APL #x0BC3 - UP SHOE (CAP) APL #x0BC4 U+230A DOWN STILE APL #x0BC6 - UNDERBAR APL #x0BCA U+2218 JOT APL #x0BCC U+2395 QUAD APL #x0BCE U+22A4 UP TACK APL #x0BCF U+25CB CIRCLE APL #x0BD3 U+2308 UP STILE APL #x0BD6 - DOWN SHOE (CUP) APL #x0BD8 - RIGHT SHOE APL #x0BDA - LEFT SHOE APL #x0BDC U+22A2 LEFT TACK APL #x0BFC U+22A3 RIGHT TACK APL #x0CDF U+2017 DOUBLE LOW LINE Hebrew #x0CE0 U+05D0 HEBREW LETTER ALEF Hebrew #x0CE1 U+05D1 HEBREW LETTER BET Hebrew #x0CE2 U+05D2 HEBREW LETTER GIMEL Hebrew #x0CE3 U+05D3 HEBREW LETTER DALET Hebrew #x0CE4 U+05D4 HEBREW LETTER HE Hebrew #x0CE5 U+05D5 HEBREW LETTER VAV Hebrew #x0CE6 U+05D6 HEBREW LETTER ZAYIN Hebrew #x0CE7 U+05D7 HEBREW LETTER HET Hebrew #x0CE8 U+05D8 HEBREW LETTER TET Hebrew #x0CE9 U+05D9 HEBREW LETTER YOD Hebrew #x0CEA U+05DA HEBREW LETTER FINAL KAF Hebrew #x0CEB U+05DB HEBREW LETTER KAF Hebrew #x0CEC U+05DC HEBREW LETTER LAMED Hebrew #x0CED U+05DD HEBREW LETTER FINAL MEM Hebrew #x0CEE U+05DE HEBREW LETTER MEM Hebrew #x0CEF U+05DF HEBREW LETTER FINAL NUN Hebrew #x0CF0 U+05E0 HEBREW LETTER NUN Hebrew #x0CF1 U+05E1 HEBREW LETTER SAMEKH Hebrew #x0CF2 U+05E2 HEBREW LETTER AYIN Hebrew #x0CF3 U+05E3 HEBREW LETTER FINAL PE Hebrew #x0CF4 U+05E4 HEBREW LETTER PE Hebrew #x0CF5 U+05E5 HEBREW LETTER FINAL TSADI Hebrew #x0CF6 U+05E6 HEBREW LETTER TSADI Hebrew #x0CF7 U+05E7 HEBREW LETTER QOF Hebrew #x0CF8 U+05E8 HEBREW LETTER RESH Hebrew #x0CF9 U+05E9 HEBREW LETTER SHIN Hebrew #x0CFA U+05EA HEBREW LETTER TAV Hebrew #x0DA1 U+0E01 THAI CHARACTER KO KAI Thai #x0DA2 U+0E02 THAI CHARACTER KHO KHAI Thai #x0DA3 U+0E03 THAI CHARACTER KHO KHUAT Thai #x0DA4 U+0E04 THAI CHARACTER KHO KHWAI Thai #x0DA5 U+0E05 THAI CHARACTER KHO KHON Thai #x0DA6 U+0E06 THAI CHARACTER KHO RAKHANG Thai #x0DA7 U+0E07 THAI CHARACTER NGO NGU Thai #x0DA8 U+0E08 THAI CHARACTER CHO CHAN Thai #x0DA9 U+0E09 THAI CHARACTER CHO CHING Thai #x0DAA U+0E0A THAI CHARACTER CHO CHANG Thai #x0DAB U+0E0B THAI CHARACTER SO SO Thai #x0DAC U+0E0C THAI CHARACTER CHO CHOE Thai #x0DAD U+0E0D THAI CHARACTER YO YING Thai #x0DAE U+0E0E THAI CHARACTER DO CHADA Thai #x0DAF U+0E0F THAI CHARACTER TO PATAK Thai #x0DB0 U+0E10 THAI CHARACTER THO THAN Thai #x0DB1 U+0E11 THAI CHARACTER THO NANGMONTHO Thai #x0DB2 U+0E12 THAI CHARACTER THO PHUTHAO Thai #x0DB3 U+0E13 THAI CHARACTER NO NEN Thai #x0DB4 U+0E14 THAI CHARACTER DO DEK Thai #x0DB5 U+0E15 THAI CHARACTER TO TAO Thai #x0DB6 U+0E16 THAI CHARACTER THO THUNG Thai #x0DB7 U+0E17 THAI CHARACTER THO THAHAN Thai #x0DB8 U+0E18 THAI CHARACTER THO THONG Thai #x0DB9 U+0E19 THAI CHARACTER NO NU Thai #x0DBA U+0E1A THAI CHARACTER BO BAIMAI Thai #x0DBB U+0E1B THAI CHARACTER PO PLA Thai #x0DBC U+0E1C THAI CHARACTER PHO PHUNG Thai #x0DBD U+0E1D THAI CHARACTER FO FA Thai #x0DBE U+0E1E THAI CHARACTER PHO PHAN Thai #x0DBF U+0E1F THAI CHARACTER FO FAN Thai #x0DC0 U+0E20 THAI CHARACTER PHO SAMPHAO Thai #x0DC1 U+0E21 THAI CHARACTER MO MA Thai #x0DC2 U+0E22 THAI CHARACTER YO YAK Thai #x0DC3 U+0E23 THAI CHARACTER RO RUA Thai #x0DC4 U+0E24 THAI CHARACTER RU Thai #x0DC5 U+0E25 THAI CHARACTER LO LING Thai #x0DC6 U+0E26 THAI CHARACTER LU Thai #x0DC7 U+0E27 THAI CHARACTER WO WAEN Thai #x0DC8 U+0E28 THAI CHARACTER SO SALA Thai #x0DC9 U+0E29 THAI CHARACTER SO RUSI Thai #x0DCA U+0E2A THAI CHARACTER SO SUA Thai #x0DCB U+0E2B THAI CHARACTER HO HIP Thai #x0DCC U+0E2C THAI CHARACTER LO CHULA Thai #x0DCD U+0E2D THAI CHARACTER O ANG Thai #x0DCE U+0E2E THAI CHARACTER HO NOKHUK Thai #x0DCF U+0E2F THAI CHARACTER PAIYANNOI Thai #x0DD0 U+0E30 THAI CHARACTER SARA A Thai #x0DD1 U+0E31 THAI CHARACTER MAI HAN-AKAT Thai #x0DD2 U+0E32 THAI CHARACTER SARA AA Thai #x0DD3 U+0E33 THAI CHARACTER SARA AM Thai #x0DD4 U+0E34 THAI CHARACTER SARA I Thai #x0DD5 U+0E35 THAI CHARACTER SARA II Thai #x0DD6 U+0E36 THAI CHARACTER SARA UE Thai #x0DD7 U+0E37 THAI CHARACTER SARA UEE Thai #x0DD8 U+0E38 THAI CHARACTER SARA U Thai #x0DD9 U+0E39 THAI CHARACTER SARA UU Thai #x0DDA U+0E3A THAI CHARACTER PHINTHU Thai #x0DDF U+0E3F THAI CURRENCY SYMBOL BAHT Thai #x0DE0 U+0E40 THAI CHARACTER SARA E Thai #x0DE1 U+0E41 THAI CHARACTER SARA AE Thai #x0DE2 U+0E42 THAI CHARACTER SARA O Thai #x0DE3 U+0E43 THAI CHARACTER SARA AI MAIMUAN Thai #x0DE4 U+0E44 THAI CHARACTER SARA AI MAIMALAI Thai #x0DE5 U+0E45 THAI CHARACTER LAKKHANGYAO Thai #x0DE6 U+0E46 THAI CHARACTER MAIYAMOK Thai #x0DE7 U+0E47 THAI CHARACTER MAITAIKHU Thai #x0DE8 U+0E48 THAI CHARACTER MAI EK Thai #x0DE9 U+0E49 THAI CHARACTER MAI THO Thai #x0DEA U+0E4A THAI CHARACTER MAI TRI Thai #x0DEB U+0E4B THAI CHARACTER MAI CHATTAWA Thai #x0DEC U+0E4C THAI CHARACTER THANTHAKHAT Thai #x0DED U+0E4D THAI CHARACTER NIKHAHIT Thai #x0DF0 U+0E50 THAI DIGIT ZERO Thai #x0DF1 U+0E51 THAI DIGIT ONE Thai #x0DF2 U+0E52 THAI DIGIT TWO Thai #x0DF3 U+0E53 THAI DIGIT THREE Thai #x0DF4 U+0E54 THAI DIGIT FOUR Thai #x0DF5 U+0E55 THAI DIGIT FIVE Thai #x0DF6 U+0E56 THAI DIGIT SIX Thai #x0DF7 U+0E57 THAI DIGIT SEVEN Thai #x0DF8 U+0E58 THAI DIGIT EIGHT Thai #x0DF9 U+0E59 THAI DIGIT NINE Thai #x0EA1 - HANGUL KIYEOG Korean #x0EA2 - HANGUL SSANG KIYEOG Korean #x0EA3 - HANGUL KIYEOG SIOS Korean #x0EA4 - HANGUL NIEUN Korean #x0EA5 - HANGUL NIEUN JIEUJ Korean #x0EA6 - HANGUL NIEUN HIEUH Korean #x0EA7 - HANGUL DIKEUD Korean #x0EA8 - HANGUL SSANG DIKEUD Korean #x0EA9 - HANGUL RIEUL Korean #x0EAA - HANGUL RIEUL KIYEOG Korean #x0EAB - HANGUL RIEUL MIEUM Korean #x0EAC - HANGUL RIEUL PIEUB Korean #x0EAD - HANGUL RIEUL SIOS Korean #x0EAE - HANGUL RIEUL TIEUT Korean #x0EAF - HANGUL RIEUL PHIEUF Korean #x0EB0 - HANGUL RIEUL HIEUH Korean #x0EB1 - HANGUL MIEUM Korean #x0EB2 - HANGUL PIEUB Korean #x0EB3 - HANGUL SSANG PIEUB Korean #x0EB4 - HANGUL PIEUB SIOS Korean #x0EB5 - HANGUL SIOS Korean #x0EB6 - HANGUL SSANG SIOS Korean #x0EB7 - HANGUL IEUNG Korean #x0EB8 - HANGUL JIEUJ Korean #x0EB9 - HANGUL SSANG JIEUJ Korean #x0EBA - HANGUL CIEUC Korean #x0EBB - HANGUL KHIEUQ Korean #x0EBC - HANGUL TIEUT Korean #x0EBD - HANGUL PHIEUF Korean #x0EBE - HANGUL HIEUH Korean #x0EBF - HANGUL A Korean #x0EC0 - HANGUL AE Korean #x0EC1 - HANGUL YA Korean #x0EC2 - HANGUL YAE Korean #x0EC3 - HANGUL EO Korean #x0EC4 - HANGUL E Korean #x0EC5 - HANGUL YEO Korean #x0EC6 - HANGUL YE Korean #x0EC7 - HANGUL O Korean #x0EC8 - HANGUL WA Korean #x0EC9 - HANGUL WAE Korean #x0ECA - HANGUL OE Korean #x0ECB - HANGUL YO Korean #x0ECC - HANGUL U Korean #x0ECD - HANGUL WEO Korean #x0ECE - HANGUL WE Korean #x0ECF - HANGUL WI Korean #x0ED0 - HANGUL YU Korean #x0ED1 - HANGUL EU Korean #x0ED2 - HANGUL YI Korean #x0ED3 - HANGUL I Korean #x0ED4 - HANGUL JONG SEONG KIYEOG Korean #x0ED5 - HANGUL JONG SEONG SSANG KIYEOG Korean #x0ED6 - HANGUL JONG SEONG KIYEOG SIOS Korean #x0ED7 - HANGUL JONG SEONG NIEUN Korean #x0ED8 - HANGUL JONG SEONG NIEUN JIEUJ Korean #x0ED9 - HANGUL JONG SEONG NIEUN HIEUH Korean #x0EDA - HANGUL JONG SEONG DIKEUD Korean #x0EDB - HANGUL JONG SEONG RIEUL Korean #x0EDC - HANGUL JONG SEONG RIEUL KIYEOG Korean #x0EDD - HANGUL JONG SEONG RIEUL MIEUM Korean #x0EDE - HANGUL JONG SEONG RIEUL PIEUB Korean #x0EDF - HANGUL JONG SEONG RIEUL SIOS Korean #x0EE0 - HANGUL JONG SEONG RIEUL TIEUT Korean #x0EE1 - HANGUL JONG SEONG RIEUL PHIEUF Korean #x0EE2 - HANGUL JONG SEONG RIEUL HIEUH Korean #x0EE3 - HANGUL JONG SEONG MIEUM Korean #x0EE4 - HANGUL JONG SEONG PIEUB Korean #x0EE5 - HANGUL JONG SEONG PIEUB SIOS Korean #x0EE6 - HANGUL JONG SEONG SIOS Korean #x0EE7 - HANGUL JONG SEONG SSANG SIOS Korean #x0EE8 - HANGUL JONG SEONG IEUNG Korean #x0EE9 - HANGUL JONG SEONG JIEUJ Korean #x0EEA - HANGUL JONG SEONG CIEUC Korean #x0EEB - HANGUL JONG SEONG KHIEUQ Korean #x0EEC - HANGUL JONG SEONG TIEUT Korean #x0EED - HANGUL JONG SEONG PHIEUF Korean #x0EEE - HANGUL JONG SEONG HIEUH Korean #x0EEF - HANGUL RIEUL YEORIN HIEUH Korean #x0EF0 - HANGUL SUNKYEONGEUM MIEUM Korean #x0EF1 - HANGUL SUNKYEONGEUM PIEUB Korean #x0EF2 - HANGUL PAN SIOS Korean #x0EF3 - HANGUL KKOGJI DALRIN IEUNG Korean #x0EF4 - HANGUL SUNKYEONGEUM PHIEUF Korean #x0EF5 - HANGUL YEORIN HIEUH Korean #x0EF6 - HANGUL ARAE A Korean #x0EF7 - HANGUL ARAE AE Korean #x0EF8 - HANGUL JONG SEONG PAN SIOS Korean #x0EF9 - HANGUL JONG SEONG KKOGJI DALRIN IEUNG Korean #x0EFA - HANGUL JONG SEONG YEORIN HIEUH Korean #x0EFF - KOREAN WON Korean #x13BC U+0152 LATIN CAPITAL LIGATURE OE Latin-9 #x13BD U+0153 LATIN SMALL LIGATURE OE Latin-9 #x13BE U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS Latin-9 #x20A0 - CURRENCY ECU SIGN Currency #x20A1 - CURRENCY COLON SIGN Currency #x20A2 - CURRENCY CRUZEIRO SIGN Currency #x20A3 - CURRENCY FRENCH FRANC SIGN Currency #x20A4 - CURRENCY LIRA SIGN Currency #x20A5 - CURRENCY MILL SIGN Currency #x20A6 - CURRENCY NAIRA SIGN Currency #x20A7 - CURRENCY PESETA SIGN Currency #x20A8 - CURRENCY RUPEE SIGN Currency #x20A9 - CURRENCY WON SIGN Currency #x20AA - CURRENCY NEW SHEQEL SIGN Currency #x20AB - CURRENCY DONG SIGN Currency #x20AC U+20AC CURRENCY EURO SIGN Currency xorgproto-2023.2/specs/scrnsaverproto/0000755000175000017500000000000014443010036015050 500000000000000xorgproto-2023.2/specs/scrnsaverproto/saver.xml0000644000175000017500000010464314443010026016641 00000000000000 %defs; ]> X11 Screen Saver Extension MIT X Consortium Proposed Standard X Version 11, Release &fullrelvers; Version 1.0 JimFulton Network Computing Devices, Inc KeithPackard X Consortium, Laboratory for Computer Science, Massachusetts Institute of Technology 1992 Massachusetts Institute of Technology Network Computing Devices, Inc Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. MIT and Network Computing Devices, Inc. make no representations about the suitability for any purpose of the information in this document. This documentation is provided "as is" without express or implied warranty. Introduction The X Window System provides support for changing the image on a display screen after a user-settable period of inactivity to avoid burning the cathode ray tube phosphors. However, no interfaces are provided for the user to control the image that is drawn. This extension allows an external "screen saver" client to detect when the alternate image is to be displayed and to provide the graphics. Current X server implementations typically provide at least one form of "screen saver" image. Historically, this has been a copy of the X logo drawn against the root background pattern. However, many users have asked for the mechanism to allow them to write screen saver programs that provide capabilities similar to those provided by other window systems. In particular, such users often wish to be able to display corporate logos, instructions on how to reactivate the screen, and automatic screen-locking utilities. This extension provides a means for writing such clients. Assumptions This extension exports the notion of a special screen saver window that is mapped above all other windows on a display. This window has the override-redirect attribute set so that it is not subject to manipulation by the window manager. Furthermore, the X identifier for the window is never returned by QueryTree requests on the root window, so it is typically not visible to other clients. Overview The core SetScreenSaver request can be used to set the length of time without activity on any input devices after which the screen saver should "activate" and alter the image on the screen. This image periodically "cycles" to reduce the length of time that any particular pixel is illuminated. Finally, the screen saver is "deactivated" in response to activity on any of the input devices or particular X requests. Screen saving is typically done by disabling video output to the display tube or by drawing a changing pattern onto the display. If the server chooses the latter approach, a window with a special identifier is created and mapped at the top of the stacking order where it remains until the screen saver deactivates. At this time, the window is unmapped and is not accessible to any client requests. The server's default mechanism is referred to as the internal screen saver. An external screen saver client requires a means of determining the window id for the screen saver window and setting the attributes (e.g. size, location, visual, colormap) to be used when the window is mapped. These requirements form the basis of this extension. Issues This extension raises several interesting issues. First is the question of what should be done if some other client has the server grabbed when the screen saver is supposed to activate? This commonly occurs with window managers that automatically ask the user to position a window when it is first mapped by grabbing the server and drawing XORed lines on the root window. Second, a screen saver program must control the actual RGB values sent to the display tube to ensure that the values change periodically to avoid phosphor burn in. Thus, the client must have a known colormap installed whenever the screen saver window is displayed. To prevent screen flashing, the visual type of the screen saver window should also be controllable. Third, some implementations may wish to destroy the screen saver window when it is not mapped so that it need not be avoided during event delivery. Thus, screen saver clients may find that the requests that reference the screen saver window may fail when the window is not displayed. Protocol The Screen Saver extension is as follows: Types In addition to the common types described in the core protocol, the following type is used in the request and event definitions in subsequent sections. Name Value SCREENSAVEREVENT ScreenSaverNotify, ScreenSaverCycle Errors The Screen Saver extension adds no errors beyond the core protocol. Requests The Screen Saver extension adds the following requests: ScreenSaverQueryVersion client-major-version: CARD8 client-minor-version: CARD8 -> server-major-version: CARD8 server-minor-version: CARD8 This request allows the client and server to determine which version of the protocol should be used. The client sends the version that it prefers; if the server understands that version, it returns the same values and interprets subsequent requests for this extension according to the specified version. Otherwise, the server returns the closest version of the protocol that it can support and interprets subsequent requests according to that version. This document describes major version 1, minor version 0; the major and minor revision numbers should only be incremented in response to incompatible and compatible changes, respectively. ScreenSaverQueryInfo drawable DRAWABLE saver-window: WINDOW state: {Disabled, Off, On} kind: {Blanked, Internal, External} til-or-since: CARD32 idle: CARD32 event-mask: SETofSCREENSAVEREVENT Errors: Drawable This request returns information about the state of the screen saver on the screen associated with drawable. The saver-window is the XID that is associated with the screen saver window. This window is not guaranteed to exist except when external screen saver is active. Although it is a child of the root, this window is not returned by QueryTree requests on the root. Whenever this window is mapped, it is always above any of its siblings in the stacking order. XXX - TranslateCoords? The state field specifies whether or not the screen saver is currently active and how the til-or-since value should be interpreted: Off The screen is not currently being saved; til-or-since specifies the number of milliseconds until the screen saver is expected to activate. On The screen is currently being saved; til-or-since specifies the number of milliseconds since the screen saver activated. Disabled The screen saver is currently disabled; til-or-since is zero. The kind field specifies the mechanism that either is currently being used or would have been were the screen being saved: Blanked The video signal to the display monitor was disabled. Internal A server-dependent, built-in screen saver image was displayed; either no client had set the screen saver window attributes or a different client had the server grabbed when the screen saver activated. External The screen saver window was mapped with attributes set by a client using the ScreenSaverSetAttributes request. The idle field specifies the number of milliseconds since the last input was received from the user on any of the input devices. The event-mask field specifies which, if any, screen saver events this client has requested using ScreenSaverSelectInput. If drawable is not a valid drawable identifier, a Drawable error is returned and the request is ignored. ScreenSaverSelectInput drawable: DRAWABLE event-mask: SETofSCREENSAVEREVENT Errors: Drawable, Match This request specifies which Screen Saver extension events on the screen associated with drawable should be generated for this client. If no bits are set in event-mask, then no events will be generated. Otherwise, any combination of the following bits may be set: ScreenSaverNotify If this bit is set, ScreenSaverNotify events are generated whenever the screen saver is activated or deactivated. ScreenSaverCycle If this bit is set, ScreenSaverNotify events are generated whenever the screen saver cycle interval passes. If drawable is not a valid drawable identifier, a Drawable error is returned. If any undefined bits are set in event-mask, a Value error is returned. If an error is returned, the request is ignored. ScreenSaverSetAttributes drawable: DRAWABLE class: {InputOutput, InputOnly, CopyFromParent} depth: CARD8 visual: VISUALID or CopyFromParent x, y: INT16 width, height, border-width: CARD16 value-mask: BITMASK value-list: LISTofVALUE Access, Window, Pixmap, Colormap, Cursor, Match, Value, Alloc This request sets the attributes that this client would like to see used in creating the screen saver window on the screen associated with drawable. If another client currently has the attributes set, an Access error is generated and the request is ignored. Otherwise, the specified window attributes are checked as if they were used in a core CreateWindow request whose parent is the root. The override-redirect field is ignored as it is implicitly set to True. If the window attributes result in an error according to the rules for CreateWindow, the request is ignored. Otherwise, the attributes are stored and will take effect on the next activation that occurs when the server is not grabbed by another client. Any resources specified for the background-pixmap or cursor attributes may be freed immediately. The server is free to copy the background-pixmap or cursor resources or to use them in place; therefore, the effect of changing the contents of those resources is undefined. If the specified colormap no longer exists when the screen saver activates, the parent's colormap is used instead. If no errors are generated by this request, any previous screen saver window attributes set by this client are released. When the screen saver next activates and the server is not grabbed by another client, the screen saver window is created, if necessary, and set to the specified attributes and events are generated as usual. The colormap associated with the screen saver window is installed. Finally, the screen saver window is mapped. The window remains mapped and at the top of the stacking order until the screen saver is deactivated in response to activity on any of the user input devices, a ForceScreenSaver request with a value of Reset, or any request that would cause the window to be unmapped. If the screen saver activates while the server is grabbed by another client, the internal saver mechanism is used. The ForceScreenSaver request may be used with a value of Active to deactivate the internal saver and activate the external saver. If the screen saver client's connection to the server is broken while the screen saver is activated and the client's close down mode has not been RetainPermanent or RetainTemporary, the current screen saver is deactivated and the internal screen saver is immediately activated. When the screen saver deactivates, the screen saver window's colormap is uninstalled and the window is unmapped (except as described below). The screen saver XID is disassociated with the window and the server may, but is not required to, destroy the window along with any children. When the screen saver is being deactivated and then immediately reactivated (such as when switching screen savers), the server may leave the screen saver window mapped (typically to avoid generating exposures). ScreenSaverUnsetAttributes drawble: DRAWABLE Errors: Drawable This request notifies the server that this client no longer wishes to control the screen saver window. Any screen saver attributes set by this client and any descendents of the screen saver window created by this client should be released immediately if the screen saver is not active, else upon deactivation. This request is ignored if the client has not previously set the screen saver window attributes. Events The Screen Saver extension adds one event: ScreenSaverNotify root: WINDOW window: WINDOW state: {Off, On, Cycle} kind: { Blanked, Internal , External } forced: BOOL time: TIMESTAMP This event is delivered to clients that have requested ScreenSaverNotify events using the ScreenSaverSelectInput request whenever the screen saver activates or deactivates. The root field specifies root window of the screen for which the event was generated. The window field specifies the value that is returned by ScreenSaverQueryInfo as the identifier for the screen saver window. This window is not required to exist if the external screen saver is not active. The state field specifies the cause of the event: Off The screen saver deactivated; this event is sent if the client has set the ScreenSaverNotify bit in its event mask. On The screen saver activated. This event is sent if the client has set the ScreenSaverNotify bit in its event mask. Cycle The cycle interval passed and the client is expected to change the image on the screen. This event is sent if the client has set the ScreenSaverCycle bit in its event mask. If state is set to On or Off then forced indicates whether or not activation or deactivation was caused by a core ForceScreenSaver request; otherwise, forced is set to False. The kind field specifies mechanism that was used to save the screen when the screen saver was activated, as described in ScreenSaverQueryInfo. The time field indicates the server time when the event was generated. Encoding Please refer to the X11 Protocol Encoding document as this document uses conventions established there. The name of this extension is "SCREEN-SAVER". Common Types SETofSCREENSAVEREVENT #x00000001 ScreenSaverNotifyMask #x00000002 ScreenSaverCycleMask Requests ScreenSaverQueryVersion 1 CARD8 screen saver opcode 1 0 minor opcode 2 2 request length 1 CARD8 client major version 1 CARD8 client minor version 2 unused -> 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 CARD8 server major version 1 CARD8 server minor version 22 unused ScreenSaverQueryInfo 1 CARD8 screen saver opcode 1 1 minor opcode 2 2 request length 4 DRAWABLE drawable associated with screen -> 1 1 Reply 1 CARD8 state 0 Off 1 On 3 Disabled 2 CARD16 sequence number 4 0 reply length 4 WINDOW saver window 4 CARD32 milliseconds until saver or since saver 4 CARD32 milliseconds since last user device input 4 SETofSCREENSAVEREVENT event mask 1 CARD8 kind 0 Blanked 1 Internal 2 External 10 unused ScreenSaverSelectInput 1 CARD8 screen saver opcode 1 2 minor opcode 2 3 request length 4 DRAWABLE drawable associated with screen 4 SETofSCREENSAVEREVENT event mask ScreenSaverSetAttributes 1 CARD8 screen saver opcode 1 3 minor opcode 2 6+n request length 4 DRAWABLE drawable associated with screen 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 CARD16 border-width 1 class 0 CopyFromParent 1 InputOutput 2 InputOnly 1 CARD8 depth 4 VISUALID visual 0 CopyFromParent 4 BITMASK value-mask (has n bits set to 1) encodings are the same as for core CreateWindow 4n LISTofVALUE value-list encodings are the same as for core CreateWindow ScreenSaverUnsetAttributes 1 CARD8 screen saver opcode 1 4 minor opcode 2 3 request length 4 DRAWABLE drawable associated with screen Events ScreenSaverNotify 1 CARD8 code assigned by core 1 CARD8 state 0 Off 1 On 2 Cycle 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW root 4 WINDOW screen saver window 1 CARD8 kind 0 Blanked 1 Internal 2 External 1 BOOL forced 14 unused Inter-Client Communications Conventions Screen saver clients should create at least one resource value whose identifier can be stored in a property named _SCREEN_SAVER_ID on the root of each screen it is managing. This property should have one 32-bit value corresponding to the resource identifier; the type of the property should indicate the type of the resource and should be one of the following: WINDOW, PIXMAP, CURSOR, FONT, or COLORMAP. C language binding The C binding for this extension simply provide access to the protocol; they add no semantics beyond what is described above. The include file for this extension is <X11/extensions/scrnsaver.h>. Bool XScreenSaverQueryExtension Display *display int *event_base int *error_base This routine returns True if the specified display supports the SCREEN-SAVER extension; otherwise it returns False. If the extension is supported, the event number for ScreenSaverNotify events is returned in the value pointed to by event_base. Since no additional errors are defined by this extension, the results of error_base are not defined. Status XScreenSaverQueryVersion Display *display int *major int *minor If the specified display supports the extension, the version numbers of the protocol expected by the server are returned in major and minor and a non-zero value is returned. Otherwise, the arguments are not set and 0 is returned. XScreenSaverInfo * XScreenSaverAllocInfo() This routine allocates and returns an XScreenSaverInfo structure for use in calls to . All fields in the structure are initialized to zero. If insufficient memory is available, NULL is returned. The results of this routine can be released using XFree. Status XScreenSaverQueryInfo Display *display Drawable drawable XScreenSaverInfo *saver_info If the specified display supports the extension, information about the current state of the screen server is returned in saver_info and a non-zero value is returned. The XScreenSaverInfo structure is defined as follows: typedef struct { Window window; /* screen saver window */ int state; /* ScreenSaver{Off,On,Disabled} */ int kind; /* ScreenSaver{Blanked,Internal,External} */ unsigned long til_or_since; /* milliseconds */ unsigned long idle; /* milliseconds */ unsigned long event_mask; /* events */ } XScreenSaverInfo; See the ScreenSaverQueryInfo request for a description of the fields. If the extension is not supported, saver_info is not changed and 0 is returned. void XScreenSaverSelectInput Display *display Drawable drawable unsigned long event_mask If the specified display supports the extension, this routine asks that events related to the screen saver be generated for this client. The format of the events generated is: typedef struct { int type; /* of event */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came from a SendEvent request */ Display *display; /* Display the event was read from */ Window window; /* screen saver window */ Window root; /* root window of event screen */ int state; /* ScreenSaver{Off,On,Cycle} */ int kind; /* ScreenSaver{Blanked,Internal,External} */ Bool forced; /* extents of new region */ Time time; /* event timestamp */ } XScreenSaverNotifyEvent; See the definition of the ScreenSaverSelectInput request for descriptions of the allowed event masks. void XScreenSaverSetAttributes Display *dpy Drawable drawable int x int y unsigned int width unsigned int height unsigned int border_width int depth unsigned int class Visual *visual unsigned long valuemask XSetWindowAttributes *attributes If the specified display supports the extension, this routine sets the attributes to be used the next time the external screen saver is activated. See the definition of the ScreenSaverSetAttributes request for a description of each of the arguments. void XScreenSaverUnsetAttributes Display *display Drawable drawable If the specified display supports the extension, this routine instructs the server to discard any previous screen saver window attributes set by this client. Status XScreenSaverRegister Display *display int screen XID xid Atom type This routine stores the given XID in the _SCREEN_SAVER_ID property (of the given type) on the root window of the specified screen. It returns zero if an error is encountered and the property is not changed, otherwise it returns non-zero. Status XScreenSaverUnregister Display *display int screen This routine removes any _SCREEN_SAVER_ID from the root window of the specified screen. It returns zero if an error is encountered and the property is changed, otherwise it returns non-zero. Status XScreenSaverGetRegistered Display *display int screen XID *xid ATOM *type This routine returns the XID and type stored in the _SCREEN_SAVER_ID property on the root window of the specified screen. It returns zero if an error is encountered or if the property does not exist or is not of the correct format; otherwise it returns non-zero. xorgproto-2023.2/specs/scrnsaverproto/Makefile.am0000644000175000017500000000051114443010026017020 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = saver.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/scrnsaverproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/scrnsaverproto/Makefile.in0000644000175000017500000005545714443010031017050 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/scrnsaverproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = saver.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = saver.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/scrnsaverproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/scrnsaverproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/scrnsaverproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/SIAddresses/0000755000175000017500000000000014443010036014127 500000000000000xorgproto-2023.2/specs/SIAddresses/IPv6.md0000644000175000017500000000102514443010026015152 00000000000000## ServerInterpreted address definition for type "IPv6" The X.org Architecture Task Force reserves the ServerInterpreted address type of "IPv6" for use with IPv6 literal address formats. The syntax for the value will be defined as specified in RFC 3513 and the IETF RFC to be published based on the [current draft](http://www.ietf.org/internet-drafts/draft-ietf-ipv6-scoping-arch-00.txt). This address type specification will be formally issued once the IETF IPv6 Working Group issues the corresponding RFC. Version 0.9, March 2004xorgproto-2023.2/specs/SIAddresses/localuser.md0000644000175000017500000000162314443010026016363 00000000000000## Server-interpreted Authentication Types "localuser" and "localgroup" On systems which can determine in a secure fashion the credentials of a client process, the "localuser" and "localgroup" authentication methods provide access based on those credentials. The format of the values provided is platform specific. For POSIX & UNIX platforms, if the value starts with the character '#', the rest of the string shall be treated as a decimal uid or gid, otherwise the string is defined as a user name or group name. Systems offering this MUST not simply trust a user supplied value (such as an environment variable or IDENT protocol response). It is expected many systems will only support this for clients running on the same host using a local IPC transport. Examples: ``` xhost +SI:localuser:alanc ``` ``` xhost +SI:localuser:#1234 ``` ``` xhost +SI:localgroup:wheel ``` ``` xhost +SI:localgroup:#0 ``` xorgproto-2023.2/specs/SIAddresses/hostname.md0000644000175000017500000000113014443010026016201 00000000000000## ServerInterpreted address definition for type "hostname" A ServerInterpreted address with type "hostname" shall have a value representing a hostname as defined in [IETF RFC 2396](https://tools.ietf.org/html/rfc2396). Due to Mobile IP and dynamic DNS, the name service should be consulted at connection authentication time. Clients supporting Internationalized Domain Names must convert to ASCII Compatible Encoding as specified in the relevant IETF RFC's before use in the X11 protocol. Note that this definition of hostname does not allow use of literal IP addresses. Version 1.0, March 2004 xorgproto-2023.2/specs/SIAddresses/README0000644000175000017500000000034614443010026014731 00000000000000This directory contains the specifications of address types for the ServerInterpreted address family used in the ChangeHost and ListHosts requests in the X11 Protocol. See Chapter 9 of the X11 Protocol spec for more information. xorgproto-2023.2/specs/Makefile.am0000644000175000017500000000071514443010026013734 00000000000000SUBDIRS = \ bigreqsproto \ fontsproto \ kbproto \ recordproto \ scrnsaverproto \ xcmiscproto \ xextproto \ xproto EXTRA_DIST = \ printproto/xp_proto.book \ printproto/xp_proto.mif \ printproto/xp_proto.ps \ printproto/xp_protoIX.doc \ printproto/xp_protoTOC.doc \ printproto/xp_proto_cov.mif \ SIAddresses/hostname.md \ SIAddresses/IPv6.md \ SIAddresses/localuser.md \ SIAddresses/README xorgproto-2023.2/specs/printproto/0000755000175000017500000000000014443010036014176 500000000000000xorgproto-2023.2/specs/printproto/xp_proto.mif0000644000175000017500000617650314443010026016506 00000000000000 # Generated by FrameMaker xm5.0P3f # Options: # Paragraph Text # Paragraph Tags # Paragraph Formats # Font Information # Markers # Anchored Frames # Tables # Graphics and TextRect Layout # Master Page Items # Condition Catalog # Table Catalogs # Font Catalog # Paragraph Catalog # Document Template # Document Dictionary # Variables # > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of ColorCatalog > # end of Condition > # end of Condition > # end of Condition > # end of ConditionCatalog > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont \\t'> > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of Pgf > # end of PgfFont .. \\t'> > # end of TabStop > # end of Pgf > # end of PgfFont ... \\t'> > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont )'> > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont . '> > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont . '> > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfCatalog > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of FontCatalog > # end of Ruling > # end of Ruling > # end of Ruling > # end of Ruling > # end of Ruling > # end of RulingCatalog > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblTitlePgf1 > # end of TblFormat > # end of TblCatalog > # end of View > # end of View > # end of View > # end of View > # end of View > # end of View > # end of Views '> > # end of VariableFormat <$daynum\>, <$year\>'> > # end of VariableFormat /<$daynum\>/<$shortyear\>'> > # end of VariableFormat <$daynum\>, <$year\> <$hour\>:<$minute00\> <$ampm\>'> > # end of VariableFormat <$daynum\>, <$year\>'> > # end of VariableFormat , <$monthname\> <$daynum01\>, <$year\>'> > # end of VariableFormat /<$daynum\>/<$shortyear\>'> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat > # end of VariableFormat of <$tblsheetcount\>)'> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat > # end of VariableFormats \xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat '> > # end of XRefFormat \xd3 on page\x11 <$pagenum\>.'> > # end of XRefFormat , \xd2 <$paratext\>,\xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat , \xd2 <$paratext\>,\xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat on page\x11 <$pagenum\>'> > # end of XRefFormat on page\x11 <$pagenum\>'> > # end of XRefFormat , \xd2 <$paratext\>,\xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat '> > # end of XRefFormat '> > # end of XRefFormat '> > # end of XRefFormat \xd3 '> > # end of XRefFormat > # end of XRefFormats > # end of Document xp_proto.mifIOM.doc'> > # end of BookComponent xp_proto.mifIX.doc'> > # end of BookComponent xp_proto.mifTC.doc'> > # end of BookComponent # end of InitialAutoNums > # end of Dictionary > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of DashedPattern > # end of PolyLine > # end of PolyLine > # end of Frame > # end of AFrames > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of Pgf > # end of TblColumnBody > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > > # end of Para > # end of CellContent > # end of Cell # end of Notes > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > > > > > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblTitlePgf1 > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblTitlePgf1 > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of PgfFont > # end of Pgf > # end of TblColumnH > # end of PgfFont > # end of Pgf > # end of TblColumnBody > # end of PgfFont > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblFormat # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > # end of Para > # end of CellContent > # end of Cell # end of Notes > # end of PgfFont > # end of Pgf > > # end of Para > # end of CellContent > # end of Cell > # end of Row > # end of TblBody > # end of Tbl > # end of Tbls > # end of DashedPattern > # end of TextRect > # end of TextRect > # end of PolyLine > # end of TextRect > # end of TextRect > # end of TextRect > # end of PolyLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of PolyLine > # end of TextRect > # end of PolyLine > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of PolyLine > # end of TextRect > # end of PolyLine > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of PolyLine > # end of TextRect > # end of PolyLine > # end of TextRect > # end of Page > # end of DashedPattern > # end of Font > # end of TextLine > # end of PolyLine > # end of Frame > # end of TextLine > # end of PolyLine > # end of Frame > # end of Page > # end of DashedPattern > # end of TextRect > # end of TextLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of TextLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of TextLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of TextLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > # end of Variable > # end of Variable > # end of Variable > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of Pgf > # end of Font > # end of Variable > # end of Font > # end of Font > # end of Variable > # end of Variable > > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of Pgf > # end of Variable > # end of Variable > # end of Variable > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of Pgf > # end of Variable > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of Pgf > # end of Variable > > # end of Para > # end of TextFlow # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf '> '> '> > > # end of Para > # end of TabStop > # end of TabStop > # end of Pgf '> '> '> > > # end of Para > # end of TabStop > # end of TabStop > # end of Pgf '> '> '> > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of Pgf > > # end of Para > # end of Pgf > > # end of Para > # end of Pgf <$numerics\><$alphabetics\>'> > > # end of Para > # end of Pgf > > # end of Para > # end of Pgf '> > > # end of Para > # end of Pgf > # end of Para > # end of TextFlow # end of Notes > # end of TabStop > # end of TabStop > # end of Pgf '> '> '> > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf '> '> '> > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > > > # end of Para > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > > > # end of Para > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Marker > # end of Font > > # end of Para > # end of Font > # end of Marker > # end of Font > > # end of Font > # end of Font > > > # end of Para > > > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > > # end of Para > > > # end of Para > > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > > > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Font > # end of Font > > > # end of Para > # end of Marker > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Pgf > > # end of Para > # end of Pgf > > # end of Para > # end of Pgf > > # end of Para > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > > > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Para > > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > > > # end of Font > > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Para > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Pgf > > > # end of Para > > # end of Para > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > > # end of Para > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > > > # end of Para > # end of XRef > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > # end of Font > > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > > # end of Para > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > > > # end of Para > # end of XRef > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > > # end of Para > # end of Pgf > # end of Marker > > # end of Para > # end of Pgf > > # end of Para > > > # end of Font > > # end of Font > > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of Marker > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > > # end of Para > > # end of Para > # end of Font > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > > # end of Para > > # end of Font > # end of Font > > > # end of Para > > > > # end of Para > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Para > > # end of Para > # end of Font > > # end of Para > > > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Para > > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker attributes'> > # end of Marker > > # end of Para > > > > # end of Para > > > > > > # end of Para > # end of Pgf > > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > > # end of Para > > # end of Para > > # end of Para > # end of Pgf > > > > # end of Para > > # end of Font > # end of Font > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > # end of Para > > > > # end of Para > # end of Marker > > # end of Para > > > > > > > > > # end of Para > # end of Marker > # end of Marker > > # end of Para > > > > # end of Para > > > # end of Para > > # end of Para > > > > > > # end of Para > # end of Font > # end of Font > > > > # end of Font > > # end of Font > > # end of Para > > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > > # end of Para > # end of Para > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Para > # end of Font > > # end of Para > # end of Marker > > > > # end of Para > # end of Marker > # end of Marker > > # end of Para > > # end of Para > # end of Font > > # end of Para > # end of Marker > > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > > # end of Font > # end of XRef > > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > > > > # end of Para > # end of Font > # end of Marker > # end of Marker > > # end of Para > > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > > > > > # end of Para > > > # end of Para > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Marker > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > # end of Font > # end of Font > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > > # end of Font > # end of Font > > # end of Para > # end of Marker > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > > > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Marker > > # end of Para > > > # end of Para > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > > # end of Para > # end of Font > # end of Font > > # end of Font > # end of Font > > > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Para > > # end of Font > # end of Font > # end of Font > # end of Font > > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > > > > # end of Para > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > > # end of Font > # end of Font > # end of Font > # end of Font > # end of Font > attributes'> > # end of Marker > > # end of Para > # end of Marker > > # end of Para > > > # end of Para > > > > # end of Font > # end of Font > > > > # end of Para > > # end of Para > # end of Pgf > > # end of Para > # end of PgfFont > # end of TabStop > # end of Pgf > > # end of Para > # end of Font > > # end of Font > > # end of Para > # end of Pgf > > # end of Para > > > > # end of Para > > > # end of Para > > > # end of Para > # end of Pgf > > # end of Para > > > # end of Para > > > # end of Para > # end of Pgf > > # end of Para > # end of Para > # end of Para > > # end of Para > > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Font > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of Pgf > # end of Para > # end of Para > # end of Font > # end of Font > > # end of Para > # end of Font > # end of Marker > # end of Font > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > > # end of Para > # end of Marker > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > > # end of Para > # end of Para > # end of TextFlow # End of MIFFile xorgproto-2023.2/specs/printproto/xp_proto.ps0000644000175000017500000071566514443010026016357 00000000000000%!PS-Adobe-3.0 %%BoundingBox: (atend) %%Pages: (atend) %%PageOrder: (atend) %%DocumentFonts: (atend) %%Creator: Frame 5.1 %%DocumentData: Clean7Bit %%EndComments %%BeginProlog %- %- Frame ps_prolog 5.0, for use with Frame 5.0 products %- This ps_prolog file is Copyright (c) 1986-1996 Adobe Systems, Incoporated. %- All rights reserved. This ps_prolog file may be freely copied and %- distributed in conjunction with documents created using FrameMaker, %- FrameMaker/SGML FrameReader and FrameViewer as long as this %- copyright notice is preserved. %- %- FrameMaker users specify the proper paper size for each print job in the %- "Print" dialog's "Printer Paper Size" "Width" and "Height~ fields. If the %- printer that the PS file is sent to does not support the requested paper %- size, or if there is no paper tray of the proper size currently installed, %- then the job will not be printed. The following flag, if set to true, will %- cause the job to print on the default paper in such cases. /FMAllowPaperSizeMismatch false def %- %- Frame products normally print colors as their true color on a color printer %- or as shades of gray, based on luminance, on a black-and white printer. The %- following flag, if set to true, forces all non-white colors to print as pure %- black. This has no effect on bitmap images. /FMPrintAllColorsAsBlack false def %- %- Frame products can either set their own line screens or use a printer's %- default settings. Three flags below control this separately for no %- separations, spot separations and process separations. If a flag %- is true, then the default printer settings will not be changed. If it is %- false, Frame products will use their own settings from a table based on %- the printer's resolution. /FMUseDefaultNoSeparationScreen true def /FMUseDefaultSpotSeparationScreen true def /FMUseDefaultProcessSeparationScreen false def %- %- For any given PostScript printer resolution, Frame products have two sets of %- screen angles and frequencies for printing process separations, which are %- recomended by Adobe. The following variable chooses the higher frequencies %- when set to true or the lower frequencies when set to false. This is only %- effective if the appropriate FMUseDefault...SeparationScreen flag is false. /FMUseHighFrequencyScreens true def %- %- The following is a set of predefined optimal frequencies and angles for various %- common dpi settings. This is taken from "Advances in Color Separation Using %- PostScript Software Technology," from Adobe Systems (3/13/89 P.N. LPS 0043) %- and corrolated with information which is in various PPD (4.0) files. %- %- The "dpiranges" figure is the minimum dots per inch device resolution which %- can support this setting. The "low" and "high" values are controlled by the %- setting of the FMUseHighFrequencyScreens flag above. The "TDot" flags control %- the use of the "Yellow Triple Dot" feature whereby the frequency id divided by %- three, but the dot function is "trippled" giving a block of 3x3 dots per cell. %- %- PatFreq is a compromise pattern frequency for ps Level 2 printers which is close %- to the ideal WYSIWYG pattern frequency of 9 repetitions/inch but does not beat %- (too badly) against the screen frequencies of any separations for that DPI. % This is computed by taking dpi/9 as the ideal pixels per repetition, and then % computing a tiling size in printer pixels for each of the four separations as % (dpi/screenFreq)*(cos(screenAngle)+sin(screenAngle)) Actually, this is the same % for Cyan and Magenta). Then, we take a "nice" LCM of the tile sizes close to % the desired pattern tile where the beat factor is not more than 2 or 3. % /dpiranges [ 2540 2400 1693 1270 1200 635 600 0 ] def /CMLowFreqs [ 100.402 94.8683 89.2289 100.402 94.8683 66.9349 63.2456 47.4342 ] def /YLowFreqs [ 95.25 90.0 84.65 95.25 90.0 70.5556 66.6667 50.0 ] def /KLowFreqs [ 89.8026 84.8528 79.8088 89.8026 84.8528 74.8355 70.7107 53.033 ] def /CLowAngles [ 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 71.5651 ] def /MLowAngles [ 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 18.4349 ] def /YLowTDot [ true true false true true false false false ] def /CMHighFreqs [ 133.87 126.491 133.843 108.503 102.523 100.402 94.8683 63.2456 ] def /YHighFreqs [ 127.0 120.0 126.975 115.455 109.091 95.25 90.0 60.0 ] def /KHighFreqs [ 119.737 113.137 119.713 128.289 121.218 89.8026 84.8528 63.6395 ] def /CHighAngles [ 71.5651 71.5651 71.5651 70.0169 70.0169 71.5651 71.5651 71.5651 ] def /MHighAngles [ 18.4349 18.4349 18.4349 19.9831 19.9831 18.4349 18.4349 18.4349 ] def /YHighTDot [ false false true false false true true false ] def /PatFreq [ 10.5833 10.0 9.4055 10.5833 10.0 10.5833 10.0 9.375 ] def %- %- PostScript Level 2 printers contain an "Accurate Screens" feature which can %- improve process separation rendering at the expense of compute time. This %- flag is ignored by PostScript Level 1 printers. /FMUseAcccurateScreens true def %- %- The following PostScript procedure defines the spot function that Frame %- products will use for process separations. You may un-comment-out one of %- the alternative functions below, or use your own. %- %- Dot function /FMSpotFunction {abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1 sub } {dup mul exch dup mul add 1 exch sub }ifelse } def %- %- Line function %- /FMSpotFunction { pop } def %- %- Elipse function %- /FMSpotFunction { dup 5 mul 8 div mul exch dup mul exch add %- sqrt 1 exch sub } def %- %- /FMversion (5.0) def % matches PS_VERSION in fmprintdriver % PostScript Level 1 = true, 2 = false /fMLevel1 /languagelevel where {pop languagelevel} {1} ifelse 2 lt def % Set up Color vs. Black-and-White /FMPColor fMLevel1 { false /colorimage where {pop pop true} if } { % statusdict /processcolors known { % statusdict /processcolors get exec % } {1} ifelse % 1 gt true } ifelse def /FrameDict 400 dict def % should check this value each time changes made % % For NeWS we add a fake errordict, so we can psh files % systemdict /errordict known not {/errordict 10 dict def errordict /rangecheck {stop} put} if %- The readline in PS 23.0 doesn't recognize cr's as nl's on AppleTalk FrameDict /tmprangecheck errordict /rangecheck get put % save old rangecheck errordict /rangecheck {FrameDict /bug true put} put % will flag bug found FrameDict /bug false put % flag bug not found mark % since we're not sure what will happen next %- Some PS machines read past the CR, so keep the following 3 lines together! currentfile 5 string readline 00 0000000000 cleartomark % junk from readline and rangecheck errordict /rangecheck FrameDict /tmprangecheck get put % restore rangecheck FrameDict /bug get { % redefine readline if last one got a rangecheck /readline { /gstring exch def /gfile exch def /gindex 0 def { gfile read pop % get a char dup 10 eq {exit} if % exit if LF dup 13 eq {exit} if % exit if CR gstring exch gindex exch put % store it away /gindex gindex 1 add def % bump index } loop pop % eol character gstring 0 gindex getinterval true % simulate real readline } bind def } if % outer-world defs /FMshowpage /showpage load def /FMquit /quit load def /FMFAILURE { % enter with two error strings on the stack dup = flush % send a copy of the message to the console FMshowpage % msg on a page by itself, so it can't be, say, black on black /Helvetica findfont 12 scalefont setfont 72 200 moveto show 72 220 moveto show FMshowpage % we might be in the middle of some EPS, where "showpage" FMquit % and "quit" are redefined } def % only used once at most, so no bind /FMVERSION { FMversion ne { (Adobe Frame product version does not match ps_prolog! Check installation;) (also check ~/fminit and ./fminit for old versions) FMFAILURE } if } def % only used at startup, so no bind /FMBADEPSF { % Call with bad operator name on stack (as a string) (Adobe's PostScript Language Reference Manual, 2nd Edition, section H.2.4) (says your EPS file is not valid, as it calls X ) dup dup (X) search pop exch pop exch pop length % parmstr errstr errstr indx 5 -1 roll % errstr errstr index parmstr putinterval % errstr FMFAILURE } def % standard concatprocs routine /fmConcatProcs { /proc2 exch cvlit def/proc1 exch cvlit def/newproc proc1 length proc2 length add array def newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval newproc cvx }def % Put all local variables here in alphabetical order. FrameDict begin [ /ALDsave /FMdicttop /FMoptop /FMpointsize /FMsaveobject /b /bitmapsave /blut /bpside /bs /bstring /bwidth /c /cf /cs /cynu /depth /edown /fh /fillvals /fw /fx /fy /g /gfile /gindex /grnt /gryt /gstring /height /hh /i /im /indx /is /k /kk /landscape /lb /len /llx /lly /m /magu /manualfeed /n /offbits /onbits /organgle /orgbangle /orgbfreq /orgbproc /orgbxfer /orgfreq /orggangle /orggfreq /orggproc /orggxfer /orgmatrix /orgproc /orgrangle /orgrfreq /orgrproc /orgrxfer /orgxfer /pagesave /paperheight /papersizedict /paperwidth /pos /pwid /r /rad /redt /sl /str /tran /u /urx /ury /val /width /width /ws /ww /x /x1 /x2 /xindex /xpoint /xscale /xx /y /y1 /y2 /yelu /yindex /ypoint /yscale /yy ] { 0 def } forall % Start of PDF/Acrobat support % Bind def /FmBD {bind def} bind def systemdict /pdfmark known { /fMAcrobat true def % FmPD is a conditional PDFMark /FmPD /pdfmark load def % FmPT is a show text operator which only show up when distiller is active /FmPT /show load def % FmPD2 and FmPA are Acrobat 2.0-specific currentdistillerparams /CoreDistVersion get 2000 ge { % FmPD2 is like FmPD but for Acrobat 2.0-specific PDF /FmPD2 /pdfmark load def % x y/name FmPA % is equivalent to % [/Dest/name/View[/FitH x y FmDC exch pop]/DEST FmPD % It is a shortcut for pagragraph Uinique ID designators whic occurr commonly. /FmPA { mark exch /Dest exch 5 3 roll /View [ /XYZ null 6 -2 roll FmDC exch pop null] /DEST FmPD }FmBD } { % These are No-Ops for Distiller 1.0 /FmPD2 /cleartomark load def /FmPA {pop pop pop}FmBD } ifelse } { % these are the No-Ops for regular PostScript /fMAcrobat false def /FmPD /cleartomark load def /FmPD2 /cleartomark load def /FmPT /pop load def /FmPA {pop pop pop}FmBD } ifelse % This convert a set of X Y coordinates from the current user space to the default % PostScript coordinates needed by some pdfmark variants. We also convert to % integer because the distiller doesn't always like floats! /FmDC { transform fMDefaultMatrix itransform cvi exch cvi exch }FmBD % This converts four numbers into a bounding box making sure the first two are maller than the last two /FmBx { dup 3 index lt {3 1 roll exch} if 1 index 4 index lt {4 -1 roll 3 1 roll exch 4 1 roll} if }FmBD % End of PDF/Acrobat support % % Color separation code % % Constants. /FMnone 0 def /FMcyan 1 def /FMmagenta 2 def /FMyellow 3 def /FMblack 4 def /FMcustom 5 def /fMNegative false def % we are inverting the page % Variables. /FrameSepIs FMnone def % separation we are printing % If FrameSepIs is FMcustom, this is the custom color /FrameSepBlack 0 def /FrameSepYellow 0 def /FrameSepMagenta 0 def /FrameSepCyan 0 def /FrameSepRed 1 def /FrameSepGreen 1 def /FrameSepBlue 1 def /FrameCurGray 1 def /FrameCurPat null def /FrameCurColors [ 0 0 0 1 0 0 0 ] def % c m y k r g b % Utility routines /FrameColorEpsilon .001 def % epsilon by which values can differ and sill be equal /eqepsilon { % v1 v2 eqeps bool sub dup 0 lt {neg} if FrameColorEpsilon le } bind def % are the cmyk and cmykrgb arrays on the stack the same color? /FrameCmpColorsCMYK { % [ c1 m1 y1 k1 ] [ c2 m2 y2 k2 r2 g2 b2] -> bool 2 copy 0 get exch 0 get eqepsilon { 2 copy 1 get exch 1 get eqepsilon { 2 copy 2 get exch 2 get eqepsilon { 3 get exch 3 get eqepsilon } {pop pop false} ifelse }{pop pop false} ifelse } {pop pop false} ifelse } bind def % are the rgb and cmykrgb arrays on the stack the same color? /FrameCmpColorsRGB { % [ r1 g1 b1 ] [ c2 m2 y2 k2 r2 g2 b2] -> bool 2 copy 4 get exch 0 get eqepsilon { 2 copy 5 get exch 1 get eqepsilon { 6 get exch 2 get eqepsilon }{pop pop false} ifelse } {pop pop false} ifelse } bind def % convert r g b to c m y k /RGBtoCMYK { % r g b 1 exch sub % r g y 3 1 roll % y r g 1 exch sub % y r m 3 1 roll % m y r 1 exch sub % m y c 3 1 roll % c m y 3 copy % c m y c m y 2 copy % c m y c m y m y le { pop } { exch pop } ifelse % c m y c min(m,y) 2 copy % c m y c min(m,y) c min(m,y) le { pop } { exch pop } ifelse % c m y min(c, min(m,y)) dup dup dup % c m y k k k k 6 1 roll % c k m y k k k 4 1 roll % c k m k y k k 7 1 roll % k c k m k y k sub % k c k m k y 6 1 roll % y k c k m k sub % y k c k m 5 1 roll % m y k c k sub % m y k c 4 1 roll % c m y k } bind def /CMYKtoRGB { % c m y k CMYKtoRGB r g b dup dup 4 -1 roll add % c m k k y+k 5 1 roll 3 -1 roll add % y+k c k m+k 4 1 roll add % m+k y+k c+k 1 exch sub dup 0 lt {pop 0} if 3 1 roll % r m+k y+k 1 exch sub dup 0 lt {pop 0} if exch % r b m+k 1 exch sub dup 0 lt {pop 0} if exch % r g b } bind def % Public routines % Happens at the top of each page that is a separation /FrameSepInit { 1.0 RealSetgray } bind def % Tell the separation code that this separation is for a custom color /FrameSetSepColor { % c m y k r g b /FrameSepBlue exch def /FrameSepGreen exch def /FrameSepRed exch def /FrameSepBlack exch def /FrameSepYellow exch def /FrameSepMagenta exch def /FrameSepCyan exch def /FrameSepIs FMcustom def setCurrentScreen } bind def % Tell the separation code that this separation is Cyan /FrameSetCyan { /FrameSepBlue 1.0 def /FrameSepGreen 1.0 def /FrameSepRed 0.0 def /FrameSepBlack 0.0 def /FrameSepYellow 0.0 def /FrameSepMagenta 0.0 def /FrameSepCyan 1.0 def /FrameSepIs FMcyan def setCurrentScreen } bind def % Tell the separation code that this separation is Magenta /FrameSetMagenta { /FrameSepBlue 1.0 def /FrameSepGreen 0.0 def /FrameSepRed 1.0 def /FrameSepBlack 0.0 def /FrameSepYellow 0.0 def /FrameSepMagenta 1.0 def /FrameSepCyan 0.0 def /FrameSepIs FMmagenta def setCurrentScreen } bind def % Tell the separation code that this separation is Yellow /FrameSetYellow { /FrameSepBlue 0.0 def /FrameSepGreen 1.0 def /FrameSepRed 1.0 def /FrameSepBlack 0.0 def /FrameSepYellow 1.0 def /FrameSepMagenta 0.0 def /FrameSepCyan 0.0 def /FrameSepIs FMyellow def setCurrentScreen } bind def % Tell the separation code that this separation is Black /FrameSetBlack { /FrameSepBlue 0.0 def /FrameSepGreen 0.0 def /FrameSepRed 0.0 def /FrameSepBlack 1.0 def /FrameSepYellow 0.0 def /FrameSepMagenta 0.0 def /FrameSepCyan 0.0 def /FrameSepIs FMblack def setCurrentScreen } bind def % Tell the separation code we are not doing a separation /FrameNoSep { % /FrameSepIs FMnone def setCurrentScreen } bind def % Initialize the separation code with all the custom colors we are % separating (not process colors) /FrameSetSepColors { % list of arrays of [c m y k r g b] count FrameDict begin [ exch 1 add 1 roll ] /FrameSepColors % array of arrays of colors we are separating exch def end } bind def % is this color array in the array of custom color separations? /FrameColorInSepListCMYK { % [ c m y k ] -> bool FrameSepColors { % color elem-of-array exch dup 3 -1 roll % color color elem FrameCmpColorsCMYK % color bool { pop true exit } if } forall % exits with either [color] or true dup true ne {pop false} if } bind def /FrameColorInSepListRGB { % [ r g b ] -> bool FrameSepColors { % color elem-of-array exch dup 3 -1 roll % color color elem FrameCmpColorsRGB % color bool { pop true exit } if } forall % exits with either [color] or true dup true ne {pop false} if } bind def % Level 1 color operators saved and redefined /RealSetgray /setgray load def /RealSetrgbcolor /setrgbcolor load def /RealSethsbcolor /sethsbcolor load def end % Setgray patch /setgray { % num FrameDict begin FrameSepIs FMnone eq { RealSetgray } { % go to white unless the current sep color is black FrameSepIs FMblack eq { RealSetgray } { FrameSepIs FMcustom eq FrameSepRed 0 eq and FrameSepGreen 0 eq and FrameSepBlue 0 eq and { RealSetgray } { 1 RealSetgray pop } ifelse } ifelse } ifelse end } bind def /setrgbcolor { % r g b FrameDict begin FrameSepIs FMnone eq { RealSetrgbcolor } { 3 copy [ 4 1 roll ] % r g b [ r g b ] FrameColorInSepListRGB { FrameSepBlue eq exch FrameSepGreen eq and exch FrameSepRed eq and { 0 } { 1 } ifelse } { FMPColor { RealSetrgbcolor currentcmykcolor } { RGBtoCMYK } ifelse FrameSepIs FMblack eq {1.0 exch sub 4 1 roll pop pop pop} { FrameSepIs FMyellow eq {pop 1.0 exch sub 3 1 roll pop pop} { FrameSepIs FMmagenta eq {pop pop 1.0 exch sub exch pop } { FrameSepIs FMcyan eq {pop pop pop 1.0 exch sub } {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse } ifelse RealSetgray } ifelse end } bind def /sethsbcolor { FrameDict begin FrameSepIs FMnone eq { RealSethsbcolor } { RealSethsbcolor % safe since we will overwrite the color state currentrgbcolor % r g b - Let PostsCript to the conversion. setrgbcolor % call our version } ifelse end } bind def FrameDict begin /setcmykcolor where { pop /RealSetcmykcolor /setcmykcolor load def } { /RealSetcmykcolor { 4 1 roll 3 { 3 index add 0 max 1 min 1 exch sub 3 1 roll} repeat RealSetrgbcolor pop } bind def } ifelse userdict /setcmykcolor { % c m y k FrameDict begin FrameSepIs FMnone eq { RealSetcmykcolor } { 4 copy [ 5 1 roll ] FrameColorInSepListCMYK { FrameSepBlack eq exch FrameSepYellow eq and exch FrameSepMagenta eq and exch FrameSepCyan eq and { 0 } { 1 } ifelse } { FrameSepIs FMblack eq {1.0 exch sub 4 1 roll pop pop pop} { FrameSepIs FMyellow eq {pop 1.0 exch sub 3 1 roll pop pop} { FrameSepIs FMmagenta eq {pop pop 1.0 exch sub exch pop } { FrameSepIs FMcyan eq {pop pop pop 1.0 exch sub } {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse } ifelse RealSetgray } ifelse end } bind put % Set up a prototype pattern for PostScript Level 2 fMLevel1 { % set up screen functions for the patterns in PS level 1 % each entry contains an angle, spot function, flipped spot function, % gray level and frequency multiplier. /patScreenDict 7 dict dup begin <0f1e3c78f0e1c387> [ 45 { pop } {exch pop} .5 2 sqrt] FmBD <0f87c3e1f0783c1e> [ 135 { pop } {exch pop} .5 2 sqrt] FmBD [ 0 { pop } dup .5 2 ] FmBD [ 90 { pop } dup .5 2 ] FmBD <8142241818244281> [ 45 { 2 copy lt {exch} if pop} dup .75 2 sqrt] FmBD <03060c183060c081> [ 45 { pop } {exch pop} .875 2 sqrt] FmBD <8040201008040201> [ 135 { pop } {exch pop} .875 2 sqrt] FmBD end def } { % prototype level 2 pattern dictionary % define some PostScript procedures for known jaggy patterns. /patProcDict 5 dict dup begin <0f1e3c78f0e1c387> { 3 setlinewidth -1 -1 moveto 9 9 lineto stroke 4 -4 moveto 12 4 lineto stroke -4 4 moveto 4 12 lineto stroke} bind def <0f87c3e1f0783c1e> { 3 setlinewidth -1 9 moveto 9 -1 lineto stroke -4 4 moveto 4 -4 lineto stroke 4 12 moveto 12 4 lineto stroke} bind def <8142241818244281> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke -1 -1 moveto 9 9 lineto stroke } bind def <03060c183060c081> { 1 setlinewidth -1 -1 moveto 9 9 lineto stroke 4 -4 moveto 12 4 lineto stroke -4 4 moveto 4 12 lineto stroke} bind def <8040201008040201> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke -4 4 moveto 4 -4 lineto stroke 4 12 moveto 12 4 lineto stroke} bind def end def /patDict 15 dict dup begin /PatternType 1 def % Always 1 for PS Level 2 /PaintType 2 def % Uncolored pattern /TilingType 3 def % constant spacing and faster tiling /BBox [ 0 0 8 8 ] def % bounding box /XStep 8 def % X offset /YStep 8 def % Y offset /PaintProc { begin patProcDict bstring known { patProcDict bstring get exec } { 8 8 true [1 0 0 -1 0 8] bstring imagemask } ifelse end } bind def end def } ifelse %combineColor puts together the current gray value (which could also be %a fraction of on bits for a fill pattern and the current color and calls %the appropriate function % /combineColor { FrameSepIs FMnone eq { graymode fMLevel1 or not { % Level 2 pattern [/Pattern [/DeviceCMYK]] setcolorspace FrameCurColors 0 4 getinterval aload pop FrameCurPat setcolor } { FrameCurColors 3 get 1.0 ge { FrameCurGray RealSetgray } { fMAcrobat not FMPColor graymode and and { 0 1 3 { FrameCurColors exch get 1 FrameCurGray sub mul } for RealSetcmykcolor } { 4 1 6 { FrameCurColors exch get graymode { 1 exch sub 1 FrameCurGray sub mul 1 exch sub } { 1.0 lt {FrameCurGray} {1} ifelse } ifelse } for RealSetrgbcolor } ifelse } ifelse } ifelse } { % separation case FrameCurColors 0 4 getinterval aload FrameColorInSepListCMYK { FrameSepBlack eq exch FrameSepYellow eq and exch FrameSepMagenta eq and exch FrameSepCyan eq and FrameSepIs FMcustom eq and { FrameCurGray } { 1 } ifelse } { FrameSepIs FMblack eq {FrameCurGray 1.0 exch sub mul 1.0 exch sub 4 1 roll pop pop pop} { FrameSepIs FMyellow eq {pop FrameCurGray 1.0 exch sub mul 1.0 exch sub 3 1 roll pop pop} { FrameSepIs FMmagenta eq {pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub exch pop } { FrameSepIs FMcyan eq {pop pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub } {pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse } ifelse graymode fMLevel1 or not { % Level 2 pattern [/Pattern [/DeviceGray]] setcolorspace FrameCurPat setcolor } { graymode not fMLevel1 and { % Level 1 patterns are either all there or not there at all dup 1 lt {pop FrameCurGray} if } if RealSetgray } ifelse } ifelse } bind def /savematrix { orgmatrix currentmatrix pop } bind def /restorematrix { orgmatrix setmatrix } bind def /fMDefaultMatrix matrix defaultmatrix def /fMatrix2 matrix def /dpi 72 0 fMDefaultMatrix dtransform dup mul exch dup mul add sqrt def % freq and sangle are used for ps Level 1 pattern building. /freq dpi dup 72 div round dup 0 eq {pop 1} if 8 mul div def /sangle 1 0 fMDefaultMatrix dtransform exch atan def sangle fMatrix2 rotate fMDefaultMatrix fMatrix2 concatmatrix dup 0 get /sflipx exch def 3 get /sflipy exch def % % screen index depending on dpi % - screenIndex smallint /screenIndex { 0 1 dpiranges length 1 sub { dup dpiranges exch get 1 sub dpi le {exit} {pop} ifelse } for } bind def % % These routines get the standard Adobe frequencies, angles, and spot functions % depending on the DPI % % - getCyanScreen freq angle spotfunction /getCyanScreen { FMUseHighFrequencyScreens { CHighAngles CMHighFreqs} {CLowAngles CMLowFreqs} ifelse screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load } bind def % % - getMagentaScreen freq angle spotFunction /getMagentaScreen { FMUseHighFrequencyScreens { MHighAngles CMHighFreqs } {MLowAngles CMLowFreqs} ifelse screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load } bind def % % - getYellowScreen freq angle spotFunction % note that some of these use a "tripple dot" function at 1/3 the frequency /getYellowScreen { FMUseHighFrequencyScreens { YHighTDot YHighFreqs} { YLowTDot YLowFreqs } ifelse screenIndex dup 3 1 roll get 3 1 roll get { 3 div {2 { 1 add 2 div 3 mul dup floor sub 2 mul 1 sub exch} repeat FMSpotFunction } } {/FMSpotFunction load } ifelse 0.0 exch } bind def % % - getBlackScreen freq angle spotFunction /getBlackScreen { FMUseHighFrequencyScreens { KHighFreqs } { KLowFreqs } ifelse screenIndex get 45.0 /FMSpotFunction load } bind def % % - getSpotScreen freq angle spotFunction /getSpotScreen { getBlackScreen } bind def % % - getCompositeScreen freq angle spotFunction /getCompositeScreen { getBlackScreen } bind def % FmSetScreen sets the screen for either PostScript Level 1 or Level 2 and optionally % sets the accuratescreens flag in the latter case % freq angle spotfunction FMSetScreen - /FMSetScreen fMLevel1 { /setscreen load }{ { 8 dict begin /HalftoneType 1 def /SpotFunction exch def /Angle exch def /Frequency exch def /AccurateScreens FMUseAcccurateScreens def currentdict end sethalftone } bind } ifelse def % This sets the default screen as was set at the beginning of the job % - setDefaultScreen - /setDefaultScreen { FMPColor { orgrxfer cvx orggxfer cvx orgbxfer cvx orgxfer cvx setcolortransfer } { orgxfer cvx settransfer } ifelse orgfreq organgle orgproc cvx setscreen } bind def % This sets the current screen depending on FrameSepIs % - setCurrentScreen - /setCurrentScreen { FrameSepIs FMnone eq { FMUseDefaultNoSeparationScreen { setDefaultScreen } { getCompositeScreen FMSetScreen } ifelse } { FrameSepIs FMcustom eq { FMUseDefaultSpotSeparationScreen { setDefaultScreen } { getSpotScreen FMSetScreen } ifelse } { FMUseDefaultProcessSeparationScreen { setDefaultScreen } { FrameSepIs FMcyan eq { getCyanScreen FMSetScreen } { FrameSepIs FMmagenta eq { getMagentaScreen FMSetScreen } { FrameSepIs FMyellow eq { getYellowScreen FMSetScreen } { getBlackScreen FMSetScreen } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } bind def end % End of Color separation code % /FMDOCUMENT { % xscale yscale edown negative paperwidth paperheight manfeed numcopies numfonts array /FMfonts exch def % Why isn't this in FrameDict??? /#copies exch def FrameDict begin 0 ne /manualfeed exch def /paperheight exch def /paperwidth exch def 0 ne /fMNegative exch def % invert page 0 ne /edown exch def % flip page along y axis /yscale exch def /xscale exch def fMLevel1 { manualfeed {setmanualfeed} if /FMdicttop countdictstack 1 add def % some PS's leave junk on dict ... /FMoptop count def % ...or on operand stack... setpapername % This stuff may alter the transfer/screen/angle manualfeed {true} {papersize} ifelse % true->more work to do {manualpapersize} {false} ifelse % true->more work to do {desperatepapersize} {false} ifelse % true->failed completely {papersizefailure} if count -1 FMoptop {pop pop} for countdictstack -1 FMdicttop {pop end} for %...if tray not installed } {2 dict dup /PageSize [paperwidth paperheight] put manualfeed {dup /ManualFeed manualfeed put} if {setpagedevice} stopped {papersizefailure} if } ifelse % fMLevel1 FMPColor { currentcolorscreen cvlit /orgproc exch def /organgle exch def /orgfreq exch def cvlit /orgbproc exch def /orgbangle exch def /orgbfreq exch def cvlit /orggproc exch def /orggangle exch def /orggfreq exch def cvlit /orgrproc exch def /orgrangle exch def /orgrfreq exch def currentcolortransfer fMNegative { 1 1 4 { pop { 1 exch sub } fmConcatProcs 4 1 roll } for 4 copy setcolortransfer } if cvlit /orgxfer exch def cvlit /orgbxfer exch def cvlit /orggxfer exch def cvlit /orgrxfer exch def } { currentscreen cvlit /orgproc exch def /organgle exch def /orgfreq exch def currenttransfer fMNegative { { 1 exch sub } fmConcatProcs dup settransfer } if cvlit /orgxfer exch def } ifelse end % FrameDict } def % only used at startup, so no bind /FMBEGINPAGE { % pagewidth pageheight landscape color-arrays count FrameDict begin % for the whole page... /pagesave save def 3.86 setmiterlimit /landscape exch 0 ne def landscape { % check for landscape 90 rotate 0 exch dup /pwid exch def neg translate pop }{ pop /pwid exch def } ifelse edown { [-1 0 0 1 pwid 0] concat } if % paint the whole page in "white". If the page is inverted, then % this will actually paint our black background 0 0 moveto paperwidth 0 lineto paperwidth paperheight lineto 0 paperheight lineto 0 0 lineto 1 setgray fill xscale yscale scale /orgmatrix matrix def gsave % for CLIP } def % only used infrequently, so no bind /FMENDPAGE { grestore % for CLIP pagesave restore end % FrameDict showpage } def % only used infrequently, so no bind /FMFONTDEFINE { % fontindex nonstd_encoding fontname -- FrameDict begin findfont % fontindex nonstd_encoding font ReEncode % fontindex font' 1 index exch % fontindex fontindex font' definefont % fontindex font" FMfonts 3 1 roll % FMfonts fontindex font" put end % FrameDict } def % only used infrequently, so no bind /FMFILLS { FrameDict begin dup array /fillvals exch def dict /patCache exch def end % framedict } def % Only called once, so no bind /FMFILL { FrameDict begin fillvals 3 1 roll put end % FrameDict } def % only used infrequently, so no bind % Set things to a known, quiescent state, for when we switch to another writer /FMNORMALIZEGRAPHICS { newpath 1 setlinewidth 0 setlinecap 0 0 0 sethsbcolor 0 setgray % Not FMsetgray; only called outside of our environment! } bind def /FMBEGINEPSF { % llx lly urx ury fw fh fx fy end % FrameDict /FMEPSF save def % in userdict /showpage {} def % this def is in userdict %- See Adobe's "PostScript Language Reference Manual, 2nd Edition", page 714. %- "...the following operators MUST NOT be used in an EPS file:" (emphasis ours) /banddevice {(banddevice) FMBADEPSF} def /clear {(clear) FMBADEPSF} def /cleardictstack {(cleardictstack) FMBADEPSF} def % FMBADEPSF knows this is the longest! /copypage {(copypage) FMBADEPSF} def /erasepage {(erasepage) FMBADEPSF} def /exitserver {(exitserver) FMBADEPSF} def /framedevice {(framedevice) FMBADEPSF} def /grestoreall {(grestoreall) FMBADEPSF} def /initclip {(initclip) FMBADEPSF} def /initgraphics {(initgraphics) FMBADEPSF} def % /initmatrix {(initmatrix) FMBADEPSF} def % Aldus Freehand 4.0 epsf uses this harmlessly /quit {(quit) FMBADEPSF} def /renderbands {(renderbands) FMBADEPSF} def /setglobal {(setglobal) FMBADEPSF} def /setpagedevice {(setpagedevice) FMBADEPSF} def /setshared {(setshared) FMBADEPSF} def /startjob {(startjob) FMBADEPSF} def /lettertray {(lettertray) FMBADEPSF} def /letter {(letter) FMBADEPSF} def /lettersmall {(lettersmall) FMBADEPSF} def /11x17tray {(11x17tray) FMBADEPSF} def /11x17 {(11x17) FMBADEPSF} def /ledgertray {(ledgertray) FMBADEPSF} def /ledger {(ledger) FMBADEPSF} def /legaltray {(legaltray) FMBADEPSF} def /legal {(legal) FMBADEPSF} def /statementtray {(statementtray) FMBADEPSF} def /statement {(statement) FMBADEPSF} def /executivetray {(executivetray) FMBADEPSF} def /executive {(executive) FMBADEPSF} def /a3tray {(a3tray) FMBADEPSF} def /a3 {(a3) FMBADEPSF} def /a4tray {(a4tray) FMBADEPSF} def /a4 {(a4) FMBADEPSF} def /a4small {(a4small) FMBADEPSF} def /b4tray {(b4tray) FMBADEPSF} def /b4 {(b4) FMBADEPSF} def /b5tray {(b5tray) FMBADEPSF} def /b5 {(b5) FMBADEPSF} def FMNORMALIZEGRAPHICS % in case we're in a strange state [/fy /fx /fh /fw /ury /urx /lly /llx] {exch def} forall % neat trick fx fw 2 div add fy fh 2 div add translate rotate fw 2 div neg fh 2 div neg translate fw urx llx sub div fh ury lly sub div scale % then scale llx neg lly neg translate % then compensate for LL offset /FMdicttop countdictstack 1 add def % high-water mark of dict stack /FMoptop count def % tricky! "/FMoptop" on stack } bind def /FMENDEPSF { count -1 FMoptop {pop pop} for % clear EPS junk from operand stack countdictstack -1 FMdicttop {pop end} for % ditto for dict stack FMEPSF restore FrameDict begin % for the whole page... } bind def FrameDict begin % put most defs here /setmanualfeed { %%BeginFeature *ManualFeed True statusdict /manualfeed true put %%EndFeature } bind def /max {2 copy lt {exch} if pop} bind def /min {2 copy gt {exch} if pop} bind def /inch {72 mul} def /pagedimen { % name width height paperheight sub abs 16 lt exch % 16pt is an arbitrary slop amount paperwidth sub abs 16 lt and {/papername exch def} {pop} ifelse } bind def /setpapername { % Already set up: paperwidth paperheight and manualfeed /papersizedict 14 dict def % one for /papername, one for /unknown papersizedict begin /papername /unknown def % in case no match /Letter 8.5 inch 11.0 inch pagedimen /LetterSmall 7.68 inch 10.16 inch pagedimen /Tabloid 11.0 inch 17.0 inch pagedimen /Ledger 17.0 inch 11.0 inch pagedimen /Legal 8.5 inch 14.0 inch pagedimen /Statement 5.5 inch 8.5 inch pagedimen /Executive 7.5 inch 10.0 inch pagedimen /A3 11.69 inch 16.5 inch pagedimen /A4 8.26 inch 11.69 inch pagedimen /A4Small 7.47 inch 10.85 inch pagedimen /B4 10.125 inch 14.33 inch pagedimen /B5 7.16 inch 10.125 inch pagedimen end } bind def /papersize { papersizedict begin /Letter {lettertray letter} def /LetterSmall {lettertray lettersmall} def /Tabloid {11x17tray 11x17} def /Ledger {ledgertray ledger} def /Legal {legaltray legal} def /Statement {statementtray statement} def /Executive {executivetray executive} def /A3 {a3tray a3} def /A4 {a4tray a4} def /A4Small {a4tray a4small} def /B4 {b4tray b4} def /B5 {b5tray b5} def /unknown {unknown} def papersizedict dup papername known {papername} {/unknown} ifelse get end statusdict begin stopped end % return true if more work to do } bind def /manualpapersize { papersizedict begin /Letter {letter} def /LetterSmall {lettersmall} def /Tabloid {11x17} def /Ledger {ledger} def /Legal {legal} def /Statement {statement} def /Executive {executive} def /A3 {a3} def /A4 {a4} def /A4Small {a4small} def /B4 {b4} def /B5 {b5} def /unknown {unknown} def papersizedict dup papername known {papername} {/unknown} ifelse get end stopped % return true if more work to do } bind def /desperatepapersize { statusdict /setpageparams known { paperwidth paperheight 0 1 statusdict begin {setpageparams} stopped % return true iff failed end } {true} ifelse % return true iff failed } bind def /papersizefailure { FMAllowPaperSizeMismatch not { (The requested paper size is not available in any currently-installed tray) (Edit the PS file to "FMAllowPaperSizeMismatch true" to use default tray) FMFAILURE } if } def % % Font re-encoding to include diacritics % /DiacriticEncoding [ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quotesingle /parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one /two /three /four /five /six /seven /eight /nine /colon /semicolon /less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore /grave /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef /Adieresis /Aring /Ccedilla /Eacute /Ntilde /Odieresis /Udieresis /aacute /agrave /acircumflex /adieresis /atilde /aring /ccedilla /eacute /egrave /ecircumflex /edieresis /iacute /igrave /icircumflex /idieresis /ntilde /oacute /ograve /ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex /udieresis /dagger /.notdef /cent /sterling /section /bullet /paragraph /germandbls /registered /copyright /trademark /acute /dieresis /.notdef /AE /Oslash /.notdef /.notdef /.notdef /.notdef /yen /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /ordfeminine /ordmasculine /.notdef /ae /oslash /questiondown /exclamdown /logicalnot /.notdef /florin /.notdef /.notdef /guillemotleft /guillemotright /ellipsis /.notdef /Agrave /Atilde /Otilde /OE /oe /endash /emdash /quotedblleft /quotedblright /quoteleft /quoteright /.notdef /.notdef /ydieresis /Ydieresis /fraction /currency /guilsinglleft /guilsinglright /fi /fl /daggerdbl /periodcentered /quotesinglbase /quotedblbase /perthousand /Acircumflex /Ecircumflex /Aacute /Edieresis /Egrave /Iacute /Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex /.notdef /Ograve /Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde /macron /breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron ] def /ReEncode { % nonstd_encoding font -- reencodedfont dup % nonstd_encoding font font length % nonstd_encoding font dictlength dict begin % nonstd_encoding font % currentdict = newdict {% forall % forall is over font to be copied 1 index /FID ne % skip FID {def} % defs go into newfontdict which is currentdict {pop pop} ifelse % copy all keys including /Encoding } forall % nonstd_encoding 0 eq {/Encoding DiacriticEncoding def} if % -- currentdict % push a copy of the copied font dict onto operand stack end % font' % before popping it off dictionary stack } bind def FMPColor % setup procs for color printing { /BEGINBITMAPCOLOR { % iw, ih, width, height, theta, x y BITMAPCOLOR} def /BEGINBITMAPCOLORc { % iw, ih, width, height, theta, x y BITMAPCOLORc} def /BEGINBITMAPTRUECOLOR { BITMAPTRUECOLOR } def /BEGINBITMAPTRUECOLORc { BITMAPTRUECOLORc } def /BEGINBITMAPCMYK { BITMAPCMYK } def /BEGINBITMAPCMYKc { BITMAPCMYKc } def } % setup procs for B&W printing { /BEGINBITMAPCOLOR { % iw, ih, width, height, theta, x y BITMAPGRAY} def /BEGINBITMAPCOLORc { % iw, ih, width, height, theta, x y BITMAPGRAYc} def /BEGINBITMAPTRUECOLOR { BITMAPTRUEGRAY } def /BEGINBITMAPTRUECOLORc { BITMAPTRUEGRAYc } def /BEGINBITMAPCMYK { BITMAPCMYKGRAY } def /BEGINBITMAPCMYKc { BITMAPCMYKGRAYc } def } ifelse /K { % c m y k r g b SEPARATION FMPrintAllColorsAsBlack { dup 1 eq 2 index 1 eq and 3 index 1 eq and not {7 {pop} repeat 0 0 0 1 0 0 0} if } if FrameCurColors astore pop combineColor } bind def % % graymode is true if we are just doing gray fills, this way do not keep calling % setscreen. I don't know what the cost is on calling setscreen with defaults, but % this is easy to keep track of, and we know for sure we aren't wasting cycles. % if graymode is false and fMLevel1 is false, then we are using Level 2 patterns. % /graymode true def % used by level 1 patterns % defaultflip matrixentry fmGetFlit -> eith -1 or 1 fMLevel1 { /fmGetFlip { fMatrix2 exch get mul 0 lt { -1 } { 1 } ifelse } FmBD } if /setPatternMode { fMLevel1 { 2 index patScreenDict exch known { pop pop patScreenDict exch get aload pop % angle spot fspot gray mult freq % freq mul % times multiplier 5 2 roll % angle spot fspot gray mult freq -> gray freq angle spot fspot fMatrix2 currentmatrix 1 get 0 ne { 3 -1 roll 90 add 3 1 roll % landscape sflipx 1 fmGetFlip sflipy 2 fmGetFlip neg mul } { % portrait sflipx 0 fmGetFlip sflipy 3 fmGetFlip mul } ifelse 0 lt {exch pop} {pop} ifelse % take regular or flipped spot function fMNegative { {neg} fmConcatProcs % invert spot function } if bind % we need to bypass any screen filter and go directly to systemdict % to avoid problems with Kodak Precision calibration software % systemdict /setscreen get exec % leave graylevel on stack /FrameCurGray exch def } { /bwidth exch def /bpside exch def /bstring exch def /onbits 0 def /offbits 0 def freq sangle landscape {90 add} if {/ypoint exch def /xpoint exch def /xindex xpoint 1 add 2 div bpside mul cvi def /yindex ypoint 1 add 2 div bpside mul cvi def bstring yindex bwidth mul xindex 8 idiv add get 1 7 xindex 8 mod sub bitshift and 0 ne fMNegative {not} if {/onbits onbits 1 add def 1} {/offbits offbits 1 add def 0} ifelse } setscreen offbits offbits onbits add div fMNegative {1.0 exch sub} if /FrameCurGray exch def } ifelse } { % Level 2 version pop pop dup patCache exch known { patCache exch get } { % not in cache dup patDict /bstring 3 -1 roll put patDict 9 PatFreq screenIndex get div dup matrix scale % 9 orgfreq % organgle sin abs organgle cos abs add div % dup 16 div round dup 0 le {pop 1} if % Unix pattern size % dup 9 div round dup 0 le {pop 1} if % Mac larger (WYSIWYG) size % div div dup matrix scale % This gives Unix pattern size. makepattern dup patCache 4 -1 roll 3 -1 roll put } ifelse /FrameCurGray 0 def /FrameCurPat exch def } ifelse /graymode false def combineColor } bind def /setGrayScaleMode { graymode not { /graymode true def fMLevel1 { setCurrentScreen } if } if /FrameCurGray exch def combineColor } bind def /normalize { transform round exch round exch itransform } bind def /dnormalize { dtransform round exch round exch idtransform } bind def /lnormalize { % line widths are always odd so that arrow heads work 0 dtransform exch cvi 2 idiv 2 mul 1 add exch idtransform pop } bind def /H { % THICK lnormalize setlinewidth } bind def /Z { setlinecap } bind def % This is used to fill or stroke white behind a Level 2 pattern /PFill { graymode fMLevel1 or not { gsave 1 setgray eofill grestore } if } bind def /PStroke { graymode fMLevel1 or not { gsave 1 setgray stroke grestore } if stroke } bind def /X { % TEXTURE fillvals exch get dup type /stringtype eq {8 1 setPatternMode} % Silly to pass parameters here {setGrayScaleMode} ifelse } bind def /V { % FILL PFill gsave eofill grestore } bind def /Vclip { clip } bind def /Vstrk { currentlinewidth exch setlinewidth PStroke setlinewidth } bind def /N { % PEN PStroke } bind def /Nclip { strokepath clip newpath } bind def /Nstrk { currentlinewidth exch setlinewidth PStroke setlinewidth } bind def /M {newpath moveto} bind def /E {lineto} bind def /D {curveto} bind def /O {closepath} bind def /L { % POLYLINE /n exch def newpath normalize moveto 2 1 n {pop normalize lineto} for } bind def /Y { % POLYGON !!! L % POLYLINE closepath } bind def /R { % RECT x1 y1 x2 y2 /y2 exch def /x2 exch def /y1 exch def /x1 exch def x1 y1 x2 y1 x2 y2 x1 y2 4 Y % POLYGON } bind def /rarc % Leaves all sorts of junk on the operand stack for caller to clear off {rad % arcto might fail if we're scaled way down arcto } bind def /RR { % ROUNDRECT x1 y1 x2 y2 r /rad exch def normalize /y2 exch def /x2 exch def normalize /y1 exch def /x1 exch def mark newpath { x1 y1 rad add moveto x1 y2 x2 y2 rarc x2 y2 x2 y1 rarc x2 y1 x1 y1 rarc x1 y1 x1 y2 rarc closepath } stopped {x1 y1 x2 y2 R} if % in case rarc failed for degenerate arcs cleartomark } bind def /RRR { % ROUNDRECT ROTATED xs ys x1 y1 x2 y2 x3 y3 x4 y4 r /rad exch def normalize /y4 exch def /x4 exch def normalize /y3 exch def /x3 exch def normalize /y2 exch def /x2 exch def normalize /y1 exch def /x1 exch def newpath normalize moveto % eats xs ys mark { x2 y2 x3 y3 rarc x3 y3 x4 y4 rarc x4 y4 x1 y1 rarc x1 y1 x2 y2 rarc closepath } stopped {x1 y1 x2 y2 x3 y3 x4 y4 newpath moveto lineto lineto lineto closepath} if cleartomark } bind def /C { % CLIP grestore gsave R % RECT clip setCurrentScreen } bind def /CP { % CLIPPOLY p1x p1y p2x p2y ... n grestore gsave Y % POLYGON clip setCurrentScreen } bind def /F { % FONT FMfonts exch get FMpointsize scalefont setfont } bind def /Q { % POINTSIZE (& font) /FMpointsize exch def F % could be slightly optimized here } bind def /T { % TEXT moveto show } bind def % Callers of RF (rotate/flip) must gsave (or save) first; (g)restore when done /RF { % rotate 0 ne {-1 1 scale} if } bind def /TF { % TEXTFLIPROTATE gsave moveto RF show grestore } bind def /P { % PADTEXT moveto 0 32 3 2 roll widthshow } bind def /PF { % PADTEXTFLIPROTATE gsave moveto RF 0 32 3 2 roll widthshow grestore } bind def /S { % SPREADTEXT moveto 0 exch ashow } bind def /SF { % SPREADTEXTFLIPROTATE gsave moveto RF 0 exch ashow grestore } bind def /B { % PADSPREADTEXT moveto 0 32 4 2 roll 0 exch awidthshow } bind def /BF { % PADSPREADTEXTFLIPROTATE gsave moveto RF 0 32 4 2 roll 0 exch awidthshow grestore } bind def /G { % ARCFILL theta1 theta2 width height x y gsave newpath normalize translate 0.0 0.0 moveto % eats x y dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath PFill fill grestore } bind def /Gstrk { savematrix newpath 2 index 2 div add exch 3 index 2 div sub exch % theta1 theta2 width height x y normalize 2 index 2 div sub exch 3 index 2 div add exch % theta1 theta2 width height x y translate scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 restorematrix currentlinewidth exch setlinewidth PStroke setlinewidth } bind def /Gclip { % ARCFILL theta1 theta2 width height x y swid newpath savematrix normalize translate 0.0 0.0 moveto % eats x y dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath clip newpath restorematrix } bind def /GG { % ARCFILL ROTATED theta1 theta2 width height angle x y gsave newpath normalize translate 0.0 0.0 moveto % eats x y rotate % eats angle dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath PFill fill grestore } bind def /GGclip { % ARCFILL ROTATED theta1 theta2 width height angle x y savematrix newpath normalize translate 0.0 0.0 moveto % eats x y rotate % eats angle dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath clip newpath restorematrix } bind def /GGstrk { % ARCFILL ROTATED swid theta1 theta2 width height angle x y savematrix newpath normalize translate 0.0 0.0 moveto % eats x y rotate % eats angle dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath restorematrix currentlinewidth exch setlinewidth PStroke setlinewidth } bind def /A { % ARCPEN theta1 theta2 width height x y gsave savematrix newpath 2 index 2 div add exch 3 index 2 div sub exch % theta1 theta2 width height x y normalize 2 index 2 div sub exch 3 index 2 div add exch % theta1 theta2 width height x y translate scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 restorematrix PStroke grestore } bind def /Aclip { newpath savematrix normalize translate 0.0 0.0 moveto % eats x y dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath strokepath clip newpath restorematrix } bind def /Astrk { Gstrk } bind def /AA { % ARCPEN ROTATED theta1 theta2 width height angle x y gsave savematrix newpath % theta1 theta2 width height angle x y 3 index 2 div add exch 4 index 2 div sub exch % theta1 theta2 width height angle x y normalize 3 index 2 div sub exch 4 index 2 div add exch translate % eats x y rotate % eats angle scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 restorematrix PStroke grestore } bind def /AAclip { savematrix newpath normalize translate 0.0 0.0 moveto % eats x y rotate % eats angle dnormalize scale % eats width height 0.0 0.0 1.0 5 3 roll arc % eats theta1 theta2 closepath strokepath clip newpath restorematrix } bind def /AAstrk { GGstrk } bind def /BEGINPRINTCODE { % -x -y width height /FMdicttop countdictstack 1 add def % high-water mark of dict stack /FMoptop count 7 sub def % tricky! 7 params on stack, plus "/FMoptop" /FMsaveobject save def userdict begin % insulate user from FrameDict; not in /FMdicttop count /showpage {} def % this def is in userdict FMNORMALIZEGRAPHICS % in case we're in a strange state 3 index neg 3 index neg translate } bind def /ENDPRINTCODE { count -1 FMoptop {pop pop} for % clear user junk from operand stack countdictstack -1 FMdicttop {pop end} for % ditto for dict stack FMsaveobject restore % this is now safe, unless user very malicious } bind def /gn { % get a number in a funny encoding scheme 0 % result on stack { 46 mul % shift old digits cf read pop % get next character 32 sub % zero is the space character dup 46 lt {exit} if % quit if we're the last digit 46 sub add % add in this digit and loop around for next } loop add % result on stack } bind def /cfs { % create a string of length "sl" filled with "val"s /str sl string def % create string as "str" 0 1 sl 1 sub {str exch val put} for % fill array str def % define real array name, too; name is on stack from caller } bind def /ic [ % "case" stmt list of procedures that the image commands should call 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223 0 {0 hx} {1 hx} {2 hx} {3 hx} {4 hx} {5 hx} {6 hx} {7 hx} {8 hx} {9 hx} {10 hx} {11 hx} {12 hx} {13 hx} {14 hx} {15 hx} {16 hx} {17 hx} {18 hx} {19 hx} {gn hx} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12} {13} {14} {15} {16} {17} {18} {19} {gn} {0 wh} {1 wh} {2 wh} {3 wh} {4 wh} {5 wh} {6 wh} {7 wh} {8 wh} {9 wh} {10 wh} {11 wh} {12 wh} {13 wh} {14 wh} {gn wh} {0 bl} {1 bl} {2 bl} {3 bl} {4 bl} {5 bl} {6 bl} {7 bl} {8 bl} {9 bl} {10 bl} {11 bl} {12 bl} {13 bl} {14 bl} {gn bl} {0 fl} {1 fl} {2 fl} {3 fl} {4 fl} {5 fl} {6 fl} {7 fl} {8 fl} {9 fl} {10 fl} {11 fl} {12 fl} {13 fl} {14 fl} {gn fl} ] def /ms { % make all the strings /sl exch def % remember length of currently existing strings /val 255 def % that's white /ws cfs % make "ws" a string filled with white /im cfs % and "im" is a complete image scanline /val 0 def % that's black /bs cfs % make "bs" a string filled with black /cs cfs % here's where we'll put complete command lines } bind def 400 ms % make strings that will be plenty long for most applications /ip { % image procedure; reads and executes commands to make scanlines is % leave image string and... 0 % ...image position on stack all through this procedure cf cs readline pop % get a string of commands { ic exch get exec % execute next command add % all commands leave a length on the stack; update pos } forall % step through all commands pop % get rid of image position pointer % image string left on stack, so it's returned to image primitive } bind def /rip { % this is similar to ip above, except for 24 bit images % this takes an extra argument, the width of the image % do red bis ris copy pop % copy blue to red is 0 cf cs readline pop { ic exch get exec add } forall pop pop % remove is and position from stack ris gis copy pop % copy red to green dup is exch % position of green is width bytes into is % do green cf cs readline pop { ic exch get exec add } forall pop pop gis bis copy pop % copy green to blue dup add is exch % position of blue is 2*width bytes into is % do blue cf cs readline pop { ic exch get exec add } forall pop } bind def /rip4 { % this is similar to ip above, except for 32 bit images % this takes an extra argument, the width of the image % do cyan kis cis copy pop % copy black to cyan is 0 cf cs readline pop { ic exch get exec add } forall pop pop % remove is and position from stack cis mis copy pop % copy cyan to magenta dup is exch % position of magenta is width bytes into is % do magenta cf cs readline pop { ic exch get exec add } forall pop pop mis yis copy pop % copy magenta to yellow dup dup add is exch % position of yellow is 2*width bytes into is % do yellow cf cs readline pop { ic exch get exec add } forall pop pop yis kis copy pop % copy yellow to black 3 mul is exch % position of black is 3*width bytes into is % do black cf cs readline pop { ic exch get exec add } forall pop } bind def /wh { % fill a number of bytes with "white" /len exch def % number of bytes to fill /pos exch def % position to put them at ws 0 len getinterval im pos len getinterval copy pop pos len % remember where we got to } bind def /bl { % fill a number of bytes with "black" /len exch def % number of bytes to fill /pos exch def % position to put them at bs 0 len getinterval im pos len getinterval copy pop pos len % remember where we got to } bind def /s1 1 string def /fl { % fill a number of bytes with a specific hex value /len exch def % number of bytes to fill /pos exch def % position to put them at /val cf s1 readhexstring pop 0 get def pos 1 pos len add 1 sub {im exch val put} for pos len % remember where we got to } bind def /hx { % read hex bytes directly; on entry, stack has 3 copy getinterval % stack has cf exch readhexstring pop pop % stack back to } bind def /wbytes { % width depth -> wb find width in bytes given 1, 2, 8 or 24 or 32 dup dup 8 gt { pop 8 idiv mul } { 8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse } ifelse } bind def /BEGINBITMAPBWc { % iw, ih, width, height, theta, x y 1 {} COMMONBITMAPc } bind def /BEGINBITMAPGRAYc { % iw, ih, width, height, theta, x y 8 {} COMMONBITMAPc } bind def /BEGINBITMAP2BITc { % iw, ih, width, height, theta, x y 2 {} COMMONBITMAPc } bind def % % Common routine for imaging compressed images % /COMMONBITMAPc { % iw, ih, width, height, theta, x y depth proc % (x,y) is the lower left corner of the image /cvtProc exch def /depth exch def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def % LW+ has a buggy memory leak! cvtProc % run the desired proc after save has occurred /is im 0 lb getinterval def % image substring ws 0 lb getinterval is copy pop % whiten it /cf currentfile def % evaluate "currentfile" only once width height depth [width 0 0 height neg 0 height] % top to bottom {ip} image % zap! bitmapsave restore % avoid occasional disaster on the LW+ grestore } bind def /BEGINBITMAPBW { % iw, ih, width, height, theta, x y 1 {} COMMONBITMAP } bind def /BEGINBITMAPGRAY { % iw, ih, width, height, theta, x y 8 {} COMMONBITMAP } bind def /BEGINBITMAP2BIT { % iw, ih, width, height, theta, x y 2 {} COMMONBITMAP } bind def % % Common routine for uncompressed images % /COMMONBITMAP { % iw, ih, width, height, theta, x y depth proc /cvtProc exch def /depth exch def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def % LW+ has a buggy memory leak! cvtProc % run the desired proc after save has occurred /is width depth wbytes string def /cf currentfile def % evaluate "currentfile" only once width height depth [width 0 0 height neg 0 height] % top to bottom {cf is readhexstring pop} image bitmapsave restore % avoid occasional disaster on the LW+ grestore } bind def % % All this hairy color setup stuff gus wrote on the mac, I just copied and % changed the variable names to be humanly readable. /ngrayt 256 array def /nredt 256 array def /nbluet 256 array def /ngreent 256 array def fMLevel1 { /colorsetup { currentcolortransfer /gryt exch def /blut exch def /grnt exch def /redt exch def 0 1 255 { /indx exch def /cynu 1 red indx get 255 div sub def /magu 1 green indx get 255 div sub def /yelu 1 blue indx get 255 div sub def /kk cynu magu min yelu min def % The HP PaintJet XL300 ignores the gray transfer curve but still sets its % default black generation and undercolor removal functions as if it is % used. This causes black colors not to work. Bug#56844 % - We go back to the old (correct?) way of doing this since this code % is now bypassed for PS Level 2 printers in favor of colorSetup2 which % uses PS Level 2 indexed color, which is much cleaner. /u kk currentundercolorremoval exec def %- /u 0 def nredt indx 1 0 cynu u sub max sub redt exec put ngreent indx 1 0 magu u sub max sub grnt exec put nbluet indx 1 0 yelu u sub max sub blut exec put ngrayt indx 1 kk currentblackgeneration exec sub gryt exec put } for {255 mul cvi nredt exch get} {255 mul cvi ngreent exch get} {255 mul cvi nbluet exch get} {255 mul cvi ngrayt exch get} setcolortransfer {pop 0} setundercolorremoval {} setblackgeneration } bind def } { % Here, we set up indexed color for imaging on PS Level 2 without mucking around % with the transfer functions. /colorSetup2 { [ /Indexed /DeviceRGB 255 {dup red exch get 255 div exch dup green exch get 255 div exch blue exch get 255 div} ] setcolorspace } bind def } ifelse % % Setup a transfer function to convert psuedo color values into grayscale % values based on the color lookup tables. % /fakecolorsetup { /tran 256 string def 0 1 255 {/indx exch def tran indx red indx get 77 mul green indx get 151 mul blue indx get 28 mul add add 256 idiv put} for currenttransfer {255 mul cvi tran exch get 255.0 div} exch fmConcatProcs settransfer } bind def % % image a color image % /BITMAPCOLOR { % iw, ih, width, height, theta, x y /depth 8 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def fMLevel1 { colorsetup /is width depth wbytes string def /cf currentfile def % evaluate "currentfile" only once width height depth [width 0 0 height neg 0 height] % top to bottom {cf is readhexstring pop} {is} {is} true 3 colorimage } { colorSetup2 /is width depth wbytes string def /cf currentfile def % evaluate "currentfile" only once 7 dict dup begin /ImageType 1 def /Width width def /Height height def /ImageMatrix [width 0 0 height neg 0 height] def /DataSource {cf is readhexstring pop} bind def /BitsPerComponent depth def /Decode [0 255] def end image } ifelse bitmapsave restore grestore } bind def % % Compressed color image rendering % /BITMAPCOLORc { % iw, ih, width, height, theta, x y /depth 8 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def fMLevel1 { colorsetup /is im 0 lb getinterval def % image substring ws 0 lb getinterval is copy pop % whiten it /cf currentfile def % evaluate "currentfile" only once width height depth [width 0 0 height neg 0 height] % top to bottom {ip} {is} {is} true 3 colorimage } { colorSetup2 /is im 0 lb getinterval def % image substring ws 0 lb getinterval is copy pop % whiten it /cf currentfile def % evaluate "currentfile" only once 7 dict dup begin /ImageType 1 def /Width width def /Height height def /ImageMatrix [width 0 0 height neg 0 height] def /DataSource {ip} bind def /BitsPerComponent depth def /Decode [0 255] def end image } ifelse bitmapsave restore grestore } bind def /BITMAPTRUECOLORc { /depth 24 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def /is im 0 lb getinterval def % Whole scanline /ris im 0 width getinterval def % red part of im /gis im width width getinterval def % green part of im /bis im width 2 mul width getinterval def % blue part of im ws 0 lb getinterval is copy pop /cf currentfile def width height 8 [width 0 0 height neg 0 height] {width rip pop ris} {gis} {bis} true 3 colorimage bitmapsave restore grestore } bind def /BITMAPCMYKc { /depth 32 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def /is im 0 lb getinterval def % Whole scanline /cis im 0 width getinterval def % cyan part of im /mis im width width getinterval def % magenta part of im /yis im width 2 mul width getinterval def % yellow part of im /kis im width 3 mul width getinterval def % black part of im ws 0 lb getinterval is copy pop /cf currentfile def width height 8 [width 0 0 height neg 0 height] {width rip4 pop cis} {mis} {yis} {kis} true 4 colorimage bitmapsave restore grestore } bind def /BITMAPTRUECOLOR { gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def /is width string def /gis width string def /bis width string def /cf currentfile def width height 8 [width 0 0 height neg 0 height] { cf is readhexstring pop } { cf gis readhexstring pop } { cf bis readhexstring pop } true 3 colorimage bitmapsave restore grestore } bind def /BITMAPCMYK { gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def /is width string def /mis width string def /yis width string def /kis width string def /cf currentfile def width height 8 [width 0 0 height neg 0 height] { cf is readhexstring pop } { cf mis readhexstring pop } { cf yis readhexstring pop } { cf kis readhexstring pop } true 4 colorimage bitmapsave restore grestore } bind def % % image a color image to a b&width device % /BITMAPTRUEGRAYc { /depth 24 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def /is im 0 lb getinterval def % Whole scanline /ris im 0 width getinterval def % red part of im /gis im width width getinterval def % green part of im /bis im width 2 mul width getinterval def % blue part of im ws 0 lb getinterval is copy pop /cf currentfile def width height 8 [width 0 0 height neg 0 height] {width rip pop ris gis bis width gray} image bitmapsave restore grestore } bind def /BITMAPCMYKGRAYc { /depth 32 def gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /lb width depth wbytes def % so "lb" has width in bytes sl lb lt {lb ms} if % maybe make bigger strings /bitmapsave save def /is im 0 lb getinterval def % Whole scanline /cis im 0 width getinterval def % cyan part of im /mis im width width getinterval def % magenta part of im /yis im width 2 mul width getinterval def % yellow part of im /kis im width 3 mul width getinterval def % black part of im ws 0 lb getinterval is copy pop /cf currentfile def width height 8 [width 0 0 height neg 0 height] {width rip pop cis mis yis kis width cgray} image bitmapsave restore grestore } bind def /cgray { % c m y k width /ww exch def /k exch def /y exch def /m exch def /c exch def 0 1 ww 1 sub { /i exch def c i get m i get y i get k i get CMYKtoRGB .144 mul 3 1 roll .587 mul 3 1 roll .299 mul add add c i 3 -1 roll floor cvi put } for c } bind def /gray { % r g b width /ww exch def /b exch def /g exch def /r exch def 0 1 ww 1 sub { /i exch def r i get .299 mul g i get .587 mul b i get .114 mul add add r i 3 -1 roll floor cvi put } for r } bind def /BITMAPTRUEGRAY { gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def /is width string def /gis width string def /bis width string def /cf currentfile def width height 8 [width 0 0 height neg 0 height] { cf is readhexstring pop cf gis readhexstring pop cf bis readhexstring pop width gray} image bitmapsave restore grestore } bind def /BITMAPCMYKGRAY { gsave % rotate about center of image 3 index 2 div add exch % iw ih width height theta y+(height/2) x 4 index 2 div add exch % iw ih width height theta x+(width/2) y+(height/2) translate % iw ih width height theta rotate % iw ih width height 1 index 2 div neg % iw ih width height -(width/2) 1 index 2 div neg % iw ih width height -(width/2) -(height/2) translate % iw ih width height scale % iw ih /height exch def /width exch def /bitmapsave save def /is width string def /yis width string def /mis width string def /kis width string def /cf currentfile def width height 8 [width 0 0 height neg 0 height] { cf is readhexstring pop cf mis readhexstring pop cf yis readhexstring pop cf kis readhexstring pop width cgray} image bitmapsave restore grestore } bind def /BITMAPGRAY { % iw, ih, width, height, theta, x y 8 {fakecolorsetup} COMMONBITMAP } bind def /BITMAPGRAYc { % iw, ih, width, height, theta, x y 8 {fakecolorsetup} COMMONBITMAPc } bind def /ENDBITMAP { } bind def end % of FrameDict definitions % OPI stuff /ALDmatrix matrix def ALDmatrix currentmatrix pop /StartALD { /ALDsave save def savematrix ALDmatrix setmatrix } bind def /InALD { restorematrix } bind def /DoneALD { ALDsave restore } bind def % Dashed lines stuff /I { setdash } bind def /J { [] 0 setdash } bind def %%EndProlog %%BeginSetup (5.0) FMVERSION 1 1 0 0 612 792 0 1 11 FMDOCUMENT 0 0 /Times-Bold FMFONTDEFINE 1 0 /Times-Roman FMFONTDEFINE 2 0 /Times-Italic FMFONTDEFINE 3 1 /Symbol FMFONTDEFINE 4 0 /Courier FMFONTDEFINE 32 FMFILLS 0 0 FMFILL 1 0.1 FMFILL 2 0.3 FMFILL 3 0.5 FMFILL 4 0.7 FMFILL 5 0.9 FMFILL 6 0.97 FMFILL 7 1 FMFILL 8 <0f1e3c78f0e1c387> FMFILL 9 <0f87c3e1f0783c1e> FMFILL 10 FMFILL 11 FMFILL 12 <8142241818244281> FMFILL 13 <03060c183060c081> FMFILL 14 <8040201008040201> FMFILL 16 1 FMFILL 17 0.9 FMFILL 18 0.7 FMFILL 19 0.5 FMFILL 20 0.3 FMFILL 21 0.1 FMFILL 22 0.03 FMFILL 23 0 FMFILL 24 FMFILL 25 FMFILL 26 <3333333333333333> FMFILL 27 <0000ffff0000ffff> FMFILL 28 <7ebddbe7e7dbbd7e> FMFILL 29 FMFILL 30 <7fbfdfeff7fbfdfe> FMFILL %%EndSetup %%Page: "i" 1 %%BeginPaperSize: Letter %%EndPaperSize 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K J 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 72 33.32 540 43.32 R V 72 746 540 756 R V 72 33.32 540 43.32 R V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 0 18 Q 0 X (X Print Ser) 247.1 572 T (vice) 334.91 572 T 0 10 Q (Pr) 263.12 540.33 T (otocol V) 273.49 540.33 T (ersion 1.0) 307.77 540.33 T (X Consortium Standard) 254.33 514.33 T (X V) 252.62 501.33 T (ersion 11, Release 6.4) 268.56 501.33 T 1 F (A. Deininger) 279.89 440.33 T (T) 291.92 427.33 T (. Gilg) 297.3 427.33 T ( J. Miller) 287.8 414.33 T (H. Phinne) 283.58 401.33 T (y) 323.42 401.33 T (C. Prince) 287.39 388.33 T (He) 264.27 362.33 T (wlett-P) 275.67 362.33 T (ackard Co.) 304.42 362.33 T (K. Samborn) 281.83 297.33 T (R. Swick) 287.67 284.33 T (X Consortium, Inc.) 267.39 258.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "i" 1 %%Page: "ii" 2 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 72 33.32 540 43.32 R V 72 746 540 756 R V 72 33.32 540 43.32 R V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 1 10 Q 0 X (Copyright \050c\051 1996 Hewlett-Packard Company) 72 569.33 T (Copyright \050c\051 1996 International Business Machines, Inc.) 72 557.33 T (Copyright \050c\051 1996 Sun Microsystems, Inc.) 72 545.33 T (Copyright \050c\051 1996 Novell, Inc.) 72 533.33 T (Copyright \050c\051 1996 Digital Equipment Corp.) 72 521.33 T (Copyright \050c\051 1996 Fujitsu Limited) 72 509.33 T (Copyright \050c\051 1996 Hitachi, Ltd.) 72 497.33 T (Copyright \050c\051 1996 X Consortium, Inc.) 72 485.33 T (Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated) 72 461.33 T (documentation files \050the "Software"\051, to deal in the Software without restriction, including without limitation the) 72 449.33 T (rights to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the Software, and to permit) 72 437.33 T (persons to whom the Software is furnished to do so, subject to the following conditions:) 72 425.33 T (The above copyright notice and this permission notice shall be included in all copies or substantial portions of the) 72 401.33 T (Software.) 72 389.33 T (THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,) 72 365.33 T (INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A) 72 353.33 T (PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE) 72 341.33 T (LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF) 72 329.33 T (CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE) 72 317.33 T (SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.) 72 305.33 T (Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to) 72 281.33 T (promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.) 72 269.33 T 2 F (X Window System) 72 245.33 T 1 F ( is a trademark of X Consortium, Inc.) 143.66 245.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "ii" 2 %%Page: "1" 3 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 33.32 540 43.32 R V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 18 Q 0 X (T) 238.33 708 T (able of Contents) 248.68 708 T 1 10 Q (1) 72 598.33 T (Ov) 90 598.33 T (ervie) 102.07 598.33 T (w) 121.81 598.33 T (...................................................................................................................................................) 130 598.33 T (1) 499 598.33 T (2) 72 581.33 T (Protocols) 90 581.33 T (...................................................................................................................................................) 130 581.33 T (2) 499 581.33 T 0 0 0 1 0 0 0 K (2.1) 108 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Formats, Syntactic Conventions, and Common Types) 126 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (.............................................................) 345 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2) 499 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2.2) 108 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Errors) 126 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (.........................................................................................................................................) 155 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2) 499 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2.3) 108 545.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( X Print Service Requests) 126 545.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (...........................................................................................................) 230 545.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2) 499 545.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (2.4) 108 533.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Events) 126 533.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (......................................................................................................................................) 157.5 533.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (11) 494 533.33 T 0 0 0 1 0 0 0 K (3) 72 516.33 T (X Print Attrib) 90 516.33 T (utes) 145.36 516.33 T (....................................................................................................................................) 162.5 516.33 T (13) 494 516.33 T 0 0 0 1 0 0 0 K (3.1) 108 504.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Attribute Value Defaults And Validation) 126 504.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (................................................................................) 292.5 504.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (13) 494 504.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (3.2) 108 492.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Server Attributes) 126 492.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (......................................................................................................................) 197.5 492.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (14) 494 492.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (3.3) 108 480.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Printer Attributes) 126 480.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (.....................................................................................................................) 200 480.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (14) 494 480.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (3.4) 108 468.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Job Attributes) 126 468.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (...........................................................................................................................) 185 468.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (17) 494 468.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (3.5) 108 456.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Document Attributes) 126 456.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (...............................................................................................................) 215 456.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (17) 494 456.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (3.6) 108 444.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Page Attributes) 126 444.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (........................................................................................................................) 192.5 444.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (18) 494 444.33 T 0 0 0 1 0 0 0 K (4) 72 427.33 T (Communication with the Print Dialog Manager) 90 427.33 T (.....................................................................................) 280 427.33 T (20) 494 427.33 T (5) 72 410.33 T (Protocol Encoding) 90 410.33 T (...................................................................................................................................) 165 410.33 T (22) 494 410.33 T 0 0 0 1 0 0 0 K (5.1) 108 398.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Request Protocol Encoding) 126 398.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (.....................................................................................................) 240 398.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (22) 494 398.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (5.2) 108 386.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Event Protocol Encoding) 126 386.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (.........................................................................................................) 230 386.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (31) 494 386.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (5.3) 108 374.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K ( Error Protocol Encoding) 126 374.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (..........................................................................................................) 227.5 374.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (32) 494 374.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "1" 3 %%Page: "2" 4 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 33.32 540 43.32 R V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "2" 4 %%Page: "1" 5 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Ov) 72 746.67 T (er) 89.75 746.67 T (view) 102.04 746.67 T (1) 533 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 18 Q (1) 72 699 T (Ov) 108 699 T (er) 130.82 699 T (view) 146.63 699 T 1 10 Q (X Print Service is an X e) 108 666.33 T (xtension that allo) 207.28 666.33 T (ws X imaging to non-display de) 275.92 666.33 T (vices such as printers and f) 403.72 666.33 T (ax) 511.65 666.33 T (machines. The core of the X Print Service is the X Print Serv) 108 654.33 T (er) 351.98 654.33 T (.) 359.2 654.33 T (Applications that require printing operations can mak) 108 630.33 T (e a connection to X Print Serv) 321.76 630.33 T (er and list the a) 442.15 630.33 T (v) 503.05 630.33 T (ailable) 507.8 630.33 T (printers using the) 108 618.33 T 0 F (PrintGetPrinterList) 179.94 618.33 T 1 F ( request. After selecting a printer) 265.48 618.33 T (, an application must create and set) 396.71 618.33 T (a print conte) 108 606.33 T (xt using the) 157.84 606.33 T 0 F (PrintCr) 207.01 606.33 T (eateContext) 240.71 606.33 T 1 F ( and) 291.8 606.33 T 0 F (PrintSetContext) 311.24 606.33 T 1 F ( requests.) 380.67 606.33 T (The \322print conte) 108 582.33 T (xt\323 is a fundamental X Print Service concept. A print conte) 173.39 582.33 T (xt:) 409.59 582.33 T (\245) 108 564.33 T (Contains a printer\325) 126 564.33 T (s def) 200.44 564.33 T (ault capabilities) 219.5 564.33 T (\245) 108 552.33 T (Contains a printer\325) 126 552.33 T (s range of capabilities) 200.44 552.33 T (\245) 108 540.33 T (Maintains the state of the settings on a printer) 126 540.33 T (\245) 108 528.33 T (Maintains the state of rendering ag) 126 528.33 T (ainst a printer) 265.09 528.33 T (\245) 108 516.33 T (Maintains rendered output) 126 516.33 T -0.2 (A print conte) 108 492.33 P -0.2 (xt also af) 160.23 492.33 P -0.2 (fects ho) 196.24 492.33 P -0.2 (w the DDX dri) 227.17 492.33 P -0.2 (v) 286.04 492.33 P -0.2 (er generates its page description language \050PDL\051, and ho) 290.89 492.33 P -0.2 (w the) 515.95 492.33 P -0.22 (PDL is submitted to a spooler) 108 480.33 P -0.22 (. It may af) 225.54 480.33 P -0.22 (fect fonts and other elements in the DDX layer of the X Print Serv) 265.73 480.33 P -0.22 (er) 528 480.33 P -0.22 (.) 535.22 480.33 P (Printer capabilities are de\336ned by attrib) 108 456.33 T (ute pools within the print conte) 265.83 456.33 T (xt. The) 390.4 456.33 T (y contain information related) 418.58 456.33 T -0.11 (to a conte) 108 444.33 P -0.11 (xt\325) 146.51 444.33 P -0.11 (s serv) 157.07 444.33 P -0.11 (er) 179.86 444.33 P -0.11 (, printer) 187.23 444.33 P -0.11 (, job, document, and page options.) 218.38 444.33 P 0 F -0.11 (PrintGetAttrib) 357.71 444.33 P -0.11 (utes) 421.94 444.33 P 1 F -0.11 ( and) 439.16 444.33 P 0 F -0.11 (PrintSetAttrib) 458.38 444.33 P -0.11 (utes) 520.39 444.33 P 1 F (are used to access and modify attrib) 108 432.33 T (ute pools.) 251.1 432.33 T 0 F (PrintStartJ) 108 408.33 T (ob) 156.73 408.33 T 1 F ( and) 167.29 408.33 T 0 F (PrintEndJ) 186.73 408.33 T (ob) 231.59 408.33 T 1 F ( are used to delineate print jobs. A \322job\323 is a collection of documents) 242.15 408.33 T (delineated by) 108 396.33 T 0 F (PrintStartDoc) 164.1 396.33 T 1 F ( and) 224.64 396.33 T 0 F (PrintEndDoc) 244.08 396.33 T 1 F (. Each document is, in turn, a collection of \322pages\323. Upon) 300.75 396.33 T (completion the serv) 108 384.33 T (er sends an) 186.73 384.33 T (y resulting PDL to a print spooler) 231.01 384.33 T (, or mak) 365.05 384.33 T (es it a) 398 384.33 T (v) 421.13 384.33 T (ailable for retrie) 425.88 384.33 T (v) 490.05 384.33 T (al by an) 494.8 384.33 T (application.) 108 372.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "1" 5 %%Page: "2" 6 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (2) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (2) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 18 Q 0 X (2) 72 699 T (Pr) 108 699 T (otocols) 126.67 699 T 0 14 Q (2.1) 72 661.67 T (F) 108 661.67 T (ormats, Syntactic Con) 116.2 661.67 T (v) 248.24 661.67 T (entions, and Common T) 255.1 661.67 T (ypes) 397.97 661.67 T 1 10 Q (The type PCONTEXT is a 32-bit v) 108 637.33 T (alue. Its top three bits are guaranteed to be zero.) 247.74 637.33 T (Refer to the) 108 613.33 T 2 F (X W) 157.71 613.33 T (indow System) 174.1 613.33 T 1 F ( Protocol speci\336cation for a description of other formats, syntactic con) 228.82 613.33 T (v) 510.32 613.33 T (en-) 515.17 613.33 T (tions and common types established in that publication and used in the current document as well.) 108 601.33 T 0 14 Q (2.2) 72 565.67 T (Err) 108 565.67 T (ors) 129.52 565.67 T 1 10 Q (X Print Service can return the follo) 108 541.33 T (wing messages, in addition to X core request errors.) 248.28 541.33 T 0 F (XPBadContext) 108 517.33 T 1 F (An incorrect print conte) 198 517.33 T (xt ID w) 293.66 517.33 T (as speci\336ed.) 324.11 517.33 T 0 F (XPBadSequence) 108 493.33 T 1 F (Requests were not speci\336ed in the proper order with respect to other) 198 493.33 T (requests. F) 198 481.33 T (or e) 241.18 481.33 T (xample, a request w) 256.3 481.33 T (as speci\336ed before a) 336.18 481.33 T 0 F (PrintSetContext) 420.04 481.33 T 1 F (request.) 198 469.33 T -0.24 (Other errors that are conte) 108 445.33 P -0.24 (xt speci\336c for a particular request are documented in the description of the request) 211.83 445.33 P -0.24 (itself. If the abo) 108 433.33 P -0.24 (v) 170.45 433.33 P -0.24 (e errors ha) 175.3 433.33 P -0.24 (v) 216.82 433.33 P -0.24 (e a speci\336c meaning for a particular request, the) 221.66 433.33 P -0.24 (y are documented in the request) 411.48 433.33 P (itself as well.) 108 421.33 T 0 14 Q (2.3) 72 385.67 T (X Print Ser) 108 385.67 T (vice Requests) 176.29 385.67 T 0 12 Q (PrintCr) 108 330 T (eateContext) 148.44 330 T 1 10 Q (conte) 108 310.33 T (xt-id: PCONTEXT) 129.51 310.33 T (printer) 108 298.33 T (-name: STRING8) 134.46 298.33 T (locale: STRING8) 108 286.33 T (Errors:) 108 262.33 T 0 F (Match, IDChoice) 138.27 262.33 T 1 F (This request creates a ne) 108 238.33 T (w print conte) 206.05 238.33 T (xt and assigns conte) 258.67 238.33 T (xt-id to it. The attrib) 338.79 238.33 T (utes associated with the ne) 419.98 238.33 T (w) 526.38 238.33 T (conte) 108 226.33 T (xt are those determined by the printer) 129.51 226.33 T (-name. Printer) 279.28 226.33 T (-name is encoded in COMPOUND_TEXT) 336.29 226.33 T (.) 506.08 226.33 T -0.28 (The client must select the conte) 108 202.33 P -0.28 (xt-id by ORing some combination of bits in the connection resource-id-mask) 232.82 202.33 P (with the resource-id-base.) 108 190.33 T (The locale ar) 108 166.33 T (gument is used as a \322hint\323 to the print serv) 160.02 166.33 T (er) 330.13 166.33 T (, and is used to initialize attrib) 337.5 166.33 T (ute pools with an) 458.13 166.33 T (y) 526.59 166.33 T (localized attrib) 108 154.33 T (ute v) 167.51 154.33 T (alues.) 186.98 154.33 T (A) 108 130.33 T 0 F (Match) 117.72 130.33 T 1 F ( error is generated when the printer) 145.49 130.33 T (-name does not e) 285.8 130.33 T (xist.) 353.69 130.33 T 72 322 90 340.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 340.8 72 322.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 340.8 90 340.8 2 L 0.5 H N 72 340.8 72 322.8 2 L N 72 340.8 90 340.8 2 L N 0 0 612 792 C 72 260 90 278 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 278 72 260 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 260 90 260 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "2" 6 %%Page: "3" 7 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocols) 86.52 746.67 T (3) 533 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 12 Q (PrintSetContext) 108 703 T 1 10 Q (conte) 108 683.33 T (xt: PCONTEXT or) 129.51 683.33 T 0 F (None) 208.12 683.33 T 1 F (Errors:) 108 659.33 T 0 F ( XPBadContext) 135.77 659.33 T 1 F -0.03 (This request associates the conte) 108 635.33 P -0.03 (xt speci\336ed with all subsequent print operations for this client. If conte) 238.28 635.33 P -0.03 (xt is) 520.6 635.33 P 0 F -0.1 (None) 108 623.33 P 1 F -0.1 (, the print conte) 130.22 623.33 P -0.1 (xt pre) 192.54 623.33 P -0.1 (viously associated with this client is unset. If no print conte) 215.24 623.33 P -0.1 (xt w) 451.59 623.33 P -0.1 (as pre) 468.89 623.33 P -0.1 (viously set,) 492.14 623.33 P (then no action is tak) 108 611.33 T (en when) 188.45 611.33 T 0 F (None) 224.55 611.33 T 1 F (is speci\336ed.) 249.27 611.33 T (The e) 108 587.33 T (x) 130.34 587.33 T (ecution of the) 135.19 587.33 T 0 F (PrintSetContext) 192.68 587.33 T 1 F ( request may af) 262.11 587.33 T (fect the interpretation of the font path. The font path) 323.23 587.33 T -0.1 (contains font path elements for all printers associated with a print serv) 108 575.33 P -0.1 (er) 387.56 575.33 P -0.1 (. Only those associated with the cur-) 394.78 575.33 P (rent print conte) 108 563.33 T (xt are returned and used for print rendering.) 168.95 563.33 T 0 12 Q (PrintGetContext) 108 508 T 3 10 Q (\256) 100.8 488.33 T 1 F (conte) 108 472.33 T (xt: PCONTEXT or None) 129.51 472.33 T (This request returns the current print conte) 108 448.33 T (xt for the connection.) 278.37 448.33 T 0 12 Q (PrintDestr) 108 393 T (oyContext) 162.43 393 T 1 10 Q (conte) 108 373.33 T (xt: PCONTEXT) 129.51 373.33 T (Errors:) 108 349.33 T 0 F (XPBadContext) 138.27 349.33 T 1 F -0.21 (This request unsets and destro) 108 325.33 P -0.21 (ys a print conte) 227.61 325.33 P -0.21 (xt. If a print conte) 288.21 325.33 P -0.21 (xt is destro) 359.16 325.33 P -0.21 (yed before print operations associ-) 402.53 325.33 P -0.09 (ated with it ha) 108 313.33 P -0.09 (v) 164.47 313.33 P -0.09 (e been completed, the print serv) 169.32 313.33 P -0.09 (er cancels all those operations as if a) 296.47 313.33 P 0 F -0.09 (CancelJ) 444.6 313.33 P -0.09 (ob) 478.89 313.33 P 1 F -0.09 ( request had) 489.45 313.33 P (been issued.) 108 301.33 T 0 12 Q (PrintGetPrinterList) 108 246 T 1 10 Q (printer) 108 226.33 T (-name: STRING8) 134.46 226.33 T (locale: STRING8) 108 214.33 T 3 F (\256) 100.8 198.33 T 1 F (printers: LIST) 108 182.33 T (ofPRINTER) 164.14 182.33 T (where:) 108 168.33 T (PRINTER:) 126 156.33 T (name: STRING8) 180 156.33 T (description: STRING8) 180 144.33 T (This request retrie) 108 108.33 T (v) 180.51 108.33 T (es a list of all printers supported on a print serv) 185.36 108.33 T (er) 373.52 108.33 T (.) 380.74 108.33 T 72 692.2 90 711 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 711 72 693 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 711 90 711 2 L 0.5 H N 72 711 72 693 2 L N 72 711 90 711 2 L N 0 0 612 792 C 72 657 90 675 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 675 72 657 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 657 90 657 2 L N 0 0 612 792 C 72 500 90 518.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 518.8 72 500.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 518.8 90 518.8 2 L 0.5 H N 72 518.8 72 500.8 2 L N 72 518.8 90 518.8 2 L N 0 0 612 792 C 72 470 90 488 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 488 72 470 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 470 90 470 2 L N 0 0 612 792 C 72 385 90 403.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 403.8 72 385.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 403.8 90 403.8 2 L 0.5 H N 72 403.8 72 385.8 2 L N 72 403.8 90 403.8 2 L N 0 0 612 792 C 72 347 90 365 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 365 72 347 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 347 90 347 2 L N 0 0 612 792 C 72 238 90 256.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 256.8 72 238.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 256.8 90 256.8 2 L 0.5 H N 72 256.8 72 238.8 2 L N 72 256.8 90 256.8 2 L N 0 0 612 792 C 72 130 90 148 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 148 72 130 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 130 90 130 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "3" 7 %%Page: "4" 8 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (4) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (4) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X (If printer) 108 704.33 T (-name is an empty string, then a list of all printers is returned. Otherwise the print record that) 143.62 704.33 T (matches the printer) 108 692.33 T (-name speci\336ed is returned. If no records match printer) 184.45 692.33 T (-name, then an empty list is) 404.47 692.33 T (returned.) 108 680.33 T (printer) 108 656.33 T (-name is a COMPOUND_TEXT string. The name and description \336elds returned are) 134.46 656.33 T (COMPOUND_TEXT) 108 644.33 T (. If printer) 195.03 644.33 T (-name is pro) 235.65 644.33 T (vided in a code-set that the print serv) 285.49 644.33 T (er cannot con) 433.37 644.33 T (v) 486.84 644.33 T (ert, then it) 491.69 644.33 T (may not be possible to locate the requested printer) 108 632.33 T (.) 308.53 632.33 T (The locale ar) 108 608.33 T (gument is used as a \322hint\323 to locate a localized description for each printer in the list. If the) 160.02 608.33 T (print serv) 108 596.33 T (er cannot interpret the hint, then it describes the printers in the serv) 145.9 596.33 T (er\325) 413.76 596.33 T (s current locale.) 424.31 596.33 T 0 12 Q (PrintGetScr) 108 541 T (eenOfContext) 170.44 541 T 3 10 Q (\256) 100.8 521.33 T 1 F (root: WINDO) 108 505.33 T (W) 163.47 505.33 T (Errors:) 108 481.33 T 0 F (XPBadContext) 138.27 481.33 T 1 F (This request returns the root windo) 108 457.33 T (w associated with the current print conte) 248.01 457.33 T (xt.) 410.05 457.33 T -0.02 (Each printer supported by a print serv) 108 433.33 P -0.02 (er is associated with e) 258.81 433.33 P -0.02 (xactly one of the screens returned in the connec-) 346.33 433.33 P (tion setup reply) 108 421.33 T (.) 169.57 421.33 T 0 12 Q (PrintStartJ) 108 366 T (ob) 166.48 366 T 1 10 Q (output-mode: {) 108 346.33 T 0 F (XPSpool, XPGetData) 169.19 346.33 T 1 F (}) 260.85 346.33 T (Errors:) 108 322.33 T 0 F (XPBadSequence, V) 138.27 322.33 T (alue) 220.13 322.33 T 1 F -0.17 (This request signals the be) 108 298.33 P -0.17 (ginning of a ne) 213.29 298.33 P -0.17 (w print job) 272.82 298.33 P -0.17 (. It results in the generation of an) 315.98 298.33 P 0 F -0.17 (XPPrintNotify) 449.36 298.33 P 1 F -0.17 ( e) 511.57 298.33 P -0.17 (v) 518.09 298.33 P -0.17 (ent,) 522.95 298.33 P (with the detail \336eld set to) 108 286.33 T 0 F (XPStartJ) 211.89 286.33 T (obNotify) 251.73 286.33 T 1 F (.) 288.3 286.33 T (If output-mode is set to) 108 262.33 T 0 F (XPSpool) 203.83 262.33 T 1 F (, then the document data is typically sent to a spooler) 241.06 262.33 T (.) 452.99 262.33 T -0.02 (If output-mode is set to) 108 238.33 P 0 F -0.02 (XPGetData) 203.74 238.33 P 1 F -0.02 (, then the document data is made a) 253.17 238.33 P -0.02 (v) 391.16 238.33 P -0.02 (ailable to) 395.91 238.33 P 0 F -0.02 (PrintGetDocumentData) 435.32 238.33 P 1 F -0.22 (and the resulting job is not spooled. In this case, the print serv) 108 226.33 P -0.22 (er suspends processing further requests on this) 352.96 226.33 P (print conte) 108 214.33 T (xt until some other client sends) 150.9 214.33 T 0 F (PrintGetDocumentData.) 278.12 214.33 T 1 F (Subsequent operations that use the) 385.32 214.33 T (print conte) 108 202.33 T (xt may be suspended at an) 150.9 202.33 T (y time pending the processing of) 256.01 202.33 T 0 F (PrintGetDocumentData) 389.33 202.33 T 1 F ( replies to) 491.53 202.33 T (read an) 108 190.33 T (y b) 137 190.33 T (uf) 149.3 190.33 T (fered output.) 157.38 190.33 T -0.29 (An) 108 166.33 P -0.29 (y changes to the) 120.07 166.33 P 0 F -0.29 (XPJ) 186.13 166.33 P -0.29 (obAttr) 204.31 166.33 P 1 F -0.29 ( pool must be made before) 233.19 166.33 P 0 F -0.29 (PrintStartJ) 340.34 166.33 P -0.29 (ob) 389.07 166.33 P -0.29 (.) 399.23 166.33 P 1 F -0.29 (Further modi\336cations can only be) 403.94 166.33 P (made to the attrib) 108 154.33 T (ute pool after a) 178.07 154.33 T 0 F (PrintEndJ) 240.83 154.33 T (ob) 285.69 154.33 T 1 F ( request is e) 296.25 154.33 T (x) 343.59 154.33 T (ecuted.) 348.44 154.33 T 0 12 Q (PrintEndJ) 108 99 T (ob) 161.83 99 T 1 10 Q (cancel: BOOL) 108 79.33 T 72 533 90 551.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 551.8 72 533.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 551.8 90 551.8 2 L 0.5 H N 72 551.8 72 533.8 2 L N 72 551.8 90 551.8 2 L N 0 0 612 792 C 72 479 90 497 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 497 72 479 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 479 90 479 2 L N 0 0 612 792 C 72 358 90 376.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 376.8 72 358.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 376.8 90 376.8 2 L 0.5 H N 72 376.8 72 358.8 2 L N 72 376.8 90 376.8 2 L N 0 0 612 792 C 72 320 90 338 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 338 72 320 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 320 90 320 2 L N 0 0 612 792 C 72 91 90 109.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 109.8 72 91.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 109.8 90 109.8 2 L 0.5 H N 72 109.8 72 91.8 2 L N 72 109.8 90 109.8 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "4" 8 %%Page: "5" 9 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocols) 86.52 746.67 T (5) 533 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (Errors:) 108 704.33 T 0 F (XPBadContext, XPBadSequence) 138.27 704.33 T 1 F (This request causes the print job associated with the current print conte) 108 680.33 T (xt to end. If cancel is) 391.97 680.33 T 0 F (F) 478.34 680.33 T (ALSE) 483.55 680.33 T 1 F (, an) 509.67 680.33 T (y) 523.96 680.33 T (accumulated print data that remains is either sent to the printer or made a) 108 668.33 T (v) 399.69 668.33 T (ailable to) 404.44 668.33 T 0 F (PrintGetDocument-) 443.88 668.33 T (Data) 108 656.33 T 1 F (.) 128.55 656.33 T (The request generates an) 108 632.33 T 0 F (XPPrintNotify) 209.63 632.33 T 1 F ( e) 271.84 632.33 T (v) 278.53 632.33 T (ent with its detail \336eld set to) 283.38 632.33 T 0 F (XPEndJ) 399.22 632.33 T (obNotify) 435.19 632.33 T 1 F (.) 471.76 632.33 T (When cancel is) 108 608.33 T 0 F (TR) 171.59 608.33 T (UE) 185.18 608.33 T 1 F (, the job currently being processed is canceled. The serv) 199.07 608.33 T (er may discard an) 423.03 608.33 T (y pending) 493.69 608.33 T -0.14 (output or may produce partial output. If the job w) 108 596.33 P -0.14 (as started in) 305 596.33 P 0 F -0.14 (XPGetData) 354.86 596.33 P 1 F -0.14 ( mode, then the entire data output) 404.29 596.33 P (stream is implementation-de\336ned.) 108 584.33 T (If) 108 560.33 T 0 F (PrintEndJ) 117.16 560.33 T (ob) 162.02 560.33 T 1 F ( is called immediately after) 172.58 560.33 T 0 F (PrintEndP) 283.95 560.33 T (age) 329.97 560.33 T 1 F (, then a synthetic) 344.41 560.33 T 0 F (PrintEndDoc) 414.68 560.33 T 1 F ( is generated by) 471.35 560.33 T (print serv) 108 548.33 T (er before) 145.9 548.33 T 0 F (PrintEndJ) 184.21 548.33 T (ob) 229.07 548.33 T 1 F (. The pool of) 239.23 548.33 T 0 F (XPJ) 293.39 548.33 T (obAttr) 311.57 548.33 T 1 F ( attrib) 340.45 548.33 T (utes that w) 363.86 548.33 T (as frozen when the) 407.09 548.33 T 0 F (PrintStart-) 484.84 548.33 T (J) 108 536.33 T (ob) 112.85 536.33 T 1 F ( request w) 123.41 536.33 T (as e) 164.41 536.33 T (x) 179.53 536.33 T (ecuted is released when) 184.38 536.33 T 0 F (PrintEndJ) 281.57 536.33 T (ob) 326.43 536.33 T 1 F ( is called.) 336.99 536.33 T 0 12 Q (PrintGetDocumentData) 108 481 T 1 10 Q (conte) 108 461.33 T (xt: PCONTEXT) 129.51 461.33 T (max-bytes: CARD32) 108 449.33 T 3 F (\256) 100.8 433.33 T 3 9 Q (+) 110.67 433.33 T 1 10 Q (status-code: {) 108 417.33 T 0 F (XPGetDocFinished, XPGetDocSecondConsumer) 163.07 417.33 T (, XPGetDocErr) 369.91 417.33 T (or) 435.82 417.33 T 1 F (}) 445.26 417.33 T (\336nished-\337ag: CARD32) 108 405.33 T (data: LIST) 108 393.33 T (ofBYTE) 150.25 393.33 T (Errors:) 108 369.33 T 0 F (XPBadContext, XPBadSequence, V) 138.27 369.33 T (alue) 289.57 369.33 T 1 F (This request returns data generated on a conte) 108 345.33 T (xt by other clients.) 291.41 345.33 T 0 F (PrintGetDocumentData) 108 321.33 T 1 F ( should be sent only after a) 210.2 321.33 T 0 F (PrintStartJ) 320.46 321.33 T (ob) 369.19 321.33 T 1 F ( request with sa) 379.75 321.33 T (v) 442.04 321.33 T (e_data set to) 446.89 321.33 T 0 F (XPGet-) 499.38 321.33 T (Data) 108 309.33 T 1 F ( has been e) 128.55 309.33 T (x) 172.55 309.33 T (ecuted.) 177.4 309.33 T 0 F -0.04 (PrintGetDocumentData) 108 285.33 P 1 F -0.04 ( generates multiple replies. Each reply is no lar) 210.2 285.33 P -0.04 (ger than the v) 397.73 285.33 P -0.04 (alue speci\336ed in max-) 452.08 285.33 P (bytes. The \336nal reply is generated by) 108 273.33 T 0 F (PrintEndJ) 258.53 273.33 T (ob) 303.39 273.33 T 1 F ( and has \336nished-\337ag set to) 313.95 273.33 T 0 F (TR) 425.61 273.33 T (UE) 439.2 273.33 T 1 F (.) 453.09 273.33 T (If the v) 108 249.33 T (alue for max-bytes is zero, a) 136.63 249.33 T 0 F (V) 252.43 249.33 T (alue) 258.73 249.33 T 1 F ( error is generated.) 276.51 249.33 T (An) 108 225.33 T 0 F (XPBadSequence) 122.72 225.33 T 1 F ( error is generated if) 193.28 225.33 T 0 F (PrintGetDocumentData) 276.86 225.33 T 1 F ( is e) 379.06 225.33 T (x) 395.02 225.33 T (ecuted before) 399.87 225.33 T 0 F (PrintStartJ) 456.51 225.33 T (ob) 505.24 225.33 T 1 F ( or if) 515.8 225.33 T 0 F (PrintGetDocumentData) 108 213.33 T 1 F ( is e) 210.2 213.33 T (x) 226.16 213.33 T (ecuted after) 231.01 213.33 T 0 F (PrintStartJ) 280.43 213.33 T (ob) 329.16 213.33 T 1 F ( with sa) 339.72 213.33 T (v) 370.63 213.33 T (e_data set to) 375.48 213.33 T 0 F (XPSpool) 427.97 213.33 T 1 F (.) 465.2 213.33 T 0 12 Q (PrintPutDocumentData) 108 158 T 1 10 Q (dra) 108 138.33 T (w) 120.62 138.33 T (able: DRA) 127.74 138.33 T (W) 169.89 138.33 T (ABLE) 178.13 138.33 T (data: LIST) 108 126.33 T (ofBYTE) 150.25 126.33 T (doc-format, options: STRING8) 108 114.33 T (Errors:) 108 90.33 T 0 F (XPBadContext, XPBadSequence, Match, V) 138.27 90.33 T (alue, Drawable) 322.34 90.33 T 72 693 90 711 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 711 72 693 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 693 90 693 2 L N 0 0 612 792 C 72 473 90 491.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 491.8 72 473.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 491.8 90 491.8 2 L 0.5 H N 72 491.8 72 473.8 2 L N 72 491.8 90 491.8 2 L N 0 0 612 792 C 72 367 90 385 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 385 72 367 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 367 90 367 2 L N 0 0 612 792 C 72 150 90 168.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 168.8 72 150.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 168.8 90 168.8 2 L 0.5 H N 72 168.8 72 150.8 2 L N 72 168.8 90 168.8 2 L N 0 0 612 792 C 72 150 90 168.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 168.8 72 150.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 168.8 90 168.8 2 L 0.5 H N 72 168.8 72 150.8 2 L N 72 168.8 90 168.8 2 L N 0 0 612 792 C 72 88 90 106 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 106 72 88 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 88 90 88 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "5" 9 %%Page: "6" 10 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (6) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (6) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X (This request allo) 108 704.33 T (ws an application to send and incorporate data into the print output. It functions in tw) 174.41 704.33 T (o) 515.39 704.33 T (modes, depending on whether the) 108 692.33 T 0 F (PrintStartDoc) 245.2 692.33 T 1 F ( dri) 305.74 692.33 T (v) 319.1 692.33 T (er) 323.95 692.33 T (-mode is set to) 331.52 692.33 T 0 F (XPDocNormal) 392.63 692.33 T 1 F ( or) 455.39 692.33 T 0 F (XPDocRaw) 468.72 692.33 T 1 F (:) 518.15 692.33 T 0 F (XPDocNormal) 108 668.33 T (PrintPutDocumentData) 198 668.33 T 1 F ( sends data to the print serv) 299.65 668.33 T (er and inte) 408.93 668.33 T (grates data) 450.99 668.33 T -0.21 (into the output. The root of the dra) 198 656.33 P -0.21 (w) 334.67 656.33 P -0.21 (able must be the root of the current print) 341.79 656.33 P -0.06 (conte) 198 644.33 P -0.06 (xt. The doc-format and options parameters describe the format of data,) 219.51 644.33 P (which in turn guides the w) 198 632.33 T (ay the serv) 304.28 632.33 T (er interprets it. The) 347.45 632.33 T 0 F (xp-embedded-f) 426.6 632.33 T (or-) 490.79 632.33 T (mats-supported) 198 620.33 T 1 F ( attrib) 265.22 620.33 T (ute in the) 288.63 620.33 T 0 F (XPPrinterAttr) 328.35 620.33 T 1 F ( pool de\336nes v) 391.1 620.33 T (alid v) 449.46 620.33 T (alues) 471.71 620.33 T (for doc-format in this mode, else a) 198 608.33 T 0 F (Match) 338.53 608.33 T 1 F ( error is issued.) 366.3 608.33 T 0 F (XPDocRaw) 108 584.33 T (PrintPutDocumentData) 198 584.33 T 1 F ( sends data directly to the print serv) 299.65 584.33 T (er output. The) 441.98 584.33 T (print serv) 198 572.33 T (er does not emit document or page control codes into the output,) 235.9 572.33 T (and data is passed through unmodi\336ed. Dra) 198 560.33 T (w) 371.44 560.33 T (able must be None, else a) 378.56 560.33 T 0 F (Drawable) 198 548.33 T 1 F ( error is issued. The) 239.66 548.33 T 0 F (xp-raw-f) 321.31 548.33 T (ormats-supported) 358.27 548.33 T 1 F ( attrib) 434.93 548.33 T (ute in the) 458.34 548.33 T 0 F -0.08 (XPPrinterAttr) 198 536.33 P 1 F -0.08 ( pool de\336nes v) 260.75 536.33 P -0.08 (alid v) 318.88 536.33 P -0.08 (alues for doc-format in this mode, else a) 341.05 536.33 P 0 F (Match) 198 524.33 T 1 F ( error is issued.) 225.77 524.33 T (If doc-format is not in) 108 500.33 T 0 F (xp-embedded-f) 198.82 500.33 T (ormats-supported) 263.01 500.33 T 1 F ( or) 339.67 500.33 T 0 F (xp-raw-f) 353 500.33 T (ormats-supported) 389.96 500.33 T 1 F ( a) 466.62 500.33 T 0 F (V) 476.06 500.33 T (alue) 482.36 500.33 T 1 F ( error is) 500.14 500.33 T (issued. The options \336eld is implementation-dependent and the permitted v) 108 488.33 T (alues may depend on the current) 404.4 488.33 T (settings of other attrib) 108 476.33 T (utes and the v) 195.85 476.33 T (alue of doc-format. If an unkno) 250.87 476.33 T (wn options v) 376.14 476.33 T (alue is speci\336ed a) 427.56 476.33 T 0 F (V) 500.88 476.33 T (alue) 507.18 476.33 T 1 F (error is issued, else if options is not v) 108 464.33 T (alid in the current state a) 256.91 464.33 T 0 F (Match) 358 464.33 T 1 F ( error is issued.) 385.77 464.33 T 0 12 Q (PrintStartDoc) 108 409 T 1 10 Q (dri) 108 389.33 T (v) 118.86 389.33 T (er) 123.71 389.33 T (-mode: {) 131.28 389.33 T 0 F (XPDocNormal, XPDocRaw) 166.91 389.33 T 1 F (}) 284.1 389.33 T (Errors:) 108 365.33 T 0 F (V) 138.27 365.33 T (alue, XPBadSequence) 144.57 365.33 T 1 F (This request indicates the be) 108 341.33 T (ginning of an indi) 221.72 341.33 T (vidual document within a print job) 292.86 341.33 T (. The serv) 431.07 341.33 T (er performs the) 470.63 341.33 T -0.36 (actions necessary to de\336ne a ne) 108 329.33 P -0.36 (w document, and generates an) 231.76 329.33 P 0 F -0.36 (XPPrintNotify) 353.27 329.33 P 1 F -0.36 ( e) 415.48 329.33 P -0.36 (v) 421.81 329.33 P -0.36 (ent with its detail \336eld set to) 426.66 329.33 P 0 F (XPStartDocNotify) 108 317.33 T 1 F (.) 185.66 317.33 T (The v) 108 293.33 T (alue of dri) 130.8 293.33 T (v) 171.65 293.33 T (er) 176.5 293.33 T (-mode) 184.07 293.33 T (can be:) 212.12 293.33 T 0 F (XPDocNormal) 108 269.33 T 1 F (Print serv) 198 269.33 T (er generates document data. Depending on the DDX dri) 236.46 269.33 T (v) 459.21 269.33 T (er) 464.06 269.33 T (, it can) 471.43 269.33 T (incorporate data from) 198 257.33 T 0 F (PrintPutDocumentData) 287.14 257.33 T 1 F ( into the document.) 388.79 257.33 T 0 F (XPDocRaw) 108 233.33 T 1 F (The client pro) 198 233.33 T (vides all data for the document using) 253.95 233.33 T 0 F (PrintPutDocument-) 404.21 233.33 T (Data) 198 221.33 T 1 F (. The print serv) 218.55 221.33 T (er does not generate an) 279.5 221.33 T (y data of its o) 371.54 221.33 T (wn into the docu-) 425.73 221.33 T (ment.) 198 209.33 T (If) 108 185.33 T 0 F (PrintStartP) 117.16 185.33 T (age) 167.05 185.33 T 1 F ( is sent immediately after) 181.49 185.33 T 0 F (PrintStartJ) 285.09 185.33 T (ob) 333.82 185.33 T 1 F (, then a synthetic) 344.38 185.33 T 0 F (PrintStartDoc) 414.65 185.33 T 1 F ( with dri) 475.19 185.33 T (v) 508.83 185.33 T (er) 513.68 185.33 T (-) 521.25 185.33 T (mode) 108 173.33 T 0 F (XPDocNormal) 132.72 173.33 T 1 F ( will be generated internally by print serv) 195.48 173.33 T (er before) 360.58 173.33 T 0 F (PrintStartP) 398.89 173.33 T (age) 448.78 173.33 T 1 F (.) 463.22 173.33 T (An) 108 149.33 T (y changes to the) 120.07 149.33 T 0 F (XPDocAttr) 187.28 149.33 T 1 F ( attrib) 235.59 149.33 T (ute pool must be made before) 259 149.33 T 0 F (PrintStartDoc) 380.09 149.33 T 1 F (is e) 443.13 149.33 T (x) 456.59 149.33 T (ecuted. Further) 461.44 149.33 T (modi\336cations can only be made to the attrib) 108 137.33 T (ute pool after a) 283.62 137.33 T 0 F (PrintEndDoc) 346.38 137.33 T 1 F ( request is e) 403.05 137.33 T (x) 450.39 137.33 T (ecuted.) 455.24 137.33 T 0 12 Q (PrintEndDoc) 108 82 T 72 401 90 419.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 419.8 72 401.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 419.8 90 419.8 2 L 0.5 H N 72 419.8 72 401.8 2 L N 72 419.8 90 419.8 2 L N 0 0 612 792 C 72 363 90 381 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 381 72 363 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 363 90 363 2 L N 0 0 612 792 C 72 74 90 92.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 92.8 72 74.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 92.8 90 92.8 2 L 0.5 H N 72 92.8 72 74.8 2 L N 72 92.8 90 92.8 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "6" 10 %%Page: "7" 11 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocols) 86.52 746.67 T (7) 533 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (cancel: BOOL) 108 704.33 T (Errors:) 108 680.33 T 0 F (XPBadSequence) 138.27 680.33 T 1 F (This request signals the end of a print document. The resulting document data is assembled and combined) 108 656.33 T (with data that w) 108 644.33 T (as sent by) 172.06 644.33 T 0 F (PrintPutDocumentData) 214 644.33 T 1 F (.) 315.65 644.33 T (When cancel is) 108 620.33 T 0 F (TR) 171.59 620.33 T (UE) 185.18 620.33 T 1 F (, the document currently being processed is canceled. The serv) 199.07 620.33 T (er may discard an) 449.69 620.33 T (y) 520.35 620.33 T 0 (pending output or may produce partial output. If the job w) 108 608.33 P 0 (as started with) 340.9 608.33 P 0 F 0 (XPGetData) 401.16 608.33 P 1 F 0 ( mode, then the entire) 450.59 608.33 P (data output stream is implementation-de\336ned for this document.) 108 596.33 T -0.21 (The) 108 572.33 P 0 F -0.21 (XpDocAttr) 125.84 572.33 P 1 F -0.21 ( pool that w) 173.6 572.33 P -0.21 (as frozen when the) 220.35 572.33 P 0 F -0.21 (PrintStartDoc) 297.25 572.33 P 1 F -0.21 ( request w) 357.79 572.33 P -0.21 (as e) 398.36 572.33 P -0.21 (x) 413.27 572.33 P -0.21 (ecuted is released when) 418.12 572.33 P 0 F -0.21 (Print-) 514.45 572.33 P (EndDoc) 108 560.33 T 1 F ( is called.) 142.45 560.33 T 0 12 Q (PrintStartP) 108 505 T (age) 167.87 505 T 1 10 Q (windo) 108 485.33 T (w: WINDO) 132.75 485.33 T (W) 179.33 485.33 T (Errors:) 108 461.33 T 0 F (XPBadSequence, W) 138.27 461.33 T (indo) 223.65 461.33 T (w) 242.45 461.33 T 1 F (This request indicates the be) 108 437.33 T (ginning of a single print page within a document. W) 221.72 437.33 T (indo) 430.19 437.33 T (w is the dra) 447.72 437.33 T (w) 493.95 437.33 T (able that) 501.07 437.33 T (represents the page.) 108 425.33 T 0 F (PrintStartP) 108 401.33 T (age) 157.89 401.33 T 1 F ( causes windo) 172.33 401.33 T (w to be mapped. W) 228.18 401.33 T (ithin a) 305.82 401.33 T 0 F (PrintStartP) 333.6 401.33 T (age) 383.49 401.33 T 1 F (/) 397.93 401.33 T 0 F (PrintEndP) 400.71 401.33 T (age) 446.73 401.33 T 1 F ( sequence, an) 461.17 401.33 T (y) 514.61 401.33 T -0.11 (attempts to resize, mo) 108 389.33 P -0.11 (v) 195.28 389.33 P -0.11 (e, or unmap windo) 200.13 389.33 P -0.11 (w will be ignored. T) 274.53 389.33 P -0.11 (o resize or mo) 354.65 389.33 P -0.11 (v) 411.09 389.33 P -0.11 (e inferiors of windo) 415.94 389.33 P -0.11 (w) 494.5 389.33 P -0.11 (, the stan-) 501.07 389.33 P -0.38 (dard semantics used for) 108 377.33 P 0 F -0.38 (Con\336gur) 203.66 377.33 P -0.38 (eW) 241.82 377.33 P -0.38 (indo) 256.08 377.33 P -0.38 (w) 274.88 377.33 P 1 F -0.38 ( apply) 282.1 377.33 P -0.38 (, e) 305.79 377.33 P -0.38 (xcept that the contents of the con\336gured windo) 314.69 377.33 P -0.38 (w may be) 499.77 377.33 P (lost. If the contents of a windo) 108 365.33 T (w are lost, an) 229.68 365.33 T 0 F (Expose) 285.5 365.33 T 1 F ( e) 316.06 365.33 T (v) 322.75 365.33 T (ent is generated.) 327.6 365.33 T -0.07 (A) 108 341.33 P 0 F -0.07 (W) 117.65 341.33 P -0.07 (indo) 127.47 341.33 P -0.07 (w) 146.27 341.33 P 1 F -0.07 ( error is issued if windo) 153.49 341.33 P -0.07 (w is not a descendent of the root windo) 247.6 341.33 P -0.07 (w of the current print conte) 404 341.33 P -0.07 (xt. An) 512.64 341.33 P 0 F (XPBadSequence) 108 329.33 T 1 F ( error is issued if) 178.56 329.33 T 0 F (PrintStartP) 248.27 329.33 T (age) 298.16 329.33 T 1 F ( is called in an) 312.6 329.33 T 0 F (XPDocRaw) 372.87 329.33 T 1 F ( document.) 422.3 329.33 T (An) 108 305.33 T (y changes to the) 120.07 305.33 T 0 F (XPP) 187.28 305.33 T (ageAttr) 206.62 305.33 T 1 F ( attrib) 239.38 305.33 T (ute pool must be made before) 262.79 305.33 T 0 F (PrintStartP) 383.88 305.33 T (age) 433.77 305.33 T 1 F (is e) 450.71 305.33 T (x) 464.17 305.33 T (ecuted. Further) 469.02 305.33 T (modi\336cations can only be made to the attrib) 108 293.33 T (ute pool after a) 283.62 293.33 T 0 F (PrintEndP) 346.38 293.33 T (age) 392.4 293.33 T 1 F ( request is e) 406.84 293.33 T (x) 454.18 293.33 T (ecuted.) 459.03 293.33 T 0 12 Q (PrintEndP) 108 238 T (age) 163.22 238 T 1 10 Q (cancel: BOOL) 108 218.33 T (Errors:) 108 194.33 T 0 F (XPBadContext, XPBadSequence) 138.27 194.33 T 1 F (This request indicates the end of a print page, and causes windo) 108 170.33 T (w to be unmapped. If cancel is) 362.7 170.33 T 0 F (TR) 487.67 170.33 T (UE) 501.26 170.33 T 1 F (, the) 515.15 170.33 T (current print page is canceled.) 108 158.33 T (When cancel is) 108 134.33 T 0 F (TR) 171.59 134.33 T (UE) 185.18 134.33 T 1 F (, the job currently being processed is canceled. The serv) 199.07 134.33 T (er may discard an) 423.03 134.33 T (y pending) 493.69 134.33 T -0.03 (output or may produce partial output. If the job w) 108 122.33 P -0.03 (as started with) 305.9 122.33 P 0 F -0.03 (XPGetData) 366.07 122.33 P 1 F -0.03 ( mode, then the entire data out-) 415.5 122.33 P (put stream is implementation-de\336ned for this page.) 108 110.33 T (The pool of job attrib) 108 86.33 T (utes that w) 193.35 86.33 T (as frozen when the) 236.58 86.33 T 0 F (PrintStartP) 314.33 86.33 T (age) 364.22 86.33 T 1 F ( request w) 378.66 86.33 T (as e) 419.66 86.33 T (x) 434.78 86.33 T (ecuted is freed when) 439.63 86.33 T 0 F (PrintEndP) 108 74.33 T (age) 154.02 74.33 T 1 F ( is called.) 168.46 74.33 T 72 678 90 696 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 696 72 678 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 678 90 678 2 L N 0 0 612 792 C 72 497 90 515.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 515.8 72 497.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 515.8 90 515.8 2 L 0.5 H N 72 515.8 72 497.8 2 L N 72 515.8 90 515.8 2 L N 0 0 612 792 C 72 459 90 477 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 477 72 459 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 459 90 459 2 L N 0 0 612 792 C 72 230 90 248.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 248.8 72 230.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 248.8 90 248.8 2 L 0.5 H N 72 248.8 72 230.8 2 L N 72 248.8 90 248.8 2 L N 0 0 612 792 C 72 192 90 210 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 210 72 192 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 192 90 192 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "7" 11 %%Page: "8" 12 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (8) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (8) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 12 Q 0 X (PrintGetP) 108 577 T (ageDimensions) 160.54 577 T 1 10 Q (conte) 108 557.33 T (xt: PCONTEXT) 129.51 557.33 T 3 F (\256) 100.8 541.33 T 1 F (width: CARD16) 108 525.33 T (height: CARD16) 108 513.33 T (of) 108 501.33 T (fset-x: CARD16) 116.08 501.33 T (of) 108 489.33 T (fset-y: CARD16) 116.08 489.33 T (reproducible-width: CARD16) 108 477.33 T (reproducible-height: CARD16) 108 465.33 T (Errors:) 108 441.33 T 0 F (XPBadContext) 138.27 441.33 T 1 F (This request returns the total width and height of a page in pix) 108 417.33 T (els, together with the net reproducible area) 356.71 417.33 T (within the page. The net reproducible area is the portion of the page on which the printer is ph) 108 405.33 T (ysically capa-) 484.27 405.33 T (ble of placing ink.) 108 393.33 T 0 12 Q (PrintSelectInput) 108 338 T 1 10 Q (conte) 108 318.33 T (xt: PCONTEXT) 129.51 318.33 T (e) 108 306.33 T (v) 112.19 306.33 T (ent-mask: BITMASK) 117.04 306.33 T (Errors:) 108 282.33 T 0 F (XPBadContext, V) 138.27 282.33 T (alue) 214.01 282.33 T 1 F (This request speci\336es the print e) 108 258.33 T (v) 236.9 258.33 T (ents, from those in the speci\336ed print conte) 241.75 258.33 T (xt, the client is interested in.) 414.36 258.33 T (Possible v) 108 246.33 T (alues for the e) 148.59 246.33 T (v) 204.71 246.33 T (ent-mask BITMASK are:) 209.56 246.33 T (\245) 108 228.33 T (XPNoEv) 126 228.33 T (entMask) 161.96 228.33 T (\245) 108 216.33 T (XPPrintMask) 126 216.33 T (\245) 108 204.33 T (XP) 126 204.33 T (Attrib) 137.86 204.33 T (uteMask) 161.55 204.33 T 0 12 Q (PrintInputSelected) 108 149 T 1 10 Q (conte) 108 129.33 T (xt: PCONTEXT) 129.51 129.33 T 3 F (\256) 100.8 113.33 T 1 F (e) 108 97.33 T (v) 112.19 97.33 T (ent-mask, all-e) 117.04 97.33 T (v) 176.22 97.33 T (ents-mask: BITMASK) 181.07 97.33 T (Errors:) 108 73.33 T 0 F (XPBadContext) 138.27 73.33 T 72 569 90 587.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 587.8 72 569.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 587.8 90 587.8 2 L 0.5 H N 72 587.8 72 569.8 2 L N 72 587.8 90 587.8 2 L N 0 0 612 792 C 72 439 90 457 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 457 72 439 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 439 90 439 2 L N 0 0 612 792 C 72 330 90 348.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 348.8 72 330.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 348.8 90 348.8 2 L 0.5 H N 72 348.8 72 330.8 2 L N 72 348.8 90 348.8 2 L N 0 0 612 792 C 72 280 90 298 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 298 72 280 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 280 90 280 2 L N 0 0 612 792 C 72 141 90 159.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 159.8 72 141.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 159.8 90 159.8 2 L 0.5 H N 72 159.8 72 141.8 2 L N 72 159.8 90 159.8 2 L N 0 0 612 792 C 72 71 90 89 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 89 72 71 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 71 90 71 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "8" 12 %%Page: "9" 13 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocols) 86.52 746.67 T (9) 533 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (This request queries which X Print Serv) 108 704.33 T (er e) 267.83 704.33 T (v) 282.29 704.33 T (ents the client has selected to recei) 287.14 704.33 T (v) 425.19 704.33 T (e from the speci\336ed print) 430.04 704.33 T (conte) 108 692.33 T (xt. all-e) 129.51 692.33 T (v) 159.81 692.33 T (ents-mask returns the set of all e) 164.66 692.33 T (v) 293.83 692.33 T (ents selected by all clients.) 298.68 692.33 T 0 12 Q (PrintGetAttrib) 108 589 T (utes) 185.08 589 T 1 10 Q (conte) 108 569.33 T (xt: PCONTEXT) 129.51 569.33 T (pool: {) 108 557.33 T 0 F (XPJ) 135.86 557.33 T (obAttr) 154.04 557.33 T (, XPDocAttr) 182 557.33 T (, XPP) 234.39 557.33 T (ageAttr) 258.73 557.33 T (, XPPrinterAttr) 290.57 557.33 T (, XPSer) 357.4 557.33 T (v) 390.07 557.33 T (erAttr) 394.97 557.33 T 1 F (}) 422.17 557.33 T 3 F (\256) 100.8 541.33 T 1 F (attrib) 108 525.33 T (utes: STRING8) 128.91 525.33 T (Errors:) 108 501.33 T 0 F (XPBadContext, V) 138.27 501.33 T (alue) 214.01 501.33 T 1 F -0.33 (This request returns an attrib) 108 477.33 P -0.33 (ute pool from the speci\336ed print conte) 221.48 477.33 P -0.33 (xt. attrib) 372.13 477.33 P -0.33 (utes is the attrib) 405.49 477.33 P -0.33 (ute pool speci\336ed) 467.93 477.33 P (by pool, and is encoded in COMPOUND_TEXT) 108 465.33 T (.) 302.52 465.33 T (The format used for attrib) 108 441.33 T (utes is the same as the format used for an X resource \336le. F) 211.11 441.33 T (or a description see) 447.58 441.33 T (Section 15.1, \322Resource File Syntax\323, in the Xlib speci\336cation.) 108 429.33 T (See section) 108 405.33 T (3 for a detailed description of attrib) 155.77 405.33 T (utes.) 297.21 405.33 T 0 12 Q (PrintGetOneAttrib) 108 350 T (ute) 206.41 350 T 1 10 Q (conte) 108 330.33 T (xt: PCONTEXT) 129.51 330.33 T (pool: {) 108 318.33 T 0 F (XPJ) 135.86 318.33 T (obAttr) 154.04 318.33 T (, XPDocAttr) 182 318.33 T (, XPP) 234.39 318.33 T (ageAttr) 258.73 318.33 T (, XPPrinterAttr) 290.57 318.33 T (, XPSer) 357.4 318.33 T (v) 390.07 318.33 T (erAttr) 394.97 318.33 T 1 F (}) 422.17 318.33 T (name: STRING8) 108 306.33 T 3 F (\256) 100.8 290.33 T 1 F (v) 108 274.33 T (alue: STRING8) 112.75 274.33 T (Errors:) 108 250.33 T 0 F (XPBadContext, V) 138.27 250.33 T (alue) 214.01 250.33 T 1 F -0.02 (This request retrie) 108 226.33 P -0.02 (v) 180.47 226.33 P -0.02 (es a single attrib) 185.32 226.33 P -0.02 (ute from the speci\336ed print conte) 250.33 226.33 P -0.02 (xt. It is similar to) 382.55 226.33 P 0 F -0.02 (PrintGetAttrib) 453.57 226.33 P -0.02 (utes,) 517.8 226.33 P 1 F (b) 108 214.33 T (ut returns only one attrib) 112.8 214.33 T (ute v) 211.48 214.33 T (alue instead of an entire pool of attrib) 230.95 214.33 T (utes. The speci\336c attrib) 381 214.33 T (ute is speci\336ed) 474.12 214.33 T (by name. v) 108 202.33 T (alue is encoded in COMPOUND_TEXT) 151.91 202.33 T (.) 313.37 202.33 T 0 12 Q (PrintSetAttrib) 108 147 T (utes) 182.41 147 T 1 10 Q (conte) 108 127.33 T (xt: PCONTEXT) 129.51 127.33 T (pool: {) 108 115.33 T 0 F (XPJ) 135.86 115.33 T (obAttr) 154.04 115.33 T (, XPDocAttr) 182 115.33 T (, XPP) 234.39 115.33 T (ageAttr) 258.73 115.33 T (, XPPrinterAttr) 290.57 115.33 T (, XPSer) 357.4 115.33 T (v) 390.07 115.33 T (erAttr) 394.97 115.33 T 1 F (}) 422.17 115.33 T (rule: {) 108 103.33 T 0 F (XP) 133.63 103.33 T (AttrMer) 146.22 103.33 T (ge, XP) 182.76 103.33 T (AttrReplace) 209.79 103.33 T 1 F (}) 261.99 103.33 T (attrib) 108 91.33 T (utes: STRING8) 128.91 91.33 T (Errors:) 108 67.33 T 0 F (XPBadContext, XPBadSequence, V) 138.27 67.33 T (alue, Match) 289.57 67.33 T 72 581 90 599.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 599.8 72 581.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 599.8 90 599.8 2 L 0.5 H N 72 599.8 72 581.8 2 L N 72 599.8 90 599.8 2 L N 0 0 612 792 C 72 499 90 517 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 517 72 499 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 499 90 499 2 L N 0 0 612 792 C 72 342 90 360.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 360.8 72 342.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 360.8 90 360.8 2 L 0.5 H N 72 360.8 72 342.8 2 L N 72 360.8 90 360.8 2 L N 0 0 612 792 C 72 248 90 266 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 266 72 248 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 248 90 248 2 L N 0 0 612 792 C 72 139 90 157.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 157.8 72 139.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 157.8 90 157.8 2 L 0.5 H N 72 157.8 72 139.8 2 L N 72 157.8 90 157.8 2 L N 0 0 612 792 C 72 65 90 83 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 83 72 65 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 65 90 65 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "9" 13 %%Page: "10" 14 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (10) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (10) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X (This request sets the names and v) 108 704.33 T (alues for one or more attrib) 241.62 704.33 T (utes within the speci\336ed attrib) 350.56 704.33 T (ute pool.) 470.91 704.33 T (attrib) 108 692.33 T (utes is encoded in COMPOUND_TEXT that represents ne) 128.91 692.33 T (w name/v) 362.79 692.33 T (alue pairs according to the v) 401.7 692.33 T (alue) 514.48 692.33 T (speci\336ed in rule. F) 108 680.33 T (or) 182.29 680.33 T 0 F (XP) 193.12 680.33 T (AttrReplace) 205.71 680.33 T 1 F (, the e) 257.91 680.33 T (xisting attrib) 281.92 680.33 T (ute pool is discarded and replaced with attrib) 332.56 680.33 T (utes.) 512.05 680.33 T (F) 108 668.33 T (or) 113.41 668.33 T 0 F (XP) 124.24 668.33 T (AttrMer) 136.83 668.33 T (ge) 173.37 668.33 T 1 F (, attrib) 182.81 668.33 T (utes is mer) 208.72 668.33 T (ged into the e) 251.87 668.33 T (xisting attrib) 305.88 668.33 T (ute pool; e) 356.52 668.33 T (xisting name/v) 398.59 668.33 T (alue pairs are) 457.51 668.33 T (replaced and ne) 108 656.33 T (w ones are added.) 170.5 656.33 T (The format used for attrib) 108 632.33 T (utes is the same as the format used for an X resource \336le. F) 211.11 632.33 T (or a description see) 447.58 632.33 T (Section 15.1, \322Resource File Syntax\323, in the Xlib speci\336cation.) 108 620.33 T (See section) 108 596.33 T (3 for a detailed description of attrib) 155.77 596.33 T (utes.) 297.21 596.33 T 0 (A) 108 572.33 P 0 F 0 (Match) 117.72 572.33 P 1 F 0 ( message is returned if read-only attrib) 145.49 572.33 P 0 (ute pools attempt to use) 299.68 572.33 P 0 F 0 (PrintSetAttrib) 397.17 572.33 P 0 (utes) 459.18 572.33 P 1 F 0 (. An) 476.4 572.33 P 0 F 0 (XPBadSe-) 496.11 572.33 P -0.14 (quence) 108 560.33 P 1 F -0.14 ( message is issued when a request is sent to an attrib) 138 560.33 P -0.14 (ute pool at a time when the attrib) 345.46 560.33 P -0.14 (ute pool cannot) 476.24 560.33 P (be modi\336ed.) 108 548.33 T 0 12 Q (PrintRehashPrinterList) 108 493 T 1 10 Q (This request causes the print serv) 108 450.33 T (er to update its list of a) 240.88 450.33 T (v) 332.34 450.33 T (ailable printers together with their attrib) 337.09 450.33 T (utes. The) 496.59 450.33 T (print f) 108 438.33 T (acilities underlying X Serv) 132.62 438.33 T (er may pro) 239.96 438.33 T (vide it with the ability to detect changes in printer topology and) 283.13 438.33 T (dynamically update the list to re\337ect the changes. If X Serv) 108 426.33 T (er does not ha) 345.31 426.33 T (v) 400.93 426.33 T (e this capability) 405.78 426.33 T (, the) 468.46 426.33 T 0 F (PrintRe-) 488.18 426.33 T (hashPrinterList) 108 414.33 T 1 F ( must be used to notify it of changes.) 175.78 414.33 T 0 12 Q (PrintQueryV) 108 359 T (ersion) 174.79 359 T 3 10 Q (\256) 100.8 339.33 T 1 F (major) 108 323.33 T (-v) 131.13 323.33 T (ersion, minor) 139.31 323.33 T (-v) 192.44 323.33 T (ersion: CARD16) 200.62 323.33 T (This request returns the major and minor v) 108 299.33 T (ersion numbers of the X Print Service.) 278.66 299.33 T 0 12 Q (PrintQueryScr) 108 244 T (eens) 184.44 244 T 3 10 Q (\256) 100.8 224.33 T 1 F (roots: LIST) 108 208.33 T (ofWINDO) 153.59 208.33 T (W) 196 208.33 T (This request returns a list of the X Serv) 108 184.33 T (er screens that support the X Print Service Extension.) 265.05 184.33 T 0 12 Q (PrintSetImageResolution) 108 129 T 1 10 Q (conte) 108 109.33 T (xt: PCONTEXT) 129.51 109.33 T (image-resolution: CARD16) 108 97.33 T 3 F (\256) 100.8 81.33 T 72 485 90 503.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 503.8 72 485.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 503.8 90 503.8 2 L 0.5 H N 72 503.8 72 485.8 2 L N 72 503.8 90 503.8 2 L N 0 0 612 792 C 72 472 90 490 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 490 72 472 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 472 90 472 2 L N 0 0 612 792 C 72 351 90 369.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 369.8 72 351.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 369.8 90 369.8 2 L 0.5 H N 72 369.8 72 351.8 2 L N 72 369.8 90 369.8 2 L N 0 0 612 792 C 72 321 90 339 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 339 72 321 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 321 90 321 2 L N 0 0 612 792 C 72 236 90 254.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 254.8 72 236.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 254.8 90 254.8 2 L 0.5 H N 72 254.8 72 236.8 2 L N 72 254.8 90 254.8 2 L N 0 0 612 792 C 72 206 90 224 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 224 72 206 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 206 90 206 2 L N 0 0 612 792 C 72 121 90 139.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 139.8 72 121.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 139.8 90 139.8 2 L 0.5 H N 72 139.8 72 121.8 2 L N 72 139.8 90 139.8 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "10" 14 %%Page: "11" 15 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocols) 86.52 746.67 T (11) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (status: BOOL) 108 704.33 T (pre) 108 692.33 T (vious-resolution: CARD16) 120.52 692.33 T (Errors:) 108 668.33 T 0 F (XPBadContext) 138.27 668.33 T 1 F (This request sets the resolution for subsequent) 108 644.33 T 0 F (PutImage) 295.48 644.33 T 1 F ( requests on the screen of conte) 337.14 644.33 T (xt, in pix) 462.51 644.33 T (els per) 498.2 644.33 T (inch.) 108 632.33 T (When status is) 108 608.33 T 0 F (TR) 168.83 608.33 T (UE) 182.42 608.33 T 1 F (, then the contents of an) 196.31 608.33 T (y subsequent) 291.7 608.33 T 0 F (PutImage) 346.14 608.33 T 1 F ( request to a Pixmap or to a W) 387.8 608.33 T (indo) 509.05 608.33 T (w) 526.58 608.33 T -0.26 (on the screen of the speci\336ed print conte) 108 596.33 P -0.26 (xt will automatically be scaled as part of the) 267.92 596.33 P 0 F -0.26 (PutImage) 444.7 596.33 P 1 F -0.26 ( request. The) 486.36 596.33 P (scale f) 108 584.33 T (actor is:) 133.72 584.33 T 4 F (default-printer-resolution / image-resolution) 144 566.33 T 1 F (where def) 108 542.33 T (ault-printer) 147.6 542.33 T (-resolution is the current v) 192.39 542.33 T (alue of that page attrib) 297.68 542.33 T (ute. Only the image itself is scaled) 387.46 542.33 T (\050meaning the ef) 108 530.33 T (fecti) 170.51 530.33 T (v) 188.03 530.33 T (e width and height of the image change\051, the dst-x and dst-y parameters to) 192.88 530.33 T 0 F (PutImage) 491.99 530.33 T 1 F (are not altered.) 108 518.33 T (As a special case, a v) 108 494.33 T (alue of zero for image_res resets the resolution to automatically track the printer reso-) 192.72 494.33 T (lution. In this case \050which is also the def) 108 482.33 T (ault setting for a ne) 269.27 482.33 T (wly created print conte) 346.23 482.33 T (xt\051, subsequent images) 438 482.33 T (will not be scaled.) 108 470.33 T (pre) 108 446.33 T (vious-resolution is the pre) 120.52 446.33 T (vious image resolution that w) 224.43 446.33 T (as set for conte) 342.66 446.33 T (xt in pix) 402.77 446.33 T (els per inch.) 435.96 446.33 T (If status is) 108 422.33 T 0 F (F) 151.61 422.33 T (ALSE) 156.82 422.33 T 1 F (, then the print serv) 182.94 422.33 T (er does not support image scaling foor the particular resolution gi) 260.28 422.33 T (v) 521.66 422.33 T (en) 526.51 422.33 T (the current con\336guration of the printer) 108 410.33 T (, and the application is responsible for an) 261.18 410.33 T (y desired scaling.) 425.45 410.33 T 0 12 Q (PrintGetImageResolution) 108 355 T 1 10 Q (conte) 108 335.33 T (xt: PCONTEXT) 129.51 335.33 T 3 F (\256) 100.8 319.33 T 1 F (image-resolution: CARD16) 108 303.33 T (Errors:) 108 279.33 T 0 F (XPBadContext) 138.27 279.33 T 1 F (This request returns the current image-resolution for conte) 108 255.33 T (xt in pix) 341.41 255.33 T (els per inch. A v) 374.6 255.33 T (alue of zero means the) 440.17 255.33 T (resolution automatically tracks the printer resolution. If the request f) 108 243.33 T (ails in some w) 381.19 243.33 T (ay) 438.59 243.33 T (, a ne) 447.38 243.33 T (g) 468.61 243.33 T (ati) 473.56 243.33 T (v) 483.31 243.33 T (e v) 488.16 243.33 T (alue is) 499.85 243.33 T (returned.) 108 231.33 T 0 14 Q (2.4) 72 195.67 T (Ev) 108 195.67 T (ents) 124.2 195.67 T 0 12 Q (XPPrintNotify) 108 140 T 1 10 Q (detail: {) 108 120.33 T 0 F (XPStartJ) 140.3 120.33 T (obNotify) 180.14 120.33 T (, XPEndJ) 216.81 120.33 T (obNotify) 257.78 120.33 T (, XPStartDocNotify) 294.45 120.33 T (, XPEndDocNotify) 377.21 120.33 T (,) 456.1 120.33 T (XPStartP) 136.8 108.33 T (ageNotify) 177.8 108.33 T (, XPEndP) 218.35 108.33 T (ageNotify) 260.48 108.33 T 1 F (}) 301.58 108.33 T (conte) 108 96.33 T (xt: PCONTEXT) 129.51 96.33 T (cancel: BOOL) 108 84.33 T 72 666 90 684 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 684 72 666 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 666 90 666 2 L N 0 0 612 792 C 72 347 90 365.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 365.8 72 347.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 365.8 90 365.8 2 L 0.5 H N 72 365.8 72 347.8 2 L N 72 365.8 90 365.8 2 L N 0 0 612 792 C 72 277 90 295 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 295 72 277 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 277 90 277 2 L N 0 0 612 792 C 72 132 90 150.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 150.8 72 132.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 150.8 90 150.8 2 L 0.5 H N 72 150.8 72 132.8 2 L N 72 150.8 90 150.8 2 L N 0 0 612 792 C 72 82 90 100 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 100 72 82 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 82 90 82 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "11" 15 %%Page: "12" 16 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (12) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocols) 466.22 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (12) 72 749.33 T (Pr) 448.27 749.33 T (otocols) 462.78 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X (This e) 108 704.33 T (v) 132.47 704.33 T (ent is generated when requests to) 137.32 704.33 T 0 F (PrintStartDoc) 272.29 704.33 T 1 F (,) 332.83 704.33 T 0 F (PrintStartJ) 337.83 704.33 T (ob) 386.56 704.33 T 1 F (,) 397.12 704.33 T 0 F (PrintStartP) 402.12 704.33 T (age) 452.01 704.33 T 1 F (,) 466.45 704.33 T 0 F (PrintEndDoc) 471.45 704.33 T 1 F (,) 528.12 704.33 T 0 F (PrintEndJ) 108 692.33 T (ob) 152.86 692.33 T 1 F (, and) 163.42 692.33 T 0 F (PrintEndP) 185.36 692.33 T (age) 231.38 692.33 T 1 F ( ha) 245.82 692.33 T (v) 257.56 692.33 T (e been processed and completed. It is reported to clients selecting) 262.41 692.33 T 0 F (XPPrintMask) 108 680.33 T 1 F (.) 167.44 680.33 T 0 12 Q (XP) 108 625 T (Attrib) 123.11 625 T (uteNotify) 154.86 625 T 1 10 Q (detail: {) 108 605.33 T 0 F (XPJ) 140.3 605.33 T (obAttr) 158.48 605.33 T (, XPDocAttr) 186.44 605.33 T (, XPP) 238.83 605.33 T (ageAttr) 263.17 605.33 T (, XPPrinterAttr) 295.01 605.33 T (, XPSer) 361.84 605.33 T (v) 394.51 605.33 T (erAttr) 399.41 605.33 T (, XPMe-) 425.69 605.33 T (diumAttr) 136.8 593.33 T (, XPSpoolerAttr) 176.43 593.33 T 1 F (}) 245.86 593.33 T (conte) 108 581.33 T (xt: PCONTEXT) 129.51 581.33 T (This e) 108 557.33 T (v) 132.47 557.33 T (ent is generated when an) 137.32 557.33 T (y of the print attrib) 236.03 557.33 T (ute pools maintained by the print serv) 311.38 557.33 T (er ha) 462.33 557.33 T (v) 481.84 557.33 T (e been modi-) 486.69 557.33 T -0.25 (\336ed. The modi\336cations may ha) 108 545.33 P -0.25 (v) 230.98 545.33 P -0.25 (e been initiated by the print serv) 235.83 545.33 P -0.25 (er itself or by a) 363.07 545.33 P 0 F -0.25 (PrintSetAttrib) 424.88 545.33 P -0.25 (utes) 486.89 545.33 P 1 F -0.25 ( request.) 504.11 545.33 P (It is reported to clients selecting) 108 533.33 T 0 F (XP) 238.54 533.33 T (Attrib) 251.13 533.33 T (uteMask) 277.59 533.33 T 1 F (.) 314.81 533.33 T 72 617 90 635.8 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 635.8 72 617.8 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 635.8 90 635.8 2 L 0.5 H N 72 635.8 72 617.8 2 L N 72 635.8 90 635.8 2 L N 0 0 612 792 C 72 579 90 597 C 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 597 72 579 2 L 1 H 2 Z 0 X 0 0 0 1 0 0 0 K N 72 579 90 579 2 L N 0 0 612 792 C 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "12" 16 %%Page: "13" 17 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (X Print Attrib) 72 746.67 T (utes) 157.26 746.67 T (13) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 18 Q (3) 72 699 T (X Print Attrib) 108 699 T (utes) 217.62 699 T 1 10 Q (Printing-speci\336c attrib) 108 666.33 T (utes play a k) 197.52 666.33 T (e) 247.69 666.33 T (y role in the X Print Service. The) 251.98 666.33 T (y pro) 384.59 666.33 T (vide a general-purpose mecha-) 405.27 666.33 T (nism for storing information associated with printing. This information includes user print setup options,) 108 654.33 T (printer capabilities, and spooler subsystem options.) 108 642.33 T (The X Print Service selects attrib) 108 618.33 T (utes in a w) 240.28 618.33 T (ay that is consistent with the X W) 283.23 618.33 T (indo) 418.1 618.33 T (ws System, ISO/IEC) 435.63 618.33 T (10175 \050ISO DP) 108 606.33 T (A\051, and POSIX 1387.4 print standards. The ISO DP) 169.3 606.33 T (A de\336nes a number of abstract objects) 375.86 606.33 T (that are managed and manipulated during the printing process. These are kno) 108 594.33 T (wn as DP) 416.02 594.33 T (A-Objects. Each) 453.43 594.33 T -0.13 (DP) 108 582.33 P -0.13 (A-Object is represented by a set of attrib) 119.86 582.33 P -0.13 (utes which characterize that object. Each attrib) 281.24 582.33 P -0.13 (ute in turn is com-) 467.17 582.33 P (posed of an attrib) 108 570.33 T (ute-type \050attrib) 177.51 570.33 T (ute name\051 and zero or more attrib) 237.02 570.33 T (ute-v) 370.67 570.33 T (alues.) 390.97 570.33 T (The X Print Service utilizes selected DP) 108 552.33 T (A-Objects, and for each of these, a subset of the associated) 268.17 552.33 T (attrib) 108 540.33 T (utes. The DP) 128.91 540.33 T (A-Objects used are:) 179.93 540.33 T 0 F (Ser) 108 518.33 T (v) 122.34 518.33 T (er Object) 127.24 518.33 T 1 F (Speci\336es attrib) 198 518.33 T (utes de\336ned for the X print serv) 257.52 518.33 T (er) 384.57 518.33 T (.) 391.79 518.33 T 0 F (J) 108 496.33 T (ob Object) 112.85 496.33 T 1 F (Speci\336es attrib) 198 496.33 T (utes for a single print request as sent to the spooler) 257.52 496.33 T (.) 459.72 496.33 T 0 F (Document Object) 108 474.33 T 1 F (Speci\336es attrib) 198 474.33 T (utes used to de\336ne a single document within a job) 257.52 474.33 T (. If supported by) 456.83 474.33 T (the implementation, multiple documents may be submitted within a gi) 198 462.33 T (v) 478.31 462.33 T (en job) 483.16 462.33 T (.) 507.48 462.33 T 0 F (Printer Object) 108 440.33 T 1 F (Speci\336es attrib) 198 440.33 T (utes that identify printer capabilities.) 257.52 440.33 T (The X Print Service also pro) 108 418.33 T (vides for changing certain attrib) 222 418.33 T (utes on a page-by-page basis. This is a) 349.55 418.33 T (capability for which the ISO DP) 108 406.33 T (A does not de\336ne a separate DP) 236.23 406.33 T (A-Object. This set of attrib) 363.06 406.33 T (utes is kno) 470.9 406.33 T (wn) 513.43 406.33 T (within the X Print Service as P) 108 394.33 T (age Attrib) 231.18 394.33 T (utes.) 271.25 394.33 T (The X Print Service requires some additional attrib) 108 372.33 T (utes that are not de\336ned by the ISO DP) 311.94 372.33 T (A. The attrib) 467.67 372.33 T (ute) 518.85 372.33 T (names for these attrib) 108 360.33 T (utes are pre\336x) 194.17 360.33 T (ed with \322) 250.67 360.33 T 0 F (xp-) 287.33 360.33 T 1 F (\323.) 301.22 360.33 T (A serv) 108 338.33 T (er implementation can de\336ne additional attrib) 134.23 338.33 T (utes.) 316.51 338.33 T (This section de\336nes the follo) 108 316.33 T (wing sets of attrib) 223.3 316.33 T (utes for the X Print Service:) 295.04 316.33 T (\245) 108 294.33 T (Serv) 126 294.33 T (er Attrib) 144.18 294.33 T (utes) 178.14 294.33 T (\245) 108 282.33 T (Printer Attrib) 126 282.33 T (utes) 179.41 282.33 T (\245) 108 270.33 T (Job Attrib) 126 270.33 T (utes) 166.08 270.33 T (\245) 108 258.33 T (Document Attrib) 126 258.33 T (utes) 193.85 258.33 T (\245) 108 246.33 T (P) 126 246.33 T (age Attrib) 131.41 246.33 T (utes) 171.48 246.33 T 0 14 Q (3.1) 72 210.67 T (Attrib) 108 210.67 T (ute V) 145.04 210.67 T (alue Defaults And V) 176.03 210.67 T (alidation) 295.68 210.67 T 1 10 Q (This section pro) 108 186.33 T (vides an o) 172.29 186.33 T (v) 212.69 186.33 T (ervie) 217.54 186.33 T (w of the handling of def) 237.28 186.33 T (ault attrib) 333.55 186.33 T (ute v) 371.96 186.33 T (alues and the procedure for the v) 391.43 186.33 T (ali-) 522.25 186.33 T -0.14 (dation of attrib) 108 174.33 P -0.14 (ute v) 166.96 174.33 P -0.14 (alues within the X Print Service. Details for indi) 186.3 174.33 P -0.14 (vidual attrib) 377.99 174.33 P -0.14 (utes can be found in the rest) 426.26 174.33 P (of this chapter) 108 162.33 T (.) 164.66 162.33 T 0 14 Q (3.1.1) 72 129.67 T (Assigning Attrib) 126 129.67 T (ute V) 224.9 129.67 T (alue Defaults) 255.88 129.67 T 1 10 Q (An attrib) 108 105.33 T (ute speci\336cation with an empty v) 143.63 105.33 T (alue indicates that the attrib) 275.87 105.33 T (ute has no v) 386.21 105.33 T (alue. W) 434.01 105.33 T (ithin X Print Ser-) 464.71 105.33 T (vice con\336guration \336les and attrib) 108 93.33 T (ute pools, an attrib) 240.01 93.33 T (ute speci\336cation that omits the v) 314.25 93.33 T (alue is ef) 443.72 93.33 T (fecti) 479.57 93.33 T (v) 497.09 93.33 T (ely) 501.94 93.33 T -0.37 (treated as if there were no attrib) 108 81.33 P -0.37 (ute speci\336cation. An empty v) 232.78 81.33 P -0.37 (alued attrib) 348.56 81.33 P -0.37 (ute speci\336cation that has precedence) 393.26 81.33 P (o) 108 69.33 T (v) 112.85 69.33 T (er a non-empty attrib) 117.7 69.33 T (ute speci\336cation \050for instance, an empty printer quali\336ed attrib) 201.65 69.33 T (ute o) 451.69 69.33 T (v) 471.26 69.33 T (er a non-empty) 476.11 69.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "13" 17 %%Page: "14" 18 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (14) 72 41.28 T (December 15, 1997) 248.71 41.28 T (X Print Attrib) 432.53 41.28 T (utes) 487.89 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (14) 72 749.33 T (X Print Attrib) 394.63 749.33 T (utes) 479.89 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X -0.02 (model quali\336ed attrib) 108 704.33 P -0.02 (ute\051 will ef) 193.88 704.33 P -0.02 (fecti) 237.48 704.33 P -0.02 (v) 255 704.33 P -0.02 (ely \322unset\323 the lo) 259.85 704.33 P -0.02 (wer precedence attrib) 329.26 704.33 P -0.02 (ute speci\336cation. When a print) 415.1 704.33 P (job commences, the X Print Service may infer a def) 108 692.33 T (ault v) 315.08 692.33 T (alue for an attrib) 337.33 692.33 T (ute that has no v) 403.5 692.33 T (alue. In some) 468.8 692.33 T (cases the X Print Service may e) 108 680.33 T (xplicitly assign a def) 234.49 680.33 T (ault v) 317.44 680.33 T (alue to an attrib) 339.69 680.33 T (ute before presenting it in an) 401.98 680.33 T (attrib) 108 668.33 T (ute pool.) 128.91 668.33 T 0 14 Q (3.1.2) 72 635.67 T (V) 126 635.67 T (alidating Attrib) 134.82 635.67 T (ute V) 228.27 635.67 T (alues) 259.25 635.67 T 1 10 Q -0.23 (The X Print Serv) 108 611.33 P -0.23 (er ensures that attrib) 175.21 611.33 P -0.23 (ute pools presented to the client are al) 255.69 611.33 P -0.23 (w) 405.33 611.33 P -0.23 (ays comprised of v) 412.45 611.33 P -0.23 (alid attrib) 487.33 611.33 P -0.23 (ute) 525.51 611.33 P -0.22 (speci\336cations for attrib) 108 599.33 P -0.22 (utes de\336ned by the X Print Service. V) 199.57 599.33 P -0.22 (alidation is \336rst performed when a print conte) 348.59 599.33 P -0.22 (xt) 529.94 599.33 P (is created. V) 108 587.33 T (alidation is also performed whene) 157.15 587.33 T (v) 292.43 587.33 T (er a client requests an update to an attrib) 297.28 587.33 T (ute pool.) 458.71 587.33 T -0.32 (V) 108 563.33 P -0.32 (alidation in) 114.11 563.33 P -0.32 (v) 158.67 563.33 P -0.32 (olv) 163.47 563.33 P -0.32 (es checking the attrib) 176.1 563.33 P -0.32 (ute v) 260.19 563.33 P -0.32 (alue ag) 279.33 563.33 P -0.32 (ainst its set of v) 307.56 563.33 P -0.32 (alid v) 368.8 563.33 P -0.32 (alues. The process may also tak) 390.72 563.33 P -0.32 (e into) 515.65 563.33 P (account the current v) 108 551.33 T (alues of other attrib) 191.89 551.33 T (utes and the capabilities of the DDX dri) 269.73 551.33 T (v) 428.62 551.33 T (er) 433.47 551.33 T (.) 440.69 551.33 T (Attrib) 108 527.33 T (utes may be single-v) 131.69 527.33 T (alued or multi-v) 213.93 527.33 T (alued.) 278.12 527.33 T (When a print conte) 108 503.33 T (xt is created, if the serv) 184.22 503.33 T (er determines that an attrib) 277.38 503.33 T (ute v) 384.38 503.33 T (alue is in) 403.85 503.33 T (v) 439.56 503.33 T (alid, the serv) 444.31 503.33 T (er will) 495.54 503.33 T (ignore the in) 108 491.33 T (v) 158.15 491.33 T (alid attrib) 162.9 491.33 T (ute speci\336cation and may set an e) 201.31 491.33 T (xplicit def) 335.58 491.33 T (ault for the attrib) 376.31 491.33 T (ute in the pool. F) 443.6 491.33 T (or) 511.51 491.33 T (multi-v) 108 479.33 T (alued attrib) 137.2 479.33 T (utes, the serv) 182.27 479.33 T (er will ignore each v) 234.61 479.33 T (alue component that is in) 316.56 479.33 T (v) 416.71 479.33 T (alid. If all of the speci\336ed) 421.46 479.33 T (components are in) 108 467.33 T (v) 180.92 467.33 T (alid the serv) 185.67 467.33 T (er will reject the attrib) 234.4 467.33 T (ute speci\336cation, and for certain attrib) 323.07 467.33 T (utes will set an) 475.06 467.33 T (e) 108 455.33 T (xplicit def) 112.29 455.33 T (ault for the attrib) 153.02 455.33 T (ute in the pool.) 220.31 455.33 T -0.07 (When the client requests an update to an attrib) 108 431.33 P -0.07 (ute pool \050e.g. when issuing) 292.73 431.33 P 0 F -0.07 (PrintSetAttrib) 402.63 431.33 P -0.07 (utes) 464.64 431.33 P 1 F -0.07 (\051, if the serv) 481.86 431.33 P -0.07 (er) 529.8 431.33 P (determines that a single-v) 108 419.33 T (alued attrib) 210.79 419.33 T (ute is in) 255.86 419.33 T (v) 287.13 419.33 T (alid, that attrib) 291.88 419.33 T (ute will not be updated. If all components of a) 350.29 419.33 T (multi-v) 108 407.33 T (alued attrib) 137.2 407.33 T (ute are in) 182.27 407.33 T (v) 219.08 407.33 T (alid the attrib) 223.83 407.33 T (ute will not be updated, otherwise an) 276.96 407.33 T (y in) 424.29 407.33 T (v) 439.17 407.33 T (alid components are) 443.92 407.33 T (ignored. Unrecognized attrib) 108 395.33 T (utes will be stored in the corresponding attrib) 223.05 395.33 T (ute pool and returned in) 404.22 395.33 T 0 F (Print-) 502.26 395.33 T (GetAttrib) 108 383.33 T (ute) 150.01 383.33 T 1 F (, b) 163.34 383.33 T (ut are otherwise ignored.) 173.14 383.33 T (As part of the v) 108 359.33 T (alidation for a gi) 169.96 359.33 T (v) 236.09 359.33 T (en attrib) 240.94 359.33 T (ute, the print serv) 273.79 359.33 T (er may alter other attrib) 343.63 359.33 T (utes in response to the) 437.85 359.33 T -0.07 (change. F) 108 347.33 P -0.07 (or e) 146.66 347.33 P -0.07 (xample, changing the v) 161.71 347.33 P -0.07 (alue of the) 254.57 347.33 P 0 F -0.07 (document-f) 299.08 347.33 P -0.07 (ormat) 347.7 347.33 P 1 F -0.07 ( attrib) 373.8 347.33 P -0.07 (ute might cause the v) 397.15 347.33 P -0.07 (alue of the) 481.61 347.33 P 0 F -0.07 (xp-) 526.11 347.33 P (embedded-f) 108 335.33 T (ormats-supported) 158.3 335.33 T 1 F ( attrib) 234.96 335.33 T (ute to change as.) 258.37 335.33 T 0 14 Q (3.1.3) 72 302.67 T (Structur) 126 302.67 T (ed V) 177.07 302.67 T (alues) 203.39 302.67 T (3.2) 72 242.67 T (Ser) 108 242.67 T (v) 128.08 242.67 T (er Attrib) 134.94 242.67 T (utes) 187.91 242.67 T 1 10 Q (The serv) 108 218.33 T (er attrib) 142.56 218.33 T (ute pool is identi\336ed by XPServ) 173.74 218.33 T (erAttr and describes the capabilities of the X Print Serv) 301.65 218.33 T (er) 522.85 218.33 T (.) 530.07 218.33 T 0 F (locale) 108 200.33 T 1 F (The v) 198 200.33 T (alue of this attrib) 220.8 200.33 T (ute is the locale in which the X Print Serv) 288.65 200.33 T (er is running.) 455.43 200.33 T 0 F (multiple-documents-supported) 108 178.33 T 1 F (This attrib) 198 166.33 T (ute indicates whether the serv) 239.19 166.33 T (er supports jobs containing multiple) 357.9 166.33 T (documents.) 198 154.33 T 0 14 Q (3.3) 72 118.67 T (Printer Attrib) 108 118.67 T (utes) 192.08 118.67 T 1 10 Q (The printer attrib) 108 94.33 T (ute pool is identi\336ed by XPPrinterAttr and describes printer capabilities.) 176.12 94.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "14" 18 %%Page: "15" 19 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (X Print Attrib) 72 746.67 T (utes) 157.26 746.67 T (15) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 10 Q (content-orientations-supported) 108 704.33 T 1 F (A list of orientations supported in the print conte) 198 692.33 T (xt. The list is a group of strings) 392.84 692.33 T (separated by white space. V) 198 680.33 T (alid v) 308.8 680.33 T (alues are) 331.05 680.33 T 0 F (portrait) 368.81 680.33 T 1 F (,) 402.69 680.33 T 0 F (landscape) 407.69 680.33 T 1 F (,) 449.92 680.33 T 0 F (r) 454.92 680.33 T (e) 459.18 680.33 T (v) 463.47 680.33 T (erse-portrait) 468.37 680.33 T 1 F (,) 522.79 680.33 T (and) 198 668.33 T 0 F (r) 214.94 668.33 T (e) 219.2 668.33 T (v) 223.49 668.33 T (erse-landscape) 228.39 668.33 T 1 F (.) 291.16 668.33 T (The def) 198 644.33 T (ault v) 228.72 644.33 T (alue is determined by the DDX, and is e) 250.97 644.33 T (xplicitly set in the printer pool.) 411.07 644.33 T (V) 198 632.33 T (alidation for this attrib) 204.11 632.33 T (ute is as described for multi-v) 293.63 632.33 T (alued attrib) 412.53 632.33 T (utes in \322V) 457.6 632.33 T (alidating) 497.04 632.33 T (Attrib) 198 620.33 T (ute V) 221.69 620.33 T (alues\323.) 242.52 620.33 T (The initial v) 198 596.33 T (alue of the) 246.64 596.33 T 0 F (content-orientations-supported) 291.35 596.33 T 1 F ( attrib) 424.12 596.33 T (ute is typically set by) 447.53 596.33 T (the printer v) 198 584.33 T (endor in the model-con\336g \336le.) 246.73 584.33 T 0 F (descriptor) 108 562.33 T 1 F (The) 198 562.33 T 0 F (descriptor) 216.05 562.33 T 1 F ( is a human readable description of the printer encoded as) 259.93 562.33 T (COMPOUND_TEXT) 198 550.33 T (. This description may contain more than one line.) 285.03 550.33 T 0 F (document-attrib) 108 528.33 T (utes-supported) 177.79 528.33 T 1 F (A list of document attrib) 198 516.33 T (utes supported in the print conte) 296.13 516.33 T (xt. This list is returned as a) 424.58 516.33 T (set of whitespace-delimited attrib) 198 504.33 T (ute names.) 331.39 504.33 T 0 F (document-f) 108 482.33 T (ormats-supported) 156.63 482.33 T 1 F (A list of document formats, including format v) 198 470.33 T (ariants and format v) 384.96 470.33 T (ersions that are) 465.07 470.33 T (supported in the print conte) 198 458.33 T (xt. Each entry in the list is a structure comprised of the) 307.84 458.33 T (document-format, document-format-v) 198 446.33 T (ariant, and a document-format-v) 349.94 446.33 T (ersion.) 479.2 446.33 T (V) 198 434.33 T (ariant and v) 204.11 434.33 T (ersion may be omitted in some cases. The triple v) 251.17 434.33 T (alue is enclosed by) 449.23 434.33 T (curly braces \322{}\323 and delimited by whitespace.) 198 422.33 T 0 F (input-trays-medium) 108 400.33 T 1 F (This attrib) 198 400.33 T (ute identi\336es what medium is loaded in each printer tray) 239.19 400.33 T (. The v) 463.79 400.33 T (alue is) 491.59 400.33 T (speci\336ed as a list of structures, each of which contains a tray identi\336er and a) 198 388.33 T (medium identi\336er) 198 376.33 T (. V) 268.84 376.33 T (alid tray identi\336ers are) 279.95 376.33 T 0 F (top) 372.71 376.33 T 1 F (,) 386.6 376.33 T 0 F (middle) 391.6 376.33 T 1 F (,) 421.05 376.33 T 0 F (bottom) 426.05 376.33 T 1 F (,) 456.6 376.33 T 0 F (en) 461.6 376.33 T (v) 471.2 376.33 T (elope) 476.1 376.33 T 1 F (,) 498.32 376.33 T 0 F (manual) 198 364.33 T 1 F (,) 230.23 364.33 T 0 F (lar) 235.23 364.33 T (ge-capacity) 247.35 364.33 T 1 F (,) 295.02 364.33 T 0 F (main) 300.02 364.33 T 1 F (, and) 321.69 364.33 T 0 F (side) 343.63 364.33 T 1 F (. The X Print Service de\336nes v) 360.3 364.33 T (alid medium) 483.09 364.33 T (identi\336ers to be the standard v) 198 352.33 T (alues of the) 318.57 352.33 T 0 F (medium-size) 367.17 352.33 T 1 F ( attrib) 421.05 352.33 T (ute as speci\336ed in) 444.46 352.33 T (ISO/IEC 10175-1.) 198 340.33 T (F) 198 316.33 T (or each tray / medium \050size\051 combination, the tray must be present in the v) 203.41 316.33 T (alue of) 501.17 316.33 T (the) 198 304.33 T 0 F (medium-sour) 212.72 304.33 T (ce-sizes-supported) 269.76 304.33 T 1 F ( attrib) 348.08 304.33 T (ute, and the medium size must be listed) 371.49 304.33 T (for that tray) 198 292.33 T (.) 244.56 292.33 T 0 F (job-attrib) 108 270.33 T (utes-supported) 149.46 270.33 T 1 F (A list of the job attrib) 198 258.33 T (utes supported for the printer) 284.19 258.33 T (. This list is returned as a set of) 399.73 258.33 T (whitespace-delimited attrib) 198 246.33 T (ute names.) 306.95 246.33 T 0 F (medium-sour) 108 224.33 T (ce-sizes-supported) 165.04 224.33 T 1 F (This attrib) 198 212.33 T (ute identi\336es or speci\336es the sizes of media that are supported by the) 239.19 212.33 T (printer) 198 200.33 T (. F) 224.11 200.33 T (or each input tray a set of supported media sizes is indicated. F) 234.52 200.33 T (or each) 485.72 200.33 T (medium, the page size, an indicator as to the medium feed direction, and the assured) 198 188.33 T (reproduction area the printer supports are speci\336ed.) 198 176.33 T (V) 198 152.33 T (alid input tray v) 204.11 152.33 T (alues are) 267.47 152.33 T 0 F (top) 305.23 152.33 T 1 F (,) 319.12 152.33 T 0 F (middle) 324.12 152.33 T 1 F (,) 353.57 152.33 T 0 F (bottom) 358.57 152.33 T 1 F (,) 389.12 152.33 T 0 F (en) 394.12 152.33 T (v) 403.72 152.33 T (elope) 408.62 152.33 T 1 F (,) 430.84 152.33 T 0 F (manual) 435.84 152.33 T 1 F (,) 468.07 152.33 T 0 F (lar) 198 140.33 T (ge-capacity) 210.12 140.33 T 1 F (,) 257.79 140.33 T 0 F (main) 262.79 140.33 T 1 F (, and) 284.46 140.33 T 0 F (side) 306.4 140.33 T 1 F (. If the printer has only one input tray) 323.07 140.33 T (, speci\336cation) 472.12 140.33 T (of this v) 198 128.33 T (alue is optional.) 230.53 128.33 T (The page size is a descripti) 198 104.33 T (v) 305.78 104.33 T (e-name indicating the size of the page. Examples are) 310.63 104.33 T 0 F (iso-a4) 198 92.33 T 1 F (,) 223 92.33 T 0 F (na-letter) 228 92.33 T 1 F (, and) 264.25 92.33 T 0 F (na-legal) 286.19 92.33 T 1 F (. The complete list of v) 320.08 92.33 T (alid v) 412.6 92.33 T (alues is the set of) 434.85 92.33 T (descripti) 198 80.33 T (v) 232.19 80.33 T (e-names de\336ned for the standard v) 237.04 80.33 T (alues of the) 374.81 80.33 T 0 F (medium-size) 423.41 80.33 T 1 F ( attrib) 477.29 80.33 T (ute as) 500.7 80.33 T (speci\336ed in ISO/IEC 10175-1.) 198 68.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "15" 19 %%Page: "16" 20 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (16) 72 41.28 T (December 15, 1997) 248.71 41.28 T (X Print Attrib) 432.53 41.28 T (utes) 487.89 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (16) 72 749.33 T (X Print Attrib) 394.63 749.33 T (utes) 479.89 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 X (The medium feed direction is represented as a boolean v) 198 704.33 T (alue indicating whether the) 423.53 704.33 T (long edge \050) 198 692.33 T 0 F (TR) 242.99 692.33 T (UE) 256.58 692.33 T 1 F (\051 or the short edge \050) 270.47 692.33 T 0 F (F) 349.06 692.33 T (ALSE) 354.27 692.33 T 1 F (\051 feeds into the printer so that) 380.39 692.33 T (orientation is speci\336ed.) 198 680.33 T (The assured reproduction area is the area within the current medium tp which the) 198 656.33 T (printer can render) 198 644.33 T (. This area is speci\336ed in millimeters according to the RCS) 268.53 644.33 T (coordinate system de\336ned by the ISO DP) 198 632.33 T (A. The area v) 362.62 632.33 T (alue is de\336ned by a structure) 416.79 632.33 T (containing the minimum-x, maximum-x, minimum-y) 198 620.33 T (, and maximum-y) 410.14 620.33 T (.) 480.32 620.33 T (The v) 198 596.33 T (alue for a medium size is speci\336ed in a structure comprised of the page size,) 220.8 596.33 T (the feed direction indicator) 198 584.33 T (, and the assured reproduction area.) 305.63 584.33 T (The v) 198 560.33 T (alue of the) 220.8 560.33 T 0 F (medium-sour) 265.51 560.33 T (ce-sizes-supported) 322.55 560.33 T 1 F ( attrib) 400.87 560.33 T (ute is a list of structures,) 424.28 560.33 T (each comprised of the input tray v) 198 548.33 T (alue and a set of medium size v) 334.39 548.33 T (alues.) 459.95 548.33 T 0 F (plexes-supported) 108 526.33 T 1 F (A list of ple) 198 526.33 T (x options that the printer supports. The list is a group of strings) 245.35 526.33 T (separated by white space. V) 198 514.33 T (alid v) 308.8 514.33 T (alues are) 331.05 514.33 T 0 F (simplex) 368.81 514.33 T 1 F (,) 401.59 514.33 T 0 F (duplex) 406.59 514.33 T 1 F (, and) 435.49 514.33 T 0 F (tumble) 457.43 514.33 T 1 F (.) 487.43 514.33 T 0 F (printer) 108 492.33 T (-model) 138.18 492.33 T 1 F (Human-readable te) 198 492.33 T (xt that identi\336es the mak) 274.21 492.33 T (e and model of the printer) 373 492.33 T (. This v) 476.04 492.33 T (alue is) 506.07 492.33 T (encoded as COMPOUND_TEXT) 198 480.33 T (.) 331.68 480.33 T 0 F (printer) 108 458.33 T (-name) 138.18 458.33 T 1 F (This attrib) 198 458.33 T (ute uniquely identi\336es a printer on a gi) 239.19 458.33 T (v) 393.65 458.33 T (en X Print Serv) 398.5 458.33 T (er) 460.29 458.33 T (.) 467.51 458.33 T 0 F (printer) 108 436.33 T (-r) 138.18 436.33 T (esolutions-supported) 145.77 436.33 T 1 F (A list of the resolutions in dots per inch that the printer supports.) 198 424.33 T 0 F (xp-embedded-f) 108 402.33 T (ormats-supported) 172.19 402.33 T 1 F (This attrib) 198 390.33 T (ute identi\336es the set of data formats recognized as v) 239.19 390.33 T (alid v) 446.4 390.33 T (alues for the) 468.65 390.33 T (doc_fmt parameter of) 198 378.33 T 0 F (PrintPutDocumentData) 287.14 378.33 T 1 F (, when this request is issued within a) 388.79 378.33 T (print document of type) 198 366.33 T 0 F (XPDocNormal) 291.88 366.33 T 1 F (.) 354.64 366.33 T (The v) 198 342.33 T (alue is a list of data formats. Each entry in the list is a structure comprised of) 220.8 342.33 T (the data format, a format v) 198 330.33 T (ariant, and a format v) 304.39 330.33 T (ersion. The v) 390.05 330.33 T (ariant and the v) 442.29 330.33 T (ersion) 504.07 330.33 T (may be omitted in some cases. Structure v) 198 318.33 T (alues are enclosed by curly braces \322{}\323) 366.62 318.33 T (and delimited by whitespace. V) 198 306.33 T (alid v) 323.26 306.33 T (alues are de\336ned by the printer DDX dri) 345.51 306.33 T (v) 506.61 306.33 T (er) 511.46 306.33 T (.) 518.68 306.33 T 0 F (xp-listf) 108 284.33 T (onts-modes-supported) 137.75 284.33 T 1 F (De\336nes the set of v) 198 272.33 T (alues that may be used to comprise the v) 274.96 272.33 T (alue of the) 436.91 272.33 T 0 F (xp-listf) 481.62 272.33 T (onts-) 511.37 272.33 T (modes) 198 260.33 T 1 F ( document / page attrib) 225.22 260.33 T (ute. The v) 317.23 260.33 T (alue is a whitespace delimited list of) 357.25 260.33 T (listfonts mode v) 198 248.33 T (alues, which are de\336ned belo) 262.2 248.33 T (w) 378.31 248.33 T (.) 384.88 248.33 T 0 F (xp-page-attrib) 108 226.33 T (utes-supported) 169.46 226.33 T 1 F (A list of page attrib) 198 214.33 T (utes supported for the printer) 275.57 214.33 T (. This list is comprised of a set of) 391.11 214.33 T (whitespace-delimited attrib) 198 202.33 T (ute names.) 306.95 202.33 T 0 F (xp-raw-f) 108 180.33 T (ormats-supported) 144.96 180.33 T 1 F (This attrib) 198 168.33 T (ute identi\336es the set of data formats recognized as v) 239.19 168.33 T (alid v) 446.4 168.33 T (alues for the) 468.65 168.33 T (doc_fmt parameter of) 198 156.33 T 0 F (PrintPutDocumentData) 287.14 156.33 T 1 F (, when this function is called within) 388.79 156.33 T (a print document of type) 198 144.33 T 0 F (XPDocRaw) 298.82 144.33 T 1 F (.) 347.6 144.33 T (The v) 198 120.33 T (alue is a list of data formats. Each entry in the list is a structure comprised of) 220.8 120.33 T (the data format, an optional format v) 198 108.33 T (ariant, and an optional format v) 344.67 108.33 T (ersion. Structure) 470.61 108.33 T (v) 198 96.33 T (alues are enclosed by curly braces \322{}\323 and delimited by whitespace. V) 202.75 96.33 T (alid v) 487.83 96.33 T (alues) 510.08 96.33 T (are de\336ned based on the ph) 198 84.33 T (ysical printer\325) 307.09 84.33 T (s capabilities.) 362.36 84.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "16" 20 %%Page: "17" 21 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (X Print Attrib) 72 746.67 T (utes) 157.26 746.67 T (17) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 10 Q (xp-setup-pr) 108 704.33 T (o) 157.82 704.33 T (viso) 162.72 704.33 T 1 F (This attrib) 198 704.33 T (ute indicates whether or not a required attrib) 239.19 704.33 T (ute or set of attrib) 416.45 704.33 T (utes must be) 487.35 704.33 T (set prior to commencing the print job) 198 692.33 T (.) 346.48 692.33 T (V) 198 668.33 T (alid v) 204.11 668.33 T (alues for this attrib) 226.36 668.33 T (ute are) 301.43 668.33 T 0 F (xp-setup-mandatory) 330.86 668.33 T 1 F ( and) 418.08 668.33 T 0 F (xp-setup-optional) 437.52 668.33 T 1 F (. If) 512.53 668.33 T (this attrib) 198 656.33 T (ute is not speci\336ed,) 235.86 656.33 T 0 F (xp-setup-optional) 315.58 656.33 T 1 F ( is assumed.) 390.59 656.33 T (The initial v) 198 632.33 T (alue of the) 246.64 632.33 T 0 F (xp-setup-pr) 291.35 632.33 T (o) 341.17 632.33 T (viso) 346.07 632.33 T 1 F ( attrib) 362.74 632.33 T (ute is typically set by the printer) 386.15 632.33 T (v) 198 620.33 T (endor in the model-con\336g \336le.) 202.85 620.33 T 0 14 Q (3.4) 72 584.67 T (J) 108 584.67 T (ob Attrib) 114.79 584.67 T (utes) 170.12 584.67 T 1 10 Q (The job attrib) 108 560.33 T (ute pool is identi\336ed by XPJobAttr and pro) 162.24 560.33 T (vides information on ho) 334.59 560.33 T (w to process a print job) 430.17 560.33 T (.) 523.37 560.33 T (T) 108 548.33 T (ypically) 113.31 548.33 T (, job attrib) 144.88 548.33 T (utes are set by the Print Dialog Manager based on user input from the setup dialog.) 186.07 548.33 T 0 F (job-name) 108 530.33 T 1 F (This is the name of the job to be used in subsequent processing and in printing) 198 530.33 T (banner pages. The v) 198 518.33 T (alue is free form te) 278.28 518.33 T (xt.) 353.66 518.33 T 0 F (job-o) 108 496.33 T (wner) 130.12 496.33 T 1 F (This attrib) 198 496.33 T (ute identi\336es the human o) 239.19 496.33 T (wner of the print job) 342.27 496.33 T (.) 424.08 496.33 T 0 F (noti\336cation-pr) 108 474.33 T (o\336le) 169.49 474.33 T 1 F (This attrib) 198 474.33 T (ute is a speci\336cation of e) 239.19 474.33 T (v) 338.09 474.33 T (ents about which the user is to be noti\336ed. The) 342.94 474.33 T (X Print service uses this attrib) 198 462.33 T (ute to determine whether or not to notify the user of) 318.07 462.33 T (print job completion via electronic mail, or in ISO DP) 198 450.33 T (A parlance, the X Print) 413.18 450.33 T (Service recognizes the) 198 438.33 T 0 F (e) 290.47 438.33 T (v) 294.76 438.33 T (ent-r) 299.66 438.33 T (eport-job-completed) 320.58 438.33 T 1 F ( e) 407.78 438.33 T (v) 414.47 438.33 T (ent with a) 419.32 438.33 T 0 F (deli) 461.26 438.33 T (v) 476.72 438.33 T (ery-method) 481.62 438.33 T 1 F (of) 198 426.33 T 0 F (electr) 208.83 426.33 T (onic-mail) 232.52 426.33 T 1 F (.) 272.52 426.33 T (The v) 198 402.33 T (alues may be) 220.8 402.33 T 0 F ({{e) 275.51 402.33 T (v) 287.68 402.33 T (ent-r) 292.58 402.33 T (eport-job-completed} electr) 313.5 402.33 T (onic-mail}) 430.83 402.33 T 1 F ( to send an) 474.77 402.33 T (email message, and) 198 390.33 T 0 F ({}) 278.54 390.33 T 1 F ( if no message is to be sent. Serv) 286.42 390.33 T (ers may implement additional) 417.09 390.33 T (v) 198 378.33 T (alues.) 202.75 378.33 T 0 F (xp-setup-state) 108 356.33 T 1 F (If the v) 198 356.33 T (alue of the) 226.63 356.33 T 0 F (xp-setup-pr) 271.34 356.33 T (o) 321.16 356.33 T (viso) 326.06 356.33 T 1 F ( printer attrib) 342.73 356.33 T (ute is) 395.3 356.33 T 0 F (xp-setup-mandatory) 419.19 356.33 T 1 F (, then) 505.76 356.33 T 0 F (xp-setup-state) 198 344.33 T 1 F ( is used to indicate the current setup state as determined byX Print) 257.99 344.33 T (Serv) 198 332.33 T (er) 216.18 332.33 T (. If the v) 223.4 332.33 T (alue of) 257.03 332.33 T 0 F (xp-setup-pr) 287.02 332.33 T (o) 336.84 332.33 T (viso) 341.74 332.33 T 1 F ( is) 358.41 332.33 T 0 F (xp-setup-optional) 370.08 332.33 T 1 F (, the v) 445.09 332.33 T (alue of) 469.56 332.33 T 0 F (xp-setup-) 499.55 332.33 T (state) 198 320.33 T 1 F ( is ignored.) 217.99 320.33 T (V) 198 296.33 T (alid v) 204.11 296.33 T (alues for) 226.36 296.33 T 0 F (xp-setup-state) 263.57 296.33 T 1 F ( are) 323.56 296.33 T 0 F (xp-setup-ok) 340.77 296.33 T 1 F ( and) 391.33 296.33 T 0 F (xp-setup-incomplete) 410.77 296.33 T 1 F (.) 497.43 296.33 T 0 F (xp-) 502.43 296.33 T (setup-ok) 198 284.33 T 1 F ( indicates that all attrib) 234.67 284.33 T (utes the print serv) 326.13 284.33 T (er requires the user to set are v) 397.36 284.33 T (alid,) 519.57 284.33 T (indicating a client may commence printing if desired.) 198 272.33 T 0 F (xp-setup-incomplete) 414.36 272.33 T 1 F (indicates that one or more attrib) 198 260.33 T (utes the dri) 325.28 260.33 T (v) 369.47 260.33 T (er requires are unspeci\336ed or in) 374.32 260.33 T (v) 500.27 260.33 T (alid;) 505.02 260.33 T (printing should not be attempted.) 198 248.33 T 0 F (xp-spooler) 108 226.33 T (-command-options) 152.63 226.33 T 1 F (A free form te) 198 214.33 T (xt string that will be included v) 254.77 214.33 T (erbatim on the command line used to) 379.62 214.33 T (in) 198 202.33 T (v) 205.38 202.33 T (ok) 210.18 202.33 T (e the spooler) 220.08 202.33 T (. V) 270.63 202.33 T (alid v) 281.74 202.33 T (alues are spooler) 303.99 202.33 T (-dependent.) 370.99 202.33 T 0 F (xp-spooler) 108 180.33 T (-command-r) 152.63 180.33 T (esults) 205.77 180.33 T 1 F (A free form te) 198 168.33 T (xt string that will contain the spooler command output that w) 254.77 168.33 T (ould) 499.11 168.33 T (otherwise appear on a terminal \050e.g. stderr and stdout\051. This te) 198 156.33 T (xt may be useful to) 446.41 156.33 T (present to the user to allo) 198 144.33 T (w tracking of the resulting spooler job) 298.57 144.33 T (. Applications should) 450.93 144.33 T (retrie) 198 132.33 T (v) 218.85 132.33 T (e this v) 223.7 132.33 T (alue follo) 252.34 132.33 T (wing receipt of the) 290.14 132.33 T 0 F (XPEndJ) 367.9 132.33 T (obNotify) 403.87 132.33 T 1 F ( e) 441.09 132.33 T (v) 447.78 132.33 T (ent.) 452.63 132.33 T 0 14 Q (3.5) 72 96.67 T (Document Attrib) 108 96.67 T (utes) 209.98 96.67 T 1 10 Q -0.07 (The document attrib) 108 72.33 P -0.07 (ute pool is identi\336ed by XPDocAttr and indicates ho) 188.76 72.33 P -0.07 (w to process the current document.) 397.95 72.33 P 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "17" 21 %%Page: "18" 22 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (18) 72 41.28 T (December 15, 1997) 248.71 41.28 T (X Print Attrib) 432.53 41.28 T (utes) 487.89 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (18) 72 749.33 T (X Print Attrib) 394.63 749.33 T (utes) 479.89 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 F 0 X (content-orientation) 108 704.33 T 1 F (Speci\336es the orientation to be used for this document. V) 198 704.33 T (alid v) 421.87 704.33 T (alues are:) 444.12 704.33 T 0 F (portrait) 198 692.33 T 1 F (,) 231.88 692.33 T 0 F (landscape) 236.88 692.33 T 1 F (,) 279.11 692.33 T 0 F (r) 284.11 692.33 T (e) 288.37 692.33 T (v) 292.66 692.33 T (erse-portrait) 297.56 692.33 T 1 F (, and) 351.98 692.33 T 0 F (r) 373.92 692.33 T (e) 378.18 692.33 T (v) 382.47 692.33 T (erse-landscape) 387.37 692.33 T 1 F (.) 450.14 692.33 T 0 F (copy-count) 108 670.33 T 1 F (Speci\336es the number of copies of this document to print.) 198 670.33 T (The def) 198 646.33 T (ault v) 228.72 646.33 T (alue is implicitly tak) 250.97 646.33 T (en to be) 332.82 646.33 T 0 F (1) 366.98 646.33 T 1 F ( by the X Print Serv) 371.98 646.33 T (er) 451.55 646.33 T (.) 458.77 646.33 T 0 F (default-printer) 108 624.33 T (-r) 171.51 624.33 T (esolution) 179.1 624.33 T 1 F (Speci\336es the resolution in dots per inch to be used for this document.) 198 612.33 T 0 F (default-input-tray) 108 590.33 T 1 F (The name of the input tray from which media will be dra) 198 590.33 T (wn for printing the) 425.31 590.33 T (document. V) 198 578.33 T (alid v) 248.55 578.33 T (alues are:) 270.8 578.33 T 0 F (top) 311.34 578.33 T 1 F (,) 325.23 578.33 T 0 F (middle) 330.23 578.33 T 1 F (,) 359.68 578.33 T 0 F (bottom) 364.68 578.33 T 1 F (,) 395.23 578.33 T 0 F (en) 400.23 578.33 T (v) 409.83 578.33 T (elope) 414.73 578.33 T 1 F (,) 436.95 578.33 T 0 F (manual) 441.95 578.33 T 1 F (,) 474.18 578.33 T 0 F (lar) 479.18 578.33 T (ge-) 491.3 578.33 T (capacity) 198 566.33 T 1 F (,) 232.9 566.33 T 0 F (main) 237.9 566.33 T 1 F (, and) 259.57 566.33 T 0 F (side) 281.51 566.33 T 1 F (. If the) 298.18 566.33 T 0 F (default-medium) 327.06 566.33 T 1 F ( attrib) 395.39 566.33 T (ute is speci\336ed, it will tak) 418.8 566.33 T (e) 521.48 566.33 T (precedence o) 198 554.33 T (v) 250.32 554.33 T (er) 255.17 554.33 T 0 F (default-input-tray) 265.44 554.33 T 1 F (.) 342.01 554.33 T 0 F (default-medium) 108 532.33 T 1 F (Speci\336es the medium on which the document is to be printed. The X Print Service) 198 532.33 T (de\336nes v) 198 520.33 T (alid) 233.58 520.33 T 0 F (default-medium) 251.08 520.33 T 1 F ( v) 319.41 520.33 T (alues to be the standard v) 326.66 520.33 T (alues of the) 427.78 520.33 T 0 F (medium-size) 476.38 520.33 T 1 F (attrib) 198 508.33 T (ute as speci\336ed in ISO/IEC 10175-1.) 218.91 508.33 T 0 F (document-f) 108 486.33 T (ormat) 156.63 486.33 T 1 F (Speci\336es the format of the document. The v) 198 486.33 T (alue is a structure comprised of the) 373.28 486.33 T (document-format, an optional document-format-v) 198 474.33 T (ariant, and an optional document-) 397.16 474.33 T (format-v) 198 462.33 T (ersion. Speci\336c printer DDX dri) 232.84 462.33 T (v) 361.18 462.33 T (ers may require speci\336cation of the) 366.03 462.33 T (optional v) 198 450.33 T (alues. The structure v) 238.03 450.33 T (alues are enclosed by curly braces \322{}\323 and) 323.87 450.33 T (delimited by whitespace.) 198 438.33 T 0 F (plex) 108 416.33 T 1 F (Speci\336es the) 198 416.33 T 0 F (plex) 251.33 416.33 T 1 F ( to be used for this document. V) 269.11 416.33 T (alid v) 396.32 416.33 T (alues are) 418.57 416.33 T 0 F (simplex) 456.33 416.33 T 1 F (,) 489.11 416.33 T 0 F (duplex) 494.11 416.33 T 1 F (,) 523.01 416.33 T (and) 198 404.33 T 0 F (tumble) 214.94 404.33 T 1 F (.) 244.94 404.33 T 0 F (xp-listf) 108 382.33 T (onts-modes) 137.75 382.33 T 1 F (The v) 198 382.33 T (alue of this attrib) 220.8 382.33 T (ute controls the beha) 288.65 382.33 T (vior of) 371.49 382.33 T 0 F (ListF) 400.93 382.33 T (onts) 423.46 382.33 T 1 F ( and) 441.24 382.33 T 0 F (ListF) 198 370.33 T (ontsW) 220.53 370.33 T (ithInf) 248.13 370.33 T (o) 272.33 370.33 T 1 F ( when a print conte) 277.33 370.33 T (xt has been set. The v) 353.83 370.33 T (alue is a whitespace) 440.23 370.33 T (delimited list of one or more listfonts mode v) 198 358.33 T (alues. V) 378.86 358.33 T (alid listfonts mode v) 410.52 358.33 T (alues) 492.22 358.33 T (include) 198 346.33 T 0 F (xp-list-inter) 229.94 346.33 T (nal-printer) 280.34 346.33 T (-f) 327.19 346.33 T (onts) 333.6 346.33 T 1 F ( and) 351.38 346.33 T 0 F (xp-list-glyph-f) 370.82 346.33 T (onts) 431.13 346.33 T 1 F (.) 448.91 346.33 T (When a print conte) 198 322.33 T (xt is set on a display connection, the def) 274.22 322.33 T (ault beha) 434.38 322.33 T (vior of) 470.56 322.33 T 0 F (ListF) 198 310.33 T (onts) 220.53 310.33 T 1 F ( and) 238.31 310.33 T 0 F (ListF) 257.75 310.33 T (ontsW) 280.28 310.33 T (ithInf) 307.88 310.33 T (o) 332.08 310.33 T 1 F ( is to list all of the fonts normally associated with) 337.08 310.33 T (the X print serv) 198 298.33 T (er \050i.e. fonts containing glyphs\051 as well as an) 260.34 298.33 T (y internal printer fonts) 439.05 298.33 T (de\336ned for the printer) 198 286.33 T (. The) 284.93 286.33 T 0 F (xp-listf) 307.98 286.33 T (onts-modes) 337.73 286.33 T 1 F ( attrib) 386.06 286.33 T (ute is pro) 409.47 286.33 T (vided so that) 446.54 286.33 T (applications can control the beha) 198 274.33 T (vior of) 329.44 274.33 T 0 F (ListF) 358.88 274.33 T (onts) 381.41 274.33 T 1 F ( and) 399.19 274.33 T 0 F (ListF) 418.63 274.33 T (ontsW) 441.16 274.33 T (ithInf) 468.76 274.33 T (o) 492.96 274.33 T 1 F (and is) 500.46 274.33 T (typically to sho) 198 262.33 T (w just internal printer fonts. Using only internal printer fonts is) 259.42 262.33 T (useful for performance reasons; the glyphs associated with the font are contained) 198 250.33 T (within the printer and do not ha) 198 238.33 T (v) 323.9 238.33 T (e to be do) 328.75 238.33 T (wnloaded to it.) 367.66 238.33 T (If the v) 198 214.33 T (alue of) 226.63 214.33 T 0 F (xp-listf) 256.62 214.33 T (onts-modes) 286.37 214.33 T 1 F ( includes) 334.7 214.33 T 0 F (xp-list-glyph-f) 373.03 214.33 T (onts,) 433.34 214.33 T (ListF) 456.12 214.33 T (onts) 478.65 214.33 T 1 F ( and) 496.43 214.33 T 0 F (ListF) 198 202.33 T (ontsW) 220.53 202.33 T (ithInf) 248.13 202.33 T (o) 272.33 202.33 T 1 F ( will include all of the fonts a) 277.33 202.33 T (v) 394.62 202.33 T (ailable to the serv) 399.37 202.33 T (er which ha) 470.04 202.33 T (v) 516.49 202.33 T (e) 521.34 202.33 T (glyphs associated with them. If the v) 198 190.33 T (alue of) 344.68 190.33 T 0 F (xp-listf) 374.67 190.33 T (onts-modes) 404.42 190.33 T 1 F ( includes) 452.75 190.33 T 0 F (xp-list-) 491.08 190.33 T (inter) 198 178.33 T (nal-printer) 218.4 178.33 T (-f) 265.25 178.33 T (onts,) 271.66 178.33 T 1 F ( then) 291.94 178.33 T 0 F (ListF) 314.16 178.33 T (onts) 336.69 178.33 T 1 F ( and) 354.47 178.33 T 0 F (ListF) 373.91 178.33 T (ontsW) 396.44 178.33 T (ithInf) 424.04 178.33 T (o) 448.24 178.33 T 1 F ( will include all of) 453.24 178.33 T (the fonts de\336ned as internal printer fonts.) 198 166.33 T 0 14 Q (3.6) 72 130.67 T (P) 108 130.67 T (age Attrib) 116.41 130.67 T (utes) 177.17 130.67 T 1 10 Q -0.25 (The page attrib) 108 106.33 P -0.25 (ute pool is identi\336ed by XPP) 167.83 106.33 P -0.25 (ageAttr) 281.7 106.33 P -0.25 (. These are document attrib) 311.14 106.33 P -0.25 (utes that can be o) 419.07 106.33 P -0.25 (v) 487.34 106.33 P -0.25 (erridden on) 492.19 106.33 P (a page by page basis within the X Print Service.) 108 94.33 T (The def) 108 70.33 T (ault for each page attrib) 138.72 70.33 T (ute is the current v) 233.49 70.33 T (alue of the corresponding document attrib) 307.67 70.33 T (ute.) 474.94 70.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "18" 22 %%Page: "19" 23 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (X Print Attrib) 72 746.67 T (utes) 157.26 746.67 T (19) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 10 Q (content-orientation) 108 704.33 T 1 F (Speci\336es the orientation to be used for this page. V) 198 704.33 T (alid v) 401.31 704.33 T (alues are:) 423.56 704.33 T 0 F (portrait) 198 692.33 T 1 F (,) 231.88 692.33 T 0 F (landscape) 236.88 692.33 T 1 F (,) 279.11 692.33 T 0 F (r) 284.11 692.33 T (e) 288.37 692.33 T (v) 292.66 692.33 T (erse-portrait) 297.56 692.33 T 1 F (, and) 351.98 692.33 T 0 F (r) 373.92 692.33 T (e) 378.18 692.33 T (v) 382.47 692.33 T (erse-landscape) 387.37 692.33 T 1 F (.) 450.14 692.33 T 0 F (default-printer) 108 670.33 T (-r) 171.51 670.33 T (esolution) 179.1 670.33 T 1 F (Speci\336es the resolution in dots per inch to be used for this page.) 198 658.33 T 0 F (default-input-tray) 108 636.33 T 1 F (The name of the input tray from which media will be dra) 198 636.33 T (wn for printing the) 425.31 636.33 T (document. V) 198 624.33 T (alid v) 248.55 624.33 T (alues are:) 270.8 624.33 T 0 F (top) 311.34 624.33 T 1 F (,) 325.23 624.33 T 0 F (middle) 330.23 624.33 T 1 F (,) 359.68 624.33 T 0 F (bottom) 364.68 624.33 T 1 F (,) 395.23 624.33 T 0 F (en) 400.23 624.33 T (v) 409.83 624.33 T (elope) 414.73 624.33 T 1 F (,) 436.95 624.33 T 0 F (manual) 441.95 624.33 T 1 F (,) 474.18 624.33 T 0 F (lar) 479.18 624.33 T (ge-) 491.3 624.33 T (capacity) 198 612.33 T 1 F (,) 232.9 612.33 T 0 F (main) 237.9 612.33 T 1 F (, and) 259.57 612.33 T 0 F (side) 281.51 612.33 T 1 F (. If the) 298.18 612.33 T 0 F (default-medium) 327.06 612.33 T 1 F ( attrib) 395.39 612.33 T (ute is speci\336ed, it will tak) 418.8 612.33 T (e) 521.48 612.33 T (precedence o) 198 600.33 T (v) 250.32 600.33 T (er) 255.17 600.33 T 0 F (default-input-tray) 265.44 600.33 T 1 F (.) 342.01 600.33 T 0 F (default-medium) 108 578.33 T 1 F (Speci\336es the medium on which the document is to be printed. The X Print Service) 198 578.33 T (de\336nes v) 198 566.33 T (alid) 233.58 566.33 T 0 F (default-medium) 251.08 566.33 T 1 F ( v) 319.41 566.33 T (alues to be the standard v) 326.66 566.33 T (alues of the) 427.78 566.33 T 0 F (medium-size) 476.38 566.33 T 1 F (attrib) 198 554.33 T (ute as speci\336ed in ISO/IEC 10175-1.) 218.91 554.33 T 0 F (plex) 108 532.33 T 1 F (Speci\336es the) 198 532.33 T 0 F (plex) 251.33 532.33 T 1 F ( to be used for this document. V) 269.11 532.33 T (alid v) 396.32 532.33 T (alues are) 418.57 532.33 T 0 F (simplex) 456.33 532.33 T 1 F (,) 489.11 532.33 T 0 F (duplex) 494.11 532.33 T 1 F (,) 523.01 532.33 T (and) 198 520.33 T 0 F (tumble) 214.94 520.33 T 1 F (.) 244.94 520.33 T 0 F (xp-listf) 108 498.33 T (onts-modes) 137.75 498.33 T 1 F (The v) 198 498.33 T (alue of this attrib) 220.8 498.33 T (ute controls the beha) 288.65 498.33 T (vior of) 371.49 498.33 T 0 F (ListF) 400.93 498.33 T (onts) 423.46 498.33 T 1 F ( and) 441.24 498.33 T 0 F (ListF) 198 486.33 T (ontsW) 220.53 486.33 T (ithInf) 248.13 486.33 T (o) 272.33 486.33 T 1 F ( when a print conte) 277.33 486.33 T (xt has been set. The v) 353.83 486.33 T (alue is a whitespace) 440.23 486.33 T (delimited list of one or more listfonts mode v) 198 474.33 T (alues. V) 378.86 474.33 T (alid listfonts mode v) 410.52 474.33 T (alues) 492.22 474.33 T (include) 198 462.33 T 0 F (xp-list-inter) 229.94 462.33 T (nal-printer) 280.34 462.33 T (-f) 327.19 462.33 T (onts) 333.6 462.33 T 1 F ( and) 351.38 462.33 T 0 F (xp-list-glyph-f) 370.82 462.33 T (onts) 431.13 462.33 T 1 F (.) 448.91 462.33 T (When a print conte) 198 438.33 T (xt is set on a display connection, the def) 274.22 438.33 T (ault beha) 434.38 438.33 T (vior of) 470.56 438.33 T 0 F (ListF) 198 426.33 T (onts) 220.53 426.33 T 1 F ( and) 238.31 426.33 T 0 F (ListF) 257.75 426.33 T (ontsW) 280.28 426.33 T (ithInf) 307.88 426.33 T (o) 332.08 426.33 T 1 F ( is to list all of the fonts normally associated with) 337.08 426.33 T (the X print serv) 198 414.33 T (er \050i.e. fonts containing glyphs\051 as well as an) 260.34 414.33 T (y internal printer fonts) 439.05 414.33 T (de\336ned for the printer) 198 402.33 T (. The) 284.93 402.33 T 0 F (xp-listf) 307.98 402.33 T (onts-modes) 337.73 402.33 T 1 F ( attrib) 386.06 402.33 T (ute is pro) 409.47 402.33 T (vided so that) 446.54 402.33 T (applications can control the beha) 198 390.33 T (vior of) 329.44 390.33 T 0 F (ListF) 358.88 390.33 T (onts) 381.41 390.33 T 1 F ( and) 399.19 390.33 T 0 F (ListF) 418.63 390.33 T (ontsW) 441.16 390.33 T (ithInf) 468.76 390.33 T (o) 492.96 390.33 T 1 F (and is) 500.46 390.33 T (typically to sho) 198 378.33 T (w just internal printer fonts. Using only internal printer fonts is) 259.42 378.33 T (useful for performance reasons; the glyphs associated with the font are contained) 198 366.33 T (within the printer and do not ha) 198 354.33 T (v) 323.9 354.33 T (e to be do) 328.75 354.33 T (wnloaded to it.) 367.66 354.33 T (If the v) 198 330.33 T (alue of) 226.63 330.33 T 0 F (xp-listf) 256.62 330.33 T (onts-modes) 286.37 330.33 T 1 F ( includes) 334.7 330.33 T 0 F (xp-list-glyph-f) 373.03 330.33 T (onts,) 433.34 330.33 T (ListF) 456.12 330.33 T (onts) 478.65 330.33 T 1 F ( and) 496.43 330.33 T 0 F (ListF) 198 318.33 T (ontsW) 220.53 318.33 T (ithInf) 248.13 318.33 T (o) 272.33 318.33 T 1 F ( will include all of the fonts a) 277.33 318.33 T (v) 394.62 318.33 T (ailable to the serv) 399.37 318.33 T (er which ha) 470.04 318.33 T (v) 516.49 318.33 T (e) 521.34 318.33 T (glyphs associated with them. If the v) 198 306.33 T (alue of) 344.68 306.33 T 0 F (xp-listf) 374.67 306.33 T (onts-modes) 404.42 306.33 T 1 F ( includes) 452.75 306.33 T 0 F (xp-list-) 491.08 306.33 T (inter) 198 294.33 T (nal-printer) 218.4 294.33 T (-f) 265.25 294.33 T (onts,) 271.66 294.33 T 1 F ( then) 291.94 294.33 T 0 F (ListF) 314.16 294.33 T (onts) 336.69 294.33 T 1 F ( and) 354.47 294.33 T 0 F (ListF) 373.91 294.33 T (ontsW) 396.44 294.33 T (ithInf) 424.04 294.33 T (o) 448.24 294.33 T 1 F ( will include all of) 453.24 294.33 T (the fonts de\336ned as internal printer fonts.) 198 282.33 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "19" 23 %%Page: "20" 24 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (20) 72 41.28 T (December 15, 1997) 248.71 41.28 T -0.5 (Communication with the Print Dialog) 352.88 41.28 P 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (20) 72 749.33 T (Communication with the Print Dialog Manager) 220.51 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 18 Q 0 X (4) 72 699 T (Communication with the Print Dialog Manager) 108 699 T 1 10 Q (Print Dialog Managers \050PDMs\051 pro) 108 666.33 T (vide users with a graphical interf) 249.5 666.33 T (ace to specify printer) 380.76 666.33 T (-speci\336c and) 464.7 666.33 T (spooler) 108 654.33 T (-speci\336c information. This section describes the interaction between X Print Service and PDMs.) 137.24 654.33 T (F) 108 630.33 T (or each serv) 113.41 630.33 T (er w) 161.57 630.33 T (anting to use print dialog services, a Print Dialog Manager acquires o) 178.96 630.33 T (wnership of a selec-) 455.89 630.33 T (tion named PDM_MAN) 108 618.33 T (A) 204.87 618.33 T (GER on the def) 211.69 618.33 T (ault root windo) 274.08 618.33 T (w \050a dif) 334.94 618.33 T (ferent name can be used, as long as it is) 365.79 618.33 T (kno) 108 606.33 T (wn to both the client and the PDM\051. Print Dialog Managers should comply with the con) 122.75 606.33 T (v) 473.44 606.33 T (entions for) 478.29 606.33 T (\322Manager Selections\323 described in section 2.8 of the) 108 594.33 T 2 F ( Inter) 318.51 594.33 T (-Client Communication Con) 340.25 594.33 T (ventions Manual) 453.19 594.33 T 1 F (\050ICCCM\051. A printing client establishes a print conte) 108 582.33 T (xt, and then requests services of the Print Dialog Man-) 316.17 582.33 T (ager by issuing con) 108 570.33 T (v) 185.09 570.33 T (ersion requests on this selection.) 189.94 570.33 T (Print Dialog Managers should support con) 108 546.33 T (v) 277.31 546.33 T (ersion of the follo) 282.16 546.33 T (wing tar) 353.29 546.33 T (gets on their manager selection:) 386.16 546.33 T 0 14 Q ( The PDM_ST) 72 454.67 T (AR) 157.08 454.67 T (T Selection T) 176.73 454.67 T (ar) 254.78 454.67 T (get) 267.86 454.67 T 1 10 Q -0.17 (The PDM_ST) 108 430.33 P -0.17 (AR) 163.29 430.33 P -0.17 (T tar) 176.58 430.33 P -0.17 (get is parametized \050ICCCM section 2.2\051, and the property named in the) 195.39 430.33 P 0 F -0.17 (Con) 480.52 430.33 P -0.17 (v) 497.9 430.33 P -0.17 (ertSelec-) 502.8 430.33 P (tion) 108 418.33 T 1 F ( request contains the follo) 124.67 418.33 T (wing list of information:) 227.74 418.33 T -0.27 (The PDM_ST) 108 246.33 P -0.27 (AR) 163.19 246.33 P -0.27 (T tar) 176.48 246.33 P -0.27 (get has a side ef) 195.19 246.33 P -0.27 (fect \050ICCCM, section 2.6.3\051. The PDM interprets the parameters listed) 257.73 246.33 P (abo) 108 234.33 T (v) 122.29 234.33 T (e and pro) 127.14 234.33 T (vides a user interf) 164.2 234.33 T (ace dialog on behalf of the client in which the user can modify attrib) 235.47 234.33 T (utes on) 508.83 234.33 T (the print-conte) 108 222.33 T (xt on the print-display pro) 166.45 222.33 T (vided.) 270.74 222.33 T -0.09 (The PDM will use the video-display) 108 198.33 P -0.09 (, video-windo) 252.19 198.33 P -0.09 (w) 307.4 198.33 P -0.09 (, and locale parameters to con\336gure and manage its user) 313.97 198.33 P (interf) 108 186.33 T (ace.) 129.56 186.33 T (The selection reply is placed in the property pro) 108 162.33 T (vided, where type is A) 299.48 162.33 T (T) 388.63 162.33 T (OM, format is 32, and the data con-) 394.56 162.33 T (sists of a single A) 108 150.33 T (T) 178 150.33 T (OM element:) 183.93 150.33 T (A) 114 508.33 T (T) 120.11 508.33 T (OM) 126.04 508.33 T (D) 186 508.33 T (A) 192.82 508.33 T (T) 198.93 508.33 T (A RECEIVED) 204.11 508.33 T (PDM_ST) 114 492.33 T (AR) 151.41 492.33 T (T) 164.7 492.33 T (Request that a dialog be managed for a particular print conte) 186 492.33 T (xt) 428.02 492.33 T (P) 114 380.33 T (ARAMETER) 118.64 380.33 T (FORMA) 186 380.33 T (T) 220.45 380.33 T (DESCRIPTION) 294 380.33 T (video-display) 114 364.33 T (\322host:port[.screen]\323) 186 364.33 T (X display of video serv) 294 364.33 T (er) 387.17 364.33 T (video-windo) 114 348.33 T (w) 164.3 348.33 T (\3220x12345678\323) 186 348.33 T (W) 294 348.33 T (indo) 303.04 348.33 T (w to act as parent of PDM dialog) 320.57 348.33 T (print-display) 114 332.33 T (\322host:port[.screen]\323) 186 332.33 T (X display of print serv) 294 332.33 T (er) 383.84 332.33 T (print-windo) 114 316.33 T (w) 160.97 316.33 T (\3220x12345678\323) 186 316.33 T (W) 294 316.33 T (indo) 303.04 316.33 T (w on print serv) 320.57 316.33 T (er for subsequent) 380.69 316.33 T (communication) 294 304.33 T (print-conte) 114 288.33 T (xt) 157.73 288.33 T (\3220x12345678\323) 186 288.33 T (Conte) 294 288.33 T (xt of print job) 317.74 288.33 T (locale) 114 272.33 T (\322C\323) 186 272.33 T (Hint to PDM re) 294 272.33 T (g) 356.35 272.33 T (arding the locale) 361.3 272.33 T (A) 114 112.33 T (T) 120.11 112.33 T (OM) 126.04 112.33 T (DESCRIPTION) 258 112.33 T (PDM_ST) 114 96.33 T (AR) 151.41 96.33 T (T_OK) 164.7 96.33 T (The PDM w) 258 96.33 T (as started successfully) 307.34 96.33 T (PDM_ST) 114 80.33 T (AR) 151.41 80.33 T (T_VXA) 164.7 80.33 T (UTH) 196.92 80.33 T (The PDM w) 258 80.33 T (as not authorized to connect to video-display) 307.34 80.33 T 108 503 468 503 2 L V 0.5 H 0 Z N 108 375 468 375 2 L V N 108 107 540 107 2 L V N 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "20" 24 %%Page: "21" 25 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Communication with the Print Dialog Manager) 72 746.67 T (21) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (If the PDM starts successfully) 108 660.33 T (, once the user completes the PDM dialog, the PDM \336nishes communication) 227.89 660.33 T (with the client by sending a ClientMessage to print-windo) 108 648.33 T (w on the print-display) 339.96 648.33 T (.) 427.36 648.33 T -0.05 (The type of this ClientMessage is \322PDM_REPL) 108 624.33 P -0.05 (Y\323, its format is 32, and the data consists of a single A) 298.92 624.33 P -0.05 (T) 515.51 624.33 P -0.05 (OM) 521.44 624.33 P (element:) 108 612.33 T (PDM_ST) 114 700.33 T (AR) 151.41 700.33 T (T_PXA) 164.7 700.33 T (UTH) 195.26 700.33 T (The PDM w) 258 700.33 T (as not authorized to connect to print-display) 307.34 700.33 T (PDM_ST) 114 684.33 T (AR) 151.41 684.33 T (T_ERR) 164.7 684.33 T (OR) 194.86 684.33 T (The PDM encountered an error) 258 684.33 T (A) 114 574.33 T (T) 120.11 574.33 T (OM) 126.04 574.33 T (DESCRIPTION) 258 574.33 T (PDM_EXIT_OK) 114 558.33 T (The user selected \322OK\323. The PDM may or may not ha) 258 558.33 T (v) 475.25 558.33 T (e changed) 480.1 558.33 T (an) 258 546.33 T (y attrib) 267.29 546.33 T (utes.) 295.7 546.33 T (PDM_EXIT_CANCEL) 114 530.33 T -0.29 (The user selected \322Cancel\323. Attrib) 258 530.33 P -0.29 (utes ha) 394.09 530.33 P -0.29 (v) 421.65 530.33 P -0.29 (e been left in the state the) 426.5 530.33 P -0.29 (y) 526.79 530.33 P (were in before communication be) 258 518.33 T (g) 392.26 518.33 T (an.) 397.21 518.33 T (PDM_EXIT_VXA) 114 502.33 T (UTH) 189.55 502.33 T (The PDM w) 258 502.33 T (as not authorized to connect to video-display) 307.34 502.33 T (PDM_EXIT_PXA) 114 486.33 T (UTH) 187.89 486.33 T (The PDM w) 258 486.33 T (as not authorized to connect to print-display) 307.34 486.33 T (PDM_EXIT_ERR) 114 470.33 T (OR) 187.49 470.33 T (The PDM encountered an error) 258 470.33 T 108 569 540 569 2 L V 0.5 H 0 Z N 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "21" 25 %%Page: "22" 26 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (22) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (22) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 18 Q 0 X (5) 72 699 T (Pr) 108 699 T (otocol Encoding) 126.67 699 T 1 10 Q (The follo) 108 666.33 T (wing sections describe protocol encoding for X Print Extension Protocol requests, e) 144.69 666.33 T (v) 479.4 666.33 T (ents, and) 484.25 666.33 T (errors.) 108 654.33 T 0 14 Q (5.1) 72 618.67 T (Request Pr) 108 618.67 T (otocol Encoding) 174.23 618.67 T 0 12 Q (PrintQueryV) 108 563 T (ersion) 174.79 563 T 3 10 Q (\256) 100.8 472.33 T 0 12 Q (PrintGetPrinterList) 108 322 T 3 10 Q (\256) 100.8 153.33 T 1 9 Q (1) 114 522 T (base) 168 522 T (major im) 306.56 522 T (1) 114 509 T (0) 168 509 T (minor opcode) 306.56 509 T (2) 114 496 T (1) 168 496 T (request length) 306.56 496 T (1) 114 457 T (1) 168 457 T (Reply) 306.56 457 T (1) 114 444 T (unused) 168 444 T (2) 114 431 T (CARD16) 168 431 T (sequence number) 306.56 431 T (4) 114 418 T (0) 168 418 T (reply length) 306.56 418 T (2) 114 405 T (CARD16) 168 405 T (major) 306.56 405 T (-v) 327.38 405 T (ersion) 334.74 405 T (2) 114 392 T (CARD16) 168 392 T (minor) 306.56 392 T (-v) 327.88 392 T (ersion) 335.24 392 T (20) 114 379 T (unused) 168 379 T (1) 114 281 T (base) 168 281 T (major opcode) 306.56 281 T (1) 114 268 T (1) 168 268 T (minor opcode) 306.56 268 T (2) 114 255 T (3+\050nl+np + ll+lp\051/4) 168 255 T (request length) 306.56 255 T (4) 114 242 T (CARD32) 168 242 T (printerNameLen) 306.56 242 T (4) 114 229 T (CARD32) 168 229 T (localeLen) 306.56 229 T (nl) 114 216 T (STRING8) 168 216 T (printer) 306.56 216 T (-name) 330.38 216 T (np) 114 203 T (BYTE) 168 203 T (p=pad\050nl\051) 306.56 203 T (ll) 114 190 T (STRING8) 168 190 T (locale) 306.56 190 T (lp) 114 177 T (BYTE) 168 177 T (lp=pad\050ll\051) 306.56 177 T (1) 114 116 T (1) 168 116 T (Reply) 306.56 116 T (1) 114 103 T (unused) 306.56 103 T (2) 114 90 T (CARD16) 168 90 T (sequenceNumber) 306.56 90 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "22" 26 %%Page: "23" 27 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocol Encoding) 86.52 746.67 T (23) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 12 Q (PrintRehashPrinterList) 108 439 T (PrintCr) 108 315 T (eateContext) 148.44 315 T 1 9 Q (4) 114 703 T ( \0508 + nl+nlp + dl+dlp\051/4 computed) 168 703 T (listCount times) 168 692 T (length) 306.56 703 T (4) 114 679 T (CARD32) 168 679 T (listCount) 306.56 679 T (20) 114 666 T (unused) 306.56 666 T ( \0508 +) 114 653 T (nl+nlp +) 114 642 T (dl+dlp\051) 114 631 T (computed) 114 620 T (listCount) 114 609 T (times) 114 598 T (LIST) 168 653 T (ofPRINTER) 186.28 653 T (printers) 306.56 653 T (PRINTER) 114 572 T (4) 114 559 T (CARD32) 168 559 T (nameLen) 306.56 559 T (nl) 114 546 T (STRING8) 168 546 T (name) 306.56 546 T (nlp) 114 533 T (BYTE) 168 533 T (nlp=pad\050nl\051) 306.56 533 T (4) 114 520 T (CARD32) 168 520 T (descLen) 306.56 520 T (dl) 114 507 T (STRING8) 168 507 T (description) 306.56 507 T (dlp) 114 494 T (BYTE) 168 494 T (dlp=pad\050dl\051) 306.56 494 T (1) 114 398 T (base) 168 398 T (major opcode) 306.56 398 T (1) 114 385 T (20) 168 385 T (minor opcode) 306.56 385 T (2) 114 372 T (1) 168 372 T (request length) 306.56 372 T (1) 114 274 T (base) 168 274 T (major opcode) 306.56 274 T (1) 114 261 T (2) 168 261 T (minor opcode) 306.56 261 T (2) 114 248 T (4 + \050nl+np + ll+lp\051/4) 168 248 T (request length) 306.56 248 T (4) 114 235 T (CARD32) 168 235 T (conte) 306.56 235 T (xt-id) 325.92 235 T (4) 114 222 T (CARD32) 168 222 T (printerNameLen) 306.56 222 T (4) 114 209 T (CARD32) 168 209 T (localeLen) 306.56 209 T (nl) 114 196 T (STRING8) 168 196 T (printer) 306.56 196 T (-name) 330.38 196 T (np) 114 183 T (BYTE\051) 168 183 T (np=pad\050nl\051) 306.56 183 T (ll) 114 170 T (STRING8) 168 170 T (locale) 306.56 170 T (lp) 114 157 T (BYTE) 168 157 T (lp=pad\050ll\051) 306.56 157 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "23" 27 %%Page: "24" 28 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (24) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (24) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 12 Q 0 X (PrintSetContext) 108 703 T (PrintGetContext) 108 566 T 3 10 Q (\256) 100.8 475.33 T 0 12 Q (PrintDestr) 108 316 T (oyContext) 162.43 316 T (PrintGetScr) 108 179 T (eenofContext) 170.44 179 T 3 10 Q (\256) 100.8 88.33 T 1 9 Q (1) 114 662 T (base) 168 662 T (major opcode) 306.56 662 T (1) 114 649 T (3) 168 649 T (minor opcode) 306.56 649 T (2) 114 636 T (2) 168 636 T (request length) 306.56 636 T (4) 114 623 T (CARD32) 168 623 T (conte) 306.56 623 T (xt) 325.92 623 T (1) 114 525 T (base) 168 525 T (major opcode) 306.56 525 T (1) 114 512 T (4) 168 512 T (minor opcode) 306.56 512 T (2) 114 499 T (1) 168 499 T (request length) 306.56 499 T (1) 114 438 T (1) 168 438 T (Reply) 306.56 438 T (1) 114 425 T (unused) 306.56 425 T (2) 114 412 T (CARD16) 168 412 T (sequence number) 306.56 412 T (4) 114 399 T (0) 168 399 T (reply length) 306.56 399 T (4) 114 386 T (CARD32) 168 386 T (conte) 306.56 386 T (xt) 325.92 386 T (16) 114 373 T (unused) 306.56 373 T (1) 114 275 T (base) 168 275 T (major opcode) 306.56 275 T (1) 114 262 T (5) 168 262 T (minor opcode) 306.56 262 T (2) 114 249 T (2) 168 249 T (request length) 306.56 249 T (4) 114 236 T (CARD32) 168 236 T (conte) 306.56 236 T (xt) 325.92 236 T (1) 114 138 T (base) 168 138 T (major opcode) 306.56 138 T (1) 114 125 T (6) 168 125 T (minor opcode) 306.56 125 T (2) 114 112 T (1) 168 112 T (request length) 306.56 112 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "24" 28 %%Page: "25" 29 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocol Encoding) 86.52 746.67 T (25) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 12 Q (PrintStartJ) 108 561 T (ob) 166.48 561 T (PrintEndJ) 108 411 T (ob) 161.83 411 T (PrintStartDoc) 108 261 T 1 9 Q (1) 114 683 T (1) 203.26 683 T (Reply) 341.82 683 T (1) 114 670 T (unused) 341.82 670 T (2) 114 657 T (CARD16) 203.26 657 T (sequence number) 341.82 657 T (4) 114 644 T (0) 203.26 644 T (reply length) 341.82 644 T (4) 114 631 T (WINDO) 203.26 631 T (W) 233.93 631 T (root) 341.82 631 T (16) 114 618 T (unused) 341.82 618 T (1) 114 520 T (base) 168 520 T (major opcode) 306.56 520 T (1) 114 507 T (7) 168 507 T (minor opcode) 306.56 507 T (2) 114 494 T (2) 168 494 T (request length) 306.56 494 T (1) 114 481 T (CARD8) 168 481 T (output-mode) 306.56 481 T (3) 114 468 T (unused) 306.56 468 T (1) 114 370 T (base) 168 370 T (major opcode) 306.56 370 T (1) 114 357 T (8) 168 357 T (minor opcode) 306.56 357 T (2) 114 344 T (2) 168 344 T (request length) 306.56 344 T (1) 114 331 T (BOOL) 168 331 T (cancel) 306.56 331 T (3) 114 318 T (unused) 306.56 318 T (1) 114 220 T (base) 168 220 T (major opcode) 306.56 220 T (1) 114 207 T (9) 168 207 T (minor opcode) 306.56 207 T (2) 114 194 T (2) 168 194 T (request length) 306.56 194 T (1) 114 181 T (CARD8) 168 181 T (dri) 306.56 181 T (v) 316.33 181 T (er) 320.7 181 T (-mode) 327.51 181 T (3) 114 168 T (unused) 306.56 168 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "25" 29 %%Page: "26" 30 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (26) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (26) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 12 Q 0 X (PrintEndDoc) 108 703 T (PrintPutDocumentData) 108 553 T (PrintGetDocumentData) 108 299 T 3 10 Q (\256+) 100.8 182.33 T 1 9 Q (1) 114 662 T (base) 168 662 T (major opcode) 306.56 662 T (1) 114 649 T (10) 168 649 T (minor opcode) 306.56 649 T (2) 114 636 T (2) 168 636 T (request length) 306.56 636 T (1) 114 623 T (BOOL) 168 623 T (cancel) 306.56 623 T (3) 114 610 T (unused) 306.56 610 T (1) 114 512 T (base) 168 512 T (major opcode) 306.56 512 T (1) 114 499 T (11) 168 499 T (minor opcode) 306.56 499 T (2) 114 486 T (4 + \050d+dp + f+fp + o+op\051/4) 168 486 T (request length) 306.56 486 T (4) 114 473 T (DRA) 168 473 T (W) 186.19 473 T (ABLE) 193.6 473 T (dra) 306.56 473 T (w) 317.92 473 T (able) 324.33 473 T (4) 114 460 T (CARD32) 168 460 T (len_data) 306.56 460 T (2) 114 447 T (CARD16) 168 447 T (len_fmt) 306.56 447 T (2) 114 434 T (CARD16) 168 434 T (len_options) 306.56 434 T (d) 114 421 T (LIST) 168 421 T (ofBYTE) 186.28 421 T (data) 306.56 421 T (dp) 114 408 T (BYTE) 168 408 T (dp=pad\050d\051) 306.56 408 T (f) 114 395 T (STRING8) 168 395 T (doc-format) 306.56 395 T (fp) 114 382 T (BYTE) 168 382 T (fp=pad\050f\051) 306.56 382 T (o) 114 369 T (STRING8) 168 369 T (options) 306.56 369 T (op) 114 356 T (BYTE) 168 356 T (op=pad\050o\051) 306.56 356 T (1) 114 258 T (base) 168 258 T (major opcode) 306.56 258 T (1) 114 245 T (12) 168 245 T (minor opcode) 306.56 245 T (2) 114 232 T (3) 168 232 T (request length) 306.56 232 T (4) 114 219 T (PCONTEXT) 168 219 T (conte) 306.56 219 T (xt) 325.92 219 T (4) 114 206 T (CARD32) 168 206 T (max-bytes) 306.56 206 T (1) 114 167 T (1) 168 167 T (Reply) 306.56 167 T (1) 114 154 T (unused) 306.56 154 T (2) 114 141 T (CARD16) 168 141 T (sequence number) 306.56 141 T (4) 114 128 T (\050n + p\051/4) 168 128 T (reply length) 306.56 128 T (4) 114 115 T (0 XPGetDocFinished) 168 115 T (1 XPGetDocSecondConsumer) 168 104 T (status-code) 306.56 115 T (4) 114 91 T (CARD32) 168 91 T (\336nished-\337ag) 306.56 91 T (4) 114 78 T (CARD32) 168 78 T (dataLen) 306.56 78 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "26" 30 %%Page: "27" 31 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocol Encoding) 86.52 746.67 T (27) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 12 Q (PrintStartP) 108 610 T (age) 167.87 610 T (PrintEndP) 108 473 T (age) 163.22 473 T (PrintSelectInput) 108 323 T (PrintInputSelected) 108 134 T 1 9 Q (12) 114 703 T (unused) 306.56 703 T (n) 114 690 T (LIST) 168 690 T (ofBYTE) 186.28 690 T (data) 306.56 690 T (p) 114 677 T (BYTE) 168 677 T (p=pad\050n\051) 306.56 677 T (1) 114 569 T (base) 168 569 T (major opcode) 306.56 569 T (1) 114 556 T (13) 168 556 T (minor opcode) 306.56 556 T (2) 114 543 T (2) 168 543 T (request length) 306.56 543 T (4) 114 530 T (WINDO) 168 530 T (W) 198.67 530 T (windo) 306.56 530 T (w) 328.84 530 T (1) 114 432 T (base) 168 432 T (major opcode) 306.56 432 T (1) 114 419 T (14) 168 419 T (minor opcode) 306.56 419 T (2) 114 406 T (2) 168 406 T (request length) 306.56 406 T (1) 114 393 T (BOOL) 168 393 T (cancel) 306.56 393 T (3) 114 380 T (unused) 306.56 380 T (1) 114 282 T (base) 168 282 T (major opcode) 306.56 282 T (1) 114 269 T (15) 168 269 T (minor opcode) 306.56 269 T (2) 114 256 T (3) 168 256 T (request length) 306.56 256 T (4) 114 243 T (PCONTEXT) 168 243 T (conte) 306.56 243 T (xt) 325.92 243 T (4) 114 230 T (BITMASK) 168 230 T (e) 306.56 230 T (v) 310.33 230 T (ent-mask) 314.7 230 T (#x00000000) 168 217 T (XPNoEv) 306.56 217 T (entMask) 338.92 217 T (#x00000001) 168 204 T (XPPrintMask) 306.56 204 T (#x00000002) 168 191 T (XP) 306.56 191 T (Attrib) 317.23 191 T (uteMask) 338.56 191 T (1) 114 93 T (base) 168 93 T (major opcode) 306.56 93 T (1) 114 80 T (16) 168 80 T (minor opcode) 306.56 80 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "27" 31 %%Page: "28" 32 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (28) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (28) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 3 F 0 X (\256) 100.8 674.33 T 0 12 Q (PrintGetAttrib) 108 502 T (utes) 185.08 502 T 3 10 Q (\256) 100.8 372.33 T 0 12 Q (PrintGetOneAttrib) 108 178 T (ute) 206.41 178 T 1 9 Q (2) 114 703 T (2) 168 703 T (request length) 306.56 703 T (4) 114 690 T (PCONTEXT) 168 690 T (conte) 306.56 690 T (xt) 325.92 690 T (1) 114 649 T (1) 168 649 T (Reply) 306.56 649 T (1) 114 636 T (unused) 306.56 636 T (2) 114 623 T (CARD16) 168 623 T (sequence number) 306.56 623 T (4) 114 610 T (0) 168 610 T (reply length) 306.56 610 T (4) 114 597 T (BITMASK) 168 597 T (e) 306.56 597 T (v) 310.33 597 T (ent-mask) 314.7 597 T (4) 114 584 T (BITMASK) 168 584 T (all-e) 306.56 584 T (v) 322.33 584 T (ents-mask) 326.69 584 T (16) 114 571 T (unused) 306.56 571 T (1) 114 461 T (base) 168 461 T (major opcode) 306.56 461 T (1) 114 448 T (17) 168 448 T (minor opcode) 306.56 448 T (2) 114 435 T (3) 168 435 T (request length) 306.56 435 T (4) 114 422 T (PCONTEXT) 168 422 T (conte) 306.56 422 T (xt) 325.92 422 T (1) 114 409 T (CARD8) 168 409 T (pool) 306.56 409 T (3) 114 396 T (unused) 306.56 396 T (1) 114 342 T (1) 168 342 T (Reply) 306.56 342 T (1) 114 329 T (unused) 306.56 329 T (2) 114 316 T (CARD16) 168 316 T (sequence number) 306.56 316 T (4) 114 303 T (\050n+p\051/4) 168 303 T (reply length) 306.56 303 T (4) 114 290 T (CARD32) 168 290 T (stringLen) 306.56 290 T (20) 114 277 T (unused) 306.56 277 T (n) 114 264 T (STRING8) 168 264 T (attrib) 306.56 264 T (utes) 325.38 264 T (p) 114 251 T (p=pad\050n\051) 306.56 251 T (1) 114 137 T (base) 168 137 T (major opcode) 306.56 137 T (1) 114 124 T (19) 168 124 T (minor opcode) 306.56 124 T (2) 114 111 T (4 + \050n+p\051/4) 168 111 T (request length) 306.56 111 T (4) 114 98 T (PCONTEXT) 168 98 T (conte) 306.56 98 T (xt) 325.92 98 T (4) 114 85 T (CARD32) 168 85 T (nameLen) 306.56 85 T (1) 114 72 T (CARD8) 168 72 T (pool) 306.56 72 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "28" 32 %%Page: "29" 33 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocol Encoding) 86.52 746.67 T (29) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 3 10 Q (\256) 100.8 651.33 T 0 12 Q (PrintSetAttrib) 108 466 T (utes) 182.41 466 T (PrintGetP) 108 251 T (ageDimensions) 160.54 251 T 3 10 Q (\256) 100.8 147.33 T 1 9 Q (3) 114 703 T (unused) 306.56 703 T (n) 114 690 T (STRING8) 168 690 T (name) 306.56 690 T (p) 114 677 T (p=pad\050n\051) 306.56 677 T (1) 114 626 T (1) 168 626 T (Reply) 306.56 626 T (1) 114 613 T (unused) 306.56 613 T (2) 114 600 T (CARD16) 168 600 T (sequence number) 306.56 600 T (4) 114 587 T (\050n+p\051/4) 168 587 T (reply length) 306.56 587 T (4) 114 574 T (CARD32) 168 574 T (v) 306.56 574 T (alueLen) 310.84 574 T (20) 114 561 T (unused) 306.56 561 T (n) 114 548 T (STRING8) 168 548 T (v) 306.56 548 T (alue) 310.84 548 T (p) 114 535 T (p=pad\050n\051) 306.56 535 T (1) 114 425 T (base) 168 425 T (major opcode) 306.56 425 T (1) 114 412 T (18) 168 412 T (minor opcode) 306.56 412 T (2) 114 399 T (4 + \050n+p\051/4) 168 399 T (request length) 306.56 399 T (4) 114 386 T (PCONTEXT) 168 386 T (conte) 306.56 386 T (xt) 325.92 386 T (4) 114 373 T (CARD32) 168 373 T (stringLen) 306.56 373 T (1) 114 360 T (CARD8) 168 360 T (pool) 306.56 360 T (1) 114 347 T (CARD8) 168 347 T (rule) 306.56 347 T (2) 114 334 T (unused) 306.56 334 T (n) 114 321 T (STRING8) 168 321 T (attrib) 306.56 321 T (utes) 325.38 321 T (p) 114 308 T (BYTE) 168 308 T (p=pad\050n\051) 306.56 308 T (1) 114 210 T (base) 168 210 T (major opcode) 306.56 210 T (1) 114 197 T (21) 168 197 T (minor opcode) 306.56 197 T (2) 114 184 T (2) 168 184 T (request length) 306.56 184 T (4) 114 171 T (PCONTEXT) 168 171 T (conte) 306.56 171 T (xt) 325.92 171 T (1) 114 110 T (1) 168 110 T (Reply) 306.56 110 T (1) 114 97 T (unused) 306.56 97 T (2) 114 84 T (CARD16) 168 84 T (sequence number) 306.56 84 T (4) 114 71 T (0) 168 71 T (reply length) 306.56 71 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "29" 33 %%Page: "30" 34 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (30) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (30) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 12 Q 0 X (PrintQueryScr) 108 570 T (eens) 184.44 570 T 3 10 Q (\256) 100.8 479.33 T 0 12 Q (PrintSetImageResolution) 108 246 T 3 10 Q (\256) 100.8 116.33 T 1 9 Q (2) 114 703 T (CARD) 168 703 T (16) 193 703 T (width) 306.56 703 T (2) 114 690 T (CARD) 168 690 T (16) 193 690 T (height) 306.56 690 T (2) 114 677 T (CARD) 168 677 T (16) 193 677 T (of) 306.56 677 T (fset-x) 313.83 677 T (2) 114 664 T (CARD) 168 664 T (16) 193 664 T (of) 306.56 664 T (fset-y) 313.83 664 T (2) 114 651 T (CARD) 168 651 T (16) 193 651 T (reproducible-width) 306.56 651 T (2) 114 638 T (CARD) 168 638 T (16) 193 638 T (reproducible-height) 306.56 638 T (12) 114 625 T (unused) 306.56 625 T (1) 114 529 T (base) 168 529 T (major opcode) 306.56 529 T (1) 114 516 T (22) 168 516 T (minor opcode) 306.56 516 T (2) 114 503 T (2) 168 503 T (request length) 306.56 503 T (1) 114 442 T (1) 168 442 T (Reply) 306.56 442 T (1) 114 429 T (unused) 306.56 429 T (2) 114 416 T (CARD16) 168 416 T (sequence number) 306.56 416 T (4) 114 403 T (listCount) 168 403 T (reply length) 306.56 403 T (4) 114 390 T (CAR) 168 390 T (D32) 186.5 390 T (listCount) 306.56 390 T (20) 114 377 T (unused) 306.56 377 T (4 * list-) 114 364 T (Count) 114 353 T (LIST) 168 364 T (ofWINDO) 186.28 364 T (W) 224.45 364 T (roots) 306.56 364 T (R) 114 327 T (OO) 119.64 327 T (T-) 132.28 327 T (WINDO) 114 316 T (W) 144.67 316 T (4) 114 303 T (WINDO) 168 303 T (W) 198.67 303 T (rootW) 306.56 303 T (indo) 329.2 303 T (w) 344.97 303 T (1) 114 205 T (base) 168 205 T (major opcode) 306.56 205 T (1) 114 192 T (23) 168 192 T (minor opcode) 306.56 192 T (2) 114 179 T (3) 168 179 T (request length) 306.56 179 T (4) 114 166 T (PCONTEXT) 168 166 T (conte) 306.56 166 T (xt) 325.92 166 T (2) 114 153 T (CARD16) 168 153 T (image-resolution) 306.56 153 T (2) 114 140 T (unused) 306.56 140 T (1) 114 86 T (1) 168 86 T (Reply) 306.56 86 T (1) 114 73 T (BOOL) 168 73 T (status) 306.56 73 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "30" 34 %%Page: "31" 35 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 54 540 54 2 L 0.25 H 2 Z 0 X 0 0 0 1 0 0 0 K N 1 10 Q (X V) 72 41.28 T (ersion 11) 87.83 41.28 T (Release 6.4) 493.9 41.28 T 108 54 540 54 2 L N 72 740.81 540 756 R 7 X V 0 14 Q 0 X (Pr) 72 746.67 T (otocol Encoding) 86.52 746.67 T (31) 526 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 12 Q (PrintGetImageResolution) 108 597 T 3 10 Q (\256) 100.8 493.33 T 0 14 Q (5.2) 72 360.67 T (Ev) 108 360.67 T (ent Pr) 124.2 360.67 T (otocol Encoding) 160.88 360.67 T 0 12 Q (PrintNotify) 108 305 T 1 9 Q (2) 114 703 T (CARD16) 168 703 T (sequence number) 306.56 703 T (4) 114 690 T (0) 168 690 T (reply length) 306.56 690 T (2) 114 677 T (CARD16) 168 677 T (pre) 306.56 677 T (vious-resolution) 317.83 677 T (22) 114 664 T (unused) 306.56 664 T (1) 114 556 T (base) 168 556 T (major opcode) 306.56 556 T (1) 114 543 T (24) 168 543 T (minor opcode) 306.56 543 T (2) 114 530 T (2) 168 530 T (request length) 306.56 530 T (4) 114 517 T (PCONTEXT) 168 517 T (conte) 306.56 517 T (xt) 325.92 517 T (1) 114 463 T (1) 168 463 T (Reply) 306.56 463 T (1) 114 450 T (unused) 306.56 450 T (2) 114 437 T (CARD16) 168 437 T (sequence number) 306.56 437 T (4) 114 424 T (0) 168 424 T (reply length) 306.56 424 T (2) 114 411 T (CARD16) 168 411 T (image-resolution) 306.56 411 T (22) 114 398 T (unused) 306.56 398 T (1) 114 264 T (0 + base) 168 264 T (code) 306.56 264 T (1) 114 251 T (0 XPStartJobNotify) 168 251 T (1 XPEndJobNotify) 168 236 T (2 XPStartDocNotify) 168 221 T (3 XPEndDocNotify) 168 206 T (4 XPStartP) 168 191 T (ageNotify) 208.12 191 T (5 XPEndP) 168 176 T (ageNotify) 205.62 176 T (detail) 306.56 251 T (2) 114 163 T (CARD16) 168 163 T (sequence number) 306.56 163 T (4) 114 150 T (PCONTEXT) 168 150 T (conte) 306.56 150 T (xt) 325.92 150 T (1) 114 137 T (BOOL) 168 137 T (cancel) 306.56 137 T (23) 114 124 T (unused) 306.56 124 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "31" 35 %%Page: "32" 36 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 36.66 504 47.95 R 7 X 0 0 0 1 0 0 0 K V 1 10 Q 0 X (32) 72 41.28 T (December 15, 1997) 248.71 41.28 T (Protocol Encoding) 429.28 41.28 T 72 54 504 54 2 L 7 X V 0.25 H 2 Z 0 X N 72 740.81 504 756 R 7 X V 0 14 Q 0 X (32) 72 749.33 T (Pr) 393.41 749.33 T (otocol Encoding) 407.93 749.33 T 72 36.66 540 47.95 R 7 X V 1 10 Q 0 X (Release 6.4) 72 41.28 T (X V) 487.23 41.28 T (ersion 11) 503.06 41.28 T 72 54 540 54 2 L 7 X V 0 X N 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 63 540 711 R 7 X V 0 12 Q 0 X (Attrib) 108 703 T (uteNotify) 139.75 703 T 0 14 Q (5.3) 72 438.67 T (E) 108 438.67 T (rr) 117.34 438.67 T (or Pr) 129.52 438.67 T (otocol Encoding) 160.75 438.67 T 0 12 Q (B) 108 383 T (adContext) 116 383 T (BadSequence) 108 259 T 1 9 Q (1) 114 662 T (1 + base) 168 662 T (code) 327.62 662 T (1) 114 649 T (1 XPJobAttr) 168 649 T (2 XPDocAttr) 168 634 T (3 XPP) 168 619 T (ageAttr) 191.12 619 T (4 XPPrinterAttr) 168 604 T (5 XPServ) 168 589 T (erAttr) 202.61 589 T (6 XPMediumAttr \050future use\051) 168 574 T (7 XPSpoolerAttr \050future use\051) 168 559 T (detail) 327.62 649 T (2) 114 546 T (CARD16) 168 546 T (sequence number) 327.62 546 T (4) 114 533 T (PCONTEXT) 168 533 T (conte) 327.62 533 T (xt) 346.98 533 T (24) 114 520 T (unused) 327.62 520 T (1) 114 342 T (0) 168 342 T (Error) 306.56 342 T (1) 114 329 T (0 +) 168 329 T ( base) 179.83 329 T (code) 306.56 329 T (2) 114 316 T (CARD16) 168 316 T (sequence number) 306.56 316 T (1) 114 218 T (0) 168 218 T (Error) 306.56 218 T (1) 114 205 T (1 +) 168 205 T ( base) 179.83 205 T (code) 306.56 205 T (2) 114 192 T (CARD16) 168 192 T (sequence number) 306.56 192 T 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "32" 36 %%Page: "33" 37 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 0 0 0 1 0 0 0 K 0 14 Q 0 X (33) 72 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (Index) 505.77 746.67 T 0 0 0 1 0 0 0 K 72 33.32 540 43.32 R 7 X V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 0 12 Q 0 X (A) 72 712 T 0 0 0 1 0 0 0 K 1 10 Q (AttributeNotify, encoding) 72 692.33 T 1 12 Q ( 32) 175.88 692.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (attributes) 72 680.33 T 1 12 Q ( 13\32019) 109.22 680.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (defaults) 90 668.33 T 1 12 Q ( 13) 121.66 668.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (document) 90 656.33 T 1 12 Q ( 17) 129.44 656.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (job) 90 644.33 T 1 12 Q ( 17) 102.78 644.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (page) 90 632.33 T 1 12 Q ( 18) 108.88 632.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (printer) 90 620.33 T 1 12 Q ( 14) 116.66 620.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (server) 90 608.33 T 1 12 Q ( 14) 114.43 608.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (validating) 90 596.33 T 1 12 Q ( 14) 130 596.33 T 0 0 0 1 0 0 0 K 0 F (B) 72 569 T 0 0 0 1 0 0 0 K 1 10 Q (BadContext, encoding) 72 549.33 T 1 12 Q ( 32) 161.44 549.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (BadSequence, encoding) 72 537.33 T 1 12 Q ( 32) 168.09 537.33 T 0 0 0 1 0 0 0 K 0 F (C) 72 510 T 0 0 0 1 0 0 0 K 1 10 Q (content-orientation) 72 490.33 T 1 12 Q ( 18, 19) 148.1 490.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (content-orientations-supported) 72 478.33 T 1 12 Q ( 15) 194.76 478.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (copy-count) 72 466.33 T 1 12 Q ( 18) 116.99 466.33 T 0 0 0 1 0 0 0 K 0 F (D) 72 439 T 0 0 0 1 0 0 0 K 1 10 Q (default-input-tray) 72 419.33 T 1 12 Q ( 18, 19) 142.54 419.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (default-medium) 72 407.33 T 1 12 Q ( 18, 19) 135.88 407.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (default-printer-resolution) 72 395.33 T 1 12 Q ( 18, 19) 173.09 395.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (defaults, attributes) 72 383.33 T 1 12 Q ( 13) 145.88 383.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (descriptor) 72 371.33 T 1 12 Q ( 15) 111.99 371.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (document attributes) 72 359.33 T 1 12 Q ( 17) 151.16 359.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (document-attributes-supported) 72 347.33 T 1 12 Q ( 15) 194.76 347.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (document-format) 72 335.33 T 1 12 Q ( 18) 141.43 335.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (document-formats-supported) 72 323.33 T 1 12 Q ( 15) 188.09 323.33 T 0 0 0 1 0 0 0 K 0 F (E) 72 296 T 0 0 0 1 0 0 0 K 1 10 Q (errors) 72 276.33 T 1 12 Q ( 2) 95.32 276.33 T 0 0 0 1 0 0 0 K 0 F (I) 72 249 T 0 0 0 1 0 0 0 K 1 10 Q (input-trays-medium) 72 229.33 T 1 12 Q ( 15) 151.44 229.33 T 0 0 0 1 0 0 0 K 0 F (J) 72 202 T 0 0 0 1 0 0 0 K 1 10 Q (job attributes) 72 182.33 T 1 12 Q ( 17) 124.5 182.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (job-attributes-supported) 72 170.33 T 1 12 Q ( 15) 168.1 170.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (job-name) 72 158.33 T 1 12 Q ( 17) 109.77 158.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (job-owner) 72 146.33 T 1 12 Q ( 17) 113.1 146.33 T 0 0 0 1 0 0 0 K 0 F (L) 72 119 T 0 0 0 1 0 0 0 K 1 10 Q (locale, attribute) 72 99.33 T 1 12 Q ( 14) 134.21 99.33 T 0 0 0 1 0 0 0 K 0 F (M) 315 712 T 0 0 0 1 0 0 0 K 1 10 Q (medium-source-sizes-supported) 315 692.33 T 1 12 Q ( 15) 442.75 692.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (multiple-documents-supported) 315 680.33 T 1 12 Q ( 14) 437.77 680.33 T 0 0 0 1 0 0 0 K 0 F (N) 315 653 T 0 0 0 1 0 0 0 K 1 10 Q (notification-profile) 315 633.33 T 1 12 Q ( 17) 391.1 633.33 T 0 0 0 1 0 0 0 K 0 F (P) 315 606 T 0 0 0 1 0 0 0 K 1 10 Q (page attributes) 315 586.33 T 1 12 Q ( 18) 373.6 586.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PCONTEXT, type) 315 574.33 T 1 12 Q ( 2) 389.44 574.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (plex) 315 562.33 T 1 12 Q ( 18, 19) 332.22 562.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (plexes-supported) 315 550.33 T 1 12 Q ( 16) 383.32 550.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (Print Dialog Manager, communicating with) 315 538.33 T 1 12 Q ( 20) 489.71 538.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintCreateContext) 315 526.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 514.33 T 1 12 Q ( 23) 369.66 514.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 502.33 T 1 12 Q ( 2) 361.88 502.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintDestroyContext) 315 490.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 478.33 T 1 12 Q ( 24) 369.66 478.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 466.33 T 1 12 Q ( 3) 361.88 466.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintEndDoc) 315 454.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 442.33 T 1 12 Q ( 26) 369.66 442.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 430.33 T 1 12 Q ( 6) 361.88 430.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintEndJob) 315 418.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 406.33 T 1 12 Q ( 25) 369.66 406.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 394.33 T 1 12 Q ( 4) 361.88 394.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintEndPage) 315 382.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 370.33 T 1 12 Q ( 27) 369.66 370.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 358.33 T 1 12 Q ( 7) 361.88 358.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (printer attributes) 315 346.33 T 1 12 Q ( 14) 381.38 346.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (printer-model) 315 334.33 T 1 12 Q ( 16) 369.99 334.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (printer-name) 315 322.33 T 1 12 Q ( 16) 366.65 322.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (printer-resolutions-supported) 315 310.33 T 1 12 Q ( 16) 431.65 310.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetAttributes) 315 298.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 286.33 T 1 12 Q ( 28) 369.66 286.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 274.33 T 1 12 Q ( 9) 361.88 274.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetContext) 315 262.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 250.33 T 1 12 Q ( 24) 369.66 250.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 238.33 T 1 12 Q ( 3) 361.88 238.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetDocumentData) 315 226.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 214.33 T 1 12 Q ( 26) 369.66 214.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 202.33 T 1 12 Q ( 5) 361.88 202.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetImageResolution) 315 190.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 178.33 T 1 12 Q ( 31) 369.66 178.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 166.33 T 1 12 Q ( 11) 361.88 166.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetOneAttribute) 315 154.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 142.33 T 1 12 Q ( 28) 369.66 142.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 130.33 T 1 12 Q ( 9) 361.88 130.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetPageDimensions) 315 118.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 333 106.33 T 1 12 Q ( 29) 369.66 106.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 333 94.33 T 1 12 Q ( 8) 361.88 94.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetPrinterList) 315 82.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "33" 37 %%Page: "34" 38 612 792 0 FMBEGINPAGE [0 0 0 1 0 0 0] [ 0 1 1 0 1 0 0] [ 1 0 1 0 0 1 0] [ 1 1 0 0 0 0 1] [ 1 0 0 0 0 1 1] [ 0 1 0 0 1 0 1] [ 0 0 1 0 1 1 0] 7 FrameSetSepColors FrameNoSep 0 0 0 1 0 0 0 K 72 746 540 756 R 7 X 0 0 0 1 0 0 0 K V 0 0 0 1 0 0 0 K 0 14 Q 0 X (Index) 72 746.67 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (34) 526 746.67 T 0 0 0 1 0 0 0 K 72 33.32 540 43.32 R 7 X V 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 72 72 540 720 R V 0 0 0 1 0 0 0 K 1 10 Q 0 X (encoding) 90 713.33 T 1 12 Q ( 22) 126.66 713.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 701.33 T 1 12 Q ( 3) 118.88 701.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintGetScreenOfContext) 72 689.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 677.33 T 1 12 Q ( 24) 126.66 677.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 665.33 T 1 12 Q ( 4) 118.88 665.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintInputSelected) 72 653.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 641.33 T 1 12 Q ( 27) 126.66 641.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 629.33 T 1 12 Q ( 8) 118.88 629.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintNotify, encoding) 72 617.33 T 1 12 Q ( 31) 159.22 617.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintPutDocumentData) 72 605.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 593.33 T 1 12 Q ( 26) 126.66 593.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 581.33 T 1 12 Q ( 5) 118.88 581.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintQueryScreens) 72 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 557.33 T 1 12 Q ( 30) 126.66 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 545.33 T 1 12 Q ( 10) 118.88 545.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintQueryVersion) 72 533.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 521.33 T 1 12 Q ( 22) 126.66 521.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 509.33 T 1 12 Q ( 10) 118.88 509.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintRehashPrinterList) 72 497.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 485.33 T 1 12 Q ( 23) 126.66 485.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 473.33 T 1 12 Q ( 10) 118.88 473.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintSelectInput) 72 461.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 449.33 T 1 12 Q ( 27) 126.66 449.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 437.33 T 1 12 Q ( 8) 118.88 437.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintSetAttributes) 72 425.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 413.33 T 1 12 Q ( 29) 126.66 413.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 401.33 T 1 12 Q ( 9, 10) 118.88 401.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintSetContext) 72 389.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 377.33 T 1 12 Q ( 24) 126.66 377.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 365.33 T 1 12 Q ( 3) 118.88 365.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintSetImageResolution) 72 353.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 341.33 T 1 12 Q ( 30) 126.66 341.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 329.33 T 1 12 Q ( 10) 118.88 329.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintStartDoc) 72 317.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 305.33 T 1 12 Q ( 25) 126.66 305.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 293.33 T 1 12 Q ( 6) 118.88 293.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintStartJob) 72 281.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 269.33 T 1 12 Q ( 25) 126.66 269.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 257.33 T 1 12 Q ( 4) 118.88 257.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (PrintStartPage) 72 245.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (encoding) 90 233.33 T 1 12 Q ( 27) 126.66 233.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (request) 90 221.33 T 1 12 Q ( 7) 118.88 221.33 T 0 0 0 1 0 0 0 K 0 F (S) 72 194 T 0 0 0 1 0 0 0 K 1 10 Q (server attributes) 72 174.33 T 1 12 Q ( 14) 136.15 174.33 T 0 0 0 1 0 0 0 K 0 F (V) 72 147 T 0 0 0 1 0 0 0 K 1 10 Q (validating attributes) 72 127.33 T 1 12 Q ( 14) 151.72 127.33 T 0 0 0 1 0 0 0 K 0 F (X) 72 100 T 0 0 0 1 0 0 0 K 1 10 Q (XPAttributeNotify) 72 80.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (event) 333 713.33 T 1 12 Q ( 12) 354.66 713.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (XPBadContext, error description) 315 701.33 T 1 12 Q ( 2) 446.93 701.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (XPBadSequence, error description) 315 689.33 T 1 12 Q ( 2) 453.58 689.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-embedded-formats-supported) 315 677.33 T 1 12 Q ( 16) 446.08 677.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-listfonts-modes) 315 665.33 T 1 12 Q ( 18, 19) 390 665.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-listfonts-modes-supported) 315 653.33 T 1 12 Q ( 16) 432.77 653.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-page-attributes-supported) 315 641.33 T 1 12 Q ( 16) 430.53 641.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (XPPrintNotify) 315 629.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K (event) 333 617.33 T 1 12 Q ( 11) 354.66 617.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-raw-formats-supported) 315 605.33 T 1 12 Q ( 16) 419.97 605.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-setup-proviso) 315 593.33 T 1 12 Q ( 17) 382.77 593.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-setup-state) 315 581.33 T 1 12 Q ( 17) 371.1 581.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-spooler-command-options) 315 569.33 T 1 12 Q ( 17) 433.32 569.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K 1 10 Q (xp-spooler-command-results) 315 557.33 T 1 12 Q ( 17) 429.98 557.33 T 0 0 0 1 0 0 0 K 0 0 0 1 0 0 0 K FMENDPAGE %%EndPage: "34" 38 %%Trailer %%BoundingBox: 0 0 612 792 %%PageOrder: Ascend %%Pages: 38 %%DocumentFonts: Times-Bold %%+ Times-Roman %%+ Times-Italic %%+ Symbol %%+ Courier %%EOF xorgproto-2023.2/specs/printproto/xp_protoTOC.doc0000644000175000017500000004600014443010026017024 00000000000000  Aaÿd ¹ º º º » ½ ¼ ¾ åHH $ @dHHHHÌÌÌÌÌÌff@€€€ÿö ø ø øÿÿÿ øÿÿÿÿd å ÿFootnote TableFootnote* à* à.\t.\tè/ - Ð Ñ:;,.É!? `*Bl&&  a5   EquationVariablesBoldÚ‘±¤G‘-­’.rie¯“/es±”0tic³•1Reµ–2·—3 ¹˜4»™5b½š6@¿›7Áœ8Ã9Åž:ÇŸ;É <Ë¡=Í¢>Ï£?-M@-‘openObjectId xp_proto.mif:2 675.’openObjectId xp_proto.mif:2 675/“"openObjectId xp_proto.mif:2 7152910”"openObjectId xp_proto.mif:2 7152921•"openObjectId xp_proto.mif:2 7177052–openObjectId xp_proto.mif:2 5253— openObjectId xp_proto.mif:2 11714˜openObjectId xp_proto.mif:2 4645™openObjectId xp_proto.mif:2 967ÿ6šopenObjectId xp_proto.mif:2 9807› openObjectId xp_proto.mif:2 10388œo openObjectId xp_proto.mif:2 14009 openObjectId xp_proto.mif:2 1894:ž& openObjectId xp_proto.mif:2 1612;Ÿ openObjectId xp_proto.mif:2 1899<  openObjectId xp_proto.mif:2 2001=¡ openObjectId xp_proto.mif:2 4445>¢ openObjectId xp_proto.mif:2 3879?£e openObjectId xp_proto.mif:2 3990ÙùïÙ<$lastpagenum>Ú<$monthname> <$daynum>, <$year>Ã9Û"<$monthnum>/<$daynum>/<$shortyear>Ü;<$monthname> <$daynum>, <$year> <$hour>:<$minute00> <$ampm>ro.Ý"<$monthnum>/<$daynum>/<$shortyear>Þ<$monthname> <$daynum>, <$year>ro.ß"<$monthnum>/<$daynum>/<$shortyear>à <$fullfilename>•á <$filename>ro.â <$paratext[Title]>ã <$paratext[Heading1]>ä <$curpagenum>då <$marker1>æ <$marker2>ç (Continued)è+ (Sheet <$tblsheetnum> of <$tblsheetcount>)opéHeading & Page Ò<$paratext>Ó on page<$pagenum>êPagepage<$pagenum>oopëSee Heading & Page%See Ò<$paratext>Ó on page<$pagenum>..f:ì Table & Page7Table<$paranumonly>, Ò<$paratext>,Ó on page<$pagenum>xprí Table All7Table<$paranumonly>, Ò<$paratext>,Ó on page<$pagenum>nîTable Number & Page5'Table<$paranumonly> on page<$pagenum>8 I Y KOb I 8 8A J < <TOCe M 9 9 N : : O ; @A; P = = Q > > R ? ?A$u¥u ­oe>Av Æ >rBw Ë"hnCx Úor#y ¯ fu%z ®• j{ Îao./| Äa[T0} Å pa1~ ÆiD ÙuumE€ Í er®ƒ Ù er°„ Ù in²… ÚSh´† Úe o¶‡ Út)¸ˆ Úe& º‰ ÙrÓ ¼Š Úa¾‹ Ú$pÀŒ ÚpSeÂ Ú SeÄŽ Úx pÆ Úuf:È Ù 7Ê‘ Ùay>Ì’ Úxn Γ ÚnprД Ú  M A$pad  m : 8 ¹'bld2   I 5 » 8HHÔˆ  ‚  OHHÔˆ  N : : 8du; H’£3Rë `@3 „ !  >H’£3Rë `@H RH RFootnoteuHqø3@ `@4 ! „ "  >rHqø3@ `@Hz·¯Hz·¯ Single Line H'´ÿð5 " ‚ ! . o. - - ÅFootnotepaHíUVÔ " # ‚  E ÍHíUVÔ ÿÿ in² 9ShªªUUdy Ú tH$Ô $ $ ‚  Ó H$Ô ÿÿ¾p : ªªUUdz p Æd? % Ùa < < ½n Îd' & a ; ; ¼HHÔˆ( ' „ & lHHÔˆ\ÿî  5 ; 8 h{‘Table of Contents yªªªªUUhƒ’1Overview1 Šª©ªªUUh„“2Protocols2 du–ª¨ªªUUh…Rë@”2.1 Formats, Syntactic Conventions, and Common Types2 R¢ª§ªªUUh†•2.2 Errors2 ®ª¦ªªUUh‡>r(–2.3 X Print Service Requests2 leºª¥ªªUUhˆ—2.4 Events11 ˪¤ªªUUh‰ -!˜3X Print Attributes13 Vת£ªªUUhŠ ‚8™3.1 Attribute Value Defaults And Validation13 㪢ªªUUh‹"š3.2 Server Attributes14 瑱ªªUUhŒ#›3.3 Printer Attributes14 Hûª ªªUUh¾œ3.4 Job Attributes17 ªŸªªUUhŽ$3.5 Document Attributes17 ªžªªUUh ž3.6 Page Attributes18 $ªªªUUh:Ÿ4Communication with the Print Dialog Manager20 5ªœªªUUh‘  5Protocol Encoding22 Aª›ªªUUh’ÿî*¡5.1 Request Protocol Encoding22 MªšªªUUh“(¢5.2 Event Protocol Encoding31 s Yª™ªªUUh”,£5.3 Error Protocol Encoding32 HHÔˆ@ ( ‚ % ëHHÔˆBÿýntommon Ty <ªªd€E6openObjectId <$relfilename>:<$ObjectType> <$ObjectId> ªªªªUUdª¥#<$paranum><$paratext><$pagenum> 11%ª©ªªUUdx‰#<$paranum> <$paratext><$pagenum> 3 V2ÿþdw ‚"<$paranum><$paratext><$pagenum> ?ª¨ªªUUdv1 d+ ) tib = ? ºH$Ô , * „ ) ªUUH$Ô  ÿÿJªªUU =3.ªªªªUU`|1 Hì­wÔ - + „ ) rutHì­wÔ  ÿÿation wi >iaªªªªUU`}UU ‘HHÔˆ. , „ ) ›ªªHHÔˆ ÿÿ ding22 ?“ªªªªUUd~ro o  6 - ‰ ".   ocoEn  ™ H§ø3D­ `@7 . ‹ " /  H§ø3D­ `@H°·¯H°·¯ Double Line TyH¹ÿðÔ 8 / ‚ . 2 Eop 0 1<$ Double Line$ObÔ9 0 Œ 1 /atÔ11ª©ÔÔ: 1 Œ 0 /þÔaram>ÔH…ÿúÔ ; 2 ‚ / 4  3 3t Single Line= ?Ô< 3 Œ 2, „ÔUUÔHZ´ÿð= 4 ‚ 2 5 | TableFootnotewE¸ÏGVûRªù `@> 5 ‚ 4  ­wE¸ÏGVûRªù `@E¸ÏPwE¸ÏPw TableFootnotedä 6 ‘ @ @ ¾HHÔˆå 7 „ 6 HHÔˆªªUU @HHÔˆÑ 8 ‚ 9  HHÔˆlÿð   IHíUVÔ Ò 9 ‚ : 8 ¯HíUVÔ lÿð # # MopH$Ô Ó : ‚ 9 bH$Ô lÿð $ $ N11HHÔˆÔ ; „ &: ŒHHÔˆlÿð @ ' ' OHHHÔˆÕ < ‚ %HHÔˆlÿð ( ( J<H$Ô Ö = „ > )UH$Ô lÿð * * PHì­wÔ × > „ = ? )w¸ÏHì­wÔ lÿð + + QE¸ÏHHÔˆØ ? „ > )HHÔˆlÿð , , RHHÔˆÙ @ „ 6HHÔˆlÿð ; 7 7 O ¹ É ¿d ¹ Leftd º )Rightd » ½  ReferenceHd ¼ ¾ & 8d ½ » %TOCd ¾ ¼ 6 ­ í Ç"À@ ­ Body. À@ ® êðÔHeader. ÖÀ@ ¯ êÔFooter.  ° åHÙ „ Ø   h ° Body.  ± å H8  Ø »  h ° Bulleted¥\tÇ. æf™ ² åCellBody. æf™ ³ å CellHeading. æf™ ´ å Footnote. otæf™ µT å Heading1Body. æf™ ¶T å Heading2Body.  ·P å Hu t Ø   h ° ™ HeadingRunInBody.  ¸ åH  Ø   h ° Indented. ad ¹ å H  oØ   th ° Numbered.\t.  ºA å H  Ø   h ° Numbered1.\tNumbered. æf™ » å TableFootnote. æf™ ¼T å  TableTitleT:Table : . p À@ ½P å TitleBody. À@ ¾P å Title2Body. À@ ¿P åTitle3Body. æf™ ÀT å  TableTitleT:Table : . æf™ Á å CellHeading. æf™  åCellBody. æf™ à å CellFootingl. À@ Ä åê lÔ Header. À@ Å åêo Ô Footer.  Æ å+>H   Ø f ™ h ° Body. À@ Ë  3HeadingTOC. À@ Ì  3HeadingTOC. À@ Í  ActiveTOC. \æf™ ÎP å TitleAuthor.  Ù å. °.. 1HeadingTOC. H$À@ Ú å6.°.. 2HeadingTOC.  Û å. °.. 1HeadingTOC. H$À@ Ü å6.°.. 2HeadingTOC. ! úÚÜ úÚÜ i_mF å úÚÜ å úÚÜ å )ÕÞ å )ÕÞ å  €Emphasis €EquationVariables ž[ å  ¡ ƒ  ‚ „ å€ ‰ å€ ‹ å Œ å=MB€= åThin> åMedium €? åadiDouble@ å$Thick@A å Very Thin¡±£ ¡=>=====> À å å åHH Á  ÃH Á  ÃH Á  ÃH Á  ÃH Á  ÃFormat B ¢=========? À å å åH Á  ÃÜH Á  ÃH Á  ÃH Á  ÃÜH Á  ÃFormat A çComment å õ íd  åBlackT! æWhiteddA çRedqondd èGreendd  éBlued êCyand ëMagentad ìYellow Times-RomanMCourier Times-Bold Courier-BoldHelvetica-BoldCourierTimes@ Helveticah RegularRegulare BoldRegular£ObliqueItalic©t)§Øjö“Úö!î—»#Æ´NÅ?ŠšÌOœ$ÉG¡î\æÂüäž½ë–+6²iøØv­ Î5U[¸‹Ûéß;=cA6ùDé“xorgproto-2023.2/specs/printproto/xp_proto.book0000644000175000017500000005400014443010026016642 00000000000000  Aaÿn,ád€€€ÿö ø ø øÿÿÿ øÿÿÿÿdfederal-=.-Ë h225826: 2Sect: 7.2.2 Validation of Attribute Values.ÒValidating Attribute ValuesÓ/Ê h%15258: 1Heading: 3 X Print Attributes .section3ÉÙÌÉ Ò<$paratext>Ó on page<$pagenum> Ò<$paratext>Ó on page<$pagenum>Êsection<$paranum>section<$paranum>Ë Ò<$paratext>Ó Ò<$paratext>Ó a q m a annTOC.doc b ann.mif c annIOM.doc d annapp.mif e anncov.mif fcoverPage.doc gxp_protoTOC.doc hxp_proto.mif ixp_protoTC.doc jxp_proto_app.mif kxp_proto_cov.mif lxp_protoIX.doc¥µ§d¥ EÐ A¨_ÉÔd¦ +SàBAQCdA¥LeftdB¦Right5¥J$$æf™5D m  2H. Øi oüb #define.#definet. luæf™6HQm t>$g $1HeadingH:\tBody. seC®6æf™7SE mp.C® c1Step. S:.\tStep. æf™8HQm ot$ 2Heading H:.\tBody. æf™9HQm C6 3HeadingH:.. \tBody. æf™:HQ m6 4HeadingH:... \tBody. æf™;P mAuthor1Heading. $$ æf™< m H Body. $$æf™=B m 6 Bullet Bullet SymbolB:¥\t. C®C®æf™> mC® U® BulletCont Bullet Symbol. ? m H  Ø   h ° HBulleted¥\tn. )w. ZZ6æf™Q„ mExtract. ¾« ¾« æf™RF mFigure Table RuleF:FIGURE . . æf™S mFootnote. $$æf™T@ m6 ´ fØ™ ü Function DeclBody. $.ÌÌæf™UD m H Function Intro Function Decl. À@V m$ Ø ° header right. æf™WTm Heading1Body. æf™XT mHeading2Body. YP mH  Ø   h ° HeadingRunInBody. FuZ mH  Ø   uhI o° Indented. æf™[ mNote. $$\A mH  Ø  d 1h °  Numbered.\tNumbered. $$]A mH  Ø   h ° Numbered-decrement.\tNumbered. $$^A mH  Ø   h ° Numbered0.\tNumbered. $$_A mH  Ø   h °  Numbered1.\tNumbered. $$*æf™`D m H Protocol Protocol-item. $$æf™aD m Protocol-arrow Protocol-item. H$ æf™bD mH ´ Protocol-errorsBody. @ÌÌ$Hæf™cD m´u rê D.  Protocol-item Protocol-item. À@d m Ô right footer. erC®6æf™eS mC® Step S:.\tH. $$æf™f@ m6 ~ ¢ Æ têr  r2i V z žf Â æ   . Structure DeclBody. æf™gP mSubTitleAuthor.   æf™h m TableFootnote. Àƒ Àƒæf™iT m TableTitleT:TABLE . . æf™jPm Title>Author. ÀÌÌk m TitleBanner. ÀÌÌl m TitleBanner1. ÀÌÌm m TitleBanner2. $$ æf™n m Ho t WritersNote. $$ æf™o m H AÆ>  Ô XPTabLine3. $$æf™p m H ÌÆ  Ô XPTabLine3NoSpace. HHHæf™qD ml. ê D Protocol-item-indent Protocol-item. À@rP m Title2Body. À@sP mTitle3Body. otæf™t m centeredcell. ÆÆu@ m¢ Varlistentry_i_Term_i\t ÆÆv@ m¢ Varlistentry_iTerm_i\t $$ wP m l Term Varlistentry\t~~ x@ mÀl VarlistentryTerm\t ~~ yP m ¢ Term_iVarlistentry_i\t$$ zP m H RefSect1Title RefSect1Para\t$${ mProgramlisting. HHHæf™|D m. ê D Protocol-item-indent-2 Protocol-item. $$æf™} mH BodyClose. HH~ mProgramExample. Ñ1ÿ; ÿ3àtu žÑm ArgInListi ÿ3ài_mFÒm Argument ÿ3àúÚÜÓmBitLabel ÿóàúÚÜÔm Bullet Symbol ÿ3àúÚÜÕmCallout ÿ3à)ÕÞÖm Definition term þ3àúÚÜ×m Emphasis þ3àúÚÜØm EquationVariables ÿ3àúÚÜÙmField Reference ÿ3àúÚÜÚm Figure Label ÿ3ài_mFÛmFunction ÿ3àúÚÜÜmKeycap ÿ3àúÚÜÝm Keycap Table ÿ3àúÚÜÞm Keycap Text ÿ3à)ÕÞßm Literal ÿ3à)ÕÞàm Message ÿ3àúÚÜámNew Term ÿ3àúÚÜâm Node Label ÿ3àúÚÜãmPath ÿ3àúÚÜämProgram ÿ3ài_mFåmProtocol ÿ3àúÚÜæmRun-In Heading þ3àúÚÜçm  Subscript þ3àúÚÜèm  Superscript ÿ3àúÚÜémTree Cap ÿ3àúÚÜêm Type NameÚÜ ÿ3àúÚÜëmVariable Reference ÿ3àuo«&ìm  WritersNote ÿ3àtu žím XPArgument ÿ3à)ÕÞîm XPEvent ÿ3àúÚÜïm XPFunction ÿ3à)ÕÞðm  XPMessagem ÿ3à)ÕÞñm  XPRequest ÿ3àúÚÜòmXPValue ÿ3à)ÕÞóm  XPValueInText úÚÜôm )ÕÞõm  úÚÜöm úÚÜ÷m Bullet Symbolæ wÇøm )ÕÞùm  wÇúm )ÕÞûm  úÚÜüm )ÕÞým  )ÕÞþm )ÕÞ!u  )ÕÞ"v  ž[#w ÿÿúãúÚÜ$m0ž[%v ChapNum uo«&&w  Just Blue ž['m  Figure Number ø`f(m   )ÕÞ)u  ž[*u Numbers i_mF+m úÚÜ- úÚÜ.Prevailing Fonto   mw d@mBlackAT!nWhitedd@AoReddd@pÕÞGreendd@ qBlueÕÞd@rCyand@sMagentad@ tYellowZú cÿœ@uPANTONE 485 CV485 d@vúãDark Blue Shading%xp_proto_cov.mifxp_protoTOC.docTOC1Heading2Heading)xp_proto.mifxp_protoIX.docIXIndex_ Times-Roman Times-BoldSymbolSymbolCourier Times-ItalicCourier-ObliquevTimes-BoldItalicHelvetica-Bold Courier-BoldCourierTimes HelveticaSymbol RegularRegular BoldRegularlObliqueItalicýa¨o3m]9· O. =`y÷-î“d®AzðÃJæVö-±>^òÃeØ3‚*Ò=Ì9©f„«ßœ%'{5º,^gT<sZëÞÖÛ Š™xorgproto-2023.2/specs/printproto/xp_protoIX.doc0000644000175000017500000010400014443010026016712 00000000000000  Aaÿñ dmnmnoqprHH $ @dHHHHÌÌÌÌÌÌff@!€€€ÿö ø ø øÿÿÿ øÿÿÿÿd™ ÿFootnote TableFootnote* à* à.\t.\t/ - Ð Ñ:;,.É!?  `E'  a5AHAAB   EquationVariables  I É ½x I å’ J æ“ K ç• L è— M é™ N ê› O ë P ìŸ Q í¡ R î¤ S ï¦ T ð© U ñª V ò¬ W ó® X ô± Y õ² Z ö´ [ ÷µ \ ø· ] ù¸ ^ úº _ û¼ ` ü¾ a ýÀ b þ c ÿÄ d Ç e ñ Ê f 0Y>Í g AaÏ h  Ñ i Ó j mnÖ k Ù l HÛ m $Þ n dá o ã p å q æ r Hè s ê t ÌÌí u ï v ò w ô x ö÷ y ù z øü { ÿþ |  } ÿ ~ ÿ   €   ‚ Fo ƒ abl „  … ! † " ‡ # ˆ $:; ‰ % Š &E" ‹ ' $ Œ (' )H) Ž *, +. ,1 ‘ -3 ’ .6 “ / 8 ” 0: • 1= – 2? — 3B ˜ 4D ™ 5ionG š 6I › 7L œ 8N 9I ÉQ ž :I åS Ÿ ;J æV   <K çX ¡ =L èY ¢ >M é\ £ ?N ê^ ¤ @O ëa ¥ AP ìc ¦ BQ íf § CR îh ¨ DS ïk © ET ðm ª FU ñp « GV òr ¬ HW óu ­ IX ôx ® JY õ| ¯ KZ ö~ ° L[ ÷€ ± M\ ø‚ ² N] ù„ ³ O^ ú… ´ P_ û‡ µ Q` ü‰ ¶ Ra ýŒ · Sb þŽ ¸ Tc ÿ ¹ Ud ’ º Ve ” » Wf – ¼ Xg » ½Ùh ¼ ¾Ùi ¾ ¿Új ¿ ÀÚk  å e Yt å I openObjectId xp_proto.mif:1 3871 æ J openObjectId xp_proto.mif:1 3798 ç Kê openObjectId xp_proto.mif:1 3875 è L openObjectId xp_proto.mif:1 3799 é M openObjectId xp_proto.mif:1 3828 ê N openObjectId xp_proto.mif:1 3821 ë Oo openObjectId xp_proto.mif:1 3837 ì P" openObjectId xp_proto.mif:1 3804 í Q openObjectId xp_proto.mif:1 3801 î RH openObjectId xp_proto.mif:1 3800 ï S- openObjectId xp_proto.mif:1 3872 ð T: openObjectId xp_proto.mif:1 3873 ñ U openObjectId xp_proto.mif:1 3829 ò V8 openObjectId xp_proto.mif:1 3838 ó WV openObjectId xp_proto.mif:1 3805 ô Xê openObjectId xp_proto.mif:1 3830 õ YC openObjectId xp_proto.mif:1 3832 ö Zp openObjectId xp_proto.mif:1 3840 ÷ [õ openObjectId xp_proto.mif:1 3833 ø \N openObjectId xp_proto.mif:1 3841 ù ]‰ openObjectId xp_proto.mif:1 3831 ú ^ openObjectId xp_proto.mif:1 3839 û _Ù openObjectId xp_proto.mif:1 3799 ü `e openObjectId xp_proto.mif:1 3806 ý a8 openObjectId xp_proto.mif:1 3828 þ b7 openObjectId xp_proto.mif:1 3807 ÿ c8 openObjectId xp_proto.mif:1 3834 d7 openObjectId xp_proto.mif:1 3808  e8 openObjectId xp_proto.mif:1 3876  f8 openObjectId xp_proto.mif:1 2017  g8 openObjectId xp_proto.mif:1 3821  h8 openObjectId xp_proto.mif:1 3810  i8 openObjectId xp_proto.mif:1 3822  j8 openObjectId xp_proto.mif:1 3823  k8 openObjectId xp_proto.mif:1 3803  l8 openObjectId xp_proto.mif:1 3811 m8 openObjectId xp_proto.mif:1 3802 n8 openObjectId xp_proto.mif:1 3824 o8 openObjectId xp_proto.mif:1 3837 p8 openObjectId xp_proto.mif:1 3879 q8 openObjectId xp_proto.mif:1 3835  r8 openObjectId xp_proto.mif:1 3842  s8 openObjectId xp_proto.mif:1 3812  t8 openObjectId xp_proto.mif:1 3844  u8 openObjectId xp_proto.mif:1 3848  v8openObjectId xp_proto.mif:1 438t  w7 openObjectId xp_proto.mif:1 3851  x8openObjectId xp_proto.mif:1 949t  y8 openObjectId xp_proto.mif:1 3856  z8openObjectId xp_proto.mif:1 447t  {8 openObjectId xp_proto.mif:1 3854  |8openObjectId xp_proto.mif:1 445t  }8 openObjectId xp_proto.mif:1 3860  ~0openObjectId xp_proto.mif:1 451t  8 openObjectId xp_proto.mif:1 3804  €8 openObjectId xp_proto.mif:1 3813  8 openObjectId xp_proto.mif:1 3814  ‚8 openObjectId xp_proto.mif:1 3815  ƒ8 openObjectId xp_proto.mif:1 3863 „8openObjectId xp_proto.mif:1 454t ! …8 openObjectId xp_proto.mif:1 3850 " †8openObjectId xp_proto.mif:1 440t # ‡8 openObjectId xp_proto.mif:1 3858 $ ˆ8 openObjectId xp_proto.mif:1 1115 % ‰8 openObjectId xp_proto.mif:1 3869 & Š8 openObjectId xp_proto.mif:1 3579 ' ‹8 openObjectId xp_proto.mif:1 3864 ( Œ8openObjectId xp_proto.mif:1 455t )  openObjectId xp_proto.mif:1 3866 * Ž3 openObjectId xp_proto.mif:1 1027 + 8 openObjectId xp_proto.mif:1 3846 , 4 openObjectId xp_proto.mif:1 1145 - ‘8 openObjectId xp_proto.mif:1 3852 . ’4openObjectId xp_proto.mif:1 442t / “8 openObjectId xp_proto.mif:1 3862 0 ”4openObjectId xp_proto.mif:1 453t 1 •8 openObjectId xp_proto.mif:1 3870 2 –5 openObjectId xp_proto.mif:1 3857 3 —8 openObjectId xp_proto.mif:1 1049 4 ˜8 openObjectId xp_proto.mif:1 3867 5 ™8openObjectId xp_proto.mif:1 462t 6 š8 openObjectId xp_proto.mif:1 3845 7 ›8openObjectId xp_proto.mif:1 460t 8 œ5 openObjectId xp_proto.mif:1 3847 9 8openObjectId xp_proto.mif:1 459t : ž4 openObjectId xp_proto.mif:1 3861 ; Ÿ8openObjectId xp_proto.mif:1 452t <  1 openObjectId xp_proto.mif:1 3865 = ¡8openObjectId xp_proto.mif:1 456t > ¢5 openObjectId xp_proto.mif:1 3511 ? £8 openObjectId xp_proto.mif:1 3849 @ ¤5openObjectId xp_proto.mif:1 439t A ¥8 openObjectId xp_proto.mif:1 3868 B ¦0 openObjectId xp_proto.mif:1 3922 C §8 openObjectId xp_proto.mif:1 3855 D ¨1 openObjectId xp_proto.mif:1 3898 E ©8 openObjectId xp_proto.mif:1 3853 F ª4openObjectId xp_proto.mif:1 444t G «8 openObjectId xp_proto.mif:1 3859 H ¬5openObjectId xp_proto.mif:1 450t I ­8 openObjectId xp_proto.mif:1 3801 J ®8 openObjectId xp_proto.mif:1 3800 K ¯0 openObjectId xp_proto.mif:1 1195 L °8 openObjectId xp_proto.mif:1 3877 M ±6 openObjectId xp_proto.mif:1 3878 N ²8 openObjectId xp_proto.mif:1 3816 O ³6 openObjectId xp_proto.mif:1 3836 P ´8 openObjectId xp_proto.mif:1 3843 Q µ5 openObjectId xp_proto.mif:1 3817 R ¶8 openObjectId xp_proto.mif:1 3818 S ·5 openObjectId xp_proto.mif:1 1178 T ¸8 openObjectId xp_proto.mif:1 3819 U ¹5 openObjectId xp_proto.mif:1 3820 V º5 openObjectId xp_proto.mif:1 3825 W »8 openObjectId xp_proto.mif:1 3826 X ¼3 openObjectId xp_proto.mif:1 3827u…wuÙ ˜0opvÚ ˜d x ­ £ <$lastpagenum> Ž<$monthname> <$daynum>, <$year>t x "<$monthnum>/<$daynum>/<$shortyear> ;<$monthname> <$daynum>, <$year> <$hour>:<$minute00> <$ampm>«8 ‘"<$monthnum>/<$daynum>/<$shortyear> ’<$monthname> <$daynum>, <$year>­8 “"<$monthnum>/<$daynum>/<$shortyear> ” <$fullfilename>.f: • <$filename>pOb – <$paratext[Title]> — <$paratext[Heading1]>t ˜ <$curpagenum> ™ <$marker1> š <$marker2> › (Continued)o. œ+ (Sheet <$tblsheetnum> of <$tblsheetcount>)8 Heading & Page Ò<$paratext>Ó on page<$pagenum> žPagepage<$pagenum>8 ŸSee Heading & Page%See Ò<$paratext>Ó on page<$pagenum>.t x   Table & Page7Table<$paranumonly>, Ò<$paratext>,Ó on page<$pagenum>pOb ¡ Table All.7Table<$paranumonly>, Ò<$paratext>,Ó on page<$pagenum>W ¢Table Number & Paget'Table<$paranumonly> on page<$pagenum>rý ÿ…ýììþôôIXpa íí îîAohn ïøA; õõ öö ÷÷A$ ) Ù /¤7 ) ˆoe>I * z >­J + {"hnK , }mor8 - y fu9 . z. 0 0 ƒaOb1 1 ya[T2 2 z paL 3 ~iM 4 uumN 5  erO 6 a erP 7 c inR 9 †ShŽ : e o ; at)8‘ < ae& ” = crÓ – > ca˜ ? c$pš @ cSeœ A c Sež B cx p  C cu x¢ D  7£ E aay>¥ F axn § G nOb¨ H a Ta« I au, ­ J a>pa¯ K m° L abag³ M a$mo¶ N aeen¹ O aÿ» P a½ Q a¿ R aÁ S aaà T aíÅ U Æ V ahnÈ W ïÉ X aË Y Ì Z aÎ [ aÐ \ a÷Ò ] a$ /Ô ^ ˆÕ _ az× ` {Ø a a}Ú b ayÜ c zÝ d aƒß e yà f azâ g a~ä h aç i aé j aaë k acì l c†î m cð n aañ o caó p ccõ q acö r ccø s ccú t acû u ccý v ccÿ w a x ca y ca z a { aa | aa } aa ~ a  ca € c aa ‚ ca ƒ ca „ aa … ca † ca ‡ aa ˆ c ‰ ca Š a! ‹ ca# Œ c% aa& Ž ca( ca* aa+ ‘ c- ’ ca/ “ a0 ” ca2 • ca4 – a5 — ca7 ˜ c9 ™ aa; š aa< › ca> œ ca@ aaA ž caC Ÿ ccE   acF ¡ caH ¢ ccJ £ acK ¤ caM ¥ ccO ¦ acP § caR ¨ ccT © acU ª caW « ccZ ¬ ac[ ­ ca] ® ca_ ¯ aa` ° cab ± cad ² ace ³ ccg ´ cai µ acj ¶ ccl · can ¸ aco ¹ ccq º cas » ct ¼ acv ½ aw ¾ acy ¿ cz À aa{ Á cc}  ac à aa Ä acƒ Å ac† Æ aaˆ Ç acŠ È ac‹ É ca Ê ac Ë ac‘ Ì aa“ Í aa• Î acÑù(>d3Ñ5caìînEd:Ò5ccÔéoKH$Ô 4Ó8Ñ acH$Ô  ÿþT © aìU UT UTªªh ) Íc ¾33 ½Index H’£3Rë `@;Ô8ÕÒ H’£3Rë `@H RH R ÐFootnote cHqø3@ `@<Õ8ÔÖÒ cHqø3@ `@Hz·¯Hz·¯ Ð Single Line¶ cH'´ÿð=Ö6ÕâÒcááqFootnoteHì­wÔ 5×8Ñ vHì­wÔ  ÿÿ aíªªªªUU` - Æ} aHHáˆ6Ø8ðÑ cHHሠÿÿ Ç acî aªªªªUUd . Ç dGÙ5‘ aôôqd(Ú5ïïpaHHáˆ)Û8òÚ HHáˆoÿâc&&ï&` : ÊA ªªªªUUh ; Æ)AttributeNotify, encoding Å  Å I32 'ª©ªªUUh < Æ%attributes Å  Å J13Ð Å K19 3ª¨ªªUUh = Ædefaults Å  Å L13 ?ª§ªªUUh > Ædocument Å  Å M17 cKª¦ªªUUh ? Æjob Å  Å N17 cWª¥ªªUUh @ Æ`@page Å  Å O18 Sicª¤ªªUUh A Æprinter Å  Å P14 Òoª£ªªUUh B Æserver Å  Å Q14 {ª¢ªªUUh C Ævalidating Å  Å R14 –ÿ÷` D ÊB ªª¡ªªUUh E Æ$BadContext, encoding Å  Å S32 ¶ª ªªUUh F Æ -%BadSequence, encoding Å  Å T32 ðÑÿõ` G ÊC 媟ªªUUh H Æ/content-orientation Å  Å U18,  Å V19 ñªžªªUUh I Æ.content-orientations-supported Å  Å W15 ýªªªUUh J Æcopy-count Å  Å X18 ÿò` K ÊD ,ªœªªUUh L Æ.default-input-tray Å  Å Y18,  Å Z19 8ª›ªªUUh M Æ *default-medium Å  Å [18,  Å \19 DªšªªUUh N Æ6default-printer-resolution Å  Å ]18,  Å ^19 Pª™ªªUUh O ÆeN$defaults, attributes Å  Å _13 ªª\ª˜ªªUUh P Æibdescriptor Å  Å `15 hª—ªªUUh Q Æ =#document attributes Å  Å a17 ªªtª–ªªUUh R Æme-document-attributes-supported Å  Å b15 Å€ª•ªªUUh S Ædocument-format Å  Å c18 O1Œª”ªªUUh T Æ A*document-formats-supported Å  Å d15 §ÿé` U ÊÅE »ª“ªªUUh V ÆUUerrors Å  Å e2 Öÿè` W ÊI ꪒªªUUh X ƪª"input-trays-medium Å  Å f15 ÿç` Y ʪ J ª‘ªªUUh Z Æeqjob attributes Å  Å g17 %ªªªUUh [ Æ(job-attributes-supported Å  Å h15 io1ªªªUUh \ Æ job-name Å  Å i17 I=ªŽªªUUh ] Æntjob-owner Å  Å j17 WXÿã` ^ Ê JL lªªªUUh _ Æ Å!locale, attribute Å  Å k14 œHHÔˆHÜ6Ù Å YHHÔˆŠÿýªª  dium Åô Å d 9 Å 1, 2Ð3 prªªªªUUd 7 ÆÅ Level2IX , ª©ªªUUd 6 ƪª Level1IX N;ÿþd 5 ÊutLSymbols[\ ];Numerics[0];A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z UUPÿþd 4 Å a$<$symbols><$numerics><$alphabetics> UU^ÿþd 3 Å-a-ÐÑ elÿþd , ÅÅ6openObjectId <$relfilename>:<$ObjectType> <$ObjectId> zÿþd + ÅUU <$pagenum> ume‡ª¨ªªUUd * Çed d,Ý5ªUUõ÷m e H$Ô -Þ8Ý ªinH$Ô  ÿþ Å ʪ J õ Z aG UTªªl 0 Í ÅIndex À# ¿ UHì­wÔ .ß8Ý 1Hì­wÔ  ÿÿ 7 I=ªŽöntªªªªUUd 1 Æ W ãHHáˆ/à8ñÝ oleHHሠÿÿkHÜ6÷ ŪªªªUUd 2 Ǫª  >á@ÖÅ  d 9  ™ H§ø3D­ `@?âBÖãÒ 6ªªH§ø3D­ `@H°·¯H°·¯ Ð Double LineeriH¹ÿðÔ @ã6âæÒ;U;äå 4 Double Linels>ÔAäCåã3-aÔ ,ÔÔBåCäãÿþÔ <$geÔH…ÿúÔ Cæ6ãèÒ5çç÷ Single Line eÔDçCæ ªÔ ÿþÔHZ´ÿðEè6æéÒaG À TableFootnotewE¸ÏGVûRªù `@Fé6èÒ ­wE¸ÏGVûRªù `@E¸ÏPwE¸ÏPw Ð TableFootnotedºê5ãøørñHHሻë8óê HHሂÿÓ00ªªUUø0ªªªªUUl ‘ Æencoding Å  Å 22 ª©ªªUUl ’ Æ request Å  Å 3 ª¨ªªUUd “ ÆPrintGetScreenOfContext `@*ª§ªªUUl ” Æencoding Å  Å ‘24 6ª¦ªªUUl • Æærequest Å  Å ’4 Bª¥ªªUUd – Æ 4PrintInputSelected Nª¤ªªUUl — ÆCencoding Å  Å “27 Zª£ªªUUl ˜ Ærequest Å  Å ”8 fª¢ªªUUl ™ Æ%PrintNotify, encoding Å  Å •31 erª¡ªªUUd š ÆPrintPutDocumentData 6~ª ªªUUl › Æencoding Å  Å –26 ÷ŠªŸªªUUl œ Ærequest Å  Å —5 –ªžªªUUd Æ ªPrintQueryScreens ¢ªªªUUl ž Æencoding Å  Å ˜30 6®ªœªªUUl Ÿ ÆaGrequest Å  Å ™10 Àºª›ªªUUd   ƸÏPrintQueryVersion ƪšªªUUl ¡ Æ encoding Å  Å š22 wÒª™ªªUUl ¢ ÆeFrequest Å  Å ›10 Þª˜ªªUUd £ ÆPrintRehashPrinterList ꪗªªUUl ¤ Æencoding Å  Å œ23 öª–ªªUUl ¥ Ærequest Å  Å 10 ª•ªªUUd ¦ ÆUUPrintSelectInput ª”ªªUUl § Æ ‘encoding Å  Å ž27 2ª“ªªUUl ¨ Æ ’request Å  Å Ÿ8 &ª’ªªUUd © Æ “PrintSetAttributes fCo2ª‘ªªUUl ª ÆUUencoding Å  Å  29 >ªªªUUl « ÆUU"request Å  Å ¡9,  Å ¢10 JªªªUUd ¬ ÆPrPrintSetContext VªŽªªUUl ­ ÆCencoding Å  Å £24 bªªªUUl ® Ærequest Å  Å ¤3 nªŒªªUUd ¯ ÆPrintSetImageResolution  zª‹ªªUUl ° ƪªencoding Å  Å ¥30 me†ªŠªªUUl ± ÆUUrequest Å  Å ¦10 Å’ª‰ªªUUd ² ÆUUPrintStartDoc žªˆªªUUl ³ ƪžencoding Å  Å §25 ryªª‡ªªUUl ´ ÆUUrequest Å  Å ¨6 ¶ª†ªªUUd µ ƪªPrintStartJob ª…ªªUUl ¶ Æ10encoding Å  Å ©25 PrΪ„ªªUUl · ƪšrequest Å  Å ª4 ÚªƒªªUUd ¸ ÆwPrintStartPage ÆeF檂ªªUUl ¹ Æ encoding Å  Å «27 òªªªUUl º Æerrequest Å  Å ¬7  ÿÖd » Ê S !ª€ªªUUl ¼ ÆUU!server attributes Å  Å ­14 <ÿÕd ½ ÊUUV PªªªUUl ¾ ƪ”%validating attributes Å  Å ®14 2kÿÔd ¿ Ê ¨X ª~ªªUUd À Æ XPAttributeNotify H$Ô —ì8íѪUUH$Ô lÿðÓÓý  Hì­wÔ ˜í8ìîÑrtSHì­wÔ lÿð×× bªHHÔˆ™î8íѪªHHÔˆlÿðØð enHHÔˆšï8ÚUreHHÔˆlÿðøÛò žªˆ;Hሧð8ØÑ yª‡;HáˆesUUd µîrt;Hረñ8àÝ rª„;HáˆesUUd ¸÷rt;Hሩò8ÛÚ 2;HሀÿÒre11婢1` ` ÊttM ªªªªUUh a Æ -medium-source-sizes-supported Å  Å l15 a'ª©ªªUUh b Æs,multiple-documents-supported Å  Å m14 ªªBÿþ` c ÊtrN Vª¨ªªUUh d Æ$notification-profile Å  Å n17 qÿý` e ÊP …ª§ªªUUh f Æÿðpage attributes Å  Å o18 ‘ª¦ªªUUh g ÆPCONTEXT, type Å  Å p2 ª¥ªªUUh h Æ plex Å  Å q18,  Å r19 ©ª¤ªªUUh i Æ plexes-supported Å  Å s16 µª£ªªUUh j Æ8Print Dialog Manager, communicating with Å  Å t20 Áª¢ªªUU` k ÆPrintCreateContext ͪ¡ªªUUh l Æòencoding Å  Å u23 Ùª ªªUUh m Ærequest Å  Å v2 媟ªªUU` n ÆPrintDestroyContext ñªžªªUUh o Æencoding Å  Å w24 8ýªªªUUh p ƪ„request Å  Å x3  ªœªªUU` q Æ PrintEndDoc ª›ªªUUh r Æencoding Å  Å y26 8!ªšªªUUh s Ærequest Å  Å z6 -ª™ªªUU` t Æ PrintEndJob 9ª˜ªªUUh u Æ1encoding Å  Å {25 ªªEª—ªªUUh v Æmerequest Å  Å |4 Qª–ªªUU` w Æ a PrintEndPage b]ª•ªªUUh x Æumencoding Å  Å }27 1iª”ªªUUh y Æ crequest Å  Å ~7 uª“ªªUUh z Æ-p"printer attributes Å  Å 14 ª’ªªUUh { ƪªprinter-model Å  Å €16 Ū‘ªªUUh | ƪ¦printer-name Å  Å 16 pe™ªªªUUh } ƪ¥-printer-resolutions-supported Å  Å ‚16 1¥ªªªUU` ~ Æ iPrintGetAttributes d ±ªŽªªUUh  ƪ£encoding Å  Å ƒ28 al½ªªªUUh € Æicrequest Å  Å „9 ɪŒªªUU` Æ kPrintGetContext onÕª‹ªªUUh ‚ ÆUUencoding Å  Å …24 ᪊ªªUUh ƒ ÆUUrequest Å  Å †3 íª‰ªªUU` „ ÆUUPrintGetDocumentData oùªˆªªUUh … ÆUUencoding Å  Å ‡26 ª‡ªªUUh † ÆUUrequest Å  Å ˆ5 ª†ªªUU` ‡ ÆUUPrintGetImageResolution ª›ª…ªªUUh ˆ Æenencoding Å  Å ‰31 ªš)ª„ªªUUh ‰ Ærerequest Å  Å Š11 ªª5ªƒªªUU` Š ÆtEPrintGetOneAttribute uAª‚ªªUUh ‹ Æ encoding Å  Å ‹28 vMªªªUUh Œ Æ request Å  Å Œ9 Yª€ªªUU` Æ bPrintGetPageDimensions odieªªªUUh Ž Æ1encoding Å  Å 29 esqª~ªªUUh ƪ“request Å  Å Ž8 }ª}ªªUU` Æ ÅPrintGetPrinterList {;Hሪó8ëê ªUU;Hሥÿò UUh }øreªªªªUUl Á ÆÅevent Å  Å ¯12 ~ª©ªªUUl  Æ.XPBadContext, error description Å  Å °2 ª¨ªªUUl à ÆUU/XPBadSequence, error description Å  Å ±2 Æ k*ª§ªªUUl Ä Æon-xp-embedded-formats-supported Å  Å ²16 6ª¦ªªUUl Å ÆUU.xp-listfonts-modes Å  Å ³18,  Å ´19 Bª¥ªªUUl Æ Æ o,xp-listfonts-modes-supported Å  Å µ16 Nª¤ªªUUl Ç ÆUU,xp-page-attributes-supported Å  Å ¶16 PrZª£ªªUUd È ÆioXPPrintNotify fª¢ªªUUl É Æ event Å  Å ·11 ªrª¡ªªUUl Ê Æes(xp-raw-formats-supported Å  Å ¸16 Pr~ª ªªUUl Ë Æ u xp-setup-proviso Å  Å ¹17 ŠªŸªªUUl Ì Æªªxp-setup-state Å  Å º17 –ªžªªUUl Í Æ *xp-spooler-command-options Å  Å »17 ¢ªªªUUl Î Æ *xp-spooler-command-results Å  Å ¼17 HHÔˆ›ô6ÙGPrHHÔˆlÿðÜÜþ;H$Ô œõ8öÝUUH$Ô lÿðÞÞ  ÅHì­wÔ ö8õ÷ÝroHì­wÔ lÿðßß ce,HHÔˆž÷8öݪUUHHÔˆlÿðàñ ªªHHÔˆŸø8ê³8,HHÔˆlÿðïëó d m}sdmnÝUULeftatdnmÑRightZdoqÒot ReferencedprÚ·ª¡dqoÙorIXdrpꪠ a ‘ x& u$À@ a Æ ™Level1IX. $À@ b ™Level1IX. 6À@ c Æ ™Level2IX.  d ™H  ñت   hŸ 8° Body.  e ™ HÒ te cØ   h ° Bulleted¥\t. æf™ f ™CellBody. æf™ g ™ CellHeading. æf™ h ™ Footnote. veæf™ iT™ Heading1Body. æf™ jT ™ Heading2Body.  kP ™ Hu t Ø   h ° ™ HeadingRunInBody.  l ™H  Ø   h ° Indented. ad m ™ H  oØ   eh ° Numbered.\t.  nA ™ H  Ø   h ° Numbered1.\tNumbered. æf™ o ™ TableFootnote. æf™ pT ™  TableTitleT:Table : . p À@ qP™ TitleBody. À@ rP ™ Title2Body. À@ sP ™Title3Body. æf™ t ËT ™  TableTitleT:Table : . æf™ u È ™ CellHeading. æf™ v È ™CellBody. æf™ w È ™ CellFootingl. À@ y Æ ™ê lÔ Footer.  z Ç ™Ho  Ø  f h ° Body. À@ { Å IndexIX. À@ | IndexIX. À@ } Å ActiveIX. À@ ~ Å  IgnoreCharsIX. À@  Å  SortOrderIX. 6À@ € ™Level2IX. À@ Ê ™  GroupTitlesIX. deÀ@ ƒ Í ê Ô eHeader. À@ …™ tiê Ô  Header. À@ † Å  SeparatorsIX. À@ ‡ ™  GroupTitlesIX. ÀÀ@ ˆ Í™ ê Ô number. À@ ‰™ ê Ô number. Å Õ É úÚÜ Å úÚÜ Æ i_mF Ç™ úÚÜ È™ )ÕÞ Ê™  )ÕÞ Ë™ )ÕÞ Í  € ÎEmphasis € ÏEquationVariables ž[ Й 5U7568™u€@™€B™C™Í ñ  ö€ ñ™Thin ò™Medium€ ó™ÔDoublenu ô™. Thick@ õ™ Very Thin U e W  U ñ ò ñ ñ ñ ñ ñ ò t™™™H u v wH u v wÕH u v wH u v wH u v wFormat B  V ñ ñ ñ ñ ñ ñ ñ ñ ñ ó t™™™H u v wÜH u v wH u v wH u v wÞH u v wFormat A ¹ É º ¹›CommentÙéÛ½Ùu ¾ ½ÀÚv À ¿™©¡d ™BlackT!šWhitenddA›RedžddœUGreendd BluedžCyandŸMagenta™d  Yellow Times-RomanCouriere Times-Bold Courier-BoldHelvetica-BoldCourierTimes Helvetica RegularWRegular BoldRegularObliqueItalic˜ofä0 “y3‡5†ÈÆßÆ<ëÍ¡üè÷_D L®â²{È<9Á©Ýä,˜Ã €¡¥¨_%ÎÉÔ]ð+ûc¶|œ+7å(‡?Î0¹m%°K6-HöúùüRü·ŽÔ±“¶+£PSà‘ßMxorgproto-2023.2/specs/printproto/xp_proto_cov.mif0000644000175000017500000021753214443010026017345 00000000000000 # Generated by FrameMaker xm5.0P3f # Options: # Paragraph Text # Paragraph Tags # Paragraph Formats # Font Information # Markers # Anchored Frames # Tables # Graphics and TextRect Layout # Master Page Items # Condition Catalog # Table Catalogs # Font Catalog # Paragraph Catalog # Document Template # Document Dictionary # Variables # > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of Color > # end of ColorCatalog > # end of Condition > # end of ConditionCatalog > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont .\\t'> > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of TabStop > # end of Pgf > # end of PgfFont > # end of TabStop > # end of Pgf > # end of PgfFont : '> > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfFont > # end of Pgf > # end of PgfCatalog > # end of Font > # end of Font > # end of FontCatalog > # end of Ruling > # end of Ruling > # end of Ruling > # end of Ruling > # end of Ruling > # end of RulingCatalog > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblColumnH > # end of TblColumnBody > # end of Pgf > # end of TblColumnF > # end of TblColumn > # end of TblTitlePgf1 > # end of TblFormat > # end of TblCatalog > # end of View > # end of View > # end of View > # end of View > # end of View > # end of View > # end of Views '> > # end of VariableFormat <$daynum\>, <$year\>'> > # end of VariableFormat /<$daynum\>/<$shortyear\>'> > # end of VariableFormat <$daynum\>, <$year\> <$hour\>:<$minute00\> <$ampm\>'> > # end of VariableFormat /<$daynum\>/<$shortyear\>'> > # end of VariableFormat <$daynum\>, <$year\>'> > # end of VariableFormat /<$daynum\>/<$shortyear\>'> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat '> > # end of VariableFormat > # end of VariableFormat of <$tblsheetcount\>)'> > # end of VariableFormat > # end of VariableFormats \xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat '> > # end of XRefFormat \xd3 on page\x11 <$pagenum\>.'> > # end of XRefFormat , \xd2 <$paratext\>,\xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat , \xd2 <$paratext\>,\xd3 on page\x11 <$pagenum\>'> > # end of XRefFormat on page\x11 <$pagenum\>'> > # end of XRefFormat > # end of XRefFormats > # end of Document anncovTOC.doc'> > # end of BookComponent # end of InitialAutoNums # end of Dictionary # end of AFrames > # end of DashedPattern > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of TextRect > # end of Page > # end of DashedPattern > # end of Font > # end of TextLine > # end of TextLine > # end of PolyLine > # end of Frame > # end of TextLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of PolyLine > # end of Frame > # end of Frame > # end of TextLine > # end of TextLine > # end of TextLine > # end of PolyLine > # end of Frame > # end of TextLine > # end of PolyLine > # end of PolyLine > # end of Frame > # end of PolyLine > # end of Frame > # end of Frame > # end of TextLine > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page > # end of DashedPattern > # end of TextRect > # end of Page # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > # end of PgfFont > # end of TabStop > # end of TabStop > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > # end of TextFlow # end of Notes > > # end of Para > > # end of Para > # end of PgfFont > # end of Pgf > > # end of Para > # end of PgfFont > # end of Pgf > > > # end of Para > # end of Para > # end of Para > # end of Para > # end of PgfFont > # end of Pgf > > > > > > > > > > > > > > > > # end of Para > # end of Para > # end of Para > # end of TextFlow # end of Notes > # end of Pgf > > # end of Para > # end of Pgf > # end of Para > # end of Pgf > # end of Para > # end of Pgf > # end of Para > # end of PgfFont > # end of Pgf > > > > > > > > > # end of Para > # end of PgfFont > # end of Pgf > > > > > # end of Para > # end of PgfFont > # end of Pgf > > > # end of Para > # end of PgfFont > # end of Pgf > > > > > > > # end of Para > # end of PgfFont > # end of Pgf > > > # end of Para > # end of PgfFont > # end of Pgf > # end of Font > # end of Font > > # end of Para > # end of TextFlow # End of MIFFile xorgproto-2023.2/specs/fontsproto/0000755000175000017500000000000014443010036014173 500000000000000xorgproto-2023.2/specs/fontsproto/fsproto.xml0000644000175000017500000061763314443010026016350 00000000000000 %defs; ]> The X Font Service Protocol X Consortium Standard X Version 11, Release &fullrelvers; Version 2.0 JimFulton Network Computing Devices, Inc. Revised May 2, 1994 1991Network Computing Devices, Inc. Permission to use, copy, modify, distribute, and sell this documentation for any purpose is hereby granted without fee, provided that the above copyright notice and this permission notice appear in all copies. Network Computing Devices, Inc. makes no representations about the suitability for any purpose of the information in this document. This documentation is provided “as is” without express or implied warranty. Copyright © 1994 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. Introduction The management of fonts in large, heterogeneous environments is one of the hardest aspects of using the X Window System X Window System is a trademark of The Open Group. . Multiple formats and the lack of a consistent mechanism for exporting font data to all displays on a network prevent the transparent use of applications across different display platforms. The X Font Service protocol is designed to address this and other issues, with specific emphasis on the needs of the core X protocol. Upward-compatible changes (typically in the form of new requests) are expected as consensus is reached on new features (particularly outline font support). Currently, most X displays use network file protocols such as NFS and TFTP to obtain raw font data which they parse directly. Since a common binary format for this data doesn't exist, displays must be able to interpret a variety of formats if they are to be used with different application hosts. This leads to wasted code and data space and a loss of interoperability as displays are used in unforeseen environments. By moving the interpretation of font data out of the X server into a separate service on the network, these problems can be greatly reduced. In addition, new technologies, such as dynamically generating bitmaps from scaled or outline fonts, can be provided to all displays transparently. For horizontal text, caching techniques and increased processor power can potentially make rasterization more efficient on large, centralized hosts than on individual displays. Each font server provides sets of fonts that may be listed and queried for header, property, glyph extents, and bitmap information. This data is transmitted over the network using a binary format (with variations to support different bit- and byte-orders) designed to minimize the amount of processing required by the display. Since the font server, rather than the display, is responsible for parsing the raw font data, new formats can be used by all displays by modifying a single font server. From the user's point of view, font servers are simply a new type of name in the X font path. Network name services allow descriptive names (such as DEPARTMENT-FONTS or APPLICATION-FONTS) to be translated into proper network addresses. X displays send requests to and read replies from the font server rather than reading directly from files. Since the X Font Service protocol is designed to allow subsets of the font data to be requested, displays may easily implement a variety of strategies for fine-grained demand-loading of glyphs. Architectural Model In this document, the words client and server refer to the consumer and provider of a font, respectively, unless otherwise indicated. It is important to note that in this context, the X server is also a font client. The X Font Service protocol does not require any changes to the core X protocol or to any applications. To the user, font servers are simply additional types of font path elements. As such, X servers may connect to multiple font servers, as shown in Figure 2.1. Although the font protocol is geared towards the X Window System, it may be also used by other consumers of font data (such as printer drivers).
Connecting to a Font Server ┌────────┠┌───────────────┠│ X1 ├──────────────┤ │ │ Server │ │ Font Server │ └────────┘ ┌───────┤ 1 │ │ └───────────────┘ ┌────────┠│ │ X2 ├──────┘ ┌───────────────┠│ Server ├──────────────┤ │ └────────┘ │ Font Server │ ┌───────┤ 2 │ ┌─────────┠│ └───────────────┘ │ other │ │ │ clients ├──────┘ └─────────┘
Clients communicate with the font server using the request/reply/event model over any mutually-understood virtual stream connection (such as TCP/IP, DECnet, DECnet is a trademark of Digital Equipment Corporation. etc.). Font servers are responsible for providing data in the bit and byte orders requested by the client. The set of requests and events provided in the first version of the X Font Service protocol is limited to supporting the needs of the bitmap-oriented core X Window System protocol. Extensions are expected as new needs evolve. A font server reads raw font data from a variety of sources (possibly including other font servers) and converts it into a common format that is transmitted to the client using the protocol described in Section 4. New font formats are handled by adding new converters to a font server, as shown in Figure 2.2.
Where Font Data Comes From ┌────────────┠│ client │ │ (X server) │ └─────┬──────┘ │ network │ ┌─────────────────────┴──────────────────────┠│ │ │ font server 1 │ │ │ ├─────┬─────┬─────┬─────┬────┬─────┬───┬─────┤ │ bdf │ snf │ pcf │ atm │ f3 │ dwf │ │ │ ... │ └─────┴─────┴─────┴─────┴────┴─────┴─│─┴─────┘ │ network │ ┌─────┴────┠│ font │ │ server 2 │ └──────────┘
The server may choose to provide named sets of fonts called catalogues. Clients may specify which of the sets should be used in listing or opening a font. An event mechanism similar to that used in the X protocol is provided for asynchronous notification of clients by the server. Clients may provide authorization data for the server to be used in determining (according to the server's licensing policy) whether or not access should be granted to particular fonts. This is particularly useful for clients whose authorization changes over time (such as an X server that can verify the identity of the user). Implementations that wish to provide additional requests or events may use the extension mechanism. Adding to the core font service protocol (with the accompanying change in the major or minor version numbers) is reserved to the X Consortium.
Font Server Naming Font clients that expose font server names to the user are encouraged to provide ways of naming font servers symbolically (e.g. DEPARTMENT-FONTS). However, for environments that lack appropriate name services transport-specific names are necessary. Since these names do occur in the protocol, clients and servers should support at least the applicable formats described below. Formats for additional transports may be registered with the X Consortium.
TCP/IP Names The following syntax should be used for TCP/IP names: TCP name ::= tcp/ hostname : ipportnumber / cataloguelist where hostname is either symbolic (such as expo.lcs.mit.edu) or numeric decimal (such as 18.30.0.212). The ipportnumber is the port on which the font server is listening for connections. The cataloguelist string at the end is optional and specifies a plus-separated list of catalogues that may be requested. For example: tcp/expo.lcs.mit.edu:8012/available+special tcp/18.30.0.212:7890
DECnet Names The following syntax should be used for DECnet names: DECnet name ::= decnet/ nodename ::font$ objname / cataloguelist where nodename is either symbolic (such as SRVNOD) or the numeric decimal form of the DECnet address (such as 44.70). The objname is normal, case-insensitive DECnet object name. The cataloguelist string at the end is optional and specifies a plus-separated list of catalogues that may be requested. For example: DECNET/SRVNOD::FONT$DEFAULT/AVAILABLE decnet/44.70::font$other
Protocol The protocol described below uses the request/reply/error model and is specified using the same conventions outlined in Section 2 of the core X Window System protocol : Data type names are spelled in upper case with no word separators, as in: FONTID Alternate values are capitalized with no word separators, as in: MaxWidth Structure element declarations are in lower case with hyphens as word separators, as in: byte-order-msb Structure element names are referred to in upper case (e.g. BYTE-ORDER-MSB) when used in descriptions to set them off from the surrounding text. When this document is typeset they will be printed in lower case in a distinct font. Type declarations have the form name: type, as in: CARD8: 8-bit byte Comma-separated lists of alternate values are enclosed in braces, as in: { Min, MaxWidth, Max } Comma-separated lists of structure elements are enclosed in brackets, as in: [ byte1: CARD8, byte2: CARD8 ] A type with a prefix LISTof represents a counted list of elements of that type, as in: LISTofCARD8
Data Types The following data types are used in the core X Font Server protocol:
<type>ACCESSCONTEXT</type> ACCESSCONTEXT ACCESSCONTEXT:ID This value is specified in the CreateAC request as the identifier to be used when referring to a particular AccessContext resource within the server. These resources are used by the server to store client-specified authorization information. This information may be used by the server to determine whether or not the client should be granted access to particular font data. In order to preserve the integrity of font licensing being performed by the font server, care must be taken by a client to properly represent the identity of the true user of the font. Some font clients will in fact be servers (for example, X servers) requesting fonts for their own clients. Other font clients may be doing work on behalf of a number of different users over time (for example, print spoolers). AccessContexts must be created (with CreateAC) and switched among (with SetAuthorization) to represent all of these font users properly.
<type>ALTERNATESERVER</type> ALTERNATESERVER ALTERNATESERVER: [ name: STRING8, subset: BOOL ] This structure specifies the NAME, encoded in ISO 8859-1 according to Section 3, of another font server that may be useful as a substitute for this font server. The SUBSET field indicates whether or not the alternate server is likely to only contain a subset of the fonts available from this font server. This information is returned during the initial connection setup and may be used by the client to find a backup server in case of failure.
<type>AUTH</type> AUTH AUTH:[ name:STRING8, data:LISTofBYTE ] This structure specifies the name of an authorization protocol and initial data for that protocol. It is used in the authorization negotiation in the initial connection setup and in the CreateAC request.
<type>BITMAPFORMAT</type> BITMAPFORMAT BITMAPFORMAT:CARD32 CARD32 containing the following fields defined by the sets of values given further below [ byte-order-msb: 1 bit, bit-order-msb: 1 bit, image-rect: 2 bits{ Min, MaxWidth, Max }, zero-pad: 4 bits, scanline-pad: 2 bits{ ScanlinePad8, ScanlinePad16, ScanlinePad32, ScanlinePad64 }, zero-pad: 2 bits, scanline-unit: 2 bits{ ScanlineUnit8, ScanlineUnit16, ScanlineUnit32, ScanlineUnit64 }, zero-pad: 2 bits, zero-pad: 16 bits, ] This structure specifies how glyph images are transmitted in response to QueryXBitmaps8 and QueryXBitmaps16 requests. If the BYTE-ORDER-MSB bit (1 << 0) is set, the Most Significant Byte of each scanline unit is returned first. Otherwise, the Least Significant Byte is returned first. If the BIT-ORDER-MSB bit (1 << 1) is set, the left-most bit in each glyph scanline unit is stored in the Most Significant Bit of each transmitted scanline unit. Otherwise, the left-most bit is stored in the Least Significant Bit. The IMAGE-RECT field specifies a rectangle of pixels within the glyph image. It contains one of the following alternate values: ImageRectMin(0 << 2) ImageRectMaxWidth(1 << 2) ImageRectMax(2 << 2) For a glyph with extents XCHARINFO in a font with header information XFONTINFO, the IMAGE-RECT values have the following meanings: ImageRectMin ImageRectMin This refers to the minimal bounding rectangle surrounding the inked pixels in the glyph. This is the most compact representation. The edges of the rectangle are: left: XCHARINFO.LBEARING right: XCHARINFO.RBEARING top: XCHARINFO.ASCENT bottom: XCHARINFO.DESCENT ImageRectMaxWidth ImageRectMaxWidth This refers to the scanlines between the glyph's ascent and descent, padded on the left to the minimum left-bearing (or 0, whichever is less) and on the right to the maximum right-bearing (or logical-width, whichever is greater). All glyph images share a common horizontal origin. This is a combination of ImageRectMax in the horizontal direction and ImageRectMin in the vertical direction. The edges of the rectangle are: left: min (XFONTINFO.MIN-BOUNDS.LBEARING, 0) right: max (XFONTINFO.MAX-BOUNDS.RBEARING, XFONTINFO.MAX-BOUNDS.WIDTH) top: XCHARINFO.ASCENT bottom: XCHARINFO.DESCENT ImageRectMax ImageRectMax This refers to all scanlines, from the maximum ascent (or the font ascent, whichever is greater) to the maximum descent (or the font descent, whichever is greater), padded to the same horizontal extents as MaxWidth. All glyph images have the same sized bitmap and share a common origin. This is the least compact representation, but may be the easiest or most efficient (particularly for character cell fonts) for some clients to use. The edges of the rectangle are: left: min (XFONTINFO.MIN-BOUNDS.LBEARING, 0) right: max (XFONTINFO.MAX-BOUNDS.RBEARING, XFONTINFO.MAX-BOUNDS.WIDTH) top: max (XFONTINFO.FONT-ASCENT, XFONTINFO.MAX-BOUNDS.ASCENT) bottom: max (XFONTINFO.FONT-DESCENT, XFONTINFO.MAX-BOUNDS.DESCENT) The SCANLINE-PAD field specifies the number of bits (8, 16, 32, or 64) to which each glyph scanline is padded before transmitting. It contains one of the following alternate values: ScanlinePad8(0 << 8) ScanlinePad16(1 << 8) ScanlinePad32(2 << 8) ScanlinePad64(3 << 8) The SCANLINE-UNIT field specifies the number of bits (8, 16, 32, or 64) that should be treated as a unit for swapping. This value must be less than or equal to the number of bits specified by the SCANLINE-PAD. It contains one of the following alternate values: ScanlineUnit8(0 << 12) ScanlineUnit16(1 << 12) ScanlineUnit32(2 << 12) ScanlineUnit64(3 << 12) BITMAPFORMATs are byte-swapped as CARD32s. All unspecified bits must be zero. Use of an invalid BITMAPFORMAT causes a Format error to be returned.
<type>BITMAPFORMATMASK</type> BITMAPFORMATMASK BITMAPFORMATMASK: CARD32 mask This is a mask of bits representing the fields in a BITMAPFORMAT: ByteOrderMask(1 << 0) BitOrderMask(1 << 1) ImageRectMask(1 << 2) ScanlinePadMask(1 << 3) ScanlineUnitMask(1 << 4) Unspecified bits are required to be zero or else a Format error is returned.
<type>BOOL</type> BOOL BOOL: CARD8 This is a boolean value containing one of the following alternate values: False0 True1
<type>BYTE</type> BYTE BYTE: 8-bit value This is an unsigned byte of data whose encoding is determined by the context in which it is used.
<type>CARD8</type>, <type>CARD16</type>, <type>CARD32</type> CARD8 CARD16 CARD32 CARD8: 8-bit unsigned integer CARD16: 16-bit unsigned integer CARD32: 32-bit unsigned integer These are unsigned numbers. The latter two are byte-swapped when the server and client have different byte orders.
<type>CHAR2B</type> CHAR2B CHAR2B:[ byte1, byte2:CARD8 ] This structure specifies an individual character code within either a 2-dimensional matrix (using BYTE1 and BYTE2 as the row and column indices, respectively) or a vector (using BYTE1 and BYTE2 as most- and least-significant bytes, respectively). This data type is treated as a pair of 8-bit values and is never byte-swapped. Therefore, the client should always transmit BYTE1 first.
<type>EVENTMASK</type> EVENTMASK EVENTMASK: CARD32 mask This is a mask of bits indicating which of an extension's (or the core's) maskable events the client would like to receive. Each bit indicates one or more events, and a bit value of one indicates interest in a corresponding set of events. The following bits are defined for event masks specified for the core protocol (i.e. an EXTENSION-OPCODE of zero in SetEventMask and GetEventMask requests): CatalogueListChangeMask(1 << 0) FontListChangeMask(1 << 1) If CatalogueListChangeMask is set, client is interested in receiving CatalogueListNotify events. If FontListChangeMask is set, the client is interested in receiving FontListNotify events. Extensions that provide additional events may define their own event masks. These event masks have their own scope and may use the same bit values as the core or other extensions. All unused bits must be set to zero. In SetEventMask requests, if any bits are set that are not defined for the extension (or core) for which this EVENTMASK is intended (according to the EXTENSION-OPCODE given in the SetEventMask request), an EventMask error is generated. This value is swapped as a CARD32.
<type>FONTID</type> FONTID FONTID: ID This is specified by the client in the request OpenBitmapFont as the identifier to be used when referring to a particular open font.
<type>ID</type> ID ID: CARD32 This is a 32-bit value in which the top 3 bits must be clear, and at least 1 other bit must be set (yielding a range of 1 through 229-1). It is specified by the client to represent objects in the server. Identifiers are scoped according to their type are private to the client; thus, the same identifier may be used for both a FONTID and an ACCESSCONTEXT as well as by multiple clients. An ID of zero is referred to as None.
<type>INT8</type>, <type>INT16</type>, <type>INT32</type> INT8 INT16 INT32 INT8: 8-bit signed integer INT16: 16-bit signed integer INT32: 32-bit signed integer These are signed numbers. The latter two are byte-swapped when the client and server have different byte orders.
<type>OFFSET32</type> OFFSET32 OFFSET32: [ position:CARD32, length:CARD32 ] This structure indicates a position and length within a block of data.
<type>PROPINFO</type> PROPINFO PROPINFO: [ offsets:LISTofPROPOFFSET, data:LISTofBYTE ] This structure describes the list of properties provided by a font. Strings for all of the properties names and values are stored within the data block and are located using a table of offsets and lengths. This structure is padded to 32-bit alignment.
<type>PROPOFFSET</type> PROPOFFSET PROPOFFSET: [ name:OFFSET32, value:OFFSET32, type:CARD8, zero-pad3:BYTE, BYTE, BYTE ] This structure specifies the position, length, and type of of data for a property. The NAME field specifies the position and length (which must be greater than zero) of the property name relative to the beginning of the PROPINFO.DATA block for this font. The interpretation of the position and length of the VALUE field is determined by the TYPE field, which contains one of the following alternate values: String0 Unsigned1 Signed2 which have the following meanings: String String This property contains a counted string of bytes. The data is stored in the PROPINFO.DATA block beginning at relative byte VALUE.POSITION (beginning with zero), extending for VALUE.LENGTH (at least zero) bytes. Unsigned Unsigned This property contains a unsigned, 32-bit number stored as a CARD32 in VALUE.POSITION (VALUE.LENGTH is zero). Signed Signed This property contains a signed, 32-bit number stored as an INT32 in VALUE.POSITION (VALUE.LENGTH is zero). This structure is zero-padded to 32-bit alignment.
<type>RANGE</type> RANGE RANGE: [ min-char, max-char:CHAR2B ] This structure specifies a range of character codes. A single character is represented by MIN-CHAR equals MAX-CHAR. If the linear interpretation of MAX-CHAR is less than that of MIN-CHAR, or if MIN-CHAR is less than the font's XFONTINFO.CHAR-RANGE.MIN-CHAR, or if MAX-CHAR is greater than the font's XFONTINFO.CHAR-RANGE.MAX-CHAR, the range is invalid.
<type>RESOLUTION</type> RESOLUTION RESOLUTION: [ x-resolution:CARD16, y-resolution:CARD16, decipoint-size:CARD16 ] This structure specifies resolution and point size to be used in resolving partially-specified scaled font names. The X-RESOLUTION and Y-RESOLUTION are measured in pixels-per-inch and must be greater than zero. The DECIPOINT-SIZE is the preferred font size, measured in tenths of a point, and must be greater than zero.
<type>STRING8</type> STRING8 STRING8: LISTofCARD8 This is a counted list of 1-byte character codes, typically encoded in ISO 8859-1. A character code c is equivalent to a CHAR2B structure whose BYTE1 is zero and whose BYTE2 is c.
<type>TIMESTAMP</type> TIMESTAMP TIMESTAMP: CARD32 This is the number of milliseconds that have passed since a server-dependent origin. It is provided in errors and events and is permitted to wrap.
<type>XCHARINFO</type> XCHARINFO XCHARINFO: [ lbearing, rbearing:INT16, width:INT16, ascent, descent:INT16, attributes:CARD16 ] This structure specifies the ink extents and horizontal escapement (also known as the set- or logical width) of an individual character. The first five values represent directed distances in a coordinate system whose origin is aligned with the lower-left edge of the left-most pixel of the glyph baseline (i.e. the baseline falls between two pixels as shown in Figure 3-1 of the Bitmap Distribution Format 2.1 Consortium standard ). The LBEARING field specifies the directed distance measured to the right from the origin to the left edge of the left-most inked pixel in the glyph. The RBEARING field specifies the directed distance (measured to the right) from the origin to the right edge of the right-most inked pixel in the glyph. The WIDTH field specifies the directed distance (measured to the right) from the origin to the position where the next character should appear (called the escapement point). This distance includes any whitespace used for intercharacter padding and is also referred to as the logical width or horizontal escapement. horizontal escapement The ASCENT field specifies the directed distance (measured up) from the baseline to the top edge of the top-most inked pixel in the glyph. The DESCENT field specifies the directed distance (measured down) from the baseline to the bottom edge of the bottom-most inked pixel. The ATTRIBUTES field specifies glyph-specific information that is passed through the application. If this value is not being used, it should be zero. The ink bounding box of a glyph is defined to be the smallest rectangle that encloses all of the inked pixels. This box has a width of RBEARINGLBEARING pixels and a height of ASCENT + DESCENT pixels.
<type>XFONTINFO</type> XFONTINFO XFONTINFO: [ flags:CARD32, drawing-direction:{ LeftToRight, RightToLeft } char-range:RANGE, default-char:CHAR2B, min-bounds:XCHARINFO, max-bounds:XCHARINFO, font-ascent:INT16, font-descent:INT16, properties:PROPINFO ] This structure specifies attributes related to the font as a whole. The FLAGS field is a bit mask containing zero or more of the following boolean values (unspecified bits must be zero): AllCharactersExist(1 << 0) InkInside(1 << 1) HorizontalOverlap(1 << 2) which have the following meanings: AllCharactersExist AllCharactersExist If this bit is set, all of the characters in the range given by CHAR-RANGE have glyphs encoded in the font. If this bit is clear, some of the characters may not have encoded glyphs. InkInside InkInside If this bit is set, the inked pixels of each glyph fall within the rectangle described by the font's ascent, descent, origin, and the glyph's escapement point. If this bit is clear, there may be glyphs whose ink extends outside this rectangle. HorizontalOverlap HorizontalOverlap If this bit is set, the two ink bounding boxes (smallest rectangle enclosing the inked pixels) of some pairs of glyphs in the font may overlap when displayed side-by-side (i.e. the second character is imaged at the escapement point of the first) on a common baseline. If this bit is clear, there are no pairs of glyphs whose ink bounding boxes overlap. LeftToRight RightToLeft The DRAWING-DIRECTION field contains a hint indicating whether most of the character metrics have a positive (or LeftToRight) logical width or a negative (RightToLeft) logical width. It contains the following alternate values: LeftToRight0 RightToLeft1 The CHAR-RANGE.MIN-CHAR and CHAR-RANGE.MAX-CHAR fields specify the first and last character codes that have glyphs encoded in this font. All fonts must have at least one encoded glyph (in which case the MIN-CHAR and MAX-CHAR are equal), but are not required to have glyphs encoded at all positions between the first and last characters. The DEFAULT-CHAR field specifies the character code of the glyph that the client should substitute for unencoded characters. Requests for extents or bitmaps for an unencoded character generate zero-filled metrics and a zero-length glyph bitmap, respectively. The MIN-BOUNDS and MAX-BOUNDS fields contain the minimum and maximum values of each of the extents field of all encoded characters in the font (i.e. non-existent characters are ignored). The FONT-ASCENT and FONT-DESCENT fields specify the font designer's logical height of the font, above and below the baseline, respectively. The sum of the two values is often used as the vertical line spacing of the font. Individual glyphs are permitted to have ascents and descents that are greater than these values. The PROPERTIES field contains the property data associated with this font. This structure is padded to 32-bit alignment.
Requests This section describes the requests that may be sent by the client and the replies or errors that are generated in response. Versions of the protocol with the same major version are required to be upward-compatible. Every request on a given connection is implicitly assigned a sequence number, starting with 1, that is used in replies, error, and events. Servers are required to generate replies and errors in the order in which the corresponding requests are received. Servers are permitted to add or remove fonts to the list visible to the client between any two requests, but requests must be processed atomically. Each request packet is at least 4 bytes long and contains the following fields: major-opcode:CARD8 minor-opcode:CARD8 length:CARD16 The MAJOR-OPCODE specifies which core request or extension package this packet represents. If the MAJOR-OPCODE corresponds to a core request, the MINOR-OPCODE contains 8 bits of request-specific data. Otherwise, the MINOR-OPCODE specifies which extension request this packet represents. The LENGTH field specifies the number of 4-byte units contained within the packet and must be at least one. If this field contains a value greater than one it is followed by (LENGTH - 1) * 4 bytes of request-specific data. Unless otherwise specified, unused bytes are not required to be zero. If a request packet contains too little or too much data, the server returns a Length error. If the server runs out of internal resources (such as memory) while processing a request, it returns an Alloc error. If a server is deficient (and therefore non-compliant) and is unable to process a request, it may return an Implementation error. If a client uses an extension request without previously having issued a QueryExtension request for that extension, the server responds with a Request error. If the server encounters a request with an unknown MAJOR-OPCODE or MINOR-OPCODE, it responds with a Request error. At most one error is generated per request. If more than one error condition is encountered in processing a requests, the choice of which error is returned is server-dependent. Core requests have MAJOR-OPCODE values between 0 and 127, inclusive. Extension requests have MAJOR-OPCODE values between 128 and 255, inclusive, that are assigned by by the server. All MINOR-OPCODE values in extension requests are between 0 and 255, inclusive. Each reply is at least 8 bytes long and contains the following fields: type:CARD8value of 0 data-or-unused:CARD8 sequence-number:CARD16 length:CARD32 The TYPE field has a value of zero. The DATA-OR-UNUSED field may be used to encode one byte of reply-specific data (see Section 5.2 on request encoding). The least-significant 16 bits of the sequence number of the request that generated the reply are stored in the SEQUENCE-NUMBER field. The LENGTH field specifies the number of 4-byte units in this reply packet, including the fields described above, and must be at least two. If LENGTH is greater than two, the fields described above are followed by (LENGTH - 2) * 4 bytes of additional data. Requests that have replies are described using the following syntax:
RequestName arg1:type1 arg2:type2 ... argN:typeN â–¶ result1:type1 result2:type2 ... resultM:typeM Errors:kind1, kind2 ..., kindK Description
If a request does not generate a reply, the â–¶ and result lines are omitted. If a request may generate multiple replies, the â–¶ is replaced by a â–¶+. In the authorization data exchanges in the initial connection setup and the CreateAC request, â—€ indicates data sent by the client in response to data sent by the server. The protocol begins with the establishment of a connection over a mutually-understood virtual stream:
open connection open connection byte-order:BYTE client-major-protocol-version:CARD16 client-minor-protocol-version:CARD16 authorization-protocols:LISTofAUTH The initial byte of the connection specifies the BYTE-ORDER in which subsequent 16-bit and 32-bit numeric values are to be transmitted. The octal value 102 (ASCII uppercase B) indicates that the most-significant byte is to be transmitted first; the octal value 154 (ASCII lowercase l) indicates that the least-significant byte is to be transmitted first. If any other value is encountered the server closes the connection without any response. The CLIENT-MAJOR-PROTOCOL-VERSION and CLIENT-MINOR-PROTOCOL-VERSION specify which version of the font service protocol the client would like to use. If the client can support multiple versions, the highest version should be given. This version of the protocol has a major version of 2 and a minor version of 0. The AUTHORIZATION-PROTOCOLS contains a list of protocol names and optional initial data for which the client can provide information. The server may use this to determine which protocol to use or as part of the initial exchange of authorization data. â–¶ status:{ Success, Continue, Busy, Denied } server-major-protocol-version:CARD16 server-minor-protocol-version:CARD16 alternate-servers-hint:LISTofALTERNATESERVER authorization-index:CARD8 authorization-data:LISTofBYTE The SERVER-MAJOR-PROTOCOL-VERSION and SERVER-MINOR-PROTOCOL-VERSION specify the version of the font service protocol that the server expects from the client. If the server supports the version specified by the client, this version number should be returned. If the client has requested a higher version than is supported by the server, the server's highest version should be returned. Otherwise, if the client has requested a lower version than is supported by the server, the server's lowest version should be returned. It is the client's responsibility to decide whether or not it can match this version of the protocol. The ALTERNATE-SERVERS-HINT is a list of other font servers that may have related sets of fonts (determined by means outside this protocol, typically by the system administrator). Clients may choose to contact these font servers if the connection is rejected or lost. The STATUS field indicates whether the server accepted, rejected, or would like more information about the connection. It has one of the following alternate values: Success0 Continue1 Busy2 Denied3 If STATUS is Denied, the server has rejected the client's authorization information. If STATUS is Busy, the server has simply decided that it cannot provide fonts to this client at this time (it may be able to at a later time). In both cases, AUTHORIZATION-INDEX is set to zero, no authorization-data is returned, and the server closes the connection after sending the data described so far. Otherwise the AUTHORIZATION-INDEX is set to the index (beginning with 1) into the AUTHORIZATION-PROTOCOLS list of the protocol that the server will use for this connection. If the server does not want to use any of the given protocols, this value is set to zero. The AUTHORIZATION-DATA field is used to send back authorization protocol-dependent data to the client (such as a challenge, authentication of the server, etc.). If STATUS is Success, the following section of protocol is omitted. Otherwise, if STATUS is Continue, the server expects more authorization data from the client (i.e. the connection setup is not finished, so no requests or events may be sent): â—€ more-authorization-data:STRING8 â–¶ status:{ Success, Continue, Busy, Denied } more-authorization-data:LISTofBYTE The values in STATUS have the same meanings as described above. This section of protocol is repeated until the server either accepts (sets STATUS to Success) or rejects (sets STATUS to Denied or Busy) the connection. Once the connection has been accepted and STATUS is Success, an implicit AccessContext is created for the authorization data and the protocol continues with the following data sent from the server: â–¶ remaining-length:CARD32 maximum-request-length:CARD16 release-number:CARD32 vendor:STRING8 The REMAINING-LENGTH specifies the length in 4-byte units of the remaining data to be transmitted to the client. The MAXIMUM-REQUEST-LENGTH specifies the largest request size in 4-byte units that is accepted by the server and must have a value of at least 4096. Requests with a length field larger than this value are ignored and a Length error is returned. The VENDOR string specifies the name of the manufacturer of the font server. The RELEASE-NUMBER specifies the particular release of the server in a manufacturer-dependent manner.
<para> After the connection is established and the setup information has been exchanged, the client may issue any of requests described below: </para> </section> <section id="Requests:NoOp"> <title><function>NoOp</function> NoOp Errors:Alloc This request does nothing. It is typically used in response to a KeepAlive event.
<function>ListExtensions</function> ListExtensions â–¶ names:LISTofSTRING8 Errors:Alloc This request returns the names of the extension packages that are supported by the server. Extension names are case-sensitive and are encoded in ISO 8859-1.
<function>QueryExtension</function> QueryExtension name:STRING8 â–¶ present:BOOL major-version:CARD16 minor-version:CARD16 major-opcode:CARD8 first-event:CARD8 number-events:CARD8 first-error:CARD8 number-errors:CARD8 Errors:Alloc This request determines whether or not the extension package specified by NAME (encoded in ISO 8859-1) is supported by the server and that there is sufficient number of major opcode, event, and error codes available. If so, then PRESENT is set to True, MAJOR-VERSION and MINOR-VERSION are set to the respective major and minor version numbers of the protocol that the server would prefer; MAJOR-OPCODE is set to the value to use in extension requests; FIRST-EVENT is set to the value of the first extension-specific event code or zero if the extension does not have any events; NUMBER-EVENTS is set to the number of new events that the event defines; FIRST-ERROR is set to the value of the first extension-specific error code or zero if the extension does not define any new errors; and NUMBER-ERRORS is set to the number of new errors the extension defines. Otherwise, PRESENT is set to False and the remaining fields are set to zero. The server is free to return different values to different clients. Therefore, clients must use this request before issuing any of the requests in the named extension package or using the SetEventMask request to express interest in any of this extension's events. Otherwise, a Request error is returned.
<function>ListCatalogues</function> ListCatalogues pattern:STRING8 max-names:CARD32 â–¶+ replies-following-hint:CARD32 names:LISTofSTRING8 Errors:Alloc This request returns a list of at most MAX-NAMES names of collections (called catalogues) of fonts that match the specified PATTERN. In the pattern (which is encoded in ISO 8859-1), the ? character (octal 77) matches any single character; the * character (octal 52) matches any series of zero or more characters; and alphabetic characters match either upper- or lowercase. The returned NAMES are encoded in ISO 8859-1 and may contain mixed character cases. If PATTERN is of zero length or MAX-NAMES is equal to zero, one reply containing a zero-length list of names is returned. This may be used to synchronize the client with the server. Servers are free to add or remove catalogues to the set returned by ListCatalogues between any two requests. This request is not cumulative; repeated uses are processed in isolation and do result in an iteration through the list. To reduce the amount of buffering needed by the server, the list of names may be split across several reply packets, so long as the names arrive in the same order that they would have appeared had they been in a single packet. The REPLIES-FOLLOWING-HINT field in all but the last reply contains a positive value that specifies the number of replies that are likely, but not required, to follow. In the last reply, which may contain zero or more names, this field is set to zero.
<function>SetCatalogues</function> SetCatalogues names:LISTofSTRING8 Errors:Alloc, Name This request sets the list of catalogues whose fonts should be visible to the client. The union of the fonts provided by each of the named catalogues forms the set of fonts whose names match patterns in ListFonts, ListFontsWithXInfo, and OpenBitmapFont requests. The catalogue names are case-insensitive and are encoded in ISO 8859-1. A zero-length list resets the client's catalogue list to the server-dependent default. If any of the catalogue names are invalid, a Name error is returned and the request is ignored.
<function>GetCatalogues</function> GetCatalogues â–¶ names:LISTofSTRING8 Errors:Alloc This request returns the current list of catalogue names (encoded in ISO 8859-1) associated with the client. These catalogues determine the set of fonts that are visible to ListFonts, ListFontsWithXInfo, and OpenBitmapFont. A zero-length list indicates the server's default set of fonts. Catalogue names are case-insensitive and may be returned in mixed case.
<function>SetEventMask</function> SetEventMask extension-opcode:CARD8 event-mask:EVENTMASK Errors:EventMask, Request This request specifies the set of maskable events that the extension indicated by EXTENSION-OPCODE (or zero for the core) should generate for the client. Event masks are limited in scope to the extension (or core) for which they are defined, so expressing interest in events from one or more extensions requires multiple uses of this request. The default event mask if SetEventMask has not been called is zero, indicating no interest in any maskable events. Some events are not maskable and cannot be blocked. If EXTENSION-OPCODE is not a valid extension opcode previously returned by QueryExtension or zero, a Request error is returned. If EVENT-MASK contains any bits that do not correspond to valid events for the specified extension (or core), an EventMask error is returned and the request is ignored.
<function>GetEventMask</function> GetEventMask extension-opcode:CARD8 â–¶ event-mask:EVENTMASK Errors:Request This request returns the set of maskable core events the extension indicated by EXTENSION-OPCODE (or the core if zero) should generate for the client. Non-maskable events are always sent to the client. If EXTENSION-OPCODE is not a valid extension opcode previously returned by QueryExtension or zero, a Request error is returned.
<function>CreateAC</function> CreateAC ac:ACCESSCONTEXT authorization-protocols:LISTofAUTH â–¶ status:{ Success, Continue, Denied } authorization-index:CARD8 authorization-data:LISTofBYTE Errors:IDChoice This request creates a new AccessContext object within the server containing the specified authorization data. When this AccessContext is selected by the client using the SetAuthorization request, the data may be used by the server to determine whether or not the client should be granted access to particular font information. If STATUS is Denied, the server rejects the client's authorization information and does not associate AC with any valid AccessContext. In this case, AUTHORIZATION-INDEX is set to zero, and zero bytes of AUTHORIZATION-DATA is returned. Otherwise, AUTHORIZATION-INDEX is set to the index (beginning with 1) into the AUTHORIZATION-PROTOCOLS list of the protocol that the server will use for this connection. If the server does not want to use any of the given protocols, this value is set to zero. The AUTHORIZATION-DATA field is used to send back authorization protocol-dependent data to the client (such as a challenge, authentication of the server, etc.). If STATUS is Continue, the client is expected to continue the request by sending the following protocol and receiving the indicated response from the server. This continues until STATUS is set to either Success or Denied. â—€ more-authorization-data:STRING8 â–¶ status:{ Success, Continue, Denied } more-authorization-data:LISTofBYTE Once the connection has been accepted and STATUS is Success, the request is complete. If AC is not in the range [1..229-1] or is already associated with an access context, an IDChoice error is returned.
<function>FreeAC</function> FreeAC ac:ACCESSCONTEXT Errors:AccessContext, Alloc This request indicates that the specified AC should no longer be associated with a valid access context. If AC is also the current AccessContext (as set by the SetAuthorization request), an implicit SetAuthorization of None is done to restore the AccessContext established for the initial connection setup. Operations on fonts that were opened under AC are not affected. The client may reuse the value of AC in a subsequent CreateAC request. If AC isn't associated with any valid authorization previously created by CreateAC, an AccessContext error is returned.
<function>SetAuthorization</function> SetAuthorization ac:ACCESSCONTEXT Errors:AccessContext This request sets the AccessContext to be used for subsequent requests (except for QueryXInfo, QueryXExtents8, QueryXExtents16, QueryXBitmaps8, QueryXBitmaps16 and CloseFont which are done under the AccessContext of the corresponding OpenBitmapFont ). An AC of None restores the AccessContext established for the initial connection setup. If AC is neither None nor a value associated with a valid AccessContext previously created by CreateAC, an AccessContext error is returned.
<function>SetResolution</function> SetResolution resolutions:LISTofRESOLUTION Errors:Resolution, Alloc This request provides a hint as to the resolution and preferred point size of the drawing surfaces for which the client will be requesting fonts. The server may use this information to set the RESOLUTION_X and RESOLUTION_Y fields of scalable XLFD font names, to order sets of names based on their resolutions, and to choose the server-dependent instance that is used when a partially-specified scalable fontname is opened. If a zero-length list of RESOLUTIONs is given, the server-dependent default value is restored. Otherwise, if elements of all of the specified RESOLUTIONs are non-zero, the default resolutions for this client are changed. If a RESOLUTION entry contains a zero, a Resolution error is returned and the default resolutions are not changed.
<function>GetResolution</function> GetResolution â–¶ resolutions:LISTofRESOLUTION Errors:Alloc This request returns the current list of default resolutions. If a client has not performed a SetResolution, a server-dependent default value is returned.
<function>ListFonts</function> ListFonts pattern:STRING8 max-names:CARD32 â–¶+ replies-following-hint:CARD32 names:LISTofSTRING8 Errors:Alloc This request returns a list of at most MAX-NAMES font names that match the specified PATTERN, according to matching rules of the X Logical Font Description Conventions . In the pattern (which is encoded in ISO 8859-1) the ? character (octal 77) matches any single character; the * character (octal 52) matches any series of zero or more characters; and alphabetic characters match either upper- or lowercase. The returned NAMES are encoded in ISO 8859-1 and may contain mixed character cases. Font names are not required to be in XLFD format. If PATTERN is of zero length or MAX-NAMES is equal to zero, one reply containing a zero-length list of names is returned. This may be used to synchronize the client with the server. Servers are free to add or remove fonts to the set returned by ListFonts between any two requests. This request is not cumulative; repeated uses are processed in isolation and do result in an iteration through the list. To reduce the amount of buffering needed by the server, the list of names may be split across several reply packets, so long as the names arrive in the same order that they would have appeared had they been in a single packet. The REPLIES-FOLLOWING-HINT field in all but the last reply contains a positive value that specifies the number of replies that are likely, but not required, to follow. In the last reply, which may contain zero or more names, this field is set to zero.
<function>ListFontsWithXInfo</function> ListFontsWithXInfo pattern:STRING8 pattern:STRING8 pattern:STRING8 max-names:CARD32 â–¶+ replies-following-hint:CARD32 info:XFONTINFO name:STRING8 Errors:Alloc This request is similar to ListFonts except that a separate reply containing the name, header, and property data is generated for each matching font name. Following these replies, if any, a final reply containing a zero-length NAME and no INFO is sent. The REPLIES-FOLLOWING-HINT field in all but the last reply contains a positive value that specifies the number of replies that are likely, but not required, to follow. In the last reply, this field is set to zero. If PATTERN is of zero length or if MAX-NAMES is equal to zero, only the final reply containing a zero-length NAME and no INFO is returned. This may be used to synchronize the client with the server.
<function>OpenBitmapFont</function> OpenBitmapFont fontid:FONTID pattern:STRING8 format-mask:BITMAPFORMATMASK format-hint:BITMAPFORMAT â–¶ otherid:FONTID or None otherid-valid:BOOL cachable:BOOL Errors: IDChoice, Name, Format, AccessContext, Alloc This request looks for a server-dependent choice of the font names that match the specified PATTERN according to the rules described for ListFonts. If no matches are found, a Name error is returned. Otherwise, the server attempts to open the font associated with the chosen name. Permission to access the font is determined by the server according the licensing policy used for this font. The server may use the client's current AccessContext (as set by the most recent SetAuthorization request or the original connection setup) to determine any client-specific sets of permissions. After the font has been opened, the client is allowed to specify a new AccessContext with SetAuthorization or release the AccessContext using FreeAC . Subsequent QueryXInfo, QueryXExtents8, QueryXExtents16, QueryXBitmaps8, QueryXBitmaps16 and CloseFont requests on this FONTID are performed according to permissions granted at the time of the OpenBitmapFont request. If the server is willing and able to detect that the client has already opened the font successfully (possibly under a different name), the OTHERID field may be set to one of the identifiers previously used to open the font. The OTHERID-VALID field indicates whether or not OTHERID is still associated with an open font: if it is True, the client may use OTHERID as an alternative to FONTID. Otherwise, if OTHERID-VALID is False, OTHERID is no longer open but has not been reused by a subsequent OpenBitmapFont request. If OTHERID is set to None, then OTHERID-VALID should be set to False. The FORMAT-MASK indicates which fields in FORMAT-HINT the client is likely to use in subsequent GetXBitmaps8 and GetXBitmaps16 requests. Servers may wish to use this information to precompute certain values. If CACHABLE is set to True, the client may cache the font (so that redundant opens of the same font may be avoided) and use it with all AccessContexts during the life of the client without violating the font's licensing policy. This flag is typically set whenever a font is unlicensed or is licensed on a per-display basis. If CACHABLE is False, the client should reopen the font for each AccessContext. The server is permitted to add to or remove from the set of fonts returned by ListFonts between any two requests, though mechanisms outside the protocol. Therefore, it is possible for this request (which is atomic) to return a different font than would result from separate a ListFonts followed by an OpenBitmapFont with a non-wildcarded font name. If FONTID is not in the range [1..229-1] or if it is already associated with an open font, an IDChoice error is returned. If no font is available that matches the specified PATTERN, a Name error is returned. If the font is present but the client is not permitted access, an AccessContext error is returned. If FORMAT-MASK has any unspecified bits set or if any of the fields in FORMAT-HINT indicated by FORMAT-MASK are invalid, a Format error is returned.
<function>QueryXInfo</function> QueryXInfo fontid:FONTID â–¶ info:XFONTINFO Errors:Font, Alloc This request returns the font header and property information for the open font associated with FONTID. If FONTID is not associated with any open fonts, a Font error is returned.
<function>QueryXExtents8</function> QueryXExtents8 fontid:FONTID range:BOOL chars:STRING8 â–¶ extents:LISTofXCHARINFO Errors:Font, Range, Alloc This request is equivalent to QueryXExtents16 except that it uses 1-byte character codes.
<function>QueryXExtents16</function> QueryXExtents16 fontid:FONTID range:BOOL chars:LISTofCHAR2B â–¶ extents:LISTofXCHARINFO Errors:Font, Range, Alloc This request returns a list of glyph extents from the open font associated with FONTID for the series of characters specified by RANGE and CHARS. If RANGE is True, each succeeding pair of elements in CHARS is treated as a range of characters for which extents should be returned. If CHARS contains an odd number of elements, the font's XFONTINFO.CHAR-RANGE.MAX-CHAR is implicitly appended to the list. If CHARS contains no elements, the list is implicitly replaced with the font's XFONTINFO.CHAR-RANGE. If any of the resulting character ranges are invalid, a Range error is returned. Otherwise, the character ranges are concatenated in the order given by CHARS to produce a set of character codes for which extents are returned. If RANGE is False, then CHARS specifies the set of character codes for which extents are returned. If CHARS is of zero length, then a zero-length list of extents is returned. The extents for each character code in the resulting set (which may contain duplicates) are returned in the order in which the character codes appear in the set. At least one metric for each character shall be non-zero unless the character is not encoded in the font, in which case all-zero metrics are returned. A blank, zero-width character can be encoded with non-zero but equal left and right bearings. If FONTID is not associated with any open fonts, a Font error is returned. If RANGE is True and CHARS contains any invalid ranges, a Range error is returned.
<function>QueryXBitmaps8</function> QueryXBitmaps8 fontid:FONTID range:BOOL chars:STRING8 format:BITMAPFORMAT â–¶+ replies-following-hint:CARD32 offsets:LISTofOFFSET32 bitmaps:LISTofBYTE Errors:Font, Range, Format, Alloc This request is equivalent to QueryXBitmaps16 except that it uses 1-byte character codes.
<function>QueryXBitmaps16</function> QueryXBitmaps16 fontid:FONTID range:BOOL chars:LISTofCHAR2B format:BITMAPFORMAT â–¶+ replies-following-hint:CARD32 offsets:LISTofOFFSET32 bitmaps:LISTofBYTE Errors:Font, Range, Format, Alloc This request returns a list of glyph bitmaps from the open font associated with FONTID for the series of characters specified by RANGE and CHARS. If RANGE is True, each succeeding pair of elements in CHARS is treated as a range of characters for which bitmaps should be returned. If CHARS contains an odd number of elements, the font's XFONTINFO.CHAR-RANGE.MAX-CHAR is implicitly appended to the list. If CHARS contains no elements, the list is implicitly replaced with the font's XFONTINFO.CHAR-RANGE. If any of the resulting character ranges are invalid, a Range error is returned. Otherwise, the character ranges are concatenated in the order given by CHARS to produce a set of character codes for which bitmaps are returned. If RANGE is False, then CHARS specifies the set of character codes for which bitmaps are returned. If CHARS is of zero length, then a single reply containing a zero-length list of offsets and bitmaps is returned. If any of the resulting character ranges are invalid, a Range error is returned. Otherwise, the resulting character ranges are concatenated in the order given by CHARS to produce a set of character codes for which bitmaps are returned. The server is free to return the glyph bitmaps in multiple replies to reduce the amount of buffering that is necessary. In this situation, the set of characters obtained above is partitioned into an implementation-dependent number of ordered, non-overlapping subsets containing runs of one or more consecutive characters. The global ordering of characters must be maintained such that concatenating the subsets in order that they were produced yields the original set. A reply is generated for each subset, in the order that it was produced. For each character in a subset, an image of that character's glyph is described by a rectangle of bits corresponding to the pixels specified by FORMAT.IMAGE-RECT. Within the image, set and clear bits represent inked and non-inked pixels, respectively. Each scanline of a glyph image, from top to bottom, is zero-padded on the right to a multiple of the number of bits specified by FORMAT.SCANLINE-PAD. The scanline is then divided from left to right into a sequence of FORMAT.SCANLINE-UNIT bits. The bits of each unit are then arranged such that the left-most pixel is stored in the most- or least-significant bit, according to FORMAT.BIT-ORDER-MSB. The bytes of each unit are then arranged such that the most- or least-significant byte, according to FORMAT.BYTE-ORDER-MSB, is transmitted first. Finally, the units are arranged such that the left-most is transmitted first and the right-most is transmitted last. The individual images within a subset are then concatenated in a server-dependent order to form the BITMAPS data of the reply. If a glyph image is duplicated within a reply, the server is free to return fewer (but at least one) copies of the image. If a character is not encoded within the font, a zero-length bitmap is substituted for this character. Each glyph image must begin at a bit position that is a multiple of the FORMAT.SCANLINE-UNIT. The OFFSETS array in a reply contains one entry for each character in the subset being returned, in the order that the characters appear in the subset. Each entry specifies the starting location in bytes and size in bytes of the corresponding glyph image in the BITMAPS data of that reply (i.e. an offset may not refer to data in another reply). The REPLIES-FOLLOWING-HINT field in all but the last reply contains a positive value that specifies the number of replies that are likely, but not required, to follow. In the last reply, which may contain data for zero or more characters, this field is set to zero. If FONTID is not associated with any open fonts, a Font error is returned. If RANGE is True and CHARS contains any invalid ranges, a Range error is returned. If FORMAT is invalid, a Format error is returned.
<function>CloseFont</function> CloseFont fontid:FONTID Errors:Font, Alloc This request indicates that the specified FONTID should no longer be associated with an open font. The server is free to release any client-specific storage or licenses allocated for the font. The client may reuse the value of FONTID in a subsequent OpenBitmapFont request. If FONTID is not associated with any open fonts, a Font error is returned.
close connection close connection When a connection is closed, a CloseFont is done on all fonts that are open on the connection. In addition, the server is free to release any storage or licenses allocated on behalf of the client that made the connection.
Errors All errors are at least 16 bytes long and contain the following fields: type:CARD8value of 1 error-code:CARD8 sequence-number:CARD16 length:CARD32 timestamp:TIMESTAMP major-opcode:CARD8 minor-opcode:CARD8 data-or-unused:CARD16 The TYPE field has a value of one. The ERROR-CODE field specifies which error occurred. Core errors codes are in the range 0 through 127, extension error codes are in the range 128 through 255. The SEQUENCE-NUMBER field contains the least significant 16 bits of the sequence number of the request that caused the error. The LENGTH field specifies the length of the error packet in 4-byte units and must have a value of at least 4. The TIMESTAMP specifies the server time when the error occurred. The MAJOR-OPCODE and MINOR-OPCODE (zero for core requests) fields specify the type of request that generated the error. The DATA-OR-UNUSED field may be used for 16 bits of error-specific information. If LENGTH is greater than four, these fields are followed by (LENGTH - 4) * 4 bytes of extra data. The following errors are defined for the core protocol:
<errorname>Request</errorname> Error CodesRequest data-or-unused:CARD16unused This error is generated by any request that has an unknown combination of major and minor request numbers, or by any extension request that is issued before a QueryExtension of that extension.
<errorname>Format</errorname> Error CodesFormat data-or-unused:CARD16unused format:BITMAPFORMATbad format value This error is generated by the use of an invalid BITMAPFORMAT in the OpenBitmapFont, QueryXBitmaps8, and QueryXBitmaps16 requests. The value that caused the error is included as extra data.
<errorname>Font</errorname> Error CodesFont data-or-unused:CARD16unused fontid:FONTIDbad font identifier This error is generated by an invalid FONTID in the QueryXInfo, QueryXExtents8, QueryXExtents16, QueryXBitmaps8, QueryXBitmaps16 and CloseFont requests. The value that caused the error is included as extra data.
<errorname>Range</errorname> Error CodesRange data-or-unused:CARD16unused range:RANGEbad range This error is generated by an invalid RANGE in the QueryXExtents8, QueryXExtents16, QueryXBitmaps8 and QueryXBitmaps16 requests. The value that caused the error is included as extra data.
<errorname>EventMask</errorname> Error CodesEventMask data-or-unused:CARD16unused event-mask:EVENTMASKbad event mask This error is generated by an invalid EVENTMASK in the SetEventMask request. The value that caused the error is included as extra data.
<errorname>AccessContext</errorname> Error CodesAccessContext data-or-unused:CARD16unused ac:ACCESSCONTEXTunaccepted AccessContext This error is generated by an invalid ACCESSCONTEXT in the FreeAC or SetAuthorization request or by an OpenBitmapFont request performed without sufficient authorization. In the first two cases, the ACCESSCONTEXT of the errant request is returned as extra data. In the third case, the current ACCESSCONTEXT is returned as extra data.
<errorname>IDChoice</errorname> Error CodesIDChoice data-or-unused:CARD16unused id:IDbad identifier This error is generated by an invalid or already associated ACCESSCONTEXT identifier in a CreateAC request or FONTID identifier in an OpenBitmapFont request. The value that caused the error is included as extra data.
<errorname>Name</errorname> Error CodesName data-or-unused:CARD16unused This error is generated by a font name pattern that matches no fonts in an OpenBitmapFont request or no catalogue names in a SetCatalogues request.
<errorname>Resolution</errorname> Error CodesResolution data-or-unused:CARD16X value of errant resolution y-resolution:CARD16Y value of errant resolution point-size:CARD16point size of errant resolution This error is generated in response to an invalid RESOLUTION structure in a SetResolution request. The value that caused the error is included in the DATA-OR-UNUSED field and as extra data.
<errorname>Alloc</errorname> Error CodesAlloc data-or-unused:CARD16unused This error is generated by any request for which the server lacks sufficient resources (especially memory).
<errorname>Length</errorname> Error CodesLength data-or-unused:CARD16unused length:CARD32bad length value This error is generated by any request that has a length field greater than (MAXIMUM-REQUEST-LENGTH * 4) bytes. The value that caused the error is included as extra data.
<errorname>Implementation</errorname> Error CodesImplementation data-or-unused:CARD16unused This error may be generated in response to any request that the server is unable to process because it is deficient. Use of this error is highly discouraged and indicates lack of conformance to the protocol.
Extensions Additional errors may be defined by extensions.
Events Events may be generated in response to requests or at the server's discretion after the initial connection setup information has been exchanged. Each event is at least 12 bytes long and contains the following fields: type:CARD8value of 2 event-code:CARD8 sequence-number:CARD16 length:CARD32 timestamp:TIMESTAMP The TYPE field contains the value 2. The EVENT-CODE field specifies the number of the event and is in the range 0-127 for core events or the range 128-255 for extensions. The SEQUENCE-NUMBER field specifies the least significant 16 bits of the sequence number of the last request to have been processed by the server. The LENGTH field specifies the number of 4-byte units in this event packet and must always have a value of at least 3. The TIMESTAMP field specifies the server time when the event occurred. If LENGTH is greater than three, these fields are followed by (LENGTH - 3) * 4 bytes of additional data. Events are described using the following syntax:
EventName arg1:type1 ... argN:typeN Description
If an event does not provide any extra arguments, the arg1...argN lines are omitted from the description. The core X Font Service protocol defines the following events:
<function>KeepAlive</function> KeepAlive This unsolicited, nonmaskable event may be sent by the server to verify that the connection has not been broken (for transports that do not provide this information). Clients should acknowledge receipt of this request by sending any request (such as NoOp ).
<function>CatalogueListNotify</function> CatalogueListNotify added:BOOL deleted:BOOL This event is sent to clients that have included CatalogueListChangeMask in their core event mask whenever the list of catalogues that are available has changed. The ADDED field is True if new catalogues have been added to the server, otherwise it is False. The DELETED field is True if any existing catalogues have been removed from the server, otherwise it is False.
<function>FontListNotify</function> FontListNotify added:BOOL deleted:BOOL This event is sent to clients that have included FontListChangeMask in their event mask whenever the list of fonts that are provided by the currently selected catalogues has changed. The ADDED field is True if new fonts have been added to any of the catalogues currently used by the client, otherwise it is False. The DELETED field is True if any existing fonts have been removed from any of catalogues used by the client, otherwise it is False.
Extensions Additional events may be defined by extensions.
Protocol Encoding Numbers that are prefixed with #x are in hexadecimal (base 16). All other numbers are in decimal. Requests, replies, errors, events, and compound types are described using the syntax: Name count contents name ... count contents name where COUNT is the number of bytes in the data stream occupied by this field, CONTENTS is the name of the type as given in Section 4 or the value if this field contains a constant, and NAME is a description of this field. Objects containing counted lists use a lowercase single-letter variable (whose scope is limited to the request, reply, event, or error in which it is found) to represent the number of objects in the list. These variables, and any expressions in which they are used, should be treated as unsigned integers. Multiple copies of an object are indicated by CONTENTS prefix LISTof. Unused bytes (whose value is undefined) will have a blank CONTENTS field and a NAME field of unused. Zeroed bytes (whose value must be zero) will have a blank CONTENTS field and a NAME field of zero. The expression pad(e) refers to the number of bytes needed to round a value e up to the closed multiple of four: pad(e) = (4 - (e mod 4)) mod 4
Data Types ACCESSCONTEXT 4 CARD32 access context with at least one of the following bits set: #x1fffffff but none of the following bits set: #xe0000000 zero ALTERNATESERVER 1 BOOL subset 1 n length of name n STRING8 name p unused, p=pad(n+2) AUTH 2 n length of name 2 d length of data n STRING8 name p unused, p=pad(n) d STRING8 data q unused, q=pad(d) BITMAPFORMAT 4 CARD32 value, union of the following bits: #x00000001 ByteOrderMSB #x00000002 BitOrderMSB #x00000000 ImageRectMin #x00000004 ImageRectMaxWidth #x00000008 ImageRectMax #x00000000 ScanlinePad8 #x00000100 ScanlinePad16 #x00000200 ScanlinePad32 #x00000300 ScanlinePad64 #x00000000 ScanlineUnit8 #x00001000 ScanlineUnit16 #x00002000 ScanlineUnit32 #x00003000 ScanlineUnit64 except for the following bits which must be zero: #xffffccf0 zero and the following of which at most one bit may be set: #x0000000c at most one bit can be set BITMAPFORMATMASK 4 CARD32 value, mask of the following bits: #x00000001 ByteOrderMask #x00000002 BitOrderMask #x00000004 ImageRectMask #x00000008 ScanlinePadMask #x00000010 ScanlineUnitMask except for the following bits which must be zero: #xffffffe0 zero BOOL 1 BOOL boolean, one of the following values: 0 False 1 True BYTE 1 BYTE unsigned byte of data CARD8 1 CARD8 8-bit unsigned integer CARD16 2 CARD16 16-bit unsigned integer CARD32 4 CARD32 32-bit unsigned integer CHAR2B 1 CARD8 byte1 1 CARD8 byte2 EVENTMASK 4 CARD32 event mask for core events, this is union of the following bits: #00000001 CatalogueListChangeMask #00000002 FontListChangeMask but none of the following bits set: #fffffffc extensions define their own sets of bits FONTID 4 CARD32 font identifier with at least one of the following bits set: #x1fffffff but none of the following bits set: #xe0000000 zero INT8 1 INT8 8-bit signed integer INT16 2 INT16 16-bit signed integer INT32 4 INT32 32-bit signed integer OFFSET32 4 CARD32 position (or integer value) 4 CARD32 length PROPINFO 4 n number of PROPOFFSET components 4 m number of bytes of property data 20*n PROPOFFSET property offsets into data block m LISTofBYTE property data block PROPOFFSET 8 OFFSET32 name in data block 8 OFFSET32 value in data block 1 CARD8 type, one of the following values: 0 String 1 Unsigned 2 Signed 3 zero RANGE 2 CHAR2B minimum character code 2 CHAR2B maximum character code RESOLUTION 2 CARD16 x resolution in pixels per inch 2 CARD16 y resolution in pixels per inch 2 CARD16 point size in decipoints STRNAME 1 n length of name n STRING8 name STRING8 n LISTofBYTE array of 8-bit character values TIMESTAMP 4 CARD32 milliseconds since server time origin XCHARINFO 2 INT16 left bearing 2 INT16 right bearing 2 INT16 width 2 INT16 ascent 2 INT16 descent 2 CARD16 attributes XFONTINFO 4 CARD32 flags, union of the following bits: #x00000001 AllCharactersExist #x00000002 InkInside #x00000004 HorizontalOverlap but none of the following bits set: #xfffffff8 zero 4 RANGE range of characters in font 1 CARD8 drawing direction 0 LeftToRight 1 RightToLeft 1 unused 2 CHAR2B default character 12 XCHARINFO minimum bounds 12 XCHARINFO maximum bounds 2 INT16 font ascent 2 INT16 font descent n PROPINFO property data
Requests open connection 1 BYTE byteorder, one of the values: #x42 MostSignificant Byte first #x6c LeastSignificant Byte first 1 CARD8 numberof auth in auth-data 2 2 client-major-protocol-version 2 0 client-minor-protocol-version 2 a/4 lengthof auth-data a LISTofAUTH auth-data â–¶ 2 CARD16 status 0 Success 1 Continue 2 Busy 3 Denied 2 2 major version 2 0 version 1 CARD8 numberof alternate-servers-hint 1 CARD8 authorization-index 2 a/4 lengthof alternate-servers-hint 2 (d+q)/4 lengthof authorization-data a LISTofALTERNATESERVER alternate-servers-hint d LISTofBYTE authorization-data q unused, q=pad(d) If STATUS is Busy or Denied, the protocol stops and the connection is closed. If STATUS is Continue, the client is expected to respond with additional data, to which the server responds with a new status value and more data. This dialog continues until the status is set to Success, or until the server sets STATUS to Busy or Denied and closes the connection: â—€ 4 1+(d+q)/4 length d LISTofBYTE more-authorization-data q unused, q=pad(d) â–¶ 4 2+(d+q)/4 length 2 CARD16 status 0 Success 1 Continue 2 Busy 3 Denied 2 unused d LISTofBYTE more-authorization-data q unused, q=pad(d) When STATUS is Success, the protocol resumes with the following sent by the server: 4 3+(v+w)/4 length of rest of data 2 CARD16 maximum-request-length 2 v length of vendor string 4 CARD32 release-number v STRING8 vendor-string w unused, w=pad(v) Once the connection has been established, the client may send the following requests: NoOp 1 0 major-opcode 1 unused 2 1 length ListExtensions 1 1 major-opcode 1 unused 2 1 length â–¶ 1 0 type reply 1 CARD8 numberof names 2 CARD16 sequence-number 4 2+(n+p)/4 length n LISTofSTRNAME names p unused, p=pad(n) QueryExtension 1 2 major-opcode 1 n length of name 2 1+(n+p)/4 length n STRING8 name p unused, p=pad(n) â–¶ 1 0 type reply 1 BOOL present 2 CARD16 sequence-number 4 5 length 2 CARD16 major-version 2 CARD16 minor-version 1 CARD8 major-opcode 1 CARD8 first-event 1 CARD8 number-events 1 CARD8 first-error 1 CARD8 number-errors 3 unused ListCatalogues 1 3 major-opcode 1 unused 2 3+(n+p)/4 length 4 CARD32 max-names 2 n length of pattern 2 unused n STRING8 pattern p unused, p=pad(n) â–¶+ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 4+(n+p)/4 length 4 CARD32 replies-following-hint 4 CARD32 numberof catalogue-names n LISTofSTRNAME catalogue-names p unused, p=pad(n) SetCatalogues 1 4 major-opcode 1 CARD8 numberof catalogue-names 2 1+(n+p)/4 length n LISTofSTRNAME catalogue-names p unused, p=pad(n) GetCatalogues 1 5 major-opcode 1 unused 2 1 length â–¶ 1 0 type reply 1 CARD8 numberof catalogue-names 2 CARD16 sequence-number 4 2+(n+p)/4 length n LISTofSTRNAME catalogue-names p unused, p=pad(n) SetEventMask 1 6 major-opcode 1 CARD8 extension-opcode 2 2 length 4 EVENTMASK event-mask GetEventMask 1 7 major-opcode 1 CARD8 extension-opcode 2 1 length â–¶ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 3 length 4 EVENTMASK event-mask CreateAC 1 8 major-opcode 1 CARD8 numberof authorization-protocols 2 2+a/4 length 4 ACCESSCONTEXT ac a LISTofAUTH authorization-protocols â–¶ 1 0 type reply 1 CARD8 authorization-index 2 CARD16 sequence-number 4 3+(d+q)/4 length 2 CARD16 status 0 Success 1 Continue 2 Busy 3 Denied 2 unused d LISTofBYTE authorization-data q unused, q=pad(d) If STATUS is Continue, the client is expected to respond with additional data, to which the server responds with a new status value and more data. This dialog continues until the status is set to Success, Busy, or Denied at which point the request is finished. â—€ 4 1+(d+q)/4 length d LISTofBYTE more-authorization-data q unused, q=pad(d) â–¶ 4 2+(d+q)/4 length 2 CARD16 status 0 Success 1 Continue 2 Busy 3 Denied 2 unused d LISTofBYTE authorization-data q unused, q=pad(d) FreeAC 1 9 major-opcode 1 unused 2 2 length 4 ACCESSCONTEXT ac SetAuthorization 1 10 major-opcode 1 unused 2 2 length 4 ACCESSCONTEXT ac SetResolution 1 11 major-opcode 1 n number of resolutions 2 1+(6*n+p)/4 length 6*n LISTofRESOLUTION resolutions p p=pad(6*n) GetResolution 1 12 major-opcode 1 unused 2 1 length â–¶ 1 0 type reply 1 n number of resolutions 2 CARD16 sequence-number 4 2+(6*n+p)/4 length 6*n LISTofRESOLUTION resolutions p p=pad(6*n) ListFonts 1 13 major-opcode 1 unused 2 3+(n+p)/4 length 4 CARD32 max-names 2 n length of pattern 2 unused n STRING8 pattern p unused, p=pad(n) â–¶+ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 4+(n+p)/4 length 4 CARD32 replies-following-hint 4 CARD32 numberof font-names n LISTofSTRNAME font-names p unused, p=pad(n) ListFontsWithXInfo 1 14 major-opcode 1 unused 2 3+(n+p)/4 length 4 CARD32 max-names 2 n length of pattern 2 unused n STRING8 pattern p unused, p=pad(n) â–¶+ (except for last in series) 1 0 type reply 1 n length of name 2 CARD16 sequence-number 4 3+(n+p+f)/4 length 4 CARD32 replies-hint f XFONTINFO fontinfo n STRING8 name p unused, p=pad(n) â–¶ (last in series) 1 0 type reply 1 0 last-reply indicator 2 CARD16 sequence-number 4 2 reply length OpenBitmapFont 1 15 major-opcode 1 unused 2 4+(n+p)/4 length 4 FONTID fontid 4 BITMAPFORMATMASK format-mask 4 BITMAPFORMAT format n STRNAME pattern p unused, p=pad(n) â–¶ 1 0 type reply 1 BOOL otherid-valid 2 CARD16 sequence-number 4 4 length 4 FONTID otherid 1 BOOL cachable 3 unused QueryXInfo 1 16 major-opcode 1 unused 2 2 length 4 FONTID fontid â–¶ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 2+f/4 length f XFONTINFO fontinfo p unused, p=pad(f) QueryXExtents8 1 17 major-opcode 1 BOOL range 2 3+(n+p)/4 length 4 FONTID fontid 4 n number chars entries n STRING8 chars p unused, p=pad(n) â–¶ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 3+3*n length 4 n number of extents 12*n LISTofXCHARINFO extents QueryXExtents16 1 18 major-opcode 1 BOOL range 2 3+(2*n+p)/4 length 4 FONTID fontid 4 n number chars entries 2*n LISTofCHAR2B chars p unused, p=pad(2*n) â–¶ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 3+3*n length 4 n number of extents 12*n LISTofXCHARINFO extents QueryXBitmaps8 1 19 major-opcode 1 BOOL range 2 4+(n+p)/4 length 4 FONTID fontid 4 BITMAPFORMAT format 4 n number of chars entries n STRING8 chars p unused, p=pad(n) â–¶+ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 5+2*n+(m+p)/4 length 4 CARD32 replies-following-hint 4 n number of offsets 4 m number of bytes of glyph images 8*n LISTofOFFSET32 offsets m LISTofBYTE glyphimages p unused, p=pad(m) QueryXBitmaps16 1 20 major-opcode 1 BOOL range 2 4+(2*n+p)/4 length 4 FONTID fontid 4 BITMAPFORMAT format 4 n number of chars entries 2*n LISTofCHAR2B chars p unused, p=pad(2*n) â–¶ 1 0 type reply 1 unused 2 CARD16 sequence-number 4 5+2*n+(m+p)/4 length 4 CARD32 replies-following-hint 4 n number of offsets 4 m number of bytes of glyph images 8*n LISTofOFFSET32 offsets m LISTofBYTE glyphimages p unused, p=pad(m) CloseFont 1 21 major-opcode 1 unused 2 2 length 4 FONTID fontid
Errors Request 1 1 type error 1 0 Request 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused Format 1 1 type error 1 1 Format 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 BITMAPFORMAT bad-format Font 1 1 type error 1 2 Font 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 FONTID bad-fontid Range 1 1 type error 1 3 Range 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 RANGE bad-range EventMask 1 1 type error 1 4 EventMask 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 EVENTMASK event-mask AccessContext 1 1 type error 1 5 AccessContext 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 ACCESSCONTEXT access context IDChoice 1 1 type error 1 6 IDChoice 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 FONTID bad-fontid Name 1 1 type error 1 7 Name 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused Resolution 1 1 type error 1 8 Resolution 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 6 RESOLUTION resolution Alloc 1 1 type error 1 9 Alloc 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused Length 1 1 type error 1 10 Length 2 CARD16 sequence-number 4 5 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused 4 CARD32 bad-length Implementation 1 1 type error 1 11 Implementation 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 CARD8 major-opcode 1 CARD8 minor-opcode 2 unused
Events KeepAlive 1 2 type event 1 0 event KeepAlive 2 CARD16 sequence-number 4 3 length 4 TIMESTAMP timestamp CatalogueListNotify 1 2 type event 1 1 event CatalogueListNotify 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 BOOL added 1 BOOL deleted 2 unused FontListNotify 1 2 type event 1 2 event FontListNotify 2 CARD16 sequence-number 4 4 length 4 TIMESTAMP timestamp 1 BOOL added 1 BOOL deleted 2 unused
Acknowledgements This document represents the culmination of several years of debate and experiments done under the auspices of the MIT X Consortium font working group. Although this was a group effort, the author remains responsible for any errors or omissions. The protocol presented here was primarily designed by JimFulton, KeithPackard, and BobScheifler. Special thanks goes to NedBatchelder, JimFlowers, and AxelDeininger for their invigorating comments which never failed to make this a better document. StephenGildea edited version 2 of this document. Finally, DavidLemke deserves great credit for designing and coding the sample implementation. References All of the following documents are X Consortium standards available from the X Consortium. 1 <olink targetdoc='x11protocol' targetptr='x11protocol'>X Window System Protocol Version 11</olink> Robert W.Scheifler 2 Adobe Systems Bitmap Distribution Format 2.1 3 X Consortium <olink targetdoc='xlfd' targetptr='xlfd'>X Logical Font Description Conventions, Version 1.5</olink> Suggested Licensing Policies The authorization data passed by the client in the initial connection setup information may be used by the font server to implement restrictions on which fonts may be accessed. Furthermore, the font server is free to refuse new connections at any time. Configuration or management of the license restrictions is outside the scope of the font service protocol and is done in a server-dependent manner. Possible policies might include, but are not limited to, combinations of the following: No restrictions anyone may access any fonts. The server neither refuses any connections nor generates AccessContext errors on any fonts. For environments without specially-licensed fonts, this is sufficient. Per-machine only those clients connecting from a known set of machines are permitted access. The server could get the address of the connection and look in a list of allowed machines. Per-user only a known set of users may access the fonts. The server can use the authorization data (such as a Kerberos ticket or a Secure RPC credential) to verify the identity of the user and then look in a list of allowed users. Simultaneous Use only a certain number of clients may use a given font at any one time. Additional clients would receive AccessContext errors if they attempt to open the font. This is only effective if the initial clients keep the font open for the entire time that it is being used (even if all of the data has been transmitted and is being cached). Postage Meter a particular font may only be accessed a limited number of times before its license must be renewed. Each time the font is opened, the server decrements a counter. When the counter reaches zero, all further attempts to open the font return an AccessContext error. It should be noted that chaining of font servers (obtaining font data from other font servers) may conflict with certain license policies. Implementation Suggestions Font server implementations will probably wish to use techniques such as the following to avoid limits on the number of simultaneous connections: The initial connection information returned by the font server contains the names of other font servers that may be used as substitutes. A font server may refuse to accept a connection, indicating that the client should try one of the alternatives instead. On operating systems that support processing forking, font servers might choose to fork so that the child can continue processing the existing connections and the parent can accept new connections. Such implementations are encouraged to use shared memory so that in-memory font databases can be shared. On operating systems that support passing stream file descriptors between processes, cooperating font servers could collect connections in a single process when there are few connections and spread them among several processes as the load increases. If a font client is unable to connect to a server (as opposed to having the connection terminated), it should retry for an implementation-dependent length of time (see Xlib's handling of ECONNREFUSED in XConnDis.c).
xorgproto-2023.2/specs/fontsproto/Makefile.am0000644000175000017500000000050714443010026016150 00000000000000 if ENABLE_SPECS # Main DocBook/XML files (DOCTYPE book) docbook = fsproto.xml # The location where the DocBook/XML files and their generated formats are installed shelfdir = $(datarootdir)/doc/fontsproto # Generate DocBook/XML output formats with or without stylesheets include $(top_srcdir)/docbook.am endif ENABLE_SPECS xorgproto-2023.2/specs/fontsproto/Makefile.in0000644000175000017500000005544314443010031016166 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_1 = $(docbook:.xml=.html) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@am__append_2 = $(docbook:.xml=.txt) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@am__append_3 = $(docbook:.xml=.pdf) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(docbook:.xml=.ps) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@am__append_4 = $(docbook:.xml=.html.db) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(docbook:.xml=.pdf.db) subdir = specs/fontsproto ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_shelf_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_shelf_DATA_DIST = fsproto.xml am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)" DATA = $(dist_shelf_DATA) $(shelf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/docbook.am DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Main DocBook/XML files (DOCTYPE book) @ENABLE_SPECS_TRUE@docbook = fsproto.xml # The location where the DocBook/XML files and their generated formats are installed @ENABLE_SPECS_TRUE@shelfdir = $(datarootdir)/doc/fontsproto # DocBook/XML generated output formats to be installed @ENABLE_SPECS_TRUE@shelf_DATA = $(am__append_1) $(am__append_2) \ @ENABLE_SPECS_TRUE@ $(am__append_3) $(am__append_4) # DocBook/XML file with chapters, appendix and images it includes @ENABLE_SPECS_TRUE@dist_shelf_DATA = $(docbook) $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --searchpath "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_HTML_OLINK_FLAGS) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_PDF_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ --stringparam current.docid="$(<:.xml=)" @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@XMLTO_FO_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_STYLESHEET_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_FO_IMAGEPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(XMLTO_PDF_OLINK_FLAGS) # Generate documents cross-reference target databases @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_SEARCHPATH_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(XORG_SGML_PATH)/X11" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --path "$(abs_top_builddir)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_OLINK_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam targets.filename "$@" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam collect.xref.targets "only" \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --stringparam olink.base.uri "$(@:.db=)" @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_HTML_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@XSLT_PDF_FLAGS = \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_SEARCHPATH_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(XSLT_OLINK_FLAGS) \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ --nonet --xinclude \ @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(STYLESHEET_SRCDIR)/xorg-fo.xsl @ENABLE_SPECS_TRUE@CLEANFILES = $(shelf_DATA) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/docbook.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/fontsproto/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/fontsproto/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/docbook.am $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-dist_shelfDATA: $(dist_shelf_DATA) @$(NORMAL_INSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-dist_shelfDATA: @$(NORMAL_UNINSTALL) @list='$(dist_shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) install-shelfDATA: $(shelf_DATA) @$(NORMAL_INSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(shelfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(shelfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(shelfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(shelfdir)" || exit $$?; \ done uninstall-shelfDATA: @$(NORMAL_UNINSTALL) @list='$(shelf_DATA)'; test -n "$(shelfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(shelfdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(shelfdir)" "$(DESTDIR)$(shelfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_shelfDATA install-shelfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_shelfDATA uninstall-shelfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dist_shelfDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-shelfDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags-am \ uninstall uninstall-am uninstall-dist_shelfDATA \ uninstall-shelfDATA .PRECIOUS: Makefile @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.html: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@%.txt: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TEXT_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.pdf: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@%.ps: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_FOP_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.html.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@%.pdf.db: %.xml $(chapters) @ENABLE_SPECS_TRUE@@HAVE_STYLESHEETS_TRUE@@HAVE_XMLTO_TRUE@@HAVE_XSLTPROC_TRUE@ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< # Generate DocBook/XML output formats with or without stylesheets # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/specs/Makefile.in0000644000175000017500000004547214443010031013752 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = specs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = @MAN_SUBSTS@ MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = \ bigreqsproto \ fontsproto \ kbproto \ recordproto \ scrnsaverproto \ xcmiscproto \ xextproto \ xproto EXTRA_DIST = \ printproto/xp_proto.book \ printproto/xp_proto.mif \ printproto/xp_proto.ps \ printproto/xp_protoIX.doc \ printproto/xp_protoTOC.doc \ printproto/xp_proto_cov.mif \ SIAddresses/hostname.md \ SIAddresses/IPv6.md \ SIAddresses/localuser.md \ SIAddresses/README all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign specs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign specs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic cscopelist-am ctags ctags-am \ distclean distclean-generic distclean-tags distdir dvi dvi-am \ html html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/presentproto.txt0000644000175000017500000005652114443010026014076 00000000000000 The Present Extension Version 1.3 2023-06-13 Keith Packard keithp@keithp.com Intel Corporation 1. Introduction The Present extension provides a way for applications to update their window contents from a pixmap in a well defined fashion, synchronizing with the display refresh and potentially using a more efficient mechanism than copying the contents of the source pixmap. 1.1. Future Present extension versions This document includes speculation about future 'redirect' support within the Present extension. All such information is subject to change and is provided only as an aid to further Present development. 1.2. Acknowledgments Eric Anholt Owen Taylor James Jones Louis-Francis Ratté-Boulianne â„ â„ â„ â„ â„ â„ â„ 2. Data Types PRESENTEVENTID { XID } Defines a unique event delivery target for Present events. Multiple event IDs can be allocated to provide multiple distinct event delivery contexts. PRESENTNOTIFY { window: WINDOW serial: CARD32 } A list of these is passed to PresentPixmap; when the indicated PresentPixmap completes, PresentCompletNotify events will be delivered both to the PresentPixmap window/serial parameter as well as each of the entries in the list of PRESENTNOTIFY parameter. PRESENTEVENTTYPE { PresentConfigureNotify, PresentCompleteNotify, PresentIdleNotify } PRESENTEVENTMASK { PresentConfigureNotifyMask, PresentCompleteNotifyMask, PresentIdleNotifyMask } PRESENTOPTION { PresentOptionAsync, PresentOptionCopy, PresentOptionUST, PresentOptionSuboptimal, PresentOptionAsyncMayTear } PRESENTCAPABILITY { PresentCapabilityAsync, PresentCapabilityFence, PresentCapabilityUST, PresentCapabilityAsyncMayTear } PRESENTCOMPLETEKIND { PresentCompleteKindPixmap, PresentCompleteKindMSCNotify } PRESENTCOMPLETEMODE { PresentCompleteModeCopy, PresentCompleteModeFlip, PresentCompleteModeSkip, PresentCompleteModeSuboptimalCopy } The Present extension also uses the Sync extension Fence data type to provide synchronization for pixmaps. 2.1. Data Types proposed for a later Present extension version PRESENTEVENTTYPE { ... PresentRedirectNotify } PRESENTEVENTMASK { ... PresentSubredirectNotifyMask } â„ â„ â„ â„ â„ â„ â„ 3. Errors EventID A value for an EventID argument does not name a defined EventID â„ â„ â„ â„ â„ â„ â„ 5. Events ConfigureNotify events inform clients about window configuration changes which can affect the allocation of window-related buffers. CompleteNotify events inform clients about the completion of a pending PresentPixmap request. IdleNotify events inform clients when pixmaps are available for re-use. 5.1. Events proposed for a later Present extension version RedirectNotify events inform clients about other clients PresentPixmap requests. â„ â„ â„ â„ â„ â„ â„ 6. Extension Initialization The name of this extension is "Present" ┌─── PresentQueryVersion client-major-version: CARD32 client-minor-version: CARD32 â–¶ major-version: CARD32 minor-version: CARD32 └─── The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. Backwards compatible changes include addition of new requests. â„ â„ â„ â„ â„ â„ â„ 7. Extension Requests ┌─── PresentPixmap window: WINDOW pixmap: PIXMAP serial: CARD32 valid-area: REGION or None update-area: REGION or None x-off, y-off: INT16 target-crtc: CRTC or None wait-fence: FENCE idle-fence: FENCE options: SETofPRESENTOPTION target-msc: CARD64 divisor: CARD64 remainder: CARD64 notifies: LISTofPRESENTNOTIFY └─── Errors: Window, Pixmap, Match Provides new content for the specified window, to be made visible at the specified time (defined by 'target-msc', 'divisor' and 'remainder'). If the depth of 'pixmap' and 'window' do not match, a Match error will be generated. 'serial' is an arbitrary client-specified value which will be returned in the associated PresentCompleteNotify event so that the client can associate the event and request. 'valid-area' defines the portion of 'pixmap' which contains valid window contents, or None if the pixmap contains valid contents for the whole window. 'update-area' defines the subset of the window to be updated, or None if the whole window is to be updated. PresentPixmap may use any region of 'pixmap' which contains 'update-area' and which is contained by 'valid-area'. In other words, areas inside 'update-area' will be presented from 'pixmap', areas outside 'valid-area' will not be presented from 'pixmap' and areas inside 'valid-area' but outside 'update-area' may or may not be presented at the discretion of the X server. 'x-off' and 'y-off' define the location in the window where the 0,0 location of the pixmap will be presented. valid-area and update-area are relative to the pixmap. PresentPixmap will block until 'wait-fence' is triggered. When the X server has finished using 'pixmap' for this operation, it will send a PresentIdleNotify event and arrange for any 'idle-fence' to be triggered. This may be at any time following the PresentPixmap request -- the contents may be immediately copied to another buffer, copied just in time for the vblank interrupt or the pixmap may be used directly for display (in which case it will be busy until some future PresentPixmap operation). If 'idle-fence' is not None, then the client guarantees to the X server that it will wait for that fence to be signalled before it uses the pixmap again. If 'idle-fence' is None, then the X server must arrange for the pixmap to be re-usable by the client as soon as the PresentIdleNotify event has been received. Note that if PresentCapabilityFence is set for the associated CRTC, then clients should use fences to improve overall system performance. If PresentCapabilityFence is not set, then using fences offers no benefit, but also no cost. If 'target-msc' is greater than the current msc for 'window', the presentation will occur at (or after) the 'target-msc' field. Otherwise, the presentation will occur after the next field where msc % 'divisor' == 'remainder'. If 'target-crtc' is None, then the X server will choose a suitable CRTC for synchronization. If 'options' contains PresentOptionAsync, and the 'target-msc' is less than or equal to the current msc for 'window', then the operation will be performed as soon as possible, not necessarily waiting for the next vertical blank interval. If the target-crtc does not support PresentCapabilityAsyncMayTear, this may result in tearing. If the target-crtc supports PresentCapabilityAsyncMayTear, 'options' contains PresentOptionAsyncMayTear, and the 'target-msc' is less than or equal to the current msc for 'window', then the operation will be performed as soon as possible, not necessarily waiting for the next vertical blank interval, and possibly resulting in tearing. If 'options' contains PresentOptionCopy, then 'pixmap' will be idle, and 'idle-fence' triggered as soon as the operation occurs. If 'options' contains PresentOptionUST, then target-msc, divisor and remainder will all be interpreted as UST values instead of MSC values and the frame update will be scheduled for the specified UST time, If the target-crtc supports PresentCapabilityUST, then the swap time will be as close to the target time as the driver can manage. Otherwise, the server will take the target UST time and convert it to a suitable target MSC value. If 'options' contains PresentOptionSuboptimal, then the PresentCompleteNotify event can have mode PresentCompleteModeSuboptimalCopy as the client supports it. After the presentation occurs, a PresentCompleteNotify event with kind PresentCompleteKindPixmap will be generated, both to 'window' as well as all members of 'notifies'. If 'window' is destroyed before the presentation occurs, then the presentation action will not be completed. PresentPixmap holds a reference to 'pixmap' until the presentation occurs, so 'pixmap' may be immediately freed after the request executes, even if that is before the presentation occurs. If 'idle-fence' is destroyed before the presentation occurs, then idle-fence will not be signaled but the presentation will occur normally. If 'wait-fence' is destroyed before it becomes triggered, then the presentation operation will no longer wait for it and will occur when the other conditions are satisfied. ┌─── PresentNotifyMSC window: WINDOW serial: CARD32 target-msc: CARD64 divisor: CARD64 remainder: CARD64 └─── Errors: Window Delivers a PresentCompleteNotifyEvent with kind PresentCompleteKindNotifyMSC after the time specified by 'target-msc', 'divisor' and 'remainder'. 'serial' is an arbitrary client-specified value which will be returned in the event so that the client can associate the event and request. If 'target-msc' is greater than the current msc for 'window', the event will be delivered at (or after) the 'target-msc' field. Otherwise, the event delivery will occur after the next field where msc % 'divisor' == 'remainder'. If 'window' is destroyed before the event is delivered, then the event delivery will not be completed. ┌─── PresentSelectInput event-id: PRESENTEVENTID window: WINDOW eventMask: SETofPRESENTEVENT └─── Errors: Window, Value, Match, IDchoice, Access Selects the set of Present events to be delivered for the specified window and event context. PresentSelectInput can create, modify, or delete event contexts. An event context is associated with a specific window; using an existing event context with a different window generates a Match error. If eventContext specifies an existing event context, then if eventMask is empty, PresentSelectInput deletes the specified context, otherwise the specified event context is changed to select a different set of events. If eventContext is an unused XID, then if eventMask is empty no operation is performed. Otherwise, a new event context is created selecting the specified events. ┌─── PresentQueryCapabilities target: CRTC or WINDOW â–¶ capabilities: SETofPRESENTCAPABILITY └─── Errors: Window, CRTC Returns the supported capabilities for the target CRTC. If 'target' is a CRTC, then it is used as the target CRTC. If 'target' is a WINDOW, then the target CRTC is selected by the X server from among the CRTCs on the screen specified by the window. PresentCapabilityAsyncMayTear means that the target device may be able to flip the scanout buffer mid-frame instead of waiting for a vertical blank interval. The precise latency between the flip request and the actual scanout transition is not defined by this specification, but is intended to be no more than a few scanlines. If PresentCapabilityAsyncMayTear is not supported, PresentCapabilityAsync means the same as PresentCapabilityAsyncMayTear described above. If PresentCapabilityAsyncMayTear is supported, PresentCapabilityAsync means that even if there is already a flip pending in the target device, it may be possible to replace that flip before the next vertical blank interval. The scanout buffer does not change mid-frame though, i.e. there is no tearing. PresentCapabilityFence means that the target device can take advantage of SyncFences in the Present operations to improve GPU throughput. The driver must operate correctly in the absence of fences, but may have reduced performance. Using fences for drivers not advertising this capability should have no performance impact. PresentCapabilityUST means that the target device can scanout the image at an arbitrary UST time value, and is not driven by a periodic scanout timer. Applications specifying UST times for PresentPixmap can expect that their image will appear to the user within a short amount of time from that specified in the request. The precise accuracy of the scanout time is not defined by the extension, but is expected to be on the order of milliseconds or less. 7.1 Requests proposed for a later Present extension version These are not part of the standard and represent future plans for the Present extension. ┌─── PresentSelectInput ... └─── ... Specifying PresentSubredirectNotify Mask causes PresentPixmap requests on any child of 'window' from other clients to generate PresentRedirectNotify events to 'window' instead of actually performing the operation. However, only one client at a time can select for PresentRedirect on a window. An attempt to violate this restriction results in an Access error. â„ â„ â„ â„ â„ â„ â„ 8. Extension Events ┌─── PresentConfigureNotify type: CARD8 XGE event type (35) extension: CARD8 Present extension request number sequence-number: CARD16 length: CARD32 2 evtype: CARD16 Present_ConfigureNotify eventID: PRESENTEVENTID window: WINDOW x: INT16 y: INT16 width: CARD16 height: CARD16 off_x: INT16 off_y: INT16 pixmap_width: CARD16 pixmap_height: CARD16 pixmap_flags: CARD32 └─── PresentConfigureNotify events are sent when the window configuration changes if PresentSelectInput has requested it. PresentConfigureNotify events are XGE events and so do not have a unique event type. 'x' and 'y' are the parent-relative location of 'window'. ┌─── PresentCompleteNotify type: CARD8 XGE event type (35) extension: CARD8 Present extension request number sequence-number: CARD16 length: CARD32 2 evtype: PRESENTEVENTTYPE PresentCompleteNotify eventID: PRESENTEVENTID window: WINDOW kind: PRESENTCOMPLETEKIND mode: PRESENTCOMPLETEMODE serial: CARD32 ust: CARD64 msc: CARD64 └─── CompleteNotify events are delivered when a PresentPixmap or PresentNotifyMSC operation has completed. 'kind' is PresentCompleteKindPixmap when generated by a PresentPixmap operation completion or PresentCompleteKindNotifyMsc when generated by a PresentNotifyMSC operation completion. 'mode' is PresentCompleteModeCopy when the source pixmap contents are taken from the pixmap and the pixmap is idle immediately after the presentation completes. 'mode' is PresentCompleteModeSuboptimalCopy when the source pixmap contents are copied but it would be possible to flip the pixmap if the buffer format/modifier was different (options given to PresentPixmap must contain PresentOptionSuboptimal). 'mode' is PresentCompleteModeFlip when the pixmap remains in-use even after the presentation completes. It will become idle no later than when the next PresentPixmap operation targeting the same window by any client completes. If the presentation operation was skipped because some later operation made it irrelevant, then 'mode' will be PresentCompleteModeSkip. 'serial' is the value provided in the generating PresentPixmap request. 'msc' and 'ust' indicate the frame count and system time when the presentation actually occurred. ┌─── PresentIdleNotify type: CARD8 XGE event type (35) extension: CARD8 Present extension request number sequence-number: CARD16 length: CARD32 0 evtype: PRESENTEVENTTYPE PresentIdleNotify eventID: PRESENTEVENTID window: WINDOW serial: CARD32 pixmap: PIXMAP idle-fence: FENCE └─── IdleNotify events are delivered when a pixmap used in a PresentPixmap operation may be re-used by the client. 'window' is the window from the PresentPixmap to which this event is delivered. 'serial' is the value provided in the associated PresentPixmap request. 'pixmap' is the pixmap which is ready for re-use. 'idle-fence' is the fence which was provided in the originating PresentPixmap request and is used to synchronize rendering between the client and the X server's use of the buffer. If not None, then the client must wait for the fence to be signaled before using the pixmap. 8.1. Extension Events proposed for a later Present extension version ┌─── PresentRedirectNotify type: CARD8 XGE event type (35) extension: CARD8 Present extension request number sequence-number: CARD16 length: CARD32 17 + 2 n evtype: CARD16 Present_RedirectNotify update-window: BOOL eventID: PRESENTEVENTID event-window: WINDOW window: WINDOW pixmap: PIXMAP serial: CARD32 valid-area: REGION update-area: REGION valid-rect: RECTANGLE update-rect: RECTANGLE x-off, y-off: INT16 target-crtc: CRTC wait-fence: FENCE idle-fence: FENCE options: SETofPRESENTOPTION target-msc: CARD64 divisor: CARD64 remainder: CARD64 notifies: LISTofPRESENTNOTIFY └─── RedirectNotify events are delivered when the client has selected for SubredirectNotify the parent of the target window. All of the values provided to the PresentPixmap request are provided. If the client simply passes these parameters back to the X server, the effect will be as if the original client executed the request. If 'update-window' is TRUE, then there are clients who have requested composite automatic redirect on the window and who presumably expect the window buffer to eventually contain the application provided contents. The compositing manager should at least occasionally update the window buffer with suitable contents. The precise update interval is left to the discretion of the client receiving this event. â„ â„ â„ â„ â„ â„ â„ 9. Extension Versioning 1.0: First published version 1.2: Added PresentCompleteModeSuboptimalCopy flag and PresentOptionSuboptimal option â„ â„ â„ â„ â„ â„ â„ 10. Relationship with other extensions As an extension designed to support other extensions, there is naturally some interactions with other extensions. 10.1 GLX GLX is both an application interface and an X extension. OpenGL applications using the GLX API will use the GLX extension and may use the Present extension to display application contents. 10.2 DRI3 The DRI3 extension provides a way to share direct rendered pixel data with the X server as X pixmaps. When used in conjunction with Present, they provide a complete direct rendering solution for OpenGL or other APIs. 10.3 DRI2 Present provides similar functionality to the DRI2SwapBuffers and requests, however Present uses X pixmaps to refer to the new window contents instead of the DRI2 buffer attachments. Present and DRI3 are designed in conjunction to replace DRI2. 10.4 XvMC / Xv It might be nice to be able to use YUV formatted objects as Present sources. â„ â„ â„ â„ â„ â„ â„ Appendix A. Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the core X protocol encoding document. A.1 Common Types ┌─── PresentEventType 0 PresentConfigureNotify 1 PresentCompleteNotify 2 PresentIdleNotify └─── ┌─── PresentEventMask 1 PresentConfigureNotifyMask 2 PresentCompleteNotifyMask 4 PresentIdleNotifyMask └─── ┌─── PresentOption 1 PresentOptionAsync 2 PresentOptionCopy; 4 PresentOptionUST 8 PresentOptionSuboptimal 16 PresentOptionAsyncMayTear └─── ┌─── PresentCapability 1 PresentCapabilityAsync 2 PresentCapabilityFence 4 PresentCapabilityUST 8 PresentCapabilityAsyncMayTear └─── ┌─── PresentCompleteKind 0 PresentCompleteKindPixmap 1 PresentCompleteKindMSCNotify └─── ┌─── PresentCompleteMode 0 PresentCompleteModeCopy 1 PresentCompleteModeFlip 2 PresentCompleteModeSkip 3 PresentCompleteModeSuboptimalCopy └─── ┌─── PresentNotify 4 Window window 4 CARD32 serial └─── A.1.1 Common Types proposed for a later Present extension version ┌─── PresentEventType ... 3 PresentRedirectNotify └─── ┌─── PresentEventMask ... 8 PresentSubredirectNotifyMask └─── A.2 Protocol Requests ┌─── PresentQueryVersion 1 CARD8 major opcode 1 0 Present opcode 2 3 length 4 CARD32 major version 4 CARD32 minor version â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 major version 4 CARD32 minor version 16 unused └─── ┌─── PresentPixmap 1 CARD8 major opcode 1 1 Present opcode 2 18+2n length 4 Window window 4 Pixmap pixmap 4 CARD32 serial 4 Region valid-area 4 Region update-area 2 INT16 x-off 2 INT16 y-off 4 CRTC target-crtc 4 SyncFence wait-fence 4 SyncFence idle-fence 4 CARD32 options 4 unused 8 CARD64 target-msc 8 CARD64 divisor 8 CARD64 remainder 8n LISTofPresentNotify notifies └─── ┌─── PresentNotifyMSC 1 CARD8 major opcode 1 2 Present opcode 2 10 length 4 Window window 4 CARD32 serial 4 unused 8 CARD64 target-msc 8 CARD64 divisor 8 CARD64 remainder └─── ┌─── PresentSelectInput 1 CARD8 major opcode 1 3 Present opcode 2 4 length 4 EventID event-id 4 Window window 4 SETofPRESENTEVENTMASK event-mask └─── ┌─── PresentQueryCapabilities 1 CARD8 major opcode 1 4 Present opcode 2 2 length 4 CRTC or Window target â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 SETofPRESENTCAPABILITY capabilities └─── A.3 Protocol Events ┌─── PresentConfigureNotify 1 35 XGE 1 CARD8 Present extension opcode 2 CARD16 sequence number 4 2 length 2 0 PresentConfigureNotify 2 unused 4 CARD32 event id 4 Window window 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 2 INT16 off x 2 INT16 off y 2 CARD16 pixmap width 2 CARD16 pixmap height 4 CARD32 pixmap flags └─── ┌─── PresentCompleteNotify 1 35 XGE 1 CARD8 Present extension opcode 2 CARD16 sequence number 4 2 length 2 1 PresentCompleteNotify 1 CARD8 kind 1 CARD8 mode 4 CARD32 event id 4 Window window 4 CARD32 serial 8 CARD64 ust 8 CARD64 msc └─── ┌─── PresentIdleNotify 1 35 XGE 1 CARD8 Present extension opcode 2 CARD16 sequence number 4 0 length 2 2 PresentIdleNotify 2 unused 4 CARD32 event id 4 Window window 4 CARD32 serial 4 Pixmap pixmap 4 SyncFence idle-fence └─── A.3.1 Protocol Events proposed for later Present extension version ┌─── PresentRedirectNotify 1 35 XGE 1 CARD8 Present extension opcode 2 CARD16 sequence number 4 18+2n length 2 3 PresentRedirectNotify 1 BOOL update-window 1 unused 4 CARD32 event id 4 Window event-window 4 Window window 4 Pixmap pixmap 4 CARD32 serial 4 Region valid-area 4 Region update-area 8 Rectangle valid-rect 8 Rectangle update-rect 2 INT16 x-off 2 INT16 y-off 4 CRTC target-crtc 4 SyncFence wait-fence 4 SyncFence idle-fence 4 CARD32 options 4 unused 8 CARD64 target-msc 8 CARD64 divisor 8 CARD64 remainder 8n LISTofPRESENTNOTIFY notifies └─── A.4 Protocol Errors The Present extension defines no errors. â„ â„ â„ â„ â„ â„ â„ xorgproto-2023.2/INSTALL0000644000175000017500000000022514443010026011610 00000000000000autotools: $ ./configure $ sudo make install meson: $ meson setup build $ meson configure build $ sudo meson -C build install xorgproto-2023.2/meson_options.txt0000644000175000017500000000006014443010026014211 00000000000000option('legacy', type: 'boolean', value: false) xorgproto-2023.2/COPYING-resourceproto0000644000175000017500000000240014443010026014520 00000000000000Copyright (c) 2002 XFree86 Inc 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project. xorgproto-2023.2/damageproto.pc.in0000644000175000017500000000021014443010026014004 00000000000000prefix=@prefix@ includedir=@includedir@ Name: DamageProto Description: Damage extension headers Version: 1.2.1 Cflags: -I${includedir} xorgproto-2023.2/COPYING-dri2proto0000644000175000017500000000275714443010026013550 00000000000000Copyright © 2007 Red Hat, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft- ware"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission notice appear in all copies of the Soft- ware and that both the above copyright notice(s) and this permission notice appear in supporting documentation. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE- QUENTIAL 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 PERFOR- MANCE OF THIS SOFTWARE. Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder. Authors: Kristian Høgsberg (krh@redhat.com) xorgproto-2023.2/COPYING-damageproto0000644000175000017500000000215614443010026014117 00000000000000Copyright © 2001,2003 Keith Packard Copyright © 2007 Eric Anholt 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 Keith Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Keith Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL KEITH PACKARD 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. xorgproto-2023.2/scrnsaverproto.pc.in0000644000175000017500000000021714443010026014603 00000000000000prefix=@prefix@ includedir=@includedir@ Name: ScrnSaverProto Description: ScrnSaver extension headers Version: 1.2.3 Cflags: -I${includedir} xorgproto-2023.2/dri3proto.txt0000644000175000017500000004713214443010026013255 00000000000000 The DRI3 Extension Version 1.3 2021-11-30 Keith Packard keithp@keithp.com Intel Corporation Daniel Stone daniels@collabora.com Collabora 1. Introduction The DRI3 extension provides mechanisms to translate between direct rendered buffers and X pixmaps. When combined with the Present extension, a complete direct rendering solution for hardware-accelerated devices such as GPUs is provided. The direct rendered buffers are passed across the protocol via standard POSIX file descriptor passing mechanisms. On Linux, these buffers are DMA-BUF objects. DRI3 also includes a mechanism to translate between Linux Futexes and X Sync extension Fences. This provides a synchronization mechanism which can be used to serialize access to shared render buffers. 1.1. Acknowledgments Eric Anholt Dave Airlie Kristian Høgsberg James Jones Arthur Huillet Louis-Francis Ratté-Boulianne Austin Shafer â„ â„ â„ â„ â„ â„ â„ 2. Data Types The DRI3 extension uses the RandR extension Provider data type to select among multiple GPUs on a single screen and the Sync extension fence object to provide graphics object synchronization. â„ â„ â„ â„ â„ â„ â„ 4. Errors DRI3 defines no errors. â„ â„ â„ â„ â„ â„ â„ 5. Events DRI3 defines no events. â„ â„ â„ â„ â„ â„ â„ 6. Protocol Types DRI3 defines no new protocol types. â„ â„ â„ â„ â„ â„ â„ 7. Extension Initialization The name of this extension is "DRI3" ┌─── DRI3QueryVersion client-major-version: CARD32 client-minor-version: CARD32 â–¶ major-version: CARD32 minor-version: CARD32 └─── The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. Backwards compatible changes included addition of new requests. â„ â„ â„ â„ â„ â„ â„ 8. Extension Requests ┌─── DRI3Open drawable: DRAWABLE provider: PROVIDER â–¶ nfd: CARD8 device: FD └─── Errors: Drawable, Value, Match This requests that the X server open the direct rendering device associated with drawable and RandR provider. The provider must support SourceOutput or SourceOffload. The file descriptor for the device is returned in 'device'. 'nfd' will be set to one (this is strictly a convenience for XCB which otherwise would need request-specific information about how many file descriptors were associated with this reply). ┌─── DRI3PixmapFromBuffer pixmap: PIXMAP drawable: DRAWABLE size: CARD32 width, height, stride: CARD16 depth, bpp: CARD8 buffer: FD └─── Errors: Alloc, Drawable, IDChoice, Value, Match Creates a pixmap for the direct rendering object associated with 'buffer' and the screen associated with 'drawable'. Changes to pixmap will be visible in that direct rendered object and changes to the direct rendered object will be visible in the pixmap. 'size' specifies the total size of the buffer bytes. 'width', 'height' describe the geometry (in pixels) of the underlying buffer. 'stride' specifies the number of bytes per scanline in the buffer. The pixels within the buffer are not required to be arranged in a simple linear fashion, but 'size' will be at least 'height' * 'stride'. Precisely how any additional information about the buffer is shared is outside the scope of this extension. If buffer cannot be used with the screen associated with drawable, a Match error is returned. If depth or bpp are not supported by the screen, a Value error is returned. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3BufferFromPixmap pixmap: PIXMAP â–¶ nfd: CARD8 size: CARD32 width, height, stride: CARD16 depth, bpp: CARD8 buffer: FD └─── Errors: Pixmap, Match Pass back a direct rendering object associated with pixmap. Changes to pixmap will be visible in that direct rendered object and changes to the direct rendered object will be visible in the pixmap. 'size' specifies the total size of the buffer bytes. 'width', 'height' describe the geometry (in pixels) of the underlying buffer. 'stride' specifies the number of bytes per scanline in the buffer. The pixels within the buffer are not required to be arranged in a simple linear fashion, but 'size' will be at least 'height' * 'stride'. Precisely how any additional information about the buffer is shared is outside the scope of this extension. If buffer cannot be used with the screen associated with drawable, a Match error is returned. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3FenceFromFD drawable: DRAWABLE fence: FENCE initially-triggered: BOOL fd: FD └─── Errors: IDchoice, Drawable Creates a Sync extension Fence that provides the regular Sync extension semantics along with a file descriptor that provides a device-specific mechanism to manipulate the fence directly. Details about the mechanism used with this file descriptor are outside the scope of the DRI3 extension. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3FDFromFence drawable: DRAWABLE fence: FENCE â–¶ fd: FD └─── Errors: IDchoice, Drawable, Match Given a Sync extension Fence that provides the regular Sync extension semantics, returns a file descriptor that provides a device-specific mechanism to manipulate the fence directly. Details about the mechanism used with this file descriptor are outside the scope of the DRI3 extension. 'drawable' must be associated with a direct rendering device that 'fence' can work with, otherwise a Match error results. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3GetSupportedModifiers window: WINDOW depth: CARD8 bpp: CARD8 â–¶ num_window_modifiers: CARD32 num_screen_modifiers: CARD32 window_modifiers: ListOfCARD64 screen_modifiers: ListOfCARD64 └─── Errors: Window, Match Return supported DRM FourCC modifiers for the specified 'window'. The first list of 'window_modifiers' contains a set of modifiers which the server considers optimal for the window's current configuration. Using these modifiers to allocate, even if locally suboptimal to the client driver, may result in a more optimal display pipeline, e.g. by avoiding composition. The second list of 'screen_modifiers', is the total set of modifiers which are acceptable for use on the Screen associated with 'window'. This set of modifiers will not change over the lifetime of the client. Using this set of modifiers to allocate may not result in a globally optimal pipeline, if separate 'window_modifiers' are available. It is expected that a client calling this request will obtain the modifiers for a particular window, allocate buffers using the preferred modifier set as described above, create a Pixmap referring to the storage of those buffers using the DRI3BuffersFromPixmap request, then make the content visible in the storage of those buffers visible with a request such as the Present extension's PresentPixmap. The meaning of any modifier is canonically defined in drm_fourcc.h. ┌─── DRI3PixmapFromBuffers pixmap: PIXMAP window: WINDOW num_buffers: CARD8 width, height: CARD16 stride0, offset0: CARD32 stride1, offset1: CARD32 stride2, offset2: CARD32 stride3, offset3: CARD32 depth, bpp: CARD8 modifier: CARD64 buffers: ListOfFD └─── Errors: Alloc, Window, IDChoice, Value, Match Creates a pixmap for the direct rendering object associated with 'buffers' and the screen associated with 'window'. Changes to pixmap will be visible in that direct rendered object and changes to the direct rendered object will be visible in the pixmap. The pixmap will be available for presentation to the window. In contrast to PixmapFromBuffer, multiple buffers may be combined to specify a single logical source for pixel sampling: 'num_buffers' may be set from 1 (single buffer, akin to PixmapFromBuffer) to 4. This is the number of file descriptors which will be sent with this request; one per buffer. Modifiers allow explicit specification of non-linear sources, such as tiled or compressed buffers. The combination of bpp, depth, and modifier allows unambiguous declaration of the buffer layout in a manner defined by the DRM tokens. If 'modifier' is DRM_FORMAT_MOD_INVALID, the client does not have information on the buffer layout. In this case, the buffer may only have a single plane. The driver may make its own inference through unspecified means to determine the exact buffer layout, however this is neither required nor defined by the specification, and is considered an implementation detail of the particular driver. 'width' and 'height' describe the geometry (in pixels) of the logical pixel-sample source. 'strideN' and 'offsetN' define the number of bytes per logical scanline, and the distance in bytes from the beginning of the buffer passed for that plane until the start of the sample source for that plane, respectively for plane N. If the plane is not used according to the format and modifier specification, both values for that plane must be zero. Precisely how any additional information about the buffer (such as memory placement) is shared is outside the scope of this extension. If the buffer(s) cannot be used with the screen associated with 'window', a Match error is returned. If the bpp, depth, and modifier combination is not supported by the screen, a Value error is returned. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3BuffersFromPixmap pixmap: PIXMAP â–¶ nfd: CARD8 width, height: CARD16 depth, bpp: CARD8 modifier: CARD64 strides: ListOfCARD32 offsets: ListOfCARD32 buffers: ListOfFD └─── Errors: Pixmap, Match Returns direct rendering objects associated with 'pixmap'. Changes to 'pixmap' will be visible in the direct rendered objects and changes to the direct rendered objects will be visible in 'pixmap' after flushing and synchronization. 'width' and 'height' describe the geometry (in pixels) of the logical pixel-sample source from combining the direct rendering objects. See PixmapFromBuffers for more details on DRM modifiers usage. 'nfd' describes the number of buffers returned for the pixmap, which must be combined together according to 'depth', 'bpp', and 'modifier'. For each buffer, there is an entry in the 'strides', 'offsets', and 'buffers' list. 'buffer' contains a single file descriptor referring to the buffer. 'stride' specifies the number of bytes per logical scanline for this plane, and 'offset' specifies the distance in bytes from the beginning of 'buffer' until the start of the sample source for that plane. Precisely how any additional information about the buffer is shared is outside the scope of this extension. If buffers cannot be exported from the the screen associated with 'pixmap', a Match error is returned. For information on synchronization of buffer access between the client and the X server, please see section 12. ┌─── DRI3SetDRMDeviceInUse window: WINDOW drmMajor: CARD32 drmMinor: CARD32 └─── Errors: Window This request provides a hint to the server about the device in use by this window. This is used to provide DRI3GetSupportedModifiers with a hint of what device to return modifiers for in the window_modifiers return value. Using this hint allows for device-specific modifiers to be returned by DRI3GetSupportedModifiers, for example when an application is renderoffloaded and eligible for direct scanout. This is only a hint, and may or may not be reflected in the modifier list returned. If the window specified was not found, a Window error will be returned. â„ â„ â„ â„ â„ â„ â„ 9. Extension Events DRI3 defines no events. â„ â„ â„ â„ â„ â„ â„ 10. Extension Versioning The DRI3 extension is adapted from the DRI2 extension. 1.0: First published version 1.1: Cosmetic changes 1.2: Add GetSupportedModifiers, PixmapFromBuffers, and BuffersFromPixmap requests. 1.3: Add SetDRMDeviceInUse â„ â„ â„ â„ â„ â„ â„ 11. Relationship with other extensions As an extension designed to support other extensions, there is naturally some interactions with other extensions. 11.1 GLX GLX is both an application interface and an X extension. OpenGL applications using the GLX API will use the GLX extension, DRI3 and Present when doing direct rendering. 11.2 Present The Present extension provides a way to synchronize the display of pixmap contents to the screen. When used in conjunction with DRI3, they provide a complete direct rendering solution for OpenGL or other APIs. 11.3 DRI2 DRI3 provides similar functionality to the DRI2Connect and DRI2GetBuffersWithFormat requests, however DRI3 uses file descriptors to refer to the direct rendering device and buffers. Present and DRI3 are designed in conjunction to replace DRI2 11.2 XvMC / Xv It might be nice to be able to reference YUV formatted direct rendered objects from the X server. â„ â„ â„ â„ â„ â„ â„ 12. Synchronization Synchronization of access to buffers shared between processes is not currently explicitly controlled by this protocol. Without the use of additional extensions not defined by the DRI3 protocol as of version 1.2, synchronization between multiple processes and contexts is considered to follow the implicit model. In this model, the driver is required to have a global view of access requests issued by all processes with a reference to the buffer, and control scheduling of all operations on that buffer, whether performed by the CPU or auxiliary hardware. The driver is responsible for enforcing a strict ordering to protect against write-after-read or read-after-write hazards, such that any reads requested by one process or context, are fulfilled before any writes requested by another process or context, as long as that read was definitively submitted before the write. A similar dependency exists for reads submitted after writes: the driver must ensure that the write is fully visible and coherent to the read request. As a purely illustrative example, if two processes share a buffer, where one process reads from a buffer using an OpenGL texture sampler and submits this work by calling 'glFlush', and the other process submits work to the driver to write to that buffer, the driver is responsible for ensuring that the results of the latter write are not visible to the texture sampler. The Sync fences provided by DRI3 control only this submission of work and ensuing global visibility of the requests, rather than the completion of the work within any hardware. To further the example above, a fence used to prevent any writes to the buffer before the sampler had completed access, the fence would be signaled when 'glFlush' had been called, at which point the request has become globally visible to the driver's request-scheduling and synchronization mechanisms. The logical ordering of requests made by software has been preserved, and the driver then takes care to ensure that these requests are scheduled such they do not observe effects from requests made later in time. This presents a fully coherent in-order FIFO-like model across processes, where synchronzation is handled externally to the DRI3 client with no explicit intervention. This restriction also applies for cross-device usage. â„ â„ â„ â„ â„ â„ â„ Appendix A. Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the core X protocol encoding document. A.1 Common Types None. A.2 Protocol Requests ┌─── DRI3QueryVersion 1 CARD8 major opcode 1 0 DRI3 opcode 2 3 length 4 CARD32 major version 4 CARD32 minor version â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 major version 4 CARD32 minor version 16 unused └─── ┌─── DRI3Open 1 CARD8 major opcode 1 1 DRI3 opcode 2 4 length 4 DRAWABLE drawable 4 PROVIDER provider â–¶ 1 1 Reply 1 1 nfd 2 CARD16 sequence number 4 0 reply length 24 unused 0 FD device └─── ┌─── DRI3PixmapFromBuffer 1 CARD8 major opcode 1 2 DRI3 opcode 2 6 length 4 Pixmap pixmap 4 Drawable drawable 4 CARD32 size 2 CARD16 width 2 CARD16 height 2 CARD16 stride 1 CARD8 depth 1 CARD8 bpp 0 FD buffer └─── ┌─── DRI3BufferFromPixmap 1 CARD8 major opcode 1 3 DRI3 opcode 2 2 length 4 Pixmap pixmap â–¶ 1 1 Reply 1 1 nfd 2 CARD16 sequence number 4 0 reply length 4 CARD32 size 2 CARD16 width 2 CARD16 height 2 CARD16 stride 1 CARD8 depth 1 CARD8 bpp 12 unused 0 FD buffer └─── ┌─── DRI3FenceFromFD 1 CARD8 major opcode 1 4 DRI3 opcode 2 4 length 4 Drawable drawable 4 Fence fence 1 BOOL initially triggered 3 unused 0 FD fence fd └─── ┌─── DRI3FDFromFence 1 CARD8 major opcode 1 5 DRI3 opcode 2 3 length 4 Drawable drawable 4 Fence fence â–¶ 1 1 Reply 1 1 nfd 2 CARD16 sequence number 4 0 reply length 24 unused 0 FD fence fd └─── ┌─── DRI3GetSupportedModifiers 1 CARD8 major opcode 1 6 DRI3 opcode 2 3 length 4 Window window 1 CARD8 depth 1 CARD8 bpp 2 unused â–¶ 1 1 Reply 1 0 unused 2 CARD16 sequence number 4 CARD32 reply length 4 CARD32 num_window_modifiers 4 CARD32 num_screen_modifiers 16 unused 4 ListOfCARD64 window_modifiers[num_window_modifiers] 4 ListOfCARD64 screen_modifiers[num_screen_modifiers] └─── ┌─── DRI3PixmapFromBuffers 1 CARD8 major opcode 1 7 DRI3 opcode 2 8 length 4 Pixmap pixmap 4 Window window 1 CARD8 num_buffers 3 unused 2 CARD16 width 2 CARD16 height 4 CARD32 stride0 4 CARD32 offset0 4 CARD32 stride1 4 CARD32 offset1 4 CARD32 stride2 4 CARD32 offset2 4 CARD32 stride3 4 CARD32 offset3 1 CARD8 depth 1 CARD8 bpp 2 unused 8 CARD64 modifier 0 ListOfFD buffers[num_buffers] └─── ┌─── DRI3BuffersFromPixmap 1 CARD8 major opcode 1 8 DRI3 opcode 2 2 length 4 Pixmap pixmap â–¶ 1 1 Reply 1 CARD8 nfd 2 CARD16 sequence number 4 CARD32 reply length 2 CARD16 width 2 CARD16 height 4 CARD8 unused 8 CARD64 modifier 1 CARD8 depth 1 CARD8 bpp 6 unused 0 ListOfFD buffer[nfd] 4 ListOfCARD32 strides[nfd] 4 ListOfCARD32 offsets[nfd] └─── ┌─── DRI3SetDRMDeviceInUse 1 CARD8 major opcode 1 9 DRI3 opcode 2 4 length 4 Window window 4 CARD32 drmMajor 4 CARD32 drmMinor └─── A.3 Protocol Events The DRI3 extension defines no events. A.4 Protocol Errors The DRI3 extension defines no errors. â„ â„ â„ â„ â„ â„ â„ xorgproto-2023.2/xv-protocol-v2.txt0000644000175000017500000004755414443010026014161 00000000000000 X Video Extension Protocol Description Version 2 25-JUL-91 David Carver Digital Equipment Corporation Workstation Engineering/Project Athena - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Preface ------- The following is an outline for an X video extension protocol. It is preliminary and subject to change. My goal in writing this was to fix some the shortcomings of existing overly simplistic extensions while avoiding pitfalls in an overly complex extension. Your feedback is desired, and since the major design directions have been stable for some time, feel free to hammer on the details of the protocol. When you receive a revision of the document, refer to the changes and issues sections to guide your review and analysis. Acknowledgements --------------- The following people have made major contributions to the design of the Xv protocol: Branko Gerovac (DEC/Corporate Research) Russ Sasnett (GTE/Project Athena) Ralph Swick (DEC/Project Athena) Many ideas and approaches in Xv were the product of discussions with several groups, including Project Athena's Visual Computing Group The MIT X Consortium The MIT Media Lab's Interactive Cinema Group Changes ------- From version 1.3 to 2.0 -- Changed SetPortControl and GetPortControl to GetPortAttribute and SetPortAttribute. -- Changed QueryBestSize -- Simplified SelectVideoNotify and SelectPortNotify requests. -- Changed the way SetPortControl and GetPortControl works. -- Added a QueryExtension request to return the version and revision information of the extension. -- Changed the name of the QueryVideo request to QueryAdaptors; Removed the list of encodings from QueryVideo and added a QueryEncodings request. -- Added a PortNotify event that notifies interested clients that a port control has been changed. -- Added SelectPortNotify request to select for PortNotify events. -- The XvInterruped reason has been replaced by two new reasons: one for when video is preempted by another video request and one for when video is terminated because of hard transmission or reception errors. -- Changed the wording of the QueryBestSize request. Added issue about whether or not returned sizes should maintain the requested aspect ratio. Introduction ------------ Video technology is moving very quickly. Standards for processing high resolution video are currently a hot topic of discussion internationally, and it will soon be possible to process video entirely within the digital domain. The Xv extension, however, does not attempt to address issues of digital video. Its purpose is to provide a mechanism for support of current and near term interactive video technology. It is somewhat ironic that Xv contains nothing particularly innovative. It takes a minimalistic approach, and without a doubt it could have been defined years ago, and with several revisions. So, the life expectancy of Xv is not long. Nevertheless, it may undergo further revision and experimentation that will help our progress towards digital video systems. One premise of the Xv extension is that the X server is not alone. A separate video server is often used to manage other aspects of video processing, though the partition between what the X server does and what a video server does is a matter of great debate. Model ----- This extension models video monitor capabilities in the X Window System. Some advanced monitors support the simultaneous display of multiple video signals (into separate windows), and that is represented here through the ability to display video from multiple video input adaptors into X drawables. Some monitors support multiple video encodings (mostly for internationalization purposes) either through switches or automatic detection, thus each video adaptor specifies the set of encodings it supports. The requests to display video from an adaptor into a drawable are modeled after the core PutImage request, though extended to support scaling and source clipping. Video output is also supported and is symmetric with the video input function, though fewer GC components are used. Mechanism --------- The Xv extension does the following: -- lists available video adaptors -- identifies the number of ports each adaptor supports -- describes what drawable formats each adaptor supports -- describes what video encodings each adaptor supports -- displays video from a port to a drawable -- captures video from a drawable to a port -- grabs and ungrabs ports -- sets and gets port attributes -- delivers event notification Adaptors -------- A display may have multiple video input and output adaptors. An adaptor may support multiple simultaneously active ports, and in some cases the number of ports has no fixed limit. An input port receives encoded video data and converts it to a stream of data used to update a drawable. An output port samples data from a drawable and produces a stream of encoded video data. The ADAPTORINFO structure is used to describe a video adaptor. ADAPTORINFO: [base-id: PORT num-ports: CARD16 type: SETofADAPTORTYPE formats: LISTofFORMAT name: STRING] ADAPTORTYPE: {Input, Output} FORMAT: [depth: CARD8 visual: VISUALID] The base-id field specifies the XID of the first port of the adaptor. The `num-ports' field specifies how many ports the adaptor supports. The ports of the adaptor have XIDs in the range [base-id..base-id + num-ports - 1] The type attribute determines if the adaptor can process video input, output, or input and output. The if the adaptor can process input then Input is asserted, if the adaptor can process output then Output is asserted. The drawable depths and visual types supported by the adaptor are listed in `formats'. Note: that when video is being processed for pixmaps the visual format is taken to be the visual of the first pair that matches the depth of the pixmap. The name field contains an a vendor specific string that identifies the adaptor. It should be noted that the existence of separate adaptors doesn't necessarily imply that simultaneous operation is supported. Errors ------ Port A Port error is returned if any request names a PORT that does not exist. Encoding An Encoding error is returned if any request names an ENCODINGID that does not exist. Query Requests ------------------- QueryExtension ==> version: CARD16 revision: CARD16 The QueryExtension request returns the extension version and revision numbers. QueryAdaptors win: WINDOW ==> adaptors: LISTofADAPTORINFO The QueryAdaptors request returns the video adaptor information for the screen of the specified window. Errors: {Window} QueryEncodings port: PORT ==> encodings: LISTofENCODINGINFO The QueryEncodings request returns the list of encodings supported by the port adaptor. Use the SetPortAttribute request to set which encoding a port is to process. The ENCODINGINFO record describes an encoding: ENCODINGINFO: [encoding: ENCODINGID name: STRING width, height: CARD16 rate: FRACTION] The `encoding' field identifies an encoding supported by a port. Its value is unique for a screen. Width and height specify the size of the video image and rate specifies the rate at which fields of image information are encoded. An encoding is identified by a string that names the encoding. Encoding naming conventions need to be established (i.e., something along the lines of font naming, but simpler) FRACTION [numerator, denominator: INT32] The FRACTION structure is used to specify a fractional number. Errors: {Port} Put Video Requests ------------------ PutVideo port: PORT drawable: DRAWABLE gc: GCONTEXT vid-x, vid-y: INT16 vid-w, vid-h: CARD16 drw-x, drw-y: INT16 drw-w, drw-h: CARD16 The PutVideo request writes video into a drawable. The position and size of the source rectangle is specified by vid-x, vid-y, vid-w, and vid-h. The position and size of the destination rectangle is specified by drw-x, drw-y, drw-w, drw-h. Video data is clipped to the bounds of the video encoding, scaled to the requested drawable region size (or the closest size supported), and clipped to the bounds of the drawable. If video is successfully initiated, a VideoNotify event with detail Started is generated for the drawable. If the port is already in use, its video is preempted, and if the new drawable is different than the old, a VideoNotify event with detail Preempted is generated for the old drawable. If the port is grabbed by another client, this request is ignored, and a VideoNotify event with detail Busy is generated for the drawable. If the port is not receiving a valid video signal or if the video signal is interrupted while video is active a VideoNotify event with detail HardError is generated for the drawable. GC components: subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. Errors: {Match, Value, GContext, Port, Alloc} PutStill port: PORT drawable: DRAWABLE gc: GCONTEXT vid-x, vid-y: INT16 vid-w, vid-h: CARD16 drw-x, drw-y: INT16 drw-w, drw-h: CARD16 The PutStill request writes a single frame of video into a drawable. The position and size of the source rectangle is specified by vid-x, vid-y, vid-w, and vid-h. The position and size of the destination rectangle is specified by drw-x, drw-y, drw-w, drw-h. Video data is clipped to the bounds of the video encoding, scaled to the requested drawable region size (or the closest size supported) and clipped to the bounds of the drawable. If the port is grabbed by another client, this request is ignored, and a VideoNotify event with detail Busy is generated for the drawable. If the port is not receiving a valid video signal a VideoNotify event with detail HardError is generated for the drawable. GC components: subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. Errors: {Match, Value, GContext, Port, Alloc} Get Video Requests ------------------ GetVideo port: PORT drawable: DRAWABLE gc: GCONTEXT vid-x, vid-y: INT16 vid-w, vid-h: CARD16 drw-x, drw-y: INT16 drw-w, drw-h: CARD16 The GetVideo request outputs video from a drawable. The position and size of the destination rectangle is specified by vid-x, vid-y, vid-w, and vid-h. The position and size of the source rectangle is specified by drw-x, drw-y, drw-w, and drw-h. Drawable data is clipped to the bounds of the drawable, scaled to the requested video region size (or the closest size supported) and clipped to the bounds of the video encoding. The contents of any region not updated with drawable data is undefined. If video is successfully initiated, a VideoNotify event with detail Started is generated for the drawable. If the port is already in use, its video is preempted, and if the new drawable is different than the old, a VideoNotify event with detail Preempted is generated for the old drawable. If the port is grabbed by another client, this request is ignored, and a VideoNotify event with detail Busy is generated for the drawable. GC components: subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. Errors: {Match, Value, GContext, Port, Alloc} GetStill port: PORT drawable: DRAWABLE gc: GCONTEXT vid-x, vid-y: INT16 vid-w, vid-h: CARD16 drw-x, drw-y: INT16 drw-w, drw-h: CARD16 The GetStill request outputs video from a drawable. The position and size of the destination rectangle is specified by vid-x, vid-y, vid-w, and vid-h. The position and size of the source rectangle is specified by drw-x, drw-y, drw-w, and drw-h. Drawable data is clipped to the bounds of the drawable, scaled to the requested video region size (or the closest size supported) and clipped to the bounds of the video encoding. The contents of any region not updated with drawable data is undefined. If the still is successfully captured a VideoNotify event with detail Still is generated for the drawable. If the port is grabbed by another client, this request is ignored, and a VideoNotify event with detail Busy is generated for the drawable. GC components: subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. Errors: {Match, Value, GContext, Port, Alloc} Grab Requests ------------- GrabPort port: PORT timestamp: {TIMESTAMP, CurrentTime} ==> status: {Success, AlreadyGrabbed, InvalidTime} The GrabPort request grabs a port. While a port is grabbed, only video requests from the grabbing client are permitted. If timestamp specifies a time older than the current port time, a status of InvalidTime is returned. If the port is already grabbed by another client, a status of AlreadyGrabbed is returned. Otherwise a status of Success is returned. The port time is updated when the following requests are processed: GrabPort, UngrabPort, PutVideo, PutStill, GetVideo, GetStill If the port is actively processing video for another client, the video is preempted, and an VideoNotify event with detail Preempted is generated for its drawable. Errors: {Port} UngrabPort port: PORT timestamp: {TIMESTAMP, CurrentTime} The UngrabPort request ungrabs a port. If timestamp specifies a time before the last connection request time of this port, the request is ignored. Errors: {Port} Other Requests -------------- StopVideo port: PORT drawable: DRAWABLE The StopVideo request stops active video for the specified port and drawable. If the port isn't processing video, or if it is processing video in a different drawable, the request is ignored. When video is stopped a VideoNotify event with detail Stopped is generated for the associated drawable. Errors: {Drawable, Port} SelectVideoNotify drawable: DRAWABLE onoff: BOOL The SelectVideoNotify request enables or disables VideoNotify event delivery to the requesting client. VideoNotify events are generated when video starts and stops. Errors: {Drawable} SelectPortNotify port: PORT onoff: BOOL The SelectPortNotify request enables or disables PortNotify event delivery to the requesting client. PortNotify events are generated when port attributes are changed using SetPortAttribute. Errors: {Port} QueryBestSize port: PORT motion: BOOL vid-w, vid-h: CARD16 drw-w, drw-h: CARD16 ==> actual-width, actual-height: CARD16 The QueryBestSize request returns, for the given source size and desired destination size, the closest destination size that the port adaptor supports. The returned size will be equal or smaller than the requested size if one is supported. If motion is True then the requested size is intended for use with full motion video. If motion is False, the requested size is intended for use with stills only. The returned size is also chosen to maintain the requested aspect ratio if possible. Errors: {Port} SetPortAttribute port: PORT attribute: ATOM value: INT32 The SetPortAttribute request sets the value of a port attribute. The port attribute is identified by the attribute atom. The following strings are guaranteed to generate valid atoms using the InternAtom request. String Type ----------------------------------------------------------------- "XV_ENCODING" ENCODINGID "XV_HUE" [-1000..1000] "XV_SATURATION" [-1000..1000] "XV_BRIGHTNESS" [-1000..1000] "XV_CONTRAST" [-1000..1000] If the given attribute doesn't match an attribute supported by the port adaptor a Match error is generated. The supplied encoding must be one of the encodings listed for the adaptor, otherwise an Encoding error is generated. If the adaptor doesn't support the exact hue, saturation, brightness, and contrast levels supplied, the closest levels supported are assumed. The GetPortAttribute request can be used to query the resulting levels. When a SetPortAttribute request is processed a PortNotify event is generated for all clients that have requested port change notification using SelectPortNotify. Errors: {Port, Match, Value} GetPortAttribute port: PORT attribute: ATOM ==> value: INT32 The GetPortAttribute request returns the current value of the attribute identified by the given atom. If the given atom doesn't match an attribute supported by the adaptor a Match error is generated. Errors: {Port, Match} Events ------ VideoNotify drawable: DRAWABLE port: PORT reason: REASON time: TIMESTAMP REASON: {Started, Still, Stopped, Busy, Preempted, HardError} A VideoNotify event is generated when video activity is started, stopped, or unable to proceed in a drawable. A Started reason is generated when video starts in a drawable. A Stopped reason is generated when video is stopped in a drawable upon request. A Busy reason is generated when a put or get request cannot proceed because the port is grabbed by another client. A Preempted reason is generated when video is stopped by a conflicting request. A HardError reason is generated when the video port cannot initiate or continue processing a video request because of an underlying transmission or reception error. PortNotify port: PORT attribute: ATOM value: INT32 time: TIMESTAMP The PortNotify event is generated when a SetPortAttribute request is processed. The event is delivered to all clients that have performed a SelectPortNotify request for the port. The event contains the atom identifying the attribute that changed, and the new value of that attribute. xorgproto-2023.2/windowswmproto.pc.in0000644000175000017500000000021714443010026014633 00000000000000prefix=@prefix@ includedir=@includedir@ Name: WindowsWMProto Description: WindowsWM extension headers Version: 1.0.4 Cflags: -I${includedir} xorgproto-2023.2/compositeproto.txt0000644000175000017500000002760014443010026014414 00000000000000 Composite Extension Version 0.4 2007-7-3 Keith Packard keithp@keithp.com Deron Johnson deron.johnson@sun.com 1. Introduction Many user interface operations would benefit from having pixel contents of window hierarchies available without respect to sibling and antecedent clipping. In addition, placing control over the composition of these pixel contents into a final screen image in an external application will enable a flexible system for dynamic application content presentation. 2. Acknowledgements This small extension has been brewing for several years, contributors to both early prototypes and the final design include: + Bill Haneman for motivating the ability to magnify occluded windows with his work on accessibility + Carsten Haitzler for Enlightenment, the original eye-candy window manager which demonstrated that clever hacks are an awfully close substitute for changes in the underlying system. + Jim Gettys for key insights into the relationship between damage events and per-window pixmap usage + Mike Harris and Owen Taylor for figuring out what to call it. + Deron Johnson for the Looking Glass implementation and a prototype of the coordinate transformation mechanism. + Ryan Lortie for helping figure out reasonable parent clipping semantics in the presence of manual redirected children. 3. Architecture The composite extension provides three related mechanisms: 1. Per-hierarchy storage. The rendering of an entire hierarchy of windows is redirected to off-screen storage. The pixels of that hierarchy are available whenever it is viewable. Storage is automatically reallocated when the top level window changes size. Contents beyond the geometry of the top window are not preserved. 2. Automatic shadow update. When a hierarchy is rendered off-screen, the X server provides an automatic mechanism for presenting those contents within the parent window. The implementation is free to make this update lag behind actual rendering operations by an unspecified amount of time. This automatic update mechanism may be disabled so that the parent window contents can be completely determined by an external application. 3. External parent - child pointer coordinate transformation. When a hierarchy is under manual compositing, the relationship of coordinates within the parent to those in the child may not be known within the X server. This mechanism provides for redirection of these transformations through a client. Per-hierarchy storage may be created for individual windows or for all children of a window. Manual shadow update may be selected by only a single application for each window; manual update may also be selected on a per-window basis or for each child of a window. Detecting when to update may be done with the Damage extension. The off-screen storage includes the window contents, its borders and the contents of all descendants. 3.1 NameWindowPixmap Version 0.2 of the protocol introduces a mechanism for associating an XID with the off-screen pixmap used to store these contents. This can be used to hold onto window contents after the window is unmapped (and hence animate it's disappearance), and also to access the border of the window, which is not reachable through the Window ID itself. A new pixmap is created each time the window is mapped or resized; as these events are nicely signalled with existing events, no additional notification is needed. The old pixmap will remain allocated as long as the Pixmap ID is left valid, it is important that the client use the FreePixmap request when it is done with the contents and to create a new name for the newly allocated pixmap. In automatic update mode, the X server is itself responsible for presenting the child window contents within the parent. It seems reasonable, then, for rendering to the parent window to be clipped so as not to interfere with any child window content. In an environment with a mixture of manual and automatic updating windows, rendering to the parent in the area nominally occupied by a manual update window should be able to affect parent pixel values in those areas, but such rendering should be clipped to automatic update windows, and presumably to other manual update windows managed by other applications. In any of these cases, it should be easy to ensure that rendering has no effect on any non-redirected windows. Instead of attempting to define new clipping modes for rendering, the Composite extension instead defines ClipByChildren rendering to the parent to exclude regions occupied by redirected windows (either automatic or manual). The CreateRegionFromBorderClip request can be used along with IncludeInferiors clipping modes to restrict manual shadow updates to the apporpriate region of the screen. Bracketing operations with GrabServer/UngrabServer will permit atomic sequences that can update the screen without artifact. As all of these operations are asynchronous, network latency should not adversely affect update latency. 3.2 Composite Overlay Window Version 0.3 of the protocol adds the Composite Overlay Window, which provides compositing managers with a surface on which to draw without interference. This window is always above normal windows and is always below the screen saver window. It is an InputOutput window whose width and height are the screen dimensions. Its visual is the root visual and its border width is zero. Attempts to redirect it using the composite extension are ignored. This window does not appear in the reply of the QueryTree request. It is also an override redirect window. These last two features make it invisible to window managers and other X11 clients. The only way to access the XID of this window is via the CompositeGetOverlayWindow request. Initially, the Composite Overlay Window is unmapped. CompositeGetOverlayWindow returns the XID of the Composite Overlay Window. If the window has not yet been mapped, it is mapped by this request. When all clients who have called this request have terminated their X11 connections the window is unmapped. Composite managers may render directly to the Composite Overlay Window, or they may reparent other windows to be children of this window and render to these. Multiple clients may render to the Composite Overlay Window, create child windows of it, reshape it, and redefine its input region, but the specific arbitration rules followed by these clients is not defined by this specification; these policies should be defined by the clients themselves. 3.3 Clipping semantics redefined Version 0.4 of the protocol changes the semantics of clipping in the presence of manual redirect children. In version 0.3, a parent was always clipped to child windows, independent of the kind of redirection going on. With version 0.4, the parent is no longer clipped to child windows which are manually redirected. This means the parent can draw in the child region without using IncludeInferiors mode, and (perhaps more importantly), it will receive expose events in those regions caused by other actions. This new behaviour is not selectable. 4. Errors The composite extension does not define any new errors. 5. Types UPDATETYPE { Automatic, Manual } CompositeCoordinate child: Window x, y: CARD16 7. Extension Initialization The client must negotiate the version of the extension before executing extension requests. Otherwise, the server will return BadRequest for any operations other than QueryVersion. QueryVersion client-major-version: CARD32 client-minor-version: CARD32 -> major-version: CARD32 minor-version: CARD32 The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the client's responsibility to ensure that the server supports a version which is compatible with its expectations. Servers are encouraged to support multiple versions of the extension. 8. Hierarchy Redirection RedirectWindow window: Window update: UPDATETYPE errors: Window, Access, Match The hierarchy starting at 'window' is directed to off-screen storage. 'update' specifies whether the contents are mirrored to the parent window automatically or not. Only one client may specify an update type of Manual, another attempt will result in an Access error. When all clients enabling redirection terminate, the redirection will automatically be disabled. The root window may not be redirected. Doing so results in a Match error. RedirectSubwindows window: Window update UPDATETYPE errors: Window, Access Hierarchies starting at all current and future children of window will be redirected as in RedirectWindow. If update is Manual, then painting of the window background during window manipulation and ClearArea requests is inhibited. UnredirectWindow: window: Window update: UPDATETYPE errors: Window, Value Redirection of the specified window will be terminated. If the specified window was not selected for redirection by the current client, or if the update type does not match the current client's previously requested update type, a 'Value' error results. UnredirectSubwindows: window: Window update: UPDATETYPE errors: Window, Value Redirection of all children of window will be terminated. If the specified window was not selected for sub-redirection by the current client, or if the update type does not match the current client's previously requested update type, a 'Value' error results. 9. Clip lists CreateRegionFromBorderClip region: Region window: Window errors: Window, IDChoice This request creates a region containing the "usual" border clip value; that is the area of the window clipped against siblings and the parent. This region can be used to restrict rendering to suitable areas while updating only a single window. The region is copied at the moment the request is executed; future changes to the window hierarchy will not be reflected in this region. 10. Associating a Pixmap ID with the off-screen storage (0.2 and later) NameWindowPixmap window: Window pixmap: Pixmap errors: Window, Match, IDChoice This request makes 'pixmap' a reference to the off-screen storage for 'window'. This pixmap will remain allocated until freed, even if 'window' is unmapped, reconfigured or destroyed. However, 'window' will get a new pixmap allocated each time it is mapped or resized, so this request will need to be reinvoked for the client to continue to refer to the storage holding the current window contents. Generates a 'Match' error if 'window' is not redirected or is not visible. 11. Composite Overlay Window (0.3 and later) CompositeGetOverlayWindow window: Window -> overlayWin: Window This request returns the XID of the Composite Overlay Window for the screen specified by the argument 'window'. This request indicates that the client wishes to use the Composite Overlay Window of this screen. If this Composite Overlay Window has not yet been mapped, it is mapped by this request. The Composite Overlay Window for a particular screen will be unmapped when all clients who have invoked this request have also invoked CompositeReleaseOverlayWindow for that screen. Also, CompositeReleaseOverlayWindow for a screen will be implicitly called when a client using the Composite Overlay Window on that screen terminates its X11 connection. CompositeReleaseOverlayWindow window: Window This request specifies that the client is no longer using the Composite Overlay Window on the screen specified by the argument 'window'. A screen's Composite Overlay Window is unmapped when there are no longer any clients using it. xorgproto-2023.2/config.sub0000755000175000017500000010512114443010030012536 00000000000000#!/usr/bin/sh # Configuration validation subroutine script. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-01-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) # A lone config we happen to match not fitting any pattern case $field1-$field2 in decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 basic_os=$field2 ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | convergent* | ncr* | news | 32* | 3600* | 3100* \ | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ultra | tti* | harris | dolphin | highlevel | gould \ | cbm | ns | masscomp | apple | axis | knuth | cray \ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 basic_os= ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; convex-c1) basic_machine=c1-convex basic_os=bsd ;; convex-c2) basic_machine=c2-convex basic_os=bsd ;; convex-c32) basic_machine=c32-convex basic_os=bsd ;; convex-c34) basic_machine=c34-convex basic_os=bsd ;; convex-c38) basic_machine=c38-convex basic_os=bsd ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) cpu=m68k vendor=motorola ;; dpx2*) cpu=m68k vendor=bull basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next case $basic_os in openstep*) ;; nextstep*) ;; ns2*) basic_os=nextstep2 ;; *) basic_os=nextstep3 ;; esac ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x$basic_os != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | linux-musl* | linux-relibc* | linux-uclibc* ) ;; uclinux-uclibc* ) ;; -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 exit 1 ;; kfreebsd*-gnu* | kopensolaris*-gnu*) ;; vxworks-simlinux | vxworks-simwindows | vxworks-spe) ;; nto-qnx*) ;; os2-emx) ;; *-eabi* | *-gnueabi*) ;; -*) # Blank kernel with real OS is always fine. ;; *-*) echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xorgproto-2023.2/COPYING-dri3proto0000644000175000017500000000215014443010026013534 00000000000000Copyright © 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. xorgproto-2023.2/autogen.sh0000755000175000017500000000053614443010026012565 00000000000000#! /bin/sh srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd "$srcdir" autoreconf -v --install || exit 1 cd "$ORIGDIR" || exit $? git config --local --get format.subjectPrefix >/dev/null 2>&1 || git config --local format.subjectPrefix "PATCH xorgproto" if test -z "$NOCONFIGURE"; then exec "$srcdir"/configure "$@" fi xorgproto-2023.2/COPYING-kbproto0000644000175000017500000000222414443010026013271 00000000000000Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. xorgproto-2023.2/xf86bigfontproto.pc.in0000644000175000017500000000022314443010026014736 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86BigFontProto Description: XF86BigFont extension headers Version: 1.2.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-printproto0000644000175000017500000000301614443010026014031 00000000000000(c) Copyright 1996 Hewlett-Packard Company (c) Copyright 1996 International Business Machines Corp. (c) Copyright 1996, Oracle and/or its affiliates. (c) Copyright 1996 Novell, Inc. (c) Copyright 1996 Digital Equipment Corp. (c) Copyright 1996 Fujitsu Limited (c) Copyright 1996 Hitachi, Ltd. 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 COPYRIGHT HOLDERS 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 copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from said copyright holders. xorgproto-2023.2/COPYING-xf86rushproto0000644000175000017500000000233714443010026014377 00000000000000Permission 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project. xorgproto-2023.2/COPYING-xwaylandproto0000644000175000017500000000214514443010026014526 00000000000000Copyright 2022 Red Hat, Inc. 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. xorgproto-2023.2/renderproto.txt0000644000175000017500000011166114443010026013672 00000000000000 The X Rendering Extension Version 0.11 2009-07-15 Keith Packard keithp@keithp.com 1. Introduction The X Rendering Extension (Render) introduces digital image composition as the foundation of a new rendering model within the X Window System. Rendering geometric figures is accomplished by client-side tessellation into either triangles or trapezoids. Text is drawn by loading glyphs into the server and rendering sets of them. 2. Acknowledgments This extension was the work of many people, in particular: + Thomas Porter and Tom Duff for their formal description of image compositing. + Rob Pike and Russ Cox who designed the Plan 9 window system from which the compositing model was lifted. + Juliusz Chroboczek and Raph Levien whose proposal for client-side glyph management eliminated font handling from the X server. + Jon Leech, Brad Grantham and Allen Akin for patiently explaining how OpenGL works. + Carl Worth for providing the sample implementation of trapezoid rendering and showing how broken the spec was + Sam Pottle and Jamey Sharp for helping demonstrate the correctness of the trapezoid specification. + Owen Taylor for helping specify projective transformations 3. Rendering Model Render provides a single rendering operation which can be used in a variety of ways to generate images: dest = (source IN mask) OP dest Where 'IN' is the Porter/Duff operator of that name and 'OP' is any of the list of compositing operators described below, among which can be found all of the Porter/Duff binary operators. To use this operator several additional values are required: + The destination rectangle. This is a subset of the destination within which the rendering is performed. + The source location. This identifies the coordinate in the source aligned with the upper left corner of the destination rectangle. + The mask location. This identifies the coordinate in the mask aligned with the upper left corner of the destination rectangle. + A clip list. This limits the rendering to the intersection of the destination rectangle with this clip list. + The OP to use + Whether the source should be repeated to cover the destination rectangle, extended with a constant pixel value or extended by using the nearest available source pixel. + Whether the mask should be repeated to cover the destination rectangle, extended with a constant pixel value or extended by using the nearest available mask pixel. + Whether the mask has a single alpha value for all four channels or whether each mask channel should affect the associated source/dest channels. + Whether the source should be reshaped with a projective transformation, and if so, what filter to apply while resampling the data. + Whether the mask should be reshaped with a projective transformation, and if so, what filter to apply while resampling the data. These parameters are variously attached to the operands or included in each rendering request. 4. Data types The core protocol rendering system uses a pixel model and applies color only in the final generation of the video signal. A compositing model operates on colors, not pixel values so a new datatype is needed to interpret data as color instead of just bits. The "PictFormat" object holds information needed to translate pixel values into red, green, blue and alpha channels. The server has a list of picture formats corresponding to the various visuals on the screen. There are two classes of formats, Indexed and Direct. Indexed PictFormats hold a list of pixel values and RGBA values while Direct PictFormats hold bit masks for each of R, G, B and A. The "Picture" object contains a Drawable, a PictFormat and some rendering state. More than one Picture can refer to the same Drawable. 5. Errors Errors are sent using core X error reports. PictFormat A value for a PICTFORMAT argument does not name a defined PICTFORMAT. Picture A value for a PICTURE argument does not name a defined PICTURE. PictOp A value for a PICTOP argument does not name a defined PICTOP. GlyphSet A value for a GLYPHSET argument does not name a defined GLYPHSET. Glyph A value for a GLYPH argument does not name a defined GLYPH in the glyphset. 6. Protocol Types PICTURE 32-bit value (top three bits guaranteed to be zero) PICTFORMAT 32-bit value (top three bits guaranteed to be zero) PICTTYPE { Indexed, Direct } PICTOP { Clear, Src, Dst, Over, OverReverse, In, InReverse, Out, OutReverse, Atop, AtopReverse, Xor, Add, Saturate, DisjointClear, DisjointSrc, DisjointDst, DisjointOver, DisjointOverReverse, DisjointIn, DisjointInReverse, DisjointOut, DisjointOutReverse, DisjointAtop, DisjointAtopReverse, DisjointXor, ConjointClear, ConjointSrc, ConjointDst, ConjointOver, ConjointOverReverse, ConjointIn, ConjointInReverse, ConjointOut, ConjointOutReverse, ConjointAtop, ConjointAtopReverse, ConjointXor, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion, HSLHue, HSLSaturation, HSLColor, HSLLuminosity } SUBPIXEL { Unknown, HorizontalRGB, HorizontalBGR, VerticalRGB, VerticalBGR, None } COLOR [ red, green, blue, alpha: CARD16 ] CHANNELMASK [ shift, mask: CARD16 ] DIRECTFORMAT [ red, green, blue, alpha: CHANNELMASK ] INDEXVALUE [ pixel: Pixel; red, green, blue, alpha: CARD16 ] PICTFORMINFO [ id: PICTFORMAT type: PICTTYPE depth: CARD8 direct: DIRECTFORMAT colormap: COLORMAP or None ] PICTVISUAL [ visual: VISUALID or None format: PICTFORMAT ] PICTDEPTH [ depth: CARD8 visuals: LISTofPICTVISUAL ] PICTSCREEN LISTofPICTDEPTH FIXED 32-bit value (top 16 are integer portion, bottom 16 are fraction) TRANSFORM [ p11, p12, p13: FIXED p21, p22, p23: FIXED p31, p32, p33: FIXED ] POINTFIX [ x, y: FIXED ] POLYEDGE { Sharp, Smooth } POLYMODE { Precise, Imprecise } REPEAT { None, Regular, Pad, Reflect } COLORPOINT [ point: POINTFIX color: COLOR ] SPANFIX [ left, right, y: FIXED ] COLORSPANFIX [ left, right, y: FIXED left_color: COLOR right_color: COLOR QUAD [ p1, p2, p3, p4: POINTFIX ] TRIANGLE [ p1, p2, p3: POINTFIX ] LINEFIX [ p1, p2: POINTFIX ] TRAP [ top, bottom: SPANFIX ] TRAPEZOID [ top, bottom: FIXED left, right: LINEFIX ] (TRAPEZOID is deprecated) GLYPHSET 32-bit value (top three bits guaranteed to be zero) GLYPH 32-bit value GLYPHINFO [ width, height: CARD16 x, y: INT16 off-x, off-y: INT16 ] PICTGLYPH [ info: GLYPHINFO x, y: INT16 ] GLYPHABLE GLYPHSET or FONTABLE GLYPHELT8 [ dx, dy: INT16 glyphs: LISTofCARD8 ] GLYPHITEM8 GLYPHELT8 or GLYPHABLE GLYPHELT16 [ dx, dy: INT16 glyphs: LISTofCARD16 ] GLYPHITEM16 GLYPHELT16 or GLYPHABLE GLYPHELT32 [ dx, dy: INT16 glyphs: LISTofCARD32 ] GLYPHITEM32 GLYPHELT32 or GLYPHABLE ANIMCURSORELT [ cursor: CURSOR delay: CARD32 ] 7. Standard PictFormats The server must support a Direct PictFormat with 8 bits each of red, green, blue and alpha as well as a Direct PictFormat with 8 bits of red, green and blue and 0 bits of alpha. The server must also support Direct PictFormats with 1, 4 and 8 bits of alpha and 0 bits of r, g and b. Pixel component values lie in the close range [0,1]. These values are encoded in a varying number of bits. Values are encoded in a straight forward manner. For a component encoded in m bits, a binary encoding b is equal to a component value of b/(2^m-1). A Direct PictFormat with zero bits of alpha component is declared to have alpha == 1 everywhere. A Direct PictFormat with zero bits of red, green and blue is declared to have red, green, blue == 0 everywhere. If any of red, green or blue components are of zero size, all are of zero size. Direct PictFormats never have colormaps and are therefore screen independent. Indexed PictFormats never have alpha channels and the direct component is all zeros. Indexed PictFormats always have a colormap in which the specified colors are allocated read-only and are therefore screen dependent. Drawing to in Indexed Picture uses only pixel values listed by QueryPictIndexValues. Reading from an Indexed Picture uses red, green and blue values from the colormap and alpha values from those listed by QueryPictIndexValues. Pixel values not present in QueryPictIndexValues are given alpha values of 1. 8. Compositing Operators For each pixel, the four channels of the image are computed with: C = Ca * Fa + Cb * Fb where C, Ca, Cb are the values of the respective channels and Fa and Fb come from the following table: PictOp Fa Fb -------------------------------------------------- Clear 0 0 Src 1 0 Dst 0 1 Over 1 1-Aa OverReverse 1-Ab 1 In Ab 0 InReverse 0 Aa Out 1-Ab 0 OutReverse 0 1-Aa Atop Ab 1-Aa AtopReverse 1-Ab Aa Xor 1-Ab 1-Aa Add 1 1 Saturate min(1,(1-Ab)/Aa) 1 DisjointClear 0 0 DisjointSrc 1 0 DisjointDst 0 1 DisjointOver 1 min(1,(1-Aa)/Ab) DisjointOverReverse min(1,(1-Ab)/Aa) 1 DisjointIn max(1-(1-Ab)/Aa,0) 0 DisjointInReverse 0 max(1-(1-Aa)/Ab,0) DisjointOut min(1,(1-Ab)/Aa) 0 DisjointOutReverse 0 min(1,(1-Aa)/Ab) DisjointAtop max(1-(1-Ab)/Aa,0) min(1,(1-Aa)/Ab) DisjointAtopReverse min(1,(1-Ab)/Aa) max(1-(1-Aa)/Ab,0) DisjointXor min(1,(1-Ab)/Aa) min(1,(1-Aa)/Ab) ConjointClear 0 0 ConjointSrc 1 0 ConjointDst 0 1 ConjointOver 1 max(1-Aa/Ab,0) ConjointOverReverse max(1-Ab/Aa,0) 1 ConjointIn min(1,Ab/Aa) 0 ConjointInReverse 0 min(Aa/Ab,1) ConjointOut max(1-Ab/Aa,0) 0 ConjointOutReverse 0 max(1-Aa/Ab,0) ConjointAtop min(1,Ab/Aa) max(1-Aa/Ab,0) ConjointAtopReverse max(1-Ab/Aa,0) min(1,Aa/Ab) ConjointXor max(1-Ab/Aa,0) max(1-Aa/Ab,0) Saturate and DisjointOverReverse are the same. They match OpenGL compositing with FUNC_ADD, SRC_ALPHA_SATURATE, ONE, except that Render uses premultiplied alpha while Open GL uses non-premultiplied alpha. The result of any compositing operator is always limited to the range [0,1] for each component. Components whose value would be greater than 1 are set to 1. For operations involving division, when the divisor is zero, define the quotient to be positive infinity. The result is always well defined because the division is surrounded with a max or min operator which will give a finite result. When the mask contains separate alpha values for each channel, the alpha value resulting from the combination of that value with the source alpha channel is used in the final image composition. 9. Source and Mask Transformations When fetching pixels from the source or mask pictures, Render provides four options for pixel values which fall outside the drawable (this includes pixels within a window geometry obscured by other windows). + None. Missing values are replaced with transparent. + Pad. Replace missing pixels with the nearest available pixel. Where multiple pixels are equidistant, select those with smallest Y and then smallest X coordinates + Normal. Select the pixel which would appear were the drawable tiled to enclose the missing coordinate. If the tiling doesn't cover the coordinate, use the selected Constant or Nearest mode. * Reflect. Select the pixel which would appear were the drawable tiled to enclose the missing coordinate in such a way that tiles in even numbered columns are reflected in the Y axis, and tiles in even numbered rows are reflected in the X axis. Tiles that in both an even numbered row and an even numbered column are reflected in both axes. To construct the source and mask operands, the computed pixels values are transformed through a homogeneous matrix, filtered and then used in the fundamental rendering operator described above. Each screen provides a list of supported filter names. There are a few required filters, and several required filter alias which must map to one of the available filters. 10. Polygon Rasterization Render provides only two kinds of polygons, trapezoids and triangles. To improve efficiency, several different wire encodings exist for each. All trapezoids must be convex. Rendering of concave trapezoids is unspecified except that the result must obey the clipping rules. Composite Polygons are rasterized by implicit generating an alpha mask and using that in the general compositing operator along with a supplied source image: tmp = Rasterize (polygon) Composite (op, dst, src, tmp) When rasterized with Sharp edges, the mask is computed with a depth of 1 so that all of the mask values are either 0 or 1. When rasterized with Smooth edges, the mask is generated by creating a square around each pixel coordinate and computing the amount of that square covered by the polygon. This ignores sampling theory but it provides a precise definition which is close to the right answer. This value is truncated to the alpha width in the fallback format before application of the compositing operator. Rasterization Alpha values are generated by point sampling the coverage of a square surrounding the center of each pixel by the polygon. In Precise poly mode, the sample points are located in a regular grid. When alpha depth 'e' is even, the regular grid is 2**(e/2) + 1 samples wide and 2**(e/2) -1 samples high. For odd alpha depth 'o', the sample grid is 2**o - 1 samples wide and 1 sample high. Note that odd alpha depth usually occurs only at depth 1, so this misshapen sample grid has no ill effects. The sample grid is centered within the pixel and then each sample point is rounded down to a point on the sub-pixel coordinate grid. In Imprecise mode, the location of the sample points is not specified, but the implementation must conform to the following constraints: + Abutting edges must match precisely. When specifying two polygons abutting along a common edge, if that edge is specified with the same coordinates in each polygon then the sum of alpha values for pixels inside the union of the two polygons must be precisely one. + Translationally invariant. The pixelization of the polygon must be the same when either the polygon or the target drawable are translated by any whole number of pixels in any direction. + Sharp edges are honored. When the polygon is rasterized with Sharp edges, the implicit alpha mask will contain only 1 or 0 for each pixel. + Order independent. Two identical polygons specified with vertices in different orders must generate identical results. 11. Image Filtering When computing pixels from source and mask images, a filter may be applied to the data. This is usually used with a non-identity transformation matrix, but filtering may be applied with an identity transformation. Each filter is given a unique name encoded as an ISO Latin-1 string. Filters may be configured with a list of fixed point values; the number of parameters and their interpretation is currently left to conventions passed outside of the protocol. A set of standard filters are required to be provided: Filter Name Description nearest Nearest neighbor filtering bilinear Linear interpolation in two dimensions Additional names may be provided for any filter as aliases. A set of standard alias names are required to be mapped to a provided filter so that applications can use the alias names without checking for availability. Alias name Intended interpretation fast High performance, quality similar to Nearest good Reasonable performance, quality similar to Bilinear best Highest quality available, performance may not be suitable for interactive use Aliases must map directly to a non-aliased filter name. There is also a set of standard filters which are not required but may be provided. If they are provided, using the standard name, they must match the definition specified here. Filter Name Description convolution MxN convolution filter. The values specified in SetPictureFilter are M, N and then M * N filter parameters. M and N must be integers represented as fixed point numbers. gaussian Gaussian blur. The value specified is a radius in pixels (which can be fractional). A standard Gaussian 2D convolution filter will be applied. binomial Binomial blur. An approximation of a Gaussian blur using binomial coefficients 12. Glyph Rendering Glyphs are small alpha masks which can be stored in the X server and rendered by referring to them by name. A set of glyphs can be rendered in a single request. Glyphs are positioned by subtracting the x, y elements of the GLYPHINFO from the requested rendering position. The next glyph rendering position is set to the current rendering position plus the off-x and off-y elements. Glyphs are stored in GlyphSets and are named within the GlyphSet with client-specified 32-bit numbers. Glyphs can be stored in any PictFormat supported by the server. All glyphs in a GlyphSet are stored in the same format. 13. Extension Initialization The client must negotiate the version of the extension before executing extension requests. Behavior of the server is undefined otherwise. QueryVersion client-major-version: CARD32 client-minor-version: CARD32 -> major-version: CARD32 minor-version: CARD32 The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. QueryPictFormats -> formats: LISTofPICTFORMINFO screens: LISTofPICTSCREEN ndepths: CARD32 nvisuals: CARD32 subpixels: LISTofSUBPIXEL Errors: The server responds with a list of supported PictFormats and a list of which PictFormat goes with each visual on each screen. Every PictFormat must match a supported depth, but not every PictFormat need have a matching visual. The total number of PICTDEPTH and PICTVISUAL objects is this reply is given in 'ndepths' and 'nvisuals'. The relationship between the red, green and blue elements making up each pixel indexed by screen is returned in subpixels. This list is not present in servers advertising protocol versions earlier than 0.6. This list may be shorter than the number of screens, in which case the remaining screens are given sub pixel order Unknown. QueryPictIndexValues format: PICTFORMAT -> values: LISTofINDEXVALUE Errors: PictFormat, Match Returns the mapping from pixel values to RGBA values for the specified Indexed PictFormat. If 'format' does not refer to an Indexed PictFormat a Match error is generated. QueryFilters drawable: DRAWABLE -> filters: LISTofSTRING8 aliases: LISTofCARD16 This request gets the names of available filters that can be used on the given drawable. Filters are applied using a SetPictureFilter request. 'aliases' contains a value for each filter name which is the index into 'filters' if this name is an alias. Non-aliased filter have this value set to 0xFFFF. 14. Extension Requests CreatePicture pid: PICTURE drawable: DRAWABLE format: PICTFORMAT value-mask: BITMASK value-list: LISTofVALUE Errors: Alloc, Drawable, IDChoice, Match, Pixmap, Picture, PictFormat, Value This request creates a Picture object associated with the specified drawable and assigns the identifier pid to it. Pixel data in the image are interpreted according to 'format'. It is a Match error to specify a format with a different depth than the drawable. If the drawable is a Window then the Red, Green and Blue masks must match those in the visual for the window else a Match error is generated. The value-mask and value-list specify attributes of the picture that are to be explicitly initialized. The possible values are: repeat: REPEAT alpha-map: PICTURE or None alpha-x-origin: INT16 alpha-y-origin: INT16 clip-x-origin: INT16 clip-y-origin: INT16 clip-mask: PIXMAP or None graphics-exposures: BOOL subwindow-mode: { ClipByChildren, IncludeInferiors } poly-edge: POLYEDGE poly-mode: POLYMODE dither: ATOM or None component-alpha: BOOL When used as a source or mask operand, Repeat indicates how the drawable contents should be extended in both directions. The alpha channel of alpha-map is used in place of any alpha channel contained within the drawable for all rendering operations. The alpha-mask origin is interpreted relative to the origin of drawable. Rendering is additionally clipped by the geometry and clip mask of alpha-map. Exposures to the window do not affect the contents of alpha-map. Alpha-map must refer to a picture containing a Pixmap, not a Window (or a Match error results). If the alpha-map picture itself already has an alpha-map, the result is undefined. The clip-mask restricts reads and writes to drawable. Only pixels where the clip-mask has bits set to 1 are read or written. Pixels are not accessed outside the area covered by the clip-mask or where the clip-mask has bits set to 0. The clip-mask affects all graphics requests, including sources. The clip-mask origin is interpreted relative to the origin of the picture. If a pixmap is specified as the clip-mask, it must have depth 1 and have the same root as the drawable (or a Match error results). If clip-mask is None, then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the SetPictureClipRectangles request. Transformations, filters and repeat modes do not affect the clip mask. When a window is used as a destination, the subwindow_mode determines what happens to pixels obscured by inferior windows. For ClipByChildren the window is clipped by inferiors and siblings. For IncludeInferior, the window is clipped by siblings, but not by inferiors. When a window is used as source or mask, the subwindow_mode is ignored. Pixels that are obscured by other windows, whether siblings or inferiors, have undefined contents. The graphics-exposures flag is ignored. GraphicsExposure events are never generated by this extension. Poly-edge and poly-mode control the rasterization of polygons as described above. Dither is ignored. Component-alpha indicates whether each image component is intended as a separate alpha value when the picture is used as a mask operand. The default component values are Component Default ------------------------------- repeat None clip-x-origin 0 clip-y-origin 0 clip-mask None subwindow-mode ClipByChildren poly-edge Smooth poly-mode Precise component-alpha False ChangePicture pid: PICTURE value-mask: BITMASK value-list: LISTofVALUE Errors: Picture, Alloc, Pixmap, PictOp, Value The value-mask and value-list specify which attributes are to be changed. The values and restrictions are the same as for CreatePicture. SetPictureClipRectangles picture: PICTURE clip-x-origin: INT16 clip-y-origin: INT16 rectangles: LISTofRECTANGLE Errors: Alloc, Picture This request changes clip-mask in picture to the specified list of rectangles and sets the clip origin. Input and output will be clipped to remain contained within the rectangles. The clip origin is interpreted relative to the origin of picture after transformations and repeats have been applied. The rectangle coordinates are interpreted relative to the clip origin. The list of rectangles can be empty, which effectively disables output. This is the opposite of passing None as the clip-mask in CreatePicture and ChangePicture. Note that output is clipped to the union of all of the rectangles and that no particular ordering among the rectangles is required. SetPictureTransform picture: PICTURE transform: TRANSFORM Errors: Alloc, Value, Picture This request changes the projective transformation used to map coordinates when 'picture' is used as the source or mask in any compositing operation. The transform maps from destination pixel geometry back to the source pixel geometry. The matrix must be invertable, else a Value error is generated. SetPictureFilter picture: PICTURE filter: STRING8 values: LISTofFIXED Errors: Value, Match, Picture This request sets the current filter used when picture is a source or mask operand. Filter must be one of the filters supported for the screen associated with picture, else a Match error is generated. If the filter accepts additional parameters, they can be provided in values, incorrect values generate Value errors, too many values generate Match errors. Too few values cause the filter to assume default values for the missing parameters. When created, Pictures are set to the Nearest filter. FreePicture pid: PICTURE Errors: Picture This request deletes the association between the resource ID and the picture. The picture storage will be freed when no other resource references it. Composite op: PICTOP src: PICTURE mask: PICTURE or None dst: PICTURE src-x, src-y: INT16 mask-x, mask-y: INT16 dst-x, dst-y: INT16 width, height: CARD16 This request combines the specified rectangle of the transformed src and mask operands with the specified rectangle of dst using op as the compositing operator. The coordinates are relative their respective (transformed) drawable's origin. Rendering is clipped to the geometry of the dst drawable and then to the dst clip-list. Pixels outside the geometry of src or mask needed for this computation are substituted as described in the Source and Mask Transformations section above. If src, mask and dst are not in the same format, and one of their formats can hold all without loss of precision, they are converted to that format. Alternatively, the server will convert each operand to the fallback format. If mask is None, it is replaced by a constant alpha value of 1. FillRectangles op: PICTOP dst: PICTURE color: COLOR rects: LISTofRECTANGLE This request combines color with the destination drawable in the area specified by rects. Each rectangle is combined separately; overlapping areas will be rendered multiple times. The effect is equivalent to compositing with a repeating source picture filled with the specified color. Trapezoids op: PICTOP src: PICTURE src-x, src-y: INT16 dst: PICTURE mask-format: PICTFORMAT or None traps: LISTofTRAPEZOID This request rasterizes the list of trapezoids. For each trap, the area between the left and right edges is filled from the top to the bottom. src-x and src-y register the pattern to the floor of the top x and y coordinate of the left edge of the first trapezoid, they are adjusted for subsequent trapezoids so that the pattern remains globally aligned within the destination. When mask-format is not None, trapezoids are rendered in the following way with the effective mask computed in mask-format: tmp = temporary alpha picture (in mask-format) Combine (Zero, tmp, tmp, None) for each trapezoid Combine (Add, tmp, trapezoid, None) Combine (op, dst, source, tmp) When mask-format is None, trapezoids are rendered in the order specified directly to the destination: for each trapezoid Combine (op, dst, source, trapezoid) (The Trapezoids request is deprecated) Triangles op: PICTOP src: PICTURE src-x, src-y: INT16 dst: PICTURE mask-format: PICTFORMAT or None triangles: LISTofTRIANGLE This request rasterizes the list of triangles in the order they occur in the list. When mask-format is not None, triangles are rendered in the following way with the effective mask computed in mask-format: tmp = temporary alpha picture (in mask-format) Combine (Zero, tmp, tmp, None) for each triangle Combine (Add, tmp, triangle, None) Combine (op, dst, source, tmp) When mask-format is None, triangles are rendered in the order specified directly to the destination: for each triangle Combine (op, dst, source, triangle) TriStrip op: PICTOP src: PICTURE src-x, src-y: INT16 dst: PICTURE mask-format: PICTFORMAT or None points: LISTofPOINTFIX Triangles are formed by initially using the first three points and then by eliminating the first point and appending the next point in the list. If fewer than three points are provided, this request does nothing. When mask-format is not None, triangles are rendered in the following way with the effective mask computed in mask-format: tmp = temporary alpha picture (in mask-format) Combine (Zero, tmp, tmp, None) for each triangle Combine (Add, tmp, triangle, None) Combine (op, dst, source, tmp) When mask-format is None, triangles are rendered in the order specified directly to the destination: for each triangle Combine (op, dst, source, triangle) TriFan op: PICTOP src: PICTURE src-x, src-y: INT16 dst: PICTURE mask-format: PICTFORMAT or None points: LISTofPOINTFIX Triangles are formed by initially using the first three points and then by eliminating the second point and appending the next point int the list. If fewer than three points are provided, this request does nothing. When mask-format is not None, triangles are rendered in the following way with the effective mask computed in mask-format: tmp = temporary alpha picture (in mask-format) Combine (Zero, tmp, tmp, None) for each triangle Combine (Add, tmp, triangle, None) Combine (op, dst, source, tmp) When mask-format is None, triangles are rendered in the order specified directly to the destination: for each triangle Combine (op, dst, source, triangle) CreateGlyphSet gsid: GLYPHSET format: PICTFORMAT Errors: Alloc, IDChoice, PictFormat, Match This request creates a container for glyphs. The glyphset and all contained glyphs are destroyed when gsid and any other names for the glyphset are freed. Format must be a Direct format, when it contains RGB values, the glyphs are composited using component-alpha True, otherwise they are composited using component-alpha False. ReferenceGlyphSet gsid: GLYPHSET existing: GLYPHSET Errors: Alloc, IDChoice, GlyphSet This request creates an additional name for the existing glyphset. The glyphset will not be freed until all references to it are destroyed. FreeGlyphSet glyphset: GLYPHSET Errors: GlyphSet This request frees the name for the glyphset. When all names have been freed, the glyphset and all contained glyphs are freed. AddGlyphs glyphset: GLYPHSET glyphids: LISTofCARD32 glyphs: LISTofGLYPHINFO data: LISTofBYTE Errors: GlyphSet, Alloc This request adds glyphs to glyphset. The image for the glyphs are stored with each glyph in a separate Z-format image padded to a 32-bit boundary. Existing glyphs with the same names are replaced. FreeGlyphs glyphset: GLYPHSET glyphs: LISTofGLYPH Errors: GlyphSet, Match This request removes glyphs from glyphset. Each glyph must exist in glyphset (else a Match error results). CompositeGlyphs8 CompositeGlyphs16 CompositeGlyphs32 op: PICTOP src: PICTURE dst: PICTURE mask-format: PICTFORMAT or None glyphset: GLYPHABLE src-x, src-y: INT16 glyphcmds: LISTofGLYPHITEM8 CompositeGlyphs8 glyphcmds: LISTofGLYPHITEM16 CompositeGlyphs16 glyphcmds: LISTofGLYPHITEM32 CompositeGlyphs32 Errors: Picture, PictOp, PictFormat, GlyphSet, Glyph The src-x and src-y coordinates are relative to the drawable's origin and specify the baseline starting position (the initial glyph origin). Each glyph item is processed in turn. A glyphset item causes the glyphset to be used for subsequent glyphs. Switching among glyphsets does not affect the next glyph origin. A glyph element delta-x and delta-y specify additional changes in the position along the x and y axes before the string is drawn; the deltas are always added to the glyph origin. All contained GLYPHSETs are always transmitted most significant byte first. If a GlyphSet error is generated for an item, the previous items may have been drawn. When mask-format is not None, glyphs are rendered in the following way with the effective mask computed in mask-format: tmp = temporary alpha picture Combine (Zero, tmp, tmp, None) for each glyph Combine (Add, tmp, glyph, None) Combine (op, dst, source, tmp) When mask-format is None, glyphs are rendered in the order specified directly to the destination: for each glyph Combine (op, dst, source, glyph) CreateCursor cid: CURSOR source: PICTURE x, y: CARD16 Errors: Alloc, IDChoice, Match, Picture This request creates a cursor and associates identifier cid with it. The x and y coordinates define the hotspot relative to the source's origin and must be a point within the source (or a Match error results). The resulting picture will nominally be drawn to the screen with PictOpOver. The components of the cursor may be transformed arbitrarily to meet display limitations. In particular, if the display supports only two colors cursors without translucency, the cursor will be transformed so that areas less than .5 alpha will be transparent, else opaque, and areas darker than 50% gray will be black else white. The source picture can be freed immediately if no further explicit references to it are to be made. Subsequent drawing in the source has an undefined effect on the cursor. The server might or might not make a copy of the picture. CreateAnimCursor cid: CURSOR cursors: LISTofANIMCURSORELT Errors: Alloc, IDChoice, Cursor This request creates a cursor and associates identifier cid with it. When active, the cursor image on the screen will cycle through 'cursors', showing each cursor in the element for the number of milliseconds indicated by the 'delay' member of that element. AddTraps picture: PICTURE off-x, off-y: INT16 trapezoids: LISTofTRAP Errors: Match Each trap is PictOpAdd'ed to 'picture'. 'off-x', 'off-y' are added to each coordinate. 'picture' must be an alpha-only picture else a 'Match' error is returned. CreateSolidFill pid: PICTURE color: COLOR Creates a Source picture that represents a solid fill with the specified color. CreateLinearGradient pid: PICTURE p1, p2: POINTFIX nstops: CARD32 stops: LISTofFIXED stop_colors: LISTofCOLOR Errors: Alloc, Value Creates a source picture representing a linear Gradient. The gradients bounds are defined by the two end points p1 and p2. The gradient has nstops stop points between 0 and 1, each having a stop color defined in stop_colors. The array of stops has to contain values between 0 and 1 (inclusive) and has to be ordered in increasing size or a Value error is generated. If p1 == p2 a Value error is generated. The colors are non premultiplied. CreateRadialGradient pid: PICTURE inner_center: POINTFIX outer_center: POINTFIX inner_radius: FIXED outer_radius: FIXED nstops: CARD32 stops: LISTofFIXED stop_colors: LISTofCOLOR Errors: Alloc, Value Creates a source picture representing a radial Gradient. The gradients bounds are defined by a center point, a focal point and a radius around the center. The gradient has nstops stop points between 0 and 1, each having a stop color defined in stop_colors. The array of stops has to contain values between 0 and 1 (inclusive) and has to be ordered in increasing size or a Value error is generated. The inner circle has to be completely contained inside the outer one or a Value error is generated. The colors are non premultiplied. CreateConicalGradient pid: PICTURE center: POINTFIX angle: FIXED nstops: CARD32 stops: LISTofFIXED stop_colors: LISTofCOLOR Errors: Alloc, Value Creates a source picture representing a conical Gradient. The gradient is defined by a center point and an angle (in degrees). The gradient has nstops stop points between 0 and 1, each having a stop color defined in stop_colors. The array of stops has to contain values between 0 and 1 (inclusive) and has to be ordered in increasing size or a Value error is generated. The colors are non premultiplied. 15. Extension Versioning The Render extension was developed in parallel with the implementation to ensure the feasibility of various portions of the design. As portions of the extension are implemented, the version number of the extension has changed to reflect the portions of the standard provided. This document describes the intent for version 1.0 of the specification, the partial implementations have version numbers less than that. Here's a list of what each version before 1.0 implemented: 0.0: No disjoint/conjoint operators No component alpha Composite CreateGlyphSet FreeGlyphSet AddGlyphs CompositeGlyphs 0.1: Component alpha FillRectangles 0.2: Disjoint/Conjoint operators 0.3: FreeGlyphs 0.4: Trapezoids Triangles TriStrip TriFan 0.5: CreateCursor 0.6: SetPictureTransform QueryFilters SetPictureFilter subpixels member of QueryPictFormats 0.7: QueryPictIndexValues 0.8: CreateAnimCursor 0.9: AddTrapezoids 0.10: CreateSolidFill CreateLinearGradient CreateRadialGradient CreateConicalGradient The repeat picture attribute now supports Pad and Reflect, older versions only supported None and Normal. 0.11: Blend mode operators xorgproto-2023.2/xf86miscproto.pc.in0000644000175000017500000000021514443010026014242 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86MiscProto Description: XF86Misc extension headers Version: 0.9.3 Cflags: -I${includedir} xorgproto-2023.2/COPYING-compositeproto0000644000175000017500000000423614443010026014704 00000000000000Copyright (c) 2006, Oracle and/or its affiliates. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. Copyright © 2003 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 Keith Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Keith Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL KEITH PACKARD 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. xorgproto-2023.2/xf86dgaproto.pc.in0000644000175000017500000000021114443010026014036 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86DGAProto Description: XF86DGA extension headers Version: 2.1 Cflags: -I${includedir} xorgproto-2023.2/xproto.pc.in0000644000175000017500000000023214443010026013041 00000000000000prefix=@prefix@ includedir=@includedir@ includex11dir=@includedir@/X11 Name: Xproto Description: Xproto headers Version: 7.0.33 Cflags: -I${includedir} xorgproto-2023.2/docbook.am0000644000175000017500000000623114443010026012521 00000000000000# # Generate output formats for a single DocBook/XML with/without chapters # # Variables set by the calling Makefile: # shelfdir: the location where the docs/specs are installed. Typically $(docdir) # docbook: the main DocBook/XML file, no chapters, appendix or image files # chapters: all files pulled in by an XInclude statement and images. # # # This makefile is intended for Users Documentation and Functional Specifications. # Do not use for Developer Documentation which is not installed and does not require olink. # Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 # for an explanation on documents classification. # # DocBook/XML generated output formats to be installed shelf_DATA = # DocBook/XML file with chapters, appendix and images it includes dist_shelf_DATA = $(docbook) $(chapters) if HAVE_XMLTO if HAVE_STYLESHEETS XMLTO_SEARCHPATH_FLAGS = \ --searchpath "$(XORG_SGML_PATH)/X11" \ --searchpath "$(abs_top_builddir)" XMLTO_HTML_OLINK_FLAGS = \ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \ --stringparam current.docid="$(<:.xml=)" XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl XMLTO_HTML_FLAGS = \ $(XMLTO_SEARCHPATH_FLAGS) \ $(XMLTO_HTML_STYLESHEET_FLAGS) \ $(XMLTO_HTML_OLINK_FLAGS) shelf_DATA += $(docbook:.xml=.html) %.html: %.xml $(chapters) $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< if HAVE_XMLTO_TEXT shelf_DATA += $(docbook:.xml=.txt) %.txt: %.xml $(chapters) $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< endif HAVE_XMLTO_TEXT if HAVE_FOP XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/ XMLTO_PDF_OLINK_FLAGS = \ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \ --stringparam current.docid="$(<:.xml=)" XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl XMLTO_FO_FLAGS = \ $(XMLTO_SEARCHPATH_FLAGS) \ $(XMLTO_FO_STYLESHEET_FLAGS) \ $(XMLTO_FO_IMAGEPATH_FLAGS) \ $(XMLTO_PDF_OLINK_FLAGS) shelf_DATA += $(docbook:.xml=.pdf) %.pdf: %.xml $(chapters) $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< shelf_DATA += $(docbook:.xml=.ps) %.ps: %.xml $(chapters) $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< endif HAVE_FOP # Generate documents cross-reference target databases if HAVE_XSLTPROC XSLT_SEARCHPATH_FLAGS = \ --path "$(XORG_SGML_PATH)/X11" \ --path "$(abs_top_builddir)" XSLT_OLINK_FLAGS = \ --stringparam targets.filename "$@" \ --stringparam collect.xref.targets "only" \ --stringparam olink.base.uri "$(@:.db=)" XSLT_HTML_FLAGS = \ $(XSLT_SEARCHPATH_FLAGS) \ $(XSLT_OLINK_FLAGS) \ --nonet --xinclude \ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl XSLT_PDF_FLAGS = \ $(XSLT_SEARCHPATH_FLAGS) \ $(XSLT_OLINK_FLAGS) \ --nonet --xinclude \ $(STYLESHEET_SRCDIR)/xorg-fo.xsl shelf_DATA += $(docbook:.xml=.html.db) %.html.db: %.xml $(chapters) $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $< shelf_DATA += $(docbook:.xml=.pdf.db) %.pdf.db: %.xml $(chapters) $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $< endif HAVE_XSLTPROC endif HAVE_STYLESHEETS endif HAVE_XMLTO CLEANFILES = $(shelf_DATA) xorgproto-2023.2/COPYING-randrproto0000644000175000017500000000234414443010026014006 00000000000000Copyright © 2000 Compaq Computer Corporation Copyright © 2002 Hewlett-Packard Company Copyright © 2006 Intel Corporation Copyright © 2008 Red Hat, Inc. 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. xorgproto-2023.2/README.md0000644000175000017500000000435614443010026012047 00000000000000X Window System Unified Protocol -------------------------------- This package provides the headers and specification documents defining the core protocol and (many) extensions for the X Window System. The extensions are those common among servers descended from X11R7. It also includes a number of headers that aren't purely protocol related, but are depended upon by many other X Window System packages to provide common definitions and porting layer. Though the protocol specifications herein are authoritative, the content of the headers is bound by compatibility constraints with older versions of the X11 suite. If you are looking for a machine-readable protocol description suitable for code generation or use in new projects, please refer to the XCB project: https://xcb.freedesktop.org/ https://gitlab.freedesktop.org/xorg/proto/xcbproto All questions regarding this software should be directed at the Xorg mailing list: https://lists.x.org/mailman/listinfo/xorg The primary development code repository can be found at: https://gitlab.freedesktop.org/xorg/proto/xorgproto Please submit bug reports and requests to merge patches there. For patch submission instructions, see: https://www.x.org/wiki/Development/Documentation/SubmittingPatches Updating for new Linux kernel releases -------------------------------------- The XF86keysym.h header file needs updating whenever the Linux kernel adds a new keycode to linux/input-event-codes.h. See the comment in include/X11/XF86keysym.h for details on the format. The steps to update the file are: - if the kernel release did not add new `KEY_FOO` defines, no work is required - ensure that libevdev has been updated to the new kernel headers. This may require installing libevdev from git. - run `scripts/keysym-generator.py` to add new keysyms. See the `--help` output for the correct invocation. - verify that the format for any keys added by this script is correct and that the keys need to be mapped. Where a key code should not get a new define or is already defined otherwise, comment the line. - file a merge request with the new changes - notify the xkeyboard-config maintainers that updates are needed Note that any #define added immediately becomes API. Due diligence is recommended. xorgproto-2023.2/dri2proto.txt0000644000175000017500000005505614443010026013260 00000000000000 The DRI2 Extension Version 2.0 2008-09-04 Kristian Høgsberg krh@redhat.com Red Hat, Inc 1. Introduction The DRI2 extension is designed to associate and access auxiliary rendering buffers with an X drawable. DRI2 is a essentially a helper extension to support implementation of direct rendering drivers/libraries/technologies. The main consumer of this extension will be a direct rendering OpenGL driver, but the DRI2 extension is not designed to be OpenGL specific. Direct rendering implementations of OpenVG, Xv, cairo and other graphics APIs should find the functionality exposed by this extension helpful and hopefully sufficient. Relation to XF86DRI 1.1. Acknowledgements Kevin E. Martin Keith Packard Eric Anholt Keith Whitwell Jerome Glisse Ian Romanick Michel Dänzer Jesse Barnes âš™ âš™ âš™ âš™ âš™ âš™ 2. DRI2 Concepts 2.1. Attachment points Stolen from OpenGL FBOs, I guess. 2.2. Kernel rendering manager This specification assumes a rendering architecture, where an underlying kernel rendering manager that can provide 32 bit integer handles to video memory buffers. These handles can be passed between processes, which, through a direct rendering driver, submit rendering to the kernel rendering manager, targeting and/or sourcing from these buffers. This extension provides a means to communicate about such buffers as associated with an X drawable. The details of how the direct rendering driver use the buffer names and submit the rendering requests is outside the scope of this specification. However, Appendix B does discuss implementation of this specification on the Graphics Execution Manager (GEM). 2.3. Request ordering No ordering between swap buffers and X rendering. X rendering to src buffers will block if they have a vblank pending. 2.4 Authentication model The purpose of the DRM authentication scheme is to grant access to the kernel rendering manager buffers created by the X server if, and only if, the client has access to the X server. This is achieved in a three-step protocol: 1) The client gets a token from the kernel rendering manager that uniquely identifies it. The token is a 32 bit integer. 2) The client passes the token to the X server in the DRI2Authenticate request. This request is a round trip to make sure the X server has received and processed the authentication before the client starts accessing the DRM. 3) The X server authorizes the client by passing the token to the kernel rendering manager. A kernel rendering manager can choose not to implement any authentication and just allow access to all buffers. 2.5 Rendering to the X front buffer OpenGL allows the client to render to the front buffer, either by using a single-buffered configuration or but explicitly setting the draw buffer to GL_FRONT_LEFT. Not allowed! The client must ask for a fake front buffer, render to that and then use DRI2CopyRegion to copy contents back and forth between the fake front buffer and the real front buffer. When X and direct rendering to a front buffer is interleaved, it is the responsibility of the application to synchronize access using glXWaitGL and glXWaitX. A DRI2 implementation of direct rendering GLX, should use these entry points to copy contents back and forth to as necessary to ensure consistent rendering. The client may also use the DRI2SwapBuffers function to request a swap of the front and back buffers. If the display server supports it, this operation may be preferred, since it may be easier and/or more performant for the server to perform a simple buffer swap rather than a blit. 2.6 Synchronizing rendering DRI2 provides several methods for synchronizing drawing with various events. The protocol for these methods is based on the SGI_video_sync and OML_sync_control GLX extensions. Using the DRI2WaitMSC request, a client can wait for a specific frame count or divisor/remainder before continuing its processing. With the DRI2WaitSBC request, clients can block until a given swap count is reached (as incremented by DRI2SwapBuffers). Finally, using DRI2SwapBuffers, clients can limit their frame rate by specifying a swap interval using the swap interval call (currently only available through GLX) or by using the OML swap buffers routine. 2.7 Events DRI2 provides an event to indicate when a DRI2SwapBuffers request has been completed. This can be used to throttle drawing on the client side and tie into application main loops. Another event is generated when the validity of the requested buffers changes. âš™ âš™ âš™ âš™ âš™ âš™ 3. Data Types The server side region support specified in the Xfixes extension version 2 is used in the CopyRegion request. âš™ âš™ âš™ âš™ âš™ âš™ 4. Errors No errors are defined by the DRI2 extension. âš™ âš™ âš™ âš™ âš™ âš™ 5. Events The only events provided by DRI2 are DRI2_BufferSwapComplete and DRI2InvalidateBuffers. âš™ âš™ âš™ âš™ âš™ âš™ 6. Protocol Types DRI2DRIVER { DRI2DriverDRI DRI2DriverVDPAU } These values describe the type of driver the client will want to load. The server sends back the name of the driver to use for the screen in question. DRI2ATTACHMENT { DRI2BufferFrontLeft DRI2BufferBackLeft DRI2BufferFrontRight DRI2BufferBackRight DRI2BufferDepth DRI2BufferStencil DRI2BufferAccum DRI2BufferFakeFrontLeft DRI2BufferFakeFrontRight DRI2BufferDepthStencil DRI2BufferHiz } These values describe various attachment points for DRI2 buffers. DRI2BUFFER { attachment: CARD32 name: CARD32 pitch: CARD32 cpp: CARD32 flags: CARD32 } The DRI2BUFFER describes an auxiliary rendering buffer associated with an X drawable. 'attachment' describes the attachment point for the buffer, 'name' is the name of the underlying kernel buffer, DRI2ATTACH_FORMAT { attachment: CARD32 format: CARD32 } The DRI2ATTACH_FORMAT describes an attachment and the associated format. 'attachment' describes the attachment point for the buffer, 'format' describes an opaque, device-dependent format for the buffer. âš™ âš™ âš™ âš™ âš™ âš™ 7. Extension Initialization The name of this extension is "DRI2". ┌─── DRI2QueryVersion client-major-version: CARD32 client-minor-version: CARD32 â–¶ major-version: CARD32 minor-version: CARD32 └─── The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. Backwards compatible changes included addition of new requests, but also new value types in the DRI2CopyRegion request. When new values are introduced, the minor version will be increased so the client can know which values the X server understands from the version number. âš™ âš™ âš™ âš™ âš™ âš™ 8. Extension Requests ┌─── DRI2Connect window: WINDOW driverType: DRI2DRIVER â–¶ driver: STRING device: STRING └─── Returns the driver name and device file to use for the specified driver type for the screen associated with 'window'. 'type' identifies the type of driver to query for. 'driver' is the name of the driver to load. The client is assumed to know where to look for the drivers and what to do with it. 'device' is the filename of the DRM device file. If the client is not local, or the request driver type is unknown or not available, 'driver' and 'device' will be empty strings. We are not using an regular X error here to indicate failure, which will allow the client fall back to other options more easily. ISSUE: We could add the list of supported attachments and the supported DRI2CopyRegion values here (just the bitmask of all supported values). ┌─── DRI2Authenticate window: WINDOW token: CARD32 â–¶ authenticated: CARD32 └─── Errors: Window Request that the X server authenticates 'token', allowing the client to access the DRM buffers created by the X server on the screen associated with 'window'. Authentication shouldn't fail at this point, except if an invalid token is passed, in which case authenticated is False. ┌─── DRI2GetBuffers drawable: DRAWABLE attachments: LISTofDRI2ATTACHMENTS â–¶ width, height: CARD32 buffers: LISTofDRI2BUFFER └─── Errors: Window Get buffers for the provided attachment points for the given drawable. If the DDX driver does not support one or more of the specified attachment points, a Value error is generated, with the first unsupported attachment point as the error value. 'width' and 'height' describes the dimensions of the drawable. 'buffers' is a list of DRI2BUFFER for the given DRI2 attachment points. ┌─── DRI2CopyRegion drawable: DRAWABLE region: REGION source: DRI2ATTACHMENT destination: DRI2ATTACHMENT â–¶ └─── Errors: Window, Value Schedule a copy from one DRI2 buffer to another. The DRICopyRegion request has a reply but it is empty. The reply is there to let the direct rendering client wait until the server has seen the request before proceeding with rendering the next frame. ┌─── DRI2SwapBuffers drawable: DRAWABLE target_msc: two CARD32s divisor: two CARD32s remainder: two CARD32s â–¶ swap: two CARD32s └─── Errors: Window Schedule a swap of the front and back buffers with the display server. Returns the swap count value when the swap will actually occur (e.g. the last queued swap count + (pending swap count * swap interval)). This request is only available with protocol version 1.2 or later. ┌─── DRI2GetBuffersWithFormat drawable: DRAWABLE attachments: LISTofDRI2ATTACH_FORMAT â–¶ width, height: CARD32 buffers: LISTofDRI2BUFFER └─── Errors: Window Get buffers for the provided attachment points with the specified formats for the given drawable. If the DDX driver does not support one or more of the specified attachment points or formats, a Value error is generated, with the first unsupported attachment point as the error value. 'width' and 'height' describes the dimensions of the drawable. 'buffers' is a list of DRI2BUFFER for the given DRI2 attachment points. This request is only available with protocol version 1.1 or later. ┌─── DRI2GetMSC drawable: DRAWABLE â–¶ ust, msc, sbc: CARD64 └─── Errors: Window Get the current media stamp counter (MSC) and swap buffer count (SBC) along with the unadjusted system time (UST) when the MSC was last incremented. This request is only available with protocol version 1.2 or later. ┌─── DRI2WaitMSC drawable: DRAWABLE target_msc: two CARD32s divisor: two CARD32s remainder: two CARD32s â–¶ ust, msc, sbc: CARD64 └─── Errors: Window Blocks the client until either the frame count reaches target_msc or, if the frame count is already greater than target_msc when the request is received, until the frame count % divisor = remainder. If divisor is 0, the client will be unblocked if the frame count is greater than or equal to the target_msc. Returns the current media stamp counter (MSC) and swap buffer count (SBC) along with the unadjusted system time (UST) when the MSC was last incremented. This request is only available with protocol version 1.2 or later. ┌─── DRI2WaitSBC drawable: DRAWABLE target_sbc: two CARD32s â–¶ ust, msc, sbc: CARD64 └─── Errors: Window Blocks the client until the swap buffer count reaches target_sbc. If the swap buffer count is already greater than or equal to target_sbc when the request is received, this request will return immediately. If target_sbc is 0, this request will block the client until all previous DRI2SwapBuffers requests have completed. Returns the current media stamp counter (MSC) and swap buffer count (SBC) along with the unadjusted system time (UST) when the MSC was last incremented. This request is only available with protocol version 1.2 or later. ┌─── DRI2SwapInterval drawable: DRAWABLE interval: CARD32 â–¶ └─── Errors: Window Sets the swap interval for DRAWABLE. This will throttle DRI2SwapBuffers requests to swap at most once per interval frames, which is useful useful for limiting the frame rate. ┌─── DRI2GetParam drawable: DRAWABLE param: CARD32 â–¶ is_param_recognized: BOOL value: CARD64 └─── Errors: Drawable Get the value of a parameter. The parameter's value is looked up on the screen associated with 'drawable'. Parameter names in which the value of the most significant byte is 0 are reserved for the X server. Currently, no such parameter names are defined. (When any such names are defined, they will be defined in this extension specification and its associated headers). Parameter names in which the byte's value is 1 are reserved for the DDX. Such names are private to each driver and shall be defined in the respective driver's headers. Parameter names in which the byte's value is neither 0 nor 1 are reserved for future use. Possible values of 'is_param_recognized' are true (1) and false (0). If false, then 'value' is undefined. This request is only available with protocol version 1.4 or later. âš™ âš™ âš™ âš™ âš™ âš™ 9. Extension Events ┌─── DRI2BufferSwapComplete â–¶ event_type: CARD16 drawable: CARD32 ust: CARD64 msc: CARD64 sbc: CARD64 └─── This event reports the status of the last DRI2SwapBuffers event to the client. The event type should be one of DRI2_EXCHANGE_COMPLETE, indicating a successful buffer exchange, DRI2_BLIT_COMPLETE, indicating the swap was performed with a blit, and DRI2_FLIP_COMPLETE, indicating a full page flip was completed. ┌─── DRI2InvalidateBuffers â–¶ drawable: CARD32 └─── This event is generated when the buffers the client had requested for 'drawable' (with DRI2GetBuffers or DRI2GetBuffersWithFormat) become inappropriate because they don't match the drawable dimensions anymore, or a buffer swap has been performed. Note that the server is only required to warn the client once about this condition, until the client takes care of bringing them back up-to-date with another GetBuffers request. âš™ âš™ âš™ âš™ âš™ âš™ 10. Extension Versioning The DRI2 extension has undergone a number of revisions before 1.0: Released, but never used. Relied on a number of constructs from the XF86DRI extension, such as a shared memory area (SAREA) to communicate changes in cliprects and window sizes, and 1.99.1: Move the swap buffer functionality into the X server, introduce SwapBuffer request to copy back buffer contents to the X drawable. 1.99.2: Rethink the SwapBuffer request as an asynchronous request to copy a region between DRI2 buffers. Drop CreateDrawable and DestroyDrawable, update Connect to support different driver types and to send the authentication group. 1.99.3: Drop the bitmask argument intended to indicate presence of optional arguments for CopyRegion. 2.0: Awesomeness! 2.1: True excellence. Added DRI2GetBuffersWithFormat to allow more flexible object creation. 2.2: Approaching perfection. Added requests for swapbuffers, MSC and SBC related requests, and events. 2.3: Added the DRI2InvalidateBuffers event. 2.6: Enlightenment attained. Added the DRI2BufferHiz attachment. 2.7: Added the DRI2GetParam request. Compatibility up to 2.0 is not preserved, but was also never released. âš™ âš™ âš™ âš™ âš™ âš™ 11. Relationship with other extensions As an extension designed to support other extensions, there is naturally some interactions with other extensions. 11.1 GLX The GL auxiliary buffers map directly to the DRI2 buffers... eh 11.2 DBE The DBE back buffer must correspond to the DRI2_BUFFER_FRONT_LEFT DRI2 buffer for servers that support both DBE and DRI2. 11.3 XvMC / Xv We might add a DRI2_BUFFER_YUV to do vsynced colorspace conversion blits. Maybe... not really sure. âš™ âš™ âš™ âš™ âš™ âš™ Appendix A. Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the core X protocol encoding document. A.1 Common Types ┌─── DRI2DRIVER 0x0 DRI2DriverDRI 0x1 DRI2DriverVDPAU └─── ┌─── DRI2ATTACHMENT 0x0 DRI2BufferFrontLeft 0x1 DRI2BufferBackLeft 0x2 DRI2BufferFrontRight 0x3 DRI2BufferBackRight 0x4 DRI2BufferDepth 0x5 DRI2BufferStencil 0x6 DRI2BufferAccum 0x7 DRI2BufferFakeFrontLeft 0x8 DRI2BufferFakeFrontRight 0x9 DRI2BufferDepthStencil 0xa DRI2BufferHiz └─── Used to encode the possible attachment points. The attachment DRI2BufferDepthStencil is only available with protocol version 1.1 or later. ┌─── DRI2BUFFER 4 CARD32 attachment 4 CARD32 name 4 CARD32 pitch 4 CARD32 cpp 4 CARD32 flags └─── A DRI2 buffer specifies the attachment, the kernel memory manager name, the pitch and chars per pixel for a buffer attached to a given drawable. ┌─── DRI2ATTACH_FORMAT 4 CARD32 attachment 4 CARD32 format └─── Used to describe the attachment and format requested from the server. This data type is only available with protocol version 1.1 or later. A.2 Protocol Requests ┌─── DRI2QueryVersion 1 CARD8 major opcode 1 0 DRI2 opcode 2 3 length 4 CARD32 major version 4 CARD32 minor version â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 major version 4 CARD32 minor version 16 unused └─── ┌─── DRI2Connect 1 CARD8 major opcode 1 1 DRI2 opcode 2 3 length 4 WINDOW window 4 CARD32 driver type â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 (n+m+p+q)/4 reply length 4 n driver name length 4 m device name length 16 unused n CARD8 driver name p unused, p=pad(n) m CARD8 device name q unused, q=pad(m) └─── ┌─── DRI2Authenticate 1 CARD8 major opcode 1 2 DRI2 opcode 2 3 length 4 WINDOW window 4 CARD32 authentication token â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 authenticated 20 unused └─── ┌─── DRI2GetBuffers 1 CARD8 major opcode 1 5 DRI2 opcode 2 3 length 4 DRAWABLE drawable 4 n number of attachments 4n LISTofDRI2ATTACHMENTS attachments â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 width of drawable 4 CARD32 height of drawable 4 CARD32 buffer count 12 unused 5n LISTofDRI2BUFFER buffers └─── ┌─── DRI2CopyRegion 1 CARD8 major opcode 1 6 DRI2 opcode 2 3 length 4 DRAWABLE drawable 4 REGION region 4 DRI2ATTACHMENT source 4 DRI2ATTACHMENT destination â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 24 unused └─── ┌─── DRI2GetBuffersWithFormat 1 CARD8 major opcode 1 7 DRI2 opcode 2 3 length 4 DRAWABLE drawable 4 n number of attachments 8n LISTofDRI2ATTACH_FORMAT attachments and formats â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 width of drawable 4 CARD32 height of drawable 4 CARD32 buffer count 12 unused 5n LISTofDRI2BUFFER buffers └─── ┌─── DRI2SwapBuffers 1 CARD8 major opcode 1 8 DRI2 opcode 2 8 length 4 DRAWABLE drawable 4 CARD32 target_msc_hi 4 CARD32 target_msc_lo 4 CARD32 divisor_hi 4 CARD32 divisor_lo 4 CARD32 remainder_hi 4 CARD32 remainder_lo â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 swap_hi 4 CARD32 swap_lo 20 unused └─── ┌─── DRI2GetMSC 1 CARD8 major opcode 1 9 DRI2 opcode 2 8 length 4 DRAWABLE drawable â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 ust_hi 4 CARD32 ust_lo 4 CARD32 msc_hi 4 CARD32 msc_lo 4 CARD32 sbc_hi 4 CARD32 sbc_lo └─── ┌─── DRI2WaitMSC 1 CARD8 major opcode 1 10 DRI2 opcode 2 8 length 4 DRAWABLE drawable 4 CARD32 target_msc_hi 4 CARD32 target_msc_lo 4 CARD32 divisor_hi 4 CARD32 divisor_lo 4 CARD32 remainder_hi 4 CARD32 remainder_lo â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 ust_hi 4 CARD32 ust_lo 4 CARD32 msc_hi 4 CARD32 msc_lo 4 CARD32 sbc_hi 4 CARD32 sbc_lo └─── ┌─── DRI2WaitSBC 1 CARD8 major opcode 1 11 DRI2 opcode 2 8 length 4 DRAWABLE drawable 4 CARD32 swap_hi 4 CARD32 swap_lo â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 CARD32 ust_hi 4 CARD32 ust_lo 4 CARD32 msc_hi 4 CARD32 msc_lo 4 CARD32 sbc_hi 4 CARD32 sbc_lo └─── ┌─── DRI2SwapInterval 1 CARD8 major opcode 1 12 DRI2 opcode 2 8 length 4 DRAWABLE drawable 4 CARD32 interval â–¶ └─── ┌─── DRI2GetParam 1 CARD8 major opcode 1 13 DRI2 opcode 2 8 length 4 DRAWABLE drawable 4 CARD32 param â–¶ 1 1 Reply 1 BOOL is_param_recognized 2 CARD16 sequence number 4 0 reply length 4 CARD32 value_hi 4 CARD32 value_lo 16 unused └─── A.3 Protocol Events The DRI2 extension specifies DRI2_BufferSwapComplete and DRI2_InvalidateBuffers events. ┌─── DRI2_BufferSwapComplete 1 CARD8 type 1 CARD8 extension 2 CARD16 sequenceNumber 2 CARD16 event_type 4 DRAWABLE drawable 4 CARD32 ust_hi 4 CARD32 ust_lo 4 CARD32 msc_hi 4 CARD32 msc_lo 4 CARD32 sbc_hi 4 CARD32 sbc_lo └─── ┌─── DRI2_InvalidateBuffers 1 CARD8 type 1 CARD8 extension 2 CARD16 sequenceNumber 4 DRAWABLE drawable 4 CARD32 unused 4 CARD32 unused 4 CARD32 unused 4 CARD32 unused 4 CARD32 unused 4 CARD32 unused └─── A.4 Protocol Errors The DRI2 extension specifies no errors. âš™ âš™ âš™ âš™ âš™ âš™ Appendix B. Implementation on GEM Where to begin... xorgproto-2023.2/install-sh0000755000175000017500000003577614443010030012601 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # 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 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 # Create dirs (including intermediate dirs) using mode 755. # This is like GNU 'install' as of coreutils 8.32 (2020). mkdir_umask=22 backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -p pass -p to $cpprog. -s $stripprog installed files. -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG By default, rm is invoked with -f; when overridden with RMPROG, it's up to you to specify -f if you want it. If -S is not specified, no backups are attempted. Email bug reports to bug-automake@gnu.org. Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -p) cpprog="$cpprog -p";; -s) stripcmd=$stripprog;; -S) backupsuffix="$2" shift;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? # Don't chown directories that already exist. if test $dstdir_status = 0; then chowncmd="" fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false # The $RANDOM variable is not portable (e.g., dash). Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap ' ret=$? rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null exit $ret ' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p'. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && { test -z "$stripcmd" || { # Create $dsttmp read-write so that cp doesn't create it read-only, # which would cause strip to fail. if test -z "$doit"; then : >"$dsttmp" # No need to fork-exec 'touch'. else $doit touch "$dsttmp" fi } } && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # If $backupsuffix is set, and the file being installed # already exists, attempt a backup. Don't worry if it fails, # e.g., if mv doesn't support -f. if test -n "$backupsuffix" && test -f "$dst"; then $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null fi # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xorgproto-2023.2/xextproto.pc.in0000644000175000017500000000020514443010026013562 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XExtProto Description: XExt extension headers Version: 7.3.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-bigreqsproto0000644000175000017500000000216014443010026014330 00000000000000Copyright 1992, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. xorgproto-2023.2/COPYING-applewmproto0000644000175000017500000000237314443010026014347 00000000000000/************************************************************************** Copyright (c) 2002-2009 Apple, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ xorgproto-2023.2/COPYING-glproto0000644000175000017500000000271314443010026013302 00000000000000SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and either this permission notice or a reference to http://oss.sgi.com/projects/FreeB/ 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 SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Silicon Graphics, Inc. shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Silicon Graphics, Inc. xorgproto-2023.2/fixesproto.txt0000644000175000017500000005344114443010026013532 00000000000000 The XFIXES Extension Version 6.1 Document Revision 1 2010-11-15 Keith Packard keithp@keithp.com 1. Introduction X applications have often needed to work around various shortcomings in the core X window system. This extension is designed to provide the minimal server-side support necessary to eliminate problems caused by these workarounds. 2. Acknowledgements This extension is a direct result of requests made by application developers, in particular, + Owen Taylor for describing the issues raised with the XEMBED mechanisms and SaveSet processing and his initial extension to handle this issue, and for pointer barriers + Bill Haneman for the design for cursor image tracking. + Havoc Pennington + Fredrik Höglund for cursor names + Deron Johnson for cursor visibility 3. Basic Premise Requests in this extension may seem to wander all over the map of X server capabilities, but they are tied by a simple rule -- resolving issues raised by application interaction with core protocol mechanisms that cannot be adequately worked around on the client side of the wire. 4. Extension initialization The client must negotiate the version of the extension before executing extension requests. Behavior of the server is undefined otherwise. QueryVersion client-major-version: CARD32 client-minor-version: CARD32 -> major-version: CARD32 minor-version: CARD32 The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce new requests, minor version changes introduce only adjustments to existing requests or backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. ************* XFIXES VERSION 1 OR BETTER *********** 5. Save Set processing changes Embedding one application within another provides a way of unifying disparate documents and views within a single framework. From the X protocol perspective, this appears similar to nested window managers; the embedding application "manages" the embedded windows much as a window manager does for top-level windows. To protect the embedded application from embedding application failure, it is reasonable to use the core SaveSet mechanism so that embedding application failure causes embedded windows to be preserved instead of destroyed. The core save set mechanism defines the target for each save set member window as the nearest enclosing window not owned by the terminating client. For embedding applications, this nearest window is usually the window manager frame. The problem here is that the window manager will not generally expect to receive and correctly manage new windows appearing within that window by the save set mechanism, and will instead destroy the frame window in response to the client window destruction. This causes the embedded window to be destroyed. An easy fix for this problem is to change the target of the save set member to a window which won't be affected by the underlying window destruction. XFIXES chooses the root window as the target. Having embedded windows suddenly appear at the top level can confuse users, so XFIXES also lets the client select whether the window should end up unmapped after the save set processing instead of unconditionally making them be mapped. 5.1 Requests ChangeSaveSet window: Window mode: { Insert, Delete } target: { Nearest, Root } map: { Map, Unmap } ChangeSaveSet is an extension of the core protocol ChangeSaveSet request. As in that request, mode specifies whether the indicated window is inserted or deleted from the save-set. Target specifies whether the window is reparented to the nearest non-client window as in the core protocol, or reparented to the root window. Map specifies whether the window is mapped as in the core protocol or unmapped. 6. Selection Tracking Applications wishing to monitor the contents of current selections must poll for selection changes. XFIXES improves this by providing an event delivered whenever the selection ownership changes. 6.1 Types SELECTIONEVENT { SetSelectionOwner, SelectionWindowDestroy, SelectionClientClose } 6.1 Events SelectionNotify subtype: SELECTIONEVENT window: Window owner: Window selection: Atom timestamp: Timestamp selection-timestamp: Timestamp 6.2 Requests SelectSelectionInput window: Window selection: Atom event-mask: SETofSELECTIONEVENT Selects for events to be delivered to window when various causes of ownership of selection occur. Subtype indicates the cause of the selection ownership change. Owner is set to the current selection owner, or None. Timestamp indicates the time the event was generated while selection-timestamp indicates the timestamp used to own the selection. 7. Cursor Image Monitoring Mirroring the screen contents is easily done with the core protocol or VNC addons, except for the current cursor image. There is no way using the core protocol to discover which cursor image is currently displayed. The cursor image often contains significant semantic content about the user interface. XFIXES provides a simple mechanism to discover when the cursor image changes and to fetch the current cursor image. As the current cursor may or may not have any XID associated with it, there is no stable name available. Instead, XFIXES returns only the image of the current cursor and provides a way to identify cursor images to avoid refetching the image each time it changes to a previously seen cursor. 7.1 Types CURSOREVENT { DisplayCursor } 7.2 Events CursorNotify subtype: CURSOREVENT window: Window cursor-serial: CARD32 timestamp: Timestamp name: Atom (Version 2 only) 7.3 Requests SelectCursorInput window: Window event-mask: SETofCURSOREVENT This request directs cursor change events to the named window. Events will be delivered irrespective of the screen on which they occur. Subtype indicates the cause of the cursor image change (there is only one subtype at present). Cursor-serial is a number assigned to the cursor image which identifies the image. Cursors with different serial numbers may have different images. Timestamp is the time of the cursor change. Servers supporting the X Input Extension Version 2.0 or higher only notify the clients of cursor change events for the ClientPointer, not of any other master pointer (see Section 4.4. in the XI2 protocol specification). GetCursorImage -> x: INT16 y: INT16 width: CARD16 height: CARD16 x-hot: CARD16 y-hot: CARD16 cursor-serial: CARD32 cursor-image: LISTofCARD32 GetCursorImage returns the image of the current cursor. X and y are the current cursor position. Width and height are the size of the cursor image. X-hot and y-hot mark the hotspot within the cursor image. Cursor-serial provides the number assigned to this cursor image, this same serial number will be reported in a CursorNotify event if this cursor image is redisplayed in the future. The cursor image itself is returned as a single image at 32 bits per pixel with 8 bits of alpha in the most significant 8 bits of the pixel followed by 8 bits each of red, green and finally 8 bits of blue in the least significant 8 bits. The color components are pre-multiplied with the alpha component. ************* XFIXES VERSION 2 OR BETTER *********** 8. Region Objects The core protocol doesn't expose regions as a primitive object and this makes many operations more complicated than they really need to be. Adding region objects simplifies expose handling, the Shape extension and other operations. These operations are also designed to support a separate extension, the X Damage Extension. 8.1 Types Region: XID WINDOW_REGION_KIND: { Bounding, Clip } 8.2 Errors Region The specified region is invalid 8.3 Requests CreateRegion region: REGION rects: LISTofRECTANGLE Creates a region initialized to the specified list of rectangles. The rectangles may be specified in any order, their union becomes the region. The core protocol allows applications to specify an order for the rectangles, but it turns out to be just as hard to verify the rectangles are actually in that order as it is to simply ignore the ordering information and union them together. Hence, this request dispenses with the ordering information. Errors: IDChoice CreateRegionFromBitmap region: REGION bitmap: PIXMAP Creates a region initialized to the set of 'one' pixels in bitmap (which must be depth 1, else Match error). Errors: Pixmap, IDChoice, Match CreateRegionFromWindow window: Window kind: WINDOW_REGION_KIND region: Region Creates a region initialized to the specified window region. See the Shape extension for the definition of Bounding and Clip regions. Errors: Window, IDChoice, Value CreateRegionFromGC gc: GContext region: Region Creates a region initialized from the clip list of the specified GContext. Errors: GContext, IDChoice CreateRegionFromPicture picture: Picture region: Region Creates a region initialized from the clip list of the specified Picture. Errors: Picture, IDChoice DestroyRegion region: Region Destroys the specified region. Errors: Region SetRegion region: Region rects: LISTofRECTANGLE This replaces the current contents of region with the region formed by the union of rects. CopyRegion source: Region destination: Region This replaces the contents of destination with the contents of source. UnionRegion IntersectRegion SubtractRegion source1: Region source2: Region destination: Region Combines source1 and source2, placing the result in destination. Destination may be the same as either source1 or source2. Errors: Region, Value InvertRegion source: Region bounds: RECTANGLE destination: Region The source region is subtracted from the region specified by bounds. The result is placed in destination, replacing its contents. Errors: Region TranslateRegion region: Region dx, dy: INT16 The region is translated by dx, dy in place. Errors: Region RegionExtents source: Region destination: Region The extents of the source region are placed in the destination FetchRegion region: Region -> extents: RECTANGLE rectangles: LISTofRECTANGLE The region is returned as a list of rectangles in YX-banded order. Errors: Region SetGCClipRegion gc: GCONTEXT clip-x-origin, clip-y-origin: INT16 region: Region or None This request changes clip-mask in gc to the specified region and sets the clip origin. Output will be clipped to remain contained within the region. The clip origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. The region is interpreted relative to the clip origin. Future changes to region have no effect on the gc clip-mask. Errors: GContext, Region SetWindowShapeRegion dest: Window destKind: SHAPE_KIND xOff, yOff: INT16 region: Region or None This request sets the specified (by destKind) Shape extension region of the window to region, offset by xOff and yOff. Future changes to region have no effect on the window shape. Errors: Window, Value, Region SetPictureClipRegion picture: Picture clip-x-origin, clip-y-origin: INT16 region: Region or None This request changes clip-mask in picture to the specified region and sets the clip origin. Input and output will be clipped to remain contained within the region. The clip origin is interpreted relative to the origin of the drawable associated with picture. The region is interpreted relative to the clip origin. Future changes to region have no effect on the picture clip-mask. Errors: Picture, Region 9. Cursor Names Attaching names to cursors permits some abstract semantic content to be associated with specific cursor images. Reflecting those names back to applications allows that semantic content to be related to the user through non-visual means. 9.1 Events CursorNotify subtype: CURSOREVENT window: Window cursor-serial: CARD32 timestamp: Timestamp name: Atom or None In Version 2 of the XFIXES protocol, this event adds the atom of any name associated with the current cursor (else None). 9.2 Requests SetCursorName cursor: CURSOR name: LISTofCARD8 This request interns name as an atom and sets that atom as the name of cursor. Errors: Cursor GetCursorName cursor: CURSOR -> atom: ATOM or None name: LISTofCARD8 This request returns the name and atom of cursor. If no name is set, atom is None and name is empty. Errors: Cursor GetCursorImageAndName -> x: INT16 y: INT16 width: CARD16 height: CARD16 x-hot: CARD16 y-hot: CARD16 cursor-serial: CARD32 cursor-atom: ATOM cursor-image: LISTofCARD32 cursor-name: LISTofCARD8 This is similar to GetCursorImage except for including both the atom and name of the current cursor. ChangeCursor source, destination: CURSOR This request replaces all references to the destination with a reference to source. Any existing uses of the destination cursor object will now show the source cursor image. ChangeCursorByName src: CURSOR name: LISTofCARD8 This request replaces the contents of all cursors with the specified name with the src cursor. ************* XFIXES VERSION 3 OR BETTER *********** 10. Region Expansion This update provides another operation on the region objects defined in Section 8 of this document. 10.1 Requests ExpandRegion source: REGION destination: REGION left, right, top, bottom: CARD16 Creates destination region containing the area specified by expanding each rectangle in the source region by the specified number of pixels to the left, right, top and bottom. ************* XFIXES VERSION 4 OR BETTER *********** 11. Cursor Visibility Composite managers may want to render the cursor themselves instead of relying on the X server sprite drawing, this provides a way for them to do so without getting a double cursor image. 11.1 Requests HideCursor window: WINDOW A client sends this request to indicate that it wants the cursor image to be hidden (i.e. to not be displayed) when the sprite is on the same screen as the specified window. The sprite will be hidden if one or more clients have called HideCursor and not ShowCursor. Note that even though cursor hiding causes the cursor image to be invisible, CursorNotify events will still be sent normally, as if the cursor image were visible. When a client with outstanding cursor hiding requests terminates its connection these requests will be deleted. Servers supporting the X Input Extension Version 2.0 or higher hide all visible cursors in response to a HideCursor request. If a master pointer is created while the cursors are hidden, this master pointer's cursor will be hidden as well. ShowCursor window: WINDOW A client sends this request to indicate that it wants the cursor image to be displayed when the sprite is on the same screen as the specified window. The sprite will be hidden if one or more clients have called HideCursor and not ShowCursor. If the client has made no outstanding HideCursor requests a BadMatch error is generated. Servers supporting the X Input Extension Version 2.0 or higher show all visible cursors in response to a ShowCursor request. ************* XFIXES VERSION 5 OR BETTER *********** 12. Pointer Barriers Compositing managers and desktop environments may have UI elements in particular screen locations such that for a single-headed display they correspond to easy targets according to Fitt's Law, for example, the top left corner. For a multi-headed environment these corners should still be semi-impermeable. Pointer barriers allow the application to define additional constraint on cursor motion so that these areas behave as expected even in the face of multiple displays. Absolute positioning devices like touchscreens do not obey pointer barriers. There's no advantage to target acquisition to do so, since on a touchscreen all points are in some sense equally large, whereas for a relative positioning device the edges and corners are infinitely large. WarpPointer and similar requests do not obey pointer barriers, for essentially the same reason. 12.1 Types BARRIER: XID BarrierDirections BarrierPositiveX: 1 << 0 BarrierPositiveY: 1 << 1 BarrierNegativeX: 1 << 2 BarrierNegativeY: 1 << 3 12.2 Errors Barrier 12.3 Requests CreatePointerBarrier barrier: BARRIER window: Window x1, y2, x2, y2: INT16 directions: CARD32 devices: LISTofDEVICEID Creates a pointer barrier along the line specified by the given coordinates on the screen associated with the given window. The barrier has no spatial extent; it is simply a line along the left or top edge of the specified pixels. Barrier coordinates are in screen space. The coordinates must be axis aligned, either x1 == x2, or y1 == y2, but not both. The varying coordinates may be specified in any order. For x1 == x2, either y1 > y2 or y1 < y2 is valid. If the coordinates are not valid BadValue is generated. Motion is allowed through the barrier in the directions specified: setting the BarrierPositiveX bit allows travel through the barrier in the positive X direction, etc. Nonsensical values (forbidding Y axis travel through a vertical barrier, for example) and excess set bits are ignored. If the server supports the X Input Extension version 2 or higher, the devices element names a set of master device to apply the barrier to. If XIAllDevices or XIAllMasterDevices are given, the barrier applies to all master devices. If a slave device is named, BadDevice is generated; this does not apply to slave devices named implicitly by XIAllDevices. Naming a device multiple times is legal, and is treated as though it were named only once. If a device is removed, the barrier continues to apply to the remaining devices, but will not apply to any future device with the same ID as the removed device. Nothing special happens when all matching devices are removed; barriers must be explicitly destroyed. Errors: IDChoice, Window, Value, Device DestroyPointerBarrier barrier: BARRIER Destroys the named barrier. Errors: Barrier ************* XFIXES VERSION 6 OR BETTER *********** 13. Disconnect mode The X11 server is capable of terminating itself once all X11 clients are gone. Yet, in a typical user session, there are a number of X11 clients running continuously (e.g. Xsettings daemon, IBus, etc.). Those always-running clients will prevent the X11 server from terminating, because the actual number of X11 clients will never drop to 0. Disconnect mode allows the X11 clients themselves to specify that they should not be accounted for when checking the remaining clients prior to terminate the X11 server. This can be particularly useful for Wayland compositors which are able to start Xwayland on demand, as this allows Xwayland to terminate automatically when the relevant X11 clients have quit. 13.1 Types XFixesClientDisconnectFlags XFixesClientDisconnectFlagDefault: 0 XFixesClientDisconnectFlagTerminate: 1 << 0 XFixesClientDisconnectFlagForceTerminate: 1 << 1 XFixesClientDisconnectFlagDefault is the default behavior for regular clients: the X11 server won't terminate as long as such clients are still connected and no other clients trigger termination. XFixesClientDisconnectFlagTerminate indicates to the X11 server that it can ignore the client and terminate itself even though the client is still connected to the X11 server. If XFixesClientDisconnectFlagForceTerminate is set at the time the client disconnects, the X11 server MUST terminate and/or reset without delivering further events to clients, even if other clients that have not set XFixesClientDisconnectFlagTerminate are still connected. Screen lockers SHOULD use this flag to ensure that the screen does not unlock if they exit, which would create a security vulnerability. Programs SHOULD NOT use this flag unless unexpected termination would create a security vulnerability or other severe problem. Because XFixesClientDisconnectFlagForceTerminate allows the client to cause the server to terminate, it is subject to security checks to prevent unauthorized use. Servers that support the X Access Control Extension (XACE) MUST deny attempts to set XFixesClientDisconnectFlagForceTerminate, unless the client has DixManageAccess to the server. Servers that support the SECURITY extension MUST forbid untrusted clients from setting XFixesClientDisconnectFlagForceTerminate. Servers MAY refuse to allow clients to set this flag for other reasons. For instance, a server might only allow the flag to be set by local clients. If the server refuses to allow the client to set this flag, an Access error results. XFixesClientDisconnectFlagForceTerminate is only available in XFixes versions 6.1 and better. 13.2 Requests SetClientDisconnectMode disconnect-mode: CARD32 Sets the disconnect mode for the client. The disconnect-mode is a bit mask of XFixesClientDisconnectFlags. GetClientDisconnectMode Gets the disconnect mode for the client. -> disconnect-mode: CARD32 The disconnect-mode is a bit mask of XFixesClientDisconnectFlags. 99. Future compatibility This extension is not expected to remain fixed. Future changes will strive to remain compatible if at all possible. The X server will always support version 1 of the extension protocol if requested by a client. Additions to the protocol will always by marked by minor version number changes so that applications will be able to detect what requests are supported. xorgproto-2023.2/dmxproto.pc.in0000644000175000017500000000020314443010026013360 00000000000000prefix=@prefix@ includedir=@includedir@ Name: DMXProto Description: DMX extension headers Version: 2.3.1 Cflags: -I${includedir} xorgproto-2023.2/COPYING-videoproto0000644000175000017500000000654614443010026014016 00000000000000Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project. Copyright (c) 2004 The Unichrome Project. 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 AUTHOR(S) OR COPYRIGHT HOLDER(S) 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. xorgproto-2023.2/COPYING-xineramaproto0000644000175000017500000000462714443010026014512 00000000000000Copyright 2003 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts. 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. 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 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. xorgproto-2023.2/resproto.txt0000644000175000017500000004321414443010026013202 00000000000000 DRAFT FOR REVIEW The X Resource Extension Version 1.2 Rami Ylimäki rami.ylimaki@vincit.fi â§â§â§â§â§â§â§â§â§â§â§ 1. Introduction The protocol description of X Resource Extension version 1.1 has been either lost or has never been written. This specification documents version 1.0 based on reverse engineered library and server code. Version 1.1 has been accidentally released from the version control and while it doesn't have differences to version 1.0, this version is labeled 1.2 in order to remove the risk of confusion. In addition to the 1.0 description, this document introduces a new 1.2 version of the extension. Version 1.2 is a minor release and therefore the changes are compatible with the previous version. Main enhancements over version 1.0 are: - Client identification is now possible. For example, servers supporting version 1.2 may report PID of local clients. - Size of any resource can be queried from the server. Servers may not necessarily support size calculation for every resource. However, clients have now at least the chance to let the server do resource size estimation for them. â§â§â§â§â§â§â§â§â§â§â§ 2. Notations used in this document Notation for data types and requests follows the guidelines set in sections 2-4 of X Window System Protocol standard. â§â§â§â§â§â§â§â§â§â§â§ 3. Interoperability between version 1.1 and 1.2 Version 1.2 only introduces two new requests. However, these requests could be seen as generalized versions of existing requests. Even though we aren't deprecating any old requests, libraries could implement some old requests using the new ones. The new XResQueryClientIds request could be used instead of XResQueryClients. The new XResQueryResourceBytes request could be used instead of XResQueryClientPixmapBytes. Using the old requests is still acceptable because we don't want to change the semantics of existing requests between version 1.1 and 1.2. â§â§â§â§â§â§â§â§â§â§â§ 4. Data types 4.1 Types in version 1.0 CLIENTXIDRANGE [ resource_base: CARD32 resource_mask: CARD32 ] This type is used for reply of XResQueryClients in version 1.1. It represents the range of resource allocated for a client and can be also used for client identification. resource_base First resource ID reserved for a client. Used also to identify the clients themselves. resource_mask Mask that can be used to identify a client from some resource ID. Just zero the bits indicated by this mask from any resource ID to identify the client that owns the resource. CLIENTXID [ client: XID ] This type identifies a single client by a resource owned by that client or by the first resource ID allocated for the client (resource_base of CLIENTXIDRANGE). Whenever a resource ID is used, it is masked by resource_mask of CLIENTXIDRANGE to find out the client that owns the resource. CLIENTRESOURCETYPECOUNT [ resource_type: ATOM count: CARD32 ] This type is used for reply of XResQueryClientResources in version 1.1. It represents the number of certain type of resources that are owned by some client. resource_type Atom specifying the type of a resource. count Number of resources of the given type owned by a client. 4.2 Types in version 1.2 4.2.1 Types used by XResQueryClientIds CLIENTIDMASK { ClientXid = 0x1, LocalClientPid = 0x2 } A bitmask specifying a client identification method. Currently only the PID of local clients is supported in the form of LocalClientPid. ClientXid is provided for backward compatibility with version 1.0 so that the new 1.2 requests (XResQueryClientIds) can be used in place of the older ones (XResQueryClients). CLIENTIDSPEC [ client: CLIENTXID or None mask: SETofCLIENTIDMASK or None ] A data structure for selecting client IDs. client ID of a resource allocated for some client. Only the part identifying a client is actually used. The resource_base of CLIENTXIDRANGE can be used if the client doesn't own any resources. However, any resource ID is accepted because that makes identifying the owners of existing resources easy. The null resource None can be used to select all clients. mask Collection of identification methods that should be applied on the client. The special value None can be used to apply all supported identification methods. CLIENTIDVALUE [ spec: CLIENTIDSPEC length: CARD32 value: LISTofCARD32 ] A data structure specifying a single client ID. spec A unique identifier for a specific ID of some client. Wildcards such as None and bitmask unions aren't allowed. The data structure must always identify a single client and single ID type. However, the client doesn't have to be specified as the resource_base of CLIENTXIDRANGE and can be any resource owned by the client. length Specifies the length of an ID in units of CARD32. The length depends on the ID type. In version 1.2 the lengths are 0 for ClientXid and 4 for LocalClientPid. The length of ClientXid is 0 because that is already stored in the spec field. value Actual ID data. In version 1.2 this is missing for ClientXid and consists of a single CARD32 for LocalClientPid. 4.2.2 Types used by XResQueryResourceBytes To better understand how resources are related to each other, it's useful to introduce the concepts of main resource and cross reference. By main resource we just mean a normal resource that has a valid XID. By cross reference we mean a resource that is used by some other resource. The same resource may have both of these roles depending on the context. For example, there could be an ordinary pixmap resource. When we talk about this resource in isolation the term main resource is used. We call the exact same resource a cross reference when we are concentrating on some higher level resource, such as window or graphics context, that is using the lower level resource. Cross references may also be internal server resources that don't have a valid XID. RESOURCEIDSPEC [ resource: XID or None type: ATOM or None/AnyPropertyType ] A data structure for selecting or identifying resources. The interpretation of fields changes depending on the context. The differences in interpretation are described below. resource An XID of a resource. The null resource None can be used to select all resources matching some type if the data structure is used in XResQueryResourceBytes request. The null resource None can be used to mark private server resources if the data structure is used in a cross reference of XResQueryResourceBytes reply. type An atom identifying the resource type. The null atom None/AnyPropertyType can be used to select all resource types matching some resource ID if the data structure is used in XResQueryResourceBytes request. RESOURCESIZESPEC [ spec: RESOURCEIDSPEC bytes: CARD32 ref_count: CARD32 use_count: CARD32 ] A data structure specifying the size of a single resource. spec Uniquely identifies a single resource. Wildcards such as None and AnyPropertyType aren't allowed for main resources. In cross references, None is used to mark internal server resources. bytes Number of bytes allocated for the resource. The size of a resource is never divided by a reference count. This is the number of bytes released in server when there are no more references left to the resource. ref_count Number of total users of the resource. Typically the reference count is 1 but for pixmaps and other resources used from different contexts the count may be larger. use_count Number of times the resource is used by some other resource. For main resources this is typically 1, because a resource doesn't usually use itself recursively. For cross references this is the number of times the resource is used and is also 1 usually. RESOURCESIZEVALUE [ size: RESOURCESIZESPEC num_cross_references: CARD32 cross_references: LISTofRESOURCESIZESPEC ] A data structure specifying sizes of cross references to other resources in addition to the main resource size. size Size of a main resource. num_cross_references Number of cross references to other resources from the main resource. Currently resources can only have pixmaps as cross references but this can be extended to other types in the future. For simple resources this field is therefore 0 and the cross_references list is missing. cross_references: Size specifications for cross references. Note that cross references may contain resources that don't have a valid XID. For example, a DRI2 drawable might have a cross reference to a private pixmap that is used internally in the server only. These private cross references are contained in this list also. This makes it possible to emulate XResGetClientPixmapBytes with XResGetResourceBytes. â§â§â§â§â§â§â§â§â§â§â§ 5. Requests 5.1 Requests in version 1.0 ┌─── XResQueryVersion client_major: CARD8 client_minor: CARD8 â–¶ server_major: CARD16 server_minor: CARD16 └─── The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major version changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the client's responsibility to ensure that the server supports a version which is compatible with its expectations. client_major Major X Resource Extension version supported by client. client_minor Minor X Resource Extension version supported by client. server_major Highest version supported by server that is compatible with client. server_minor Highest version supported by server that is compatible with client. ┌─── XResQueryClients â–¶ num_clients: CARD32 clients: LISTofCLIENTXIDRANGE └─── The request asks X server to return the list of all currently connected clients. num_clients Number of currently connected clients. clients List of XID ranges allocated for the connected clients. ┌─── XResQueryClientResources client: CLIENTXID â–¶ num_types: CARD32 types: LISTofCLIENTRESOURCETYPECOUNT Errors: Value └─── This request can be used to ask the number of resources owned by a client. The server will return the counts of each type of resource. client An XID in the resource range of a client. This identifies the client and not some specific resource. num_types Number of different resource types owned by the client. types A list of counts for each resource type. A value error is generated if invalid resource or client XID is given in the request. ┌─── XResQueryClientPixmapBytes client: CLIENTXID â–¶ bytes: CARD32 bytes_overflow: CARD32 Errors: Value └─── This request is used to get the pixmap usage of some client. The returned number is a sum of memory usage of each pixmap that can be attributed to the given client. Ideally the server goes through all pixmaps and divides each pixmap size by the pixmap reference count to get a pixmap reference size. The reference size is then added to the returned sum if the client happens to be referencing that pixmap. In practice some pixmap references may be missed, because it would be too difficult to keep track of all pixmap references. However, the server will check the most important client resources that are using pixmaps and tries to estimate the pixmap usage as well as is possible. In other words, the server need only make a best-effort attempt to calculate resource source, so actual resource size may differ from that reported in practice. client Identifies a client by an ID in its resource ID range. bytes: Number of bytes attributed to pixmap references from the client resources. bytes_overflow: Higher order word for the bytes field in case the sum of pixmap reference sizes doesn't fit in CARD32. A value error is generated if invalid resource or client XID is given in the request. 5.2 Requests in version 1.2 ┌─── XResQueryClientIds num_specs: CARD32 client_specs: LISTofCLIENTIDSPEC â–¶ num_ids: CARD32 client_ids: LISTofCLIENTIDVALUE Errors: Value └─── XResQueryClientIds can be used to identify a given set of clients with some identification method. The request sends a list of specifiers that select clients and identification methods to server. The server then tries to identify the chosen clients using the identification methods specified for each client. The server returns IDs for those clients that were successfully identified. It's not an error condition if some identification method couldn't be applied to a client. If the server is unable to identify some clients, they simply aren't included in the returned list. The request supports wildcards in the client specifications so that in the most general case all IDs of all clients can be queried with a single CLIENTIDSPEC. The CLIENTIDSPEC of request and CLIENTIDSPEC of CLIENTIDVALUE in reply usually match each other. For example, if a request selected a client by a resource ID owned by the client, then the client is identified by the same resource ID in the reply. This has been done so that it would be easy to identify an owner of some resource. However, the CLIENTIDSPEC of returned CLIENTIDVALUE never contains any wildcards. If the request used a wildcard to specify all clients in a single CLIENTIDSPEC, then the reply has expanded the wildcard and returns separate CLIENTIDVALUE records for each client. In this case wildcarded clients are identified by resource_base of CLIENTXIDRANGE. The LocalClientPid type of IDs are included in the reply list only if the client executing the request asked for it and was also a local client itself. It doesn't make sense for remote clients to ask PIDs of local clients. num_specs Number of client ID specifications. client_specs A list specifying identification methods for clients. Supports multiple identification methods and clients in a single specification. See CLIENTIDSPEC for details. num_ids Number of IDs that were successfully determined. Can be different from num_specs or even zero if the server didn't support any identification methods for the given clients. client_ids A list specifying ID information for successfully identified clients. If wildcards were used in a single CLIENTIDSPEC of client_specs, then multiple CLIENTIDVALUE records may be returned for that CLIENTIDSPEC. See CLIENTIDVALUE for details. A Value error is returned if the request specifies an invalid client XID or invalid identification method type. ┌─── XResQueryResourceBytes client: CLIENTXID or None num_specs: CARD32 resource_specs: LISTofRESOURCEIDSPEC â–¶ num_sizes: CARD32 sizes: LISTofRESOURCESIZEVALUE Errors: Atom, Value └─── XResQueryResourceBytes can be used to ask the sizes of resources from X server. The request sends a list of specifiers that selects resources for size calculation. The server tries to calculate the sizes of chosen resources and returns an estimate for a resource only if the size could be determined. It's not an error condition if a size couldn't be calculated. In that case the resources simply aren't included in the returned list. The request supports wildcards so that in the most general case sizes of all resources of all clients can be queried with a single RESOURCEIDSPEC. However, the reply has all wildcards expanded and reports a size of a single resource in each RESOURCESIZEVALUE. client An ID of a client can be given to limit the query to resources of that client. Just like in CLIENTIDSPEC, any resource ID can be given to identify a client and None can be used if the query shouldn't be limited to a specific client. Note that in some cases this field is redundant because resource_specs already fully determines which resources are selected. If the client ID doesn't match the owner of any resource in resource_specs, no sizes are returned and no error is generated. num_specs Number of resource specifications. resource_specs A list of resource specifications. Each specification can either uniquely identify a single resource or multiple resources if wildcarding is used. See RESOURCEIDSPEC for details. num_sizes Number of resources whose size could be determined. Can be different from num_specs or even zero if the server didn't support size calculation for the given resources. sizes A list of resource sizes. Each resource size is linked to a unique resource. Wildcards are never used in the returned size records. For example, it's not possible to receive a single RESOURCESIZEVALUE that would specify the size of all pixmaps if the sizes of pixmap type resources were asked. Instead, a single RESOURCESIZEVALUE would be returned for each pixmap in that case. An Atom error is returned if the request specifies an invalid resource type. A Value error is returned if the request specifies an invalid XID for a client or a resource. â§â§â§â§â§â§â§â§â§â§â§ xorgproto-2023.2/meson.build0000644000175000017500000000735314443010026012732 00000000000000# Copyright © 2018 Intel Corporation # 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 OR COPYRIGHT HOLDERS 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. # keep version in sync with configure.ac project('xorgproto', 'c', license : 'MIT', version : '2023.2', meson_version : '>=0.56.0') cc = meson.get_compiler('c') pcs = [ 'applewmproto', 'bigreqsproto', 'compositeproto', 'damageproto', 'dmxproto', 'dpmsproto', 'dri2proto', 'dri3proto', 'fixesproto', 'fontsproto', 'glproto', 'inputproto', 'kbproto', 'presentproto', 'randrproto', 'recordproto', 'renderproto', 'resourceproto', 'scrnsaverproto', 'videoproto', 'xcmiscproto', 'xextproto', 'xf86bigfontproto', 'xf86dgaproto', 'xf86driproto', 'xf86vidmodeproto', 'xineramaproto', 'xproto', 'xwaylandproto', ] pc_data = configuration_data() pc_data.set('prefix', get_option('prefix')) # meson does not allow installing the includedir outside of the prefix pc_data.set('includedir', '${prefix}/' + get_option('includedir')) foreach pc : pcs configure_file( input : pc + '.pc.in', output : pc + '.pc', install_dir : get_option('datadir') + '/pkgconfig', configuration : pc_data, ) endforeach docs = files('compositeproto.txt', 'damageproto.txt', 'dri2proto.txt', 'dri3proto.txt', 'fixesproto.txt', 'presentproto.txt', 'randrproto.txt', 'renderproto.txt', 'resproto.txt', 'xv-protocol-v2.txt', 'xwaylandproto.txt') install_data(docs, install_dir: get_option('datadir') / 'doc' / 'xorgproto') if get_option('legacy') == true legacy_pcs = [ 'evieproto', 'fontcacheproto', 'lg3dproto', 'printproto', 'trapproto', 'windowswmproto', 'xcalibrateproto', 'xf86miscproto', 'xf86rushproto', 'xproxymngproto', ] foreach pc : legacy_pcs configure_file( input : pc + '.pc.in', output : pc + '.pc', install_dir : get_option('datadir') + '/pkgconfig', configuration : pc_data, ) endforeach legacy_docs = files('PM_spec') install_data(legacy_docs, install_dir: get_option('datadir') / 'doc' / 'xorgproto') endif ext_xorgproto = declare_dependency( include_directories : include_directories('include') ) subdir('include') keysymfile = meson.project_source_root() / 'include' / 'X11' / 'XF86keysym.h' test('evdev-keysym-check', find_program('scripts/keysym-generator.py'), args: ['-v', '--header', keysymfile, 'verify']) xorgproto-2023.2/trapproto.pc.in0000644000175000017500000000022214443010026013537 00000000000000prefix=@prefix@ includedir=@includedir@ Name: TrapProto Description: Trap extension headers Version: 3.4.3 Requires: xt Cflags: -I${includedir} xorgproto-2023.2/AUTHORS0000644000175000017500000000275114443010026011635 00000000000000The architect of the X11 core protocol was Bob Scheifler of MIT LCS, with significant contributions from Jim Gettys, Phil Karlton and Scott McGregor of Digital, Dave Rosenthal of Sun, and many others of the xpert mailing list. The original sample server implementation of the X11 protocol was implemented by Phil Karlton and Susan Angebrandt doing the device independent part of the server, with Raymond Drewry and Todd Newman of Digital Equipment Corporation, doing the mi and original ddx implementation; their feedback was vital to a good design, along with that of the more than 100 alpha and beta testers who bravely tested the X11 core design. The X11 protocol library (Xlib) was built principally by Jim Gettys of Digital and MIT Project Athena, with assistance from Ron Newman of MIT Project Athena. Our thanks to those at MIT, Digital Equipment Corporation, Hewlett-Packard, IBM, and many others who had faith in us reimplementing X from first principles. If there are mistakes here, they are mine; entirely possible after over 15 years. - Jim Gettys --- The above is a description of the core protocol, inherited from the merge of the various per-protocol repos into this unified project. The LG3D protocol was by Deron Johnson at Sun Microsystems. XFIXES, DAMAGE and COMPOSITE were by Keith Packard at HP; DAMAGE had additional contributions from Eric Anholt at Intel. The remaining extensions had no AUTHORS file; contributions for correct attribution here would be most welcome. - Adam Jackson xorgproto-2023.2/xwaylandproto.pc.in0000644000175000017500000000021214443010026014417 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XwaylandProto Description: Xwayland extension headers Version: 1.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-xf86dgaproto0000644000175000017500000000233714443010026014151 00000000000000Permission 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project. xorgproto-2023.2/damageproto.txt0000644000175000017500000001664114443010026013633 00000000000000 The DAMAGE Extension Protocol Version 1.1 Document Revision 1 2007-01-08 Keith Packard keithp@keithp.com Eric Anholt eric@anholt.net Open Source Technology Center Intel Corporation 1. Introduction Monitoring the regions affected by rendering has wide-spread use, from VNC-like systems scraping the screen to screen magnifying applications designed to aid users with limited visual acuity. The DAMAGE extension is designed to make such applications reasonably efficient in the face of server-client latency. 2. Acknowledgements As usual, the author had significant input from many people, in particular: + Havoc Pennington who designed and implemented a Damage extension last year which was then lost to the mists of time. + Bill Haneman whose work on accessibility in the Gnome environment is legendary. + Jim Gettys who found a way to avoid streaming damage rectangles to the client in many cases. + Owen Taylor who suggested that streaming damage rectangles may be warranted in some cases after all. 3. Damage Model We call changes made to pixel contents of windows and pixmaps 'damage' throughout this extension. Another notion of 'damage' are drawable regions which are in need of redisplay to repair the effects of window manipulation or other data loss. This extension doesn't deal with this second notion at all; suggestions on a better term which isn't easily conflated with existing notions are eagerly solicited. Damage accumulates as drawing occurs in the drawable. Each drawing operation 'damages' one or more rectangular areas within the drawable. The rectangles are guaranteed to include the set of pixels modified by each operation, but may include significantly more than just those pixels. The desire is for the damage to strike a balance between the number of rectangles reported and the extraneous area included. A reasonable goal is for each primitive object drawn (line, string, rectangle) to be represented as a single rectangle and for the damage area of the operation to be the union of these rectangles. The DAMAGE extension allows applications to either receive the raw rectangles as a stream of events, or to have them partially processed within the X server to reduce the amount of data transmitted as well as reduce the processing latency once the repaint operation has started. Damage to a window reflects both drawing within the window itself as well as drawing within any inferior window that affects pixels seen by IncludeInferiors rendering operations. To reduce the computational complexity of this, the DAMAGE extension allows the server to monitor all rendering operations within the physical target pixel storage that fall within the bounds of the window. In a system with a single frame buffer holding all windows, this means that damage will accumulate for all rendering operations that lie within the visible part of the window. The precise reason for this architecture is to enable the Composite extension which provides multiple pixel storage areas for the screen contents. 3.1 Additions in the 1.1 version of the protocol Damage is automatically computed by the X Server for X rendering operations, but direct rendering extensions have allowed clients to perform rendering outside of the control of the X Server. The 1.1 version of the protocol added a request to allow direct rendering clients to report damage to a drawable. Some direct rendering clients, due to architectural limitations, always perform rendering to the root window, even in when it should be performed to the backing pixmap in the Composite case. To provide less-incorrect rendering in this cases, the direct rendering client should translate its damage region to screen coordinates and report the damage against the root window rather than the drawable. 4. Data types The "Damage" object holds any accumulated damage region and reflects the relationship between the drawable selected for damage notification and the drawable for which damage is tracked. 5. Errors Damage A value for a DAMAGE argument does not name a defined DAMAGE. 6. Types DAMAGE 32-bit value (top three bits guaranteed to be zero) DamageReportLevel { DamageReportRawRectangles, DamageReportDeltaRectangles, DamageReportBoundingBox, DamageReportNonEmpty } DamageReportRawRectangles Delivers DamageNotify events each time the screen is modified with rectangular bounds that circumscribe the damaged area. No attempt to compress out overlapping rectangles is made. DamageReportDeltaRectangles Delivers DamageNotify events each time damage occurs which is not included in the damage region. The reported rectangles include only the changes to that area, not the raw damage data. DamageReportBoundingBox Delivers DamageNotify events each time the bounding box enclosing the damage region increases in size. The reported rectangle encloses the entire damage region, not just the changes to that size. DamageReportNonEmpty Delivers a single DamageNotify event each time the damage rectangle changes from empty to non-empty, and also whenever the result of a DamageSubtract request results in a non-empty region. 7. Events DamageNotify level: DamageReportLevel drawable: Drawable damage: DAMAGE more: Bool timestamp: Timestamp area: Rectangle drawable-geometry: Rectangle 'more' indicates whether there are subsequent damage events being delivered immediately as part of a larger damage region 8. Extension Initialization The client must negotiate the version of the extension before executing extension requests. Otherwise, the server will return BadRequest for any operations other than QueryVersion. QueryVersion client-major-version: CARD32 client-minor-version: CARD32 -> major-version: CARD32 minor-version: CARD32 The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. Servers are encouraged to support multiple versions of the extension. 9. Enable Monitoring DamageCreate damage: DAMAGE drawable: Drawable level: DamageReportLevel Creates a damage object to monitor changes to Drawable DamageDestroy damage: DAMAGE Destroys damage. DamageSubtract damage: DAMAGE repair: Region or None parts: Region or None Synchronously modifies the regions in the following manner: If repair is None: 1) if parts is not None, parts = damage 2) damage = Otherwise: 1) tmp = damage INTERSECT repair 2) damage = damage - tmp 3) if parts is not None, parts = tmp 4) Generate DamageNotify for remaining damage areas DamageAdd drawable: Drawable region: Region Reports damage of the region within the given drawable. This may be used by direct rendering clients to report damage that the server would otherwise be unaware of. The damage region is relative to the origin of the drawable. Damage posted in this way will appear in DamageNotify events as normal, and also in server internal damage tracking (for shadow framebuffer updates, pixmap damage, and other uses). xorgproto-2023.2/COPYING-trapproto0000644000175000017500000000172414443010026013647 00000000000000Copyright 1987, 1988, 1989, 1990, 1994 by Digital Equipment Corporation, Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. xorgproto-2023.2/COPYING-fontsproto0000644000175000017500000001032114443010026014023 00000000000000Copyright 1990, 1991 Network Computing Devices; Portions Copyright 1987 by Digital Equipment Corporation 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 names of Network Computing Devices or Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Network Computing Devices and Digital make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES OR DIGITAL 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. Copyright 1990, 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. Copyright (c) 1999 The XFree86 Project Inc. All Rights Reserved. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The XFree86 Project Inc. 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 XFree86 Project Inc.. xorgproto-2023.2/COPYING-windowswmproto0000644000175000017500000000214514443010026014735 00000000000000Copyright (c) 2002 Apple Computer, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. xorgproto-2023.2/COPYING-inputproto0000644000175000017500000000623614443010026014043 00000000000000Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1989 by Hewlett-Packard Company, Palo Alto, California. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HEWLETT-PACKARD 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. Copyright © 2009 Red Hat, Inc. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. xorgproto-2023.2/compositeproto.pc.in0000644000175000017500000000021414443010026014574 00000000000000prefix=@prefix@ includedir=@includedir@ Name: CompositeExt Description: Composite extension headers Version: 0.4.2 Cflags: -I${includedir} xorgproto-2023.2/xf86rushproto.pc.in0000644000175000017500000000021514443010026014270 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86RushProto Description: XF86Rush extension headers Version: 1.1.2 Cflags: -I${includedir} xorgproto-2023.2/randrproto.txt0000644000175000017500000033131214443010026013516 00000000000000 The X Resize, Rotate and Reflect Extension Version 1.6.0 2017-04-01 Jim Gettys Jim.Gettys@hp.com Cambridge Research Laboratory HP Labs Hewlett Packard Company Keith Packard keithp@keithp.com 1. Introduction The X Resize, Rotate and Reflect Extension, called RandR for short, brings the ability to resize, rotate and reflect the root window of a screen. It is based on the X Resize and Rotate Extension as specified in the Proceedings of the 2001 Usenix Technical Conference [RANDR]. RandR as implemented and integrated into the X server differs in one substantial fashion from the design discussed in that paper: that is, RandR 1.0 does not implement the depth switching described in that document, and the support described for that in the protocol in that document and in the implementation has been removed from the protocol described here, as it has been overtaken by events. These events include: â–º Modern toolkits (in this case, GTK+ 2.x) have progressed to the point of implementing migration between screens of arbitrary depths â–º The continued advance of Moore's law has made limited amounts of VRAM less of an issue, reducing the pressure to implement depth switching on laptops or desktop systems â–º The continued decline of legacy toolkits whose design would have required depth switching to support migration â–º The lack of depth switching implementation experience in the intervening time, due to events beyond our control Additionally, the requirement to support depth switching might complicate other re-engineering of the device independent part of the X server that is currently being contemplated. Rather than further delaying RandR's widespread deployment for a feature long wanted by the community (resizing of screens, particularly on laptops), or the deployment of a protocol design that might be flawed due to lack of implementation experience, we decided to remove depth switching from the protocol. It may be implemented at a later time if resources and interests permit as a revision to the protocol described here, which will remain a stable base for applications. The protocol described here has been implemented in the main X.org server, and more fully in the hw/kdrive implementation in the distribution, which fully implements resizing, rotation and reflection. 1.2 Introduction to version 1.2 of the extension One of the significant limitations found in version 1.1 of the RandR protocol was the inability to deal with the Xinerama model where multiple monitors display portions of a common underlying screen. In this environment, zero or more video outputs are associated with each CRT controller which defines both a set of video timings and a 'viewport' within the larger screen. This viewport is independent of the overall size of the screen, and may be located anywhere within the screen. The effect is to decouple the reported size of the screen from the size presented by each video output, and to permit multiple outputs to present information for a single screen. To extend RandR for this model, we separate out the output, CRTC and screen configuration information and permit them to be configured separately. For compatibility with the 1.1 version of the protocol, we make the 1.1 requests simultaneously affect both the screen and the (presumably sole) CRTC and output. The set of available outputs are presented with UTF-8 encoded names and may be connected to CRTCs as permitted by the underlying hardware. CRTC configuration is now done with full mode information instead of just size and refresh rate, and these modes have names. These names also use UTF-8 encoding. New modes may also be added by the user. Additional requests and events are provided for this new functionality. ┌────────────────────────────────┬──────────┠â”â”â”â”â”â”â”â”┳───────────────┠╔â•â•â•â•â•â•â•â•â•— â•”â•â•â•â•â•â•â•â•â•— ┃ 1 ┃ │ â•‘ A â•‘ â•‘ B â•‘ ┃ â”â”â”â”â•‹â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┫ â•‘ â•‘ â•‘ â•‘ ┣â”â”â”â•‹â”â”â”â”› ┃ ╚â•â•â•â•â•â•â•â•╠╚â•â•â•â•â•â•â•â•╠│ ┃ 2 ┃─────────────────┠│ ┃ ┃ â•”â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•— │ ┃ ┃ â•‘ â•‘ │ â”—â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┫ â•‘ C â•‘ └───────────────────────┘ â•‘ â•‘ ┌──────┠â”â”â”â”â”┓ â•”â•â•â•â•â•â•â•— â•‘ â•‘ │screen│ ┃CRTC┃ â•‘outputâ•‘ ╚â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•╠└──────┘ â”—â”â”â”â”â”› ╚â•â•â•â•â•â•â• In this picture, the screen is covered (incompletely) by two CRTCs. CRTC1 is connected to two outputs, A and B. CRTC2 is connected to output C. Outputs A and B will present exactly the same region of the screen using the same mode line. Output C will present a different (larger) region of the screen using a different mode line. RandR provides information about each available CRTC and output; the connection between CRTC and output is under application control, although the hardware will probably impose restrictions on the possible configurations. The protocol doesn't try to describe these restrictions, instead it provides a mechanism to find out what combinations are supported. 1.3 Introduction to version 1.3 of the extension Version 1.3 builds on the changes made with version 1.2 and adds some new capabilities without fundamentally changing the extension again. The following features are added in this version: • Projective Transforms. The implementation work for general rotation support made it trivial to add full projective transformations. These can be used to scale the screen up/down as well as perform projector keystone correct or other effects. • Panning. It was removed with RandR 1.2 because the old semantics didn't fit any longer. With RandR 1.3 panning can be specified per crtc. 1.4 Introduction to version 1.4 of the extension Version 1.4 adds an optional Border property. • An optional Border property. This property allows a client to specify that the viewport of the CRTC is smaller than the active display region described its mode. This is useful, for example, for compensating for the overscan behavior of certain televisions. Version 1.4 adds a new object called a provider object. A provider object represents a GPU or virtual device providing services to the X server. Providers have a set of abilities and a set of possible roles. Provider objects are used to control multi-GPU systems. Provider roles can be dynamically configured to provide support for: 1) Output slaving: plug in a USB device, but have its output rendered using the main GPU. On some dual-GPU laptops, the second GPU isn't connected to the LVDS panel, so we need to use the first GPU as an output slave for the second GPU. 2) offload - For dual-GPU laptops, allow direct rendered applications to be run on the second GPU and display on the first GPU. 3) GPU switching - Allow switching between two GPUs as the main screen renderer. 4) multiple GPU rendering - This replaces Xinerama. 1.5. Introduction to version 1.5 of the extension Version 1.5 adds an optional TILE property to outputs. • An optional TILE property. This property is used to denote individual tiles in a tiled monitor configuration, as exposed via DisplayID v1.3. Version 1.5 adds monitors • A 'Monitor' is a rectangular subset of the screen which represents a coherent collection of pixels presented to the user. • Each Monitor is associated with a list of outputs (which may be empty). • When clients define monitors, the associated outputs are removed from existing Monitors. If removing the output causes the list for that monitor to become empty, that monitor will be deleted. • For active CRTCs that have no output associated with any client-defined Monitor, one server-defined monitor will automatically be defined of the first Output associated with them. • When defining a monitor, setting the geometry to all zeros will cause that monitor to dynamically track the bounding box of the active outputs associated with them This new object separates the physical configuration of the hardware from the logical subsets of the screen that applications should consider as single viewable areas. 1.5.1. Relationship between Monitors and Xinerama Xinerama's information now comes from the Monitors instead of directly from the CRTCs. The Monitor marked as Primary will be listed first. 1.5.2. Clarification of Output lifetimes With dynamic connectors being a possibility with the introduction of DisplayPort multistream (MST), a lot of RandR clients can't handle the XID BadMatch when a RandR output disappears. This is to clarify that going forward the X server will not remove outputs dynamically, just mark them as disconnected. 1.6. Introduction to version 1.6 of the extension Version 1.6 adds resource leasing and non desktop output management. • A “Lease†is a collection of crtcs and outputs which are made available to a client for direct access via kernel KMS and DRM APIs. This is done by passing a suitable file descriptor back to the client which has access to those resources. While leased, those resources aren't used by the X server. • A “non-desktop†output is a device which should not normally be considered as part of the desktop environment. Head-mounted displays and the Apple "Touch Bar" are examples of such devices. A desktop environment should be able to discover which outputs are connected to such devices and, by default, not present normal desktop applications on them. This is done by having RRGetOutputInfo report such devices as Disconnected while reporting all other information about the device correctly. 1.99 Acknowledgments Our thanks to the contributors to the design found on the xpert mailing list, in particular: Alan Hourihane for work on the early implementation Andrew C. Aitchison for help with the XFree86 DDX implementation Andy Ritger for early questions about how mergefb/Xinerama work with RandR Carl Worth for editing the specification and Usenix paper David Dawes for XFree86 DDX integration work Thomas Winischhofer for the hardware-accelerated SiS rotation implementation Matthew Tippett and Kevin Martin for splitting outputs and CRTCs to more fully expose what video hardware can do Dave Airlie for the 1.4.0 protocol changes and for working through the implications of MST monitors and encouraging the introduction of the 'Monitor' concept. â§â§â§â§â§â§â§â§â§â§â§ 2. Screen change model Screens may change dynamically, either under control of this extension, or due to external events. Examples include: monitors being swapped, pressing a button to switch from internal display to an external monitor on a laptop, or, eventually, the hotplug of a display card entirely on buses such as Cardbus or Express Card which permit hot-swap (which will require other work in addition to this extension). Since the screen configuration is dynamic and asynchronous to the client and may change at any time RandR provides mechanisms to ensure that your clients view is up to date with the configuration possibilities of the moment and enforces applications that wish to control the configuration to prove that their information is up to date before honoring requests to change the screen configuration (by requiring a timestamp on the request). Interested applications are notified whenever the screen configuration changes, providing the current size of the screen and subpixel order (see the Render extension [RENDER]), to enable proper rendering of subpixel decimated client text to continue, along with a time stamp of the configuration change. A client must refresh its knowledge of the screen configuration before attempting to change the configuration after a notification, or the request will fail. To avoid multiplicative explosion between orientation, reflection and sizes, the sizes are only those sizes in the normal (0) rotation. Rotation and reflection and how they interact can be confusing. In Randr, the coordinate system is rotated in a counter-clockwise direction relative to the normal orientation. Reflection is along the window system coordinate system, not the physical screen X and Y axis, so that rotation and reflection do not interact. The other way to consider reflection is to is specified in the "normal" orientation, before rotation, if you find the other way confusing. We expect that most clients and toolkits will be oblivious to changes to the screen structure, as they generally use the values in the connections Display structure directly. By toolkits updating the values on the fly, we believe pop-up menus and other pop up windows will position themselves correctly in the face of screen configuration changes (the issue is ensuring that pop-ups are visible on the reconfigured screen). â§â§â§â§â§â§â§â§â§â§â§ 3. Data Types The subpixel order and transform data types are shared with the Render extension, and are documented there. The only datatype defined in the original extension is the screen size, defined in the normal (0 degree) orientation. Several more are added in later revisions. â§â§â§â§â§â§â§â§â§â§â§ 4. Errors Errors are sent using core X error reports. Output A value for an OUTPUT argument does not name a defined OUTPUT. CRTC A value for a CRTC argument does not name a defined CRTC. Mode A value for a MODE argument does not name a defined MODE. Provider A value for a PROVIDER argument does not name a defined PROVIDER. Lease A value for a LEASE argument does not name a defined LEASE â§â§â§â§â§â§â§â§â§â§â§ 5. Protocol Types RRCONFIGSTATUS { Success InvalidConfigTime InvalidTime Failed } A value of type RRCONFIGSTATUS returned when manipulating the output configuration or querying information from the server that has some time-dependency. InvalidConfigTime indicates that the supplied configuration timestamp does not match the current X server configuration timestamp. Usually this means that the output configuration has changed since the timestamp was received by the application. InvalidTime indicates that the supplied output reconfiguration time is earlier than the most recent output reconfiguration request. Generally this indicates that another application has reconfigured the output using a later timestamp. Failed is returned whenever the operation is unsuccessful for some other reason. This generally indicates that the requested output configuration is unsupported by the hardware. The goal is to make these limitations expressed by the protocol, but when that isn't possible it is correct to return this error value. If, as a implementer, you find this error code required, please submit the hardware constraints that exist so that a future version of the extension can correctly capture the configuration constraints in your system. ROTATION { Rotate_0 Rotate_90 Rotate_180 Rotate_270 Reflect_X Reflect_Y } These values are used both to indicate a set of allowed rotations and reflections as well as to indicate a specific rotation and reflection combination. RRSELECTMASK { RRScreenChangeNotifyMask RRCrtcChangeNotifyMask (New in version 1.2) RROutputChangeNotifyMask (New in version 1.2) RROutputPropertyNotifyMask (New in version 1.2) RRProviderChangeNotifyMask (New in version 1.4) RRProviderPropertyNotifyMask (New in version 1.4) RRResourceChangeNotifyMask (New in version 1.4) } SIZEID { CARD16 } MODE { XID or None } CRTC { XID } OUTPUT { XID } CONNECTION { Connected, Disconnected, UnknownConnection } This value provides an indication of whether an output is actually connected to a monitor or other presentation device. SCREENSIZE [ widthInPixels, heightInPixels: CARD16 widthInMillimeters, heightInMillimeters: CARD16 ] MODEFLAG { HSyncPositive HSyncNegative VSyncPositive VSyncNegative Interlace DoubleScan CSync CSyncPositive CSyncNegative HSkewPresent BCast PixelMultiplex DoubleClock ClockDivideBy2 } MODEINFO [ id: MODE name: STRING width, height: CARD16 dotClock: CARD32 hSyncStart, hSyncEnd, hTotal, hSkew: CARD16 vSyncStart, vSyncEnd, vTotal: CARD16 modeFlags: SETofMODEFLAG ] REFRESH [ rates: LISTofCARD16 ] â§â§â§â§â§â§â§â§â§â§â§ 5.1 Data Types defined by the Render extension These data types use the Render extension definitions; they are shown here only for convenience: SUBPIXELORDER { SubPixelUnknown SubPixelHorizontalRGB SubPixelHorizontalBGR SubPixelVerticalRGB SubPixelVerticalBGR SubPixelNone } FIXED 32-bit value (top 16 are integer portion, bottom 16 are fraction) TRANSFORM [ p11, p12, p13: FIXED p21, p22, p23: FIXED p31, p32, p33: FIXED ] â§â§â§â§â§â§â§â§â§â§â§ 5.5. Protocol Types added in version 1.4 of the extension PROVIDER { XID } PROVIDER_CAPS { SourceOutput, SinkOutput, SourceOffload, SinkOffload } Capabilities for this provider: SourceOutput: This device can source output buffers. SinkOutput: This device can sink output buffers. SourceOffload: This device can source offload buffers. SinkOffload: This device can sink offload buffers. â§â§â§â§â§â§â§â§â§â§â§ 5.6. Protocol Types added in version 1.5 of the extension MONITORINFO { name: ATOM primary: BOOL automatic: BOOL x: INT16 y: INT16 width: CARD16 height: CARD16 width-in-millimeters: CARD32 height-in-millimeters: CARD32 outputs: LISTofOUTPUT } â§â§â§â§â§â§â§â§â§â§â§ 5.7. Protocol Types added in version 1.6 of the extension LEASE { XID } â§â§â§â§â§â§â§â§â§â§â§ 6. Extension Initialization The name of this extension is "RANDR". ┌─── RRQueryVersion client-major-version: CARD32 client-minor-version: CARD32 â–¶ major-version: CARD32 minor-version: CARD32 └─── The client sends the highest supported version to the server and the server sends the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. â§â§â§â§â§â§â§â§â§â§â§ 7. Extension Requests ┌─── RRSelectInput window: WINDOW enable: SETofRRSELECTMASK └─── Errors: Window, Value If 'enable' is RRScreenChangeNotifyMask, RRScreenChangeNotify events will be sent when the screen configuration changes, either from this protocol extension, or due to detected external screen configuration changes. RRScreenChangeNotify may also be sent when this request executes if the screen configuration has changed since the client connected, to avoid race conditions. New for version 1.2: If 'enable' contains RRCrtcChangeNotifyMask, RRCrtcChangeNotify events will be sent when the configuration for a CRTC associated with the screen changes, either through this protocol extension or due to detected external changes. RRCrtcChangeNotify may also be sent when this request executes if the CRTC configuration has changed since the client connected, to avoid race conditions. If 'enable' contains RROutputChangeNotifyMask, RROutputChangeNotify events will be sent when the configuration for an output associated with the screen changes, either through this protocol extension or due to detected external changes. RROutputChangeNotify may also be sent when this request executes if the output configuration has changed since the client connected, to avoid race conditions. If 'enable' contains RROutputPropertyNotifyMask, RROutputPropertyNotify events will be sent when properties change on this output. New for version 1.4: If 'enable' contains RRProviderChangeNotifyMask, RRProviderChangeNotify events will be sent whenever the role for a provider object has changed. If 'enable' contains RRProviderPropertyNotifyMask, RRProviderPropertyNotify events will be sent when properties change on a provider object. If 'enable' contains RRResourceChangeNotifyMask, RRResourceChangeNotify events will be sent whenever the set of available RandR resources associated with the screen has changed. ┌─── RRSetScreenConfig window: WINDOW timestamp: TIMESTAMP config-timestamp: TIMESTAMP size-id: SIZEID rotation: ROTATION rate: CARD16 â–¶ status: RRCONFIGSTATUS new-timestamp: TIMESTAMP config-timestamp: TIMESTAMP root: WINDOW subpixelOrder: SUBPIXELORDER └─── Errors: Value, Match If 'timestamp' is less than the time when the configuration was last successfully set, the request is ignored and InvalidTime returned in status. If 'config-timestamp' is not equal to when the server's screen configurations last changed, the request is ignored and InvalidConfigTime returned in status. This could occur if the screen changed since you last made a RRGetScreenInfo request, perhaps by a different piece of display hardware being installed. Rather than allowing an incorrect call to be executed based on stale data, the server will ignore the request. 'rate' contains the desired refresh rate. If it is zero, the server selects an appropriate rate. This request may fail for other indeterminate reasons, in which case 'status' will be set to Failed and no configuration change will be made. This request sets the screen to the specified size, rate, rotation and reflection. When this request succeeds, 'status' contains Success and the requested changes to configuration will have been made. 'new-time-stamp' contains the time at which this request was executed. 'config-timestamp' contains the time when the possible screen configurations were last changed. 'root' contains the root window for the screen indicated by the window. 'subpixelOrder' contains the resulting subpixel order of the screen to allow correct subpixel rendering. Value errors are generated when 'rotation', 'rate' or 'size-id' are invalid. ┌─── RRGetScreenInfo window: WINDOW â–¶ rotations: SETofROTATION root: WINDOW timestamp: TIMESTAMP config-timestamp: TIMESTAMP size-id: SIZEID rotation: ROTATION rate: CARD16 sizes: LISTofSCREENSIZE refresh: LISTofREFRESH └─── Errors: Window RRGetScreenInfo returns information about the current and available configurations for the screen associated with 'window'. 'rotations' contains the set of rotations and reflections supported by the screen. 'root' is the root window of the screen. 'config-timestamp' indicates when the screen configuration information last changed: requests to set the screen will fail unless the timestamp indicates that the information the client is using is up to date, to ensure clients can be well behaved in the face of race conditions. 'timestamp' indicates when the configuration was last set. 'size-id' indicates which size is active. 'rate' is the current refresh rate. This is zero when the refresh rate is unknown or on devices for which refresh is not relevant. 'sizes' is the list of possible frame buffer sizes (at the normal orientation). Each size indicates both the linear physical size of the screen and the pixel size. 'refresh' is the list of refresh rates for each size. Each element of 'sizes' has a corresponding element in 'refresh'. An empty list indicates no known rates, or a device for which refresh is not relevant. The default size of the screen (the size that would become the current size when the server resets) is the first size in the list. 7.1. Extension Requests added in version 1.2 of the extension As introduced above, version 1.2 of the extension splits the screen size from the crtc and output configuration, permitting the subset of the screen presented by multiple outputs to be configured. As a separate notion, the size of the screen itself may be arbitrarily configured within a defined range. As crtcs and outputs are added and removed from the system, the set returned by the extension will change so that applications can detect dynamic changes in the display environment. ┌─── RRGetScreenSizeRange window: WINDOW â–¶ CARD16 minWidth, minHeight CARD16 maxWidth, maxHeight └─── Errors: Window Returns the range of possible screen sizes. The screen may be set to any size within this range. ┌─── RRSetScreenSize window: WINDOW width: CARD16 height: CARD16 width-in-millimeters: CARD32 height-in-millimeters: CARD32 └─── Errors: Window, Match, Value Sets the screen to the specified size. 'width' and 'height' must be within the range allowed by GetScreenSizeRanges, otherwise a Value error results. All active monitors must be configured to display a subset of the specified size, else a Match error results. 'width-in-millimeters' and 'height-in-millimeters' can be set to reflect the physical size of the screen reported both through this extension and the core protocol. They must be non-zero, or Value error results. If panning is enabled, the width and height of the panning and the tracking areas are adapted to the new size and clamped afterwards. Disabled panning axes remain disabled. Panning borders are disabled if their requirements are no longer met (see RRSetPanning). ┌─── RRGetScreenResources window: WINDOW â–¶ timestamp: TIMESTAMP config-timestamp: TIMESTAMP crtcs: LISTofCRTC outputs: LISTofOUTPUT modes: LISTofMODEINFO └─── Errors: Window RRGetScreenResources returns the list of outputs and crtcs connected to the screen associated with 'window'. 'timestamp' indicates when the configuration was last set. 'config-timestamp' indicates when the configuration information last changed. Requests to configure the output will fail unless the timestamp indicates that the information the client is using is up to date, to ensure clients can be well behaved in the face of race conditions. 'crtcs' contains the list of CRTCs associated with the screen. 'outputs' contains the list of outputs associated with the screen. 'modes' contains the list of modes associated with the screen This request explicitly asks the server to ensure that the configuration data is up-to-date wrt the hardware. If that requires polling, this is when such polling would take place. If the current configuration is all that's required, use RRGetScreenResourcesCurrent instead. ┌─── RRGetOutputInfo output: OUTPUT config-timestamp: TIMESTAMP â–¶ status: RRCONFIGSTATUS timestamp: TIMESTAMP crtc: CRTC name: STRING connection: CONNECTION subpixel-order: SUBPIXELORDER widthInMillimeters, heightInMillimeters: CARD32 crtcs: LISTofCRTC clones: LISTofOUTPUT modes: LISTofMODE num-preferred: CARD16 └─── Errors: Output RRGetOutputInfo returns information about the current and available configurations 'output'. If 'config-timestamp' does not match the current configuration timestamp (as returned by RRGetScreenResources), 'status' is set to InvalidConfigTime and the remaining reply data is empty. Otherwise, 'status' is set to Success. 'timestamp' indicates when the configuration was last set. 'crtc' is the current source CRTC for video data, or Disabled if the output is not connected to any CRTC. 'name' is a UTF-8 encoded string designed to be presented to the user to indicate which output this is. E.g. "S-Video" or "DVI". 'connection' indicates whether the hardware was able to detect a device connected to this output. If the hardware cannot determine whether something is connected, it will set this to UnknownConnection. 'subpixel-order' contains the resulting subpixel order of the connected device to allow correct subpixel rendering. 'widthInMillimeters' and 'heightInMillimeters' report the physical size of the displayed area. If unknown, or not really fixed (e.g., for a projector), these values are both zero. 'crtcs' is the list of CRTCs that this output may be connected to. Attempting to connect this output to a different CRTC results in a Match error. 'clones' is the list of outputs which may be simultaneously connected to the same CRTC along with this output. Attempting to connect this output with an output not in the 'clones' list results in a Match error. 'modes' is the list of modes supported by this output. Attempting to connect this output to a CRTC not using one of these modes results in a Match error. The first 'num-preferred' modes in 'modes' are preferred by the monitor in some way; for fixed-pixel devices, this would generally indicate which modes match the resolution of the output device. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, the 'connection' field will report Disconnected but the remaining fields will report information about the connected device. ┌─── RRListOutputProperties output:OUTPUT â–¶ atoms: LISTofATOM └─── Errors: Output This request returns the atoms of properties currently defined on the output. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, the property list will be correct for the device, even though RRGetOutputInfo reports the device as disconnected. ┌─── RRQueryOutputProperty output: OUTPUT property: ATOM â–¶ pending: BOOL range: BOOL immutable: BOOL valid-values: LISTofINT32 └─── Errors: Name, Atom, Output If the specified property does not exist for the specified output, then a Name error is returned. If 'pending' is TRUE, changes made to property values with RRChangeOutputProperty will be saved in the pending property value and be automatically copied to the current value on the next RRSetCrtcConfig request involving the named output. If 'pending' is FALSE, changes are copied immediately. If 'range' is TRUE, then the valid-values list will contain precisely two values indicating the minimum and maximum allowed values. If 'range' is FALSE, then the valid-values list will contain the list of possible values; attempts to set other values will result in a Value error. If 'immutable' is TRUE, then the property configuration cannot be changed by clients. Immutable properties are interpreted by the X server. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, the property information will be correct for the device, even though RRGetOutputInfo reports the device as disconnected. ┌─── RRConfigureOutputProperty output: OUTPUT property: ATOM pending: BOOL range: BOOL valid-values: LISTofINT32 └─── Errors: Access, Name, Atom, Output If the specified property is 'immutable', an Access error is returned. Otherwise, the configuration of the specified property is changed to the values provided in this request. If the specified property does not exist for the specified output, it is created with an empty value and None type. ┌─── RRChangeOutputProperty output: OUTPUT property, type: ATOM format: {8, 16, 32} mode: { Replace, Prepend, Append } data: LISTofINT8 or LISTofINT16 or LISTofINT32 └─── Errors: Alloc, Atom, Match, Value, Output This request alters the value of the property for the specified output. If the property is marked as a 'pending' property, only the pending value of the property is changed. Otherwise, changes are reflected in both the pending and current values of the property. The type is uninterpreted by the server. The format specifies whether the data should be viewed as a list of 8-bit, 16-bit, or 32-bit quantities so that the server can correctly byte-swap as necessary. If the mode is Replace, the previous property value is discarded. If the mode is Prepend or Append, then the type and format must match the existing property value (or a Match error results). If the property is undefined, it is treated as defined with the correct type and format with zero-length data. For Prepend, the data is tacked on to the beginning of the existing data, and for Append, it is tacked on to the end of the existing data. This request generates a OutputPropertyNotify The lifetime of a property is not tied to the storing client. Properties remain until explicitly deleted, until the output is destroyed, or until server reset (see section 10). The maximum size of a property is server-dependent and may vary dynamically. ┌─── RRDeleteOutputProperty output: OUTPUT property: ATOM └─── Errors: Atom, Output This request deletes the property from the specified window if the property exists and generates a OutputPropertyNotify event unless the property does not exist. ┌─── RRGetOutputProperty output: OUTPUT property: ATOM type: ATOM or AnyPropertyType long-offset, long-length: CARD32 delete: BOOL pending: BOOL â–¶ type: ATOM or None format: {0, 8, 16, 32} bytes-after: CARD32 value: LISTofINT8 or LISTofINT16 or LISTofINT32 └─── Errors: Atom, Value, Output If the specified property does not exist for the specified output, then the return type is None, the format and bytes-after are zero, and the value is empty. The delete argument is ignored in this case. If the specified property exists but its type does not match the specified type, then the return type is the actual type of the property, the format is the actual format of the property (never zero), the bytes-after is the length of the property in bytes (even if the format is 16 or 32), and the value is empty. The delete argument is ignored in this case. If the specified property exists and either AnyPropertyType is specified or the specified type matches the actual type of the property, then the return type is the actual type of the property, the format is the actual format of the property (never zero), and the bytes-after and value are as follows, given: N = actual length of the stored property in bytes (even if the format is 16 or 32) I = 4 × offset T = N - I L = MINIMUM(T, 4 × long-length) A = N - (I + L) If 'pending' is true, and if the property holds a pending value, then the value returned will be the pending value of the property rather than the current value. The returned value starts at byte index I in the property (indexing from 0), and its length in bytes is L. However, it is a Value error if long-offset is given such that L is negative. The value of bytes-after is A, giving the number of trailing unread bytes in the stored property. If delete is True and the bytes-after is zero, the property is also deleted from the output, and a RROutputPropertyNotify event is generated. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, the property value will be correct for the device, even though RRGetOutputInfo reports the device as disconnected. ┌─── RRCreateMode window: WINDOW modeinfo: MODEINFO â–¶ mode: MODE └─── Errors: Window, Name, Value 'modeinfo' provides a new mode for outputs on the screen associated with 'window'. If the name of 'modeinfo' names an existing mode, a Name error is returned. If some parameter of the mode is not valid in some other way, a Value error is returned. The returned 'mode' provides the id for the mode. ┌─── RRDestroyMode mode: MODE └─── Errors: Mode, Access The user-defined 'mode' is destroyed. 'mode' must name a mode defined with RRCreateMode, else an Match error is returned. If 'mode' is in use by some CRTC or Output, then an Access error is returned. ┌─── RRAddOutputMode output: OUTPUT mode: MODE └─── Errors: Output, Mode, Match 'output' indicates which output is to be configured. 'mode' specifies which mode to add. If 'mode' is not valid for 'output', then a Match error is generated. This request generates OutputChangeNotify events. ┌─── RRDeleteOutputMode output: OUTPUT mode: MODE └─── Errors: Output, Mode 'output' indicates which output is to be configured. 'mode' specifies which mode to delete. 'mode' must have been added with RRAddOutputMode, else an Access error is returned. 'mode' must not be active, else a Match error is returned. This request generates OutputChangeNotify events. ┌─── RRGetCrtcInfo crtc: CRTC config-timestamp: TIMESTAMP â–¶ status: RRCONFIGSTATUS timestamp: TIMESTAMP x, y: INT16 width, height: CARD16 mode: MODE rotation: ROTATION outputs: LISTofOUTPUT rotations: SETofROTATION possible-outputs: LISTofOUTPUT └─── Errors: Window RRGetCrtcInfo returns information about the current and available configurations for the specified crtc connected to the screen associated with 'window'. If 'config-timestamp' does not match the current configuration timestamp (as returned by RRGetScreenResources), 'status' is set to InvalidConfigTime and the remaining reply data is empty. Otherwise, 'status' is set to Success. 'timestamp' indicates when the configuration was last set. 'x' and 'y' indicate the position of this CRTC within the screen region. They will be set to 0 when the CRTC is disabled. 'width' and 'height' indicate the size of the area within the screen presented by this CRTC. This may be different than the size of the mode due to rotation, the projective transform, and the Border property described below. They will be set to 0 when the CRTC is disabled. 'mode' indicates which mode is active, or None indicating that the CRTC has been disabled and is not displaying the screen contents. 'rotation' indicates the active rotation. It is set to Rotate_0 when the CRTC is disabled. 'outputs' is the list of outputs currently connected to this CRTC and is empty when the CRTC is disabled. 'rotations' contains the set of rotations and reflections supported by the CRTC. 'possible-outputs' lists all of the outputs which may be connected to this CRTC. ┌─── RRSetCrtcConfig crtc: CRTC timestamp: TIMESTAMP config-timestamp: TIMESTAMP x, y: INT16 mode: MODE rotation: ROTATION outputs: LISTofOUTPUT â–¶ status: RRCONFIGSTATUS new-timestamp: TIMESTAMP └─── Errors: Value, Match If 'timestamp' is less than the time when the configuration was last successfully set, the request is ignored and InvalidTime returned in status. If 'config-timestamp' is not equal to when the monitor's configuration last changed, the request is ignored and InvalidConfigTime returned in status. This could occur if the monitor changed since you last made a RRGetScreenInfo request, perhaps by a different monitor being connected to the machine. Rather than allowing an incorrect call to be executed based on stale data, the server will ignore the request. 'x' and 'y' contain the desired location within the screen for this monitor's content. 'x' and 'y' must be within the screen size, else a Value error results. 'mode' is either the desired mode or None indicating the CRTC should be disabled. If 'mode' is not one of these values, a Value error results. 'mode' must be valid for all of the configured outputs, else a Match error. 'rotation' contains the desired rotation along with which reflections should be enabled. The rotation and reflection values must be among those allowed for this monitor, else a Value error results. 'outputs' contains the set of outputs that this CRTC should be connected to. The set must be among the list of acceptable output sets for this CRTC or a Match error results. If 'mode' is None, then 'outputs' must be empty, else a Match error results. Conversely, if 'mode' is not None, then 'outputs' must not be empty, else a Match error results. This request may fail for other indeterminate reasons, in which case 'status' will be set to Failed and no configuration change will be made. This request sets the CRTC to the specified position, mode, rotation and reflection. The entire area of the CRTC must fit within the screen size, else a Match error results. As an example, rotating the screen so that a single CRTC fills the entire screen before and after may necessitate disabling the CRTC, resizing the screen, then re-enabling the CRTC at the new configuration to avoid an invalid intermediate configuration. If panning is enabled, the width and height of the panning and the tracking areas are clamped to the new mode size. Disabled panning axes remain disabled. Panning borders are disabled if their requirements are no longer met (see RRSetPanning). When this request succeeds, 'status' contains Success and the requested changes to configuration will have been made. 'new-time-stamp' contains the time at which this request was executed. ┌─── RRGetCrtcGammaSize crtc: CRTC â–¶ size: CARD16 └─── Errors: Crtc This request returns the size of the gamma ramps used by 'crtc'. ┌─── RRGetCrtcGamma crtc: CRTC â–¶ red: LISTofCARD16 green: LISTofCARD16 blue: LISTofCARD16 └─── Errors: Crtc This request returns the currently set gamma ramps for 'crtc'. All three lists will be the size returned by the RRGetCrtcGammaSize request. ┌─── RRSetCrtcGamma crtc: CRTC red: LISTofCARD16 green: LISTofCARD16 blue: LISTofCARD16 └─── Errors: Crtc, Match This request sets the gamma ramps for 'crtc'. All three lists must be the size returned by RRGetCrtcGammaSize else a Value error results. 7.2. Extension Requests added in version 1.3 of the extension ┌─── RRGetScreenResourcesCurrent window: WINDOW â–¶ timestamp: TIMESTAMP config-timestamp: TIMESTAMP crtcs: LISTofCRTC outputs: LISTofOUTPUT modes: LISTofMODEINFO └─── Errors: Window RRGetScreenResourcesCurrent returns the list of outputs and crtcs connected to the screen associated with 'window'. 'timestamp' indicates when the configuration was last set. 'config-timestamp' indicates when the configuration information last changed. Requests to configure the output will fail unless the timestamp indicates that the information the client is using is up to date, to ensure clients can be well behaved in the face of race conditions. 'crtcs' contains the list of CRTCs associated with the screen. 'outputs' contains the list of outputs associated with the screen. 'modes' contains the list of modes associated with the screen. Unlike RRGetScreenResources, this merely returns the current configuration, and does not poll for hardware changes. ┌─── RRSetCrtcTransform crtc: CRTC transform: TRANSFORM filter: STRING8 values: LISTofFIXED └─── Errors: Crtc, Match This request provides a mechanism that is more general than the existing rotation and reflection values for describing the transformation from frame buffer image to crtc presentation. 'transform' is a full 2D projective transformation from screen coordinate space to crtc coordinate space. This transformation is applied before the rotation and reflection values to compute the complete transform. 'filter' and 'values' specify a Render filter that may be used by the server when transforming data from frame buffer to crtc. This request sets the transform to be used at the next RRSetCrtcConfig request execution; it does not cause any change to occur in the current configuration. When a non-identity transformation is in use, the rectangle returned by RRGetCrtcInfo defines the bounding rectangle of the screen that is projected to the crtc. It is this projected rectangle which must be within the area of the screen when the mode is set. ┌─── RRGetCrtcTransform crtc: CRTC â–¶ pending-transform: TRANSFORM pending-filter: STRING8 pending-values: LISTofFIXED current-transform: TRANSFORM current-filter: STRING8 current-values: LISTofFIXED └─── This request returns the pending and current transforms for the specified CRTC. The pending transform will be the same as the current transform if no new pending transform has been set since the last call to RRSetCrtcConfig. ┌─── RRGetPanning crtc: CRTC â–¶ status: RRCONFIGSTATUS timestamp: TIMESTAMP left, top, width, height: CARD16 track_left, track_top, track_width, track_height: CARD16 border_left, border_top, border_right, border_bottom: INT16 └─── Errors: Crtc Version 1.3 adds panning support again. If multiple crtcs are active the panning behavior can be defined per crtc individually. RRGetPanning returns information about the currently set panning configuration for the specified crtc. If the CRTC does not support panning, all fields (except timestamp) will be 0. 'timestamp' indicates when the configuration was last set. All other entries are explained for RRSetPanning. ┌─── RRSetPanning crtc: CRTC timestamp: TIMESTAMP left, top, width, height: CARD16 track_left, track_top, track_width, track_height: CARD16 border_left, border_top, border_right, border_bottom: INT16 â–¶ status: RRCONFIGSTATUS new-timestamp: TIMESTAMP └─── Errors: Crtc, Match This request sets the panning parameters. As soon as panning is enabled, the CRTC position can change with every pointer move. RRCrtcChangeNotify events are sent to the clients requesting those. If 'timestamp' is less than the time when the configuration was last successfully set, the request is ignored and InvalidTime returned in status. ┌──┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳─────┬ ─ ─ ─ ─ ─ ┠│ ┃ CRTC ┃ │ │ ┃ ┃ │ │ │ ┃ X┃→ │ │ ┃ ┃ │ │ framebuffer │ â”—â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”› │ │ │ │ │panning area │ └───────────────────────┴ ─ ─ ─ ─ ─ ┘ 'left', 'top', 'width', and 'height' contain the total panning area for this CRTC. 'width' has to be larger than or equal to the CRTC's width or 0, and 'left'+'width' must be within the screen size, else a Match error results. Equivalent restrictions for the height exist. 'width' or 'height' set to 0 indicate that panning should be disabled on the according axis. Setting 'width'/'height' to the CRTC's width/height will disable panning on the X/Y axis as well, but RRSetScreenSize will silently enable panning if the screen size is increased. This does not happen if set to 0. ┌────────┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳ ─ ─ ─ ─ ─ ┠│ ┃ CRTC ┃ │ ┃ ┃ │ │ ┃ ┃ │ ┃ ┃ │ tracking area │ â”—â”â”â”â”â”â”â”â”â”â”â”â”â”â”┫ X │ ↓ │ ↓ │ │panning area │ └───────────────────────┴ ─ ─ ─ ─ ─ ┘ 'track_left', 'track_top', 'track_width', and 'track_height' contain the pointer area for which the panning region is updated. For normal use cases it should enclose the panning area minus borders, and is typically set to either the panning area minus borders, or to the total screen size. If set to the total screen size, the CRTC will pan in the remaining axis even if the pointer is outside the panning area on a different CRTC, as shown in the figure above. If the pointer is outside the tracking area, the CRTC will not pan. Zero can be used as an alias for the total screen size. ┌──┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳────────────┠│ ┃ CRTC ┃ │ │ ┃ ┃ │ │ ┃ ┃→ │ │ ┃ Xâ†â†’┃ │ │ ┃ border_right │ │ â”—â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”› │ │ │ │panning area │ └──────────────────────────────┘ 'border_left', 'border_top', 'border_right', and 'border_bottom' define the distances from the CRTC borders that will activate panning if the pointer hits them. If the borders are 0, the screen will pan when the pointer hits the CRTC borders (behavior of pre-RandR Xserver panning). If the borders are positive, the screen will pan when the pointer gets close to the CRTC borders, if they are negative, the screen will only pan when the pointer is already way past the CRTC borders. Negative values might confuse users and disable panning to the very edges of the screen. Thus they are discouraged. border_left + border_right has to be lower or equal than the CRTC's width, else a Match error results. An equivalent restriction for the height exists. Screen size changes update the panning and the tracking areas to the new size. Both screen size changes and mode changes clamp these areas to the current CRTC size. In these cases panning borders are disabled if their requirements are no longer met. When this request succeeds, 'status' contains Success and the requested changes to configuration will have been made. 'new-time-stamp' contains the time at which this request was executed. ┌─── RRSetOutputPrimary window: WINDOW output: OUTPUT └─── Errors: Match, Output, Window RRSetOutputPrimary marks 'output' as the primary output for the screen with the same root window as 'window'. This output's CRTC will be sorted to the front of the list in Xinerama and RANDR geometry requests for the benefit of older applications. The default primary output is None, and None is a legal value to pass to RRSetOutputPrimary. This request is expected to be used by desktop environments to mark the screen that should hold the primary menu bar or panel. As this changes the logical layout of the screen, ConfigureNotify and RRScreenChangeNotify will be generated on the appropriate root window when the primary output is changed by this call. This request also generates RROutputChangeNotify events on the outputs that gained and lost primary status. If an output is disconnected asynchronously (eg. due to recabling), the primary status does not change, but RROutputChangeNotify events will be generated if the hardware is capable of detecting this; clients are expected to reconfigure if appropriate. If an output is deleted (eg. due to device hotplug), the server will act as though None was passed to RRSetOutputPrimary, including generating the appropriate events. ┌─── RRGetOutputPrimary window: WINDOW â–¶ output: OUTPUT └─── Errors: Window RRGetOutputPrimary returns the primary output for the screen. â§â§â§â§â§â§â§â§â§â§â§ 7.4 Extension Requests added in version 1.4 of the extension. ┌─── RRGetProviders window : WINDOW â–¶ timestamp: TIMESTAMP providers: LISTofPROVIDER └─── Errors: Window RRGetProviders returns the list of providers connected to the screen associated with 'window'. 'timestamp' indicates when the configuration was last set. 'providers' contains the list of PROVIDERs associated with the screen. ┌─── RRGetProviderInfo provider: PROVIDER â–¶ capabilities: PROVIDER_CAPS name: STRING crtcs: LISTofCRTC outputs: LISTofOUTPUT associated_providers: LISTofPROVIDERS associated_provider_capability: LISTofPROVIDER_CAPS └─── Errors: Provider RRGetProviderInfo return information about the specified provider. The capabilities of the current provider are returned, along with the list of providers currently associated with this provider and the capability they are associated with. It also provides the list of crtcs and outputs that this provider is responsible for. 'name' is a UTF-8 encoded string to be presented to the user to indicate the device or driver supplied name. ┌─── RRSetProviderOffloadSink provider: PROVIDER sink_provider: PROVIDER config-timestamp: TIMESTAMP └─── Errors: Provider RRSetOffloadSink sets the offload sink for this provider to the specified provider. ┌─── RRSetProviderOutputSource provider: PROVIDER source_provider: PROVIDER config-timestamp: TIMESTAMP └─── Errors: Provider RRSetOutputSource sets the output source for this provider to the specified provider. ┌─── RRListProviderProperties provider:PROVIDERS â–¶ atoms: LISTofATOM └─── Errors: Provider This request returns the atoms of properties currently defined on the provider. ┌─── RRQueryProviderProperty provider: PROVIDER property: ATOM â–¶ pending: BOOL range: BOOL immutable: BOOL valid-values: LISTofINT32 └─── Errors: Name, Atom, Provider If the specified property does not exist for the specified provider, then a Name error is returned. If 'pending' is TRUE, changes made to property values with RRChangeProviderProperty will be saved in the pending property value and be automatically copied to the current value on the next RRSetCrtcConfig request on a crtc attached to that provider. If 'pending' is FALSE, changes are copied immediately. If 'range' is TRUE, then the valid-values list will contain precisely two values indicating the minimum and maximum allowed values. If 'range' is FALSE, then the valid-values list will contain the list of possible values; attempts to set other values will result in a Value error. If 'immutable' is TRUE, then the property configuration cannot be changed by clients. Immutable properties are interpreted by the X server. ┌─── RRConfigureProviderProperty provider: PROVIDER property: ATOM pending: BOOL range: BOOL valid-values: LISTofINT32 └─── Errors: Access, Name, Atom, Provider If the specified property is 'immutable', an Access error is returned. Otherwise, the configuration of the specified property is changed to the values provided in this request. If the specified property does not exist for the specified provider, it is created with an empty value and None type. ┌─── RRChangeProviderProperty provider: PROVIDER property, type: ATOM format: {8, 16, 32} mode: { Replace, Prepend, Append } data: LISTofINT8 or LISTofINT16 or LISTofINT32 └─── Errors: Alloc, Atom, Match, Value, Provider This request alters the value of the property for the specified provider. If the property is marked as a 'pending' property, only the pending value of the property is changed. Otherwise, changes are reflected in both the pending and current values of the property. The type is uninterpreted by the server. The format specifies whether the data should be viewed as a list of 8-bit, 16-bit, or 32-bit quantities so that the server can correctly byte-swap as necessary. If the mode is Replace, the previous property value is discarded. If the mode is Prepend or Append, then the type and format must match the existing property value (or a Match error results). If the property is undefined, it is treated as defined with the correct type and format with zero-length data. For Prepend, the data is tacked on to the beginning of the existing data, and for Append, it is tacked on to the end of the existing data. This request generates a ProviderPropertyNotify The lifetime of a property is not tied to the storing client. Properties remain until explicitly deleted, until the provider is destroyed, or until server reset (see section 10). The maximum size of a property is server-dependent and may vary dynamically. ┌─── RRDeleteProviderProperty provider: Provider property: ATOM └─── Errors: Atom, Provider This request deletes the property from the specified provider if the property exists and generates a ProviderPropertyNotify event unless the property does not exist. ┌─── RRGetProviderProperty provider: PROVIDER property: ATOM type: ATOM or AnyPropertyType long-offset, long-length: CARD32 delete: BOOL pending: BOOL â–¶ type: ATOM or None format: {0, 8, 16, 32} bytes-after: CARD32 value: LISTofINT8 or LISTofINT16 or LISTofINT32 └─── Errors: Atom, Value, Provider If the specified property does not exist for the specified provider, then the return type is None, the format and bytes-after are zero, and the value is empty. The delete argument is ignored in this case. If the specified property exists but its type does not match the specified type, then the return type is the actual type of the property, the format is the actual format of the property (never zero), the bytes-after is the length of the property in bytes (even if the format is 16 or 32), and the value is empty. The delete argument is ignored in this case. If the specified property exists and either AnyPropertyType is specified or the specified type matches the actual type of the property, then the return type is the actual type of the property, the format is the actual format of the property (never zero), and the bytes-after and value are as follows, given: N = actual length of the stored property in bytes (even if the format is 16 or 32) I = 4 × offset T = N - I L = MINIMUM(T, 4 × long-length) A = N - (I + L) If 'pending' is true, and if the property holds a pending value, then the value returned will be the pending value of the property rather than the current value. The returned value starts at byte index I in the property (indexing from 0), and its length in bytes is L. However, it is a Value error if long-offset is given such that L is negative. The value of bytes-after is A, giving the number of trailing unread bytes in the stored property. If delete is True and the bytes-after is zero, the property is also deleted from the provider, and a RRProviderPropertyNotify event is generated. â§â§â§â§â§â§â§â§â§â§â§ 7.5. Extension Requests added in version 1.5 of the extension. ┌─── RRGetMonitors window : WINDOW get_active : BOOL â–¶ timestamp: TIMESTAMP monitors: LISTofMONITORINFO └─── Errors: Window Returns the list of Monitors for the screen containing 'window'. If 'get_active' is set it returns only active monitors (non-0x0 monitors). 'get_active' should always be set by toolkits, and not by configuration clients. 'timestamp' indicates the server time when the list of monitors last changed. ┌─── RRSetMonitor window : WINDOW info: MONITORINFO └─── Errors: Window, Output, Atom, Value Create a new monitor. Any existing Monitor of the same name is deleted. 'name' must be a valid atom or an Atom error results. 'name' must not match the name of any Output on the screen, or a Value error results. If 'info.outputs' is non-empty, and if x, y, width, height are all zero, then the Monitor geometry will be dynamically defined to be the bounding box of the geometry of the active CRTCs associated with them. If 'name' matches an existing Monitor on the screen, the existing one will be deleted as if RRDeleteMonitor were called. If an 'info.output' contains only the automatically generated default monitor, this is replaced by the new monitor. If the 'info.output' already contains a user-defined monitor, the new monitor will be added. This allows to have more than one monitor on an output (e.g. to split an output into multiple virtual monitors). Only one monitor per screen may be primary. If 'info.primary' is true, then the primary value will be set to false on all other monitors on the screen. RRSetMonitor generates a ConfigureNotify event on the root window of the screen. ┌─── RRDeleteMonitor window : WINDOW name: ATOM └─── Errors: Window, Atom, Value Deletes the named Monitor. 'name' must be a valid atom or an Atom error results. 'name' must match the name of a Monitor on the screen, or a Value error results. If the last user-defined monitor is removed from an 'info.output', the automatically generated default monitor will be restored. It is not possible to delete the automatically generated default monitor. RRDeleteMonitor generates a ConfigureNotify event on the root window of the screen. â§â§â§â§â§â§â§â§â§â§â§ 7.6. Extension Requests added in version 1.6 of the extension. ┌─── RRCreateLease window : WINDOW lid: LEASE crtcs: LISTofCRTC outputs: LISTofOUTPUT â–¶ nfd: CARD8 lease: FD └─── Errors: IdChoice, Window, Access, Value, CRTC, Output Creates a new Lease called 'lid' for the specified crtcs and outputs from the screen defined by 'window'. Returns a KMS/DRM file descriptor which can control the leased objects directly through the kernel. While leased, all resources will appear to be 'useless' to clients other than the leasing client as follows: • Crtcs are reported as having no 'possible-outputs' and all other values reported as if the crtc were disabled. • Outputs are reported as having no crtcs they can be connected to, no clones they can share a crtc with, will report a connection status of Disconnected, and will show the current crtc as if it were disabled. The lease remains in effect until the file descriptor is closed, even if the client holding the lease disconnects from the X server. Returns an Access error if any of the named resources are already leased to another client. ┌─── RRFreeLease lid: LEASE terminate: BOOL └─── Errors: Lease Frees the reference to the lease 'lid'. If 'terminate' is true, then the lease is terminated and all leased resources returned to the X server. If 'terminate' is false, then the lease remains in effect, but the X server no longer has a name for it. â§â§â§â§â§â§â§â§â§â§â§ 8. Extension Events Clients MAY select for ConfigureNotify on the root window to be informed of screen changes. This may be advantageous if all your client needs to know is the size of the root window, as it avoids round trips to set up the extension. RRScreenChangeNotify is sent if RRSelectInput has requested it whenever properties of the screen change, which may be due to external factors, such as re-cabling a monitor, etc. ┌─── RRScreenChangeNotify rotation: ROTATION; new rotation sequenceNumber: CARD16 low 16 bits of request seq. number timestamp: TIMESTAMP time screen was changed configTimestamp: TIMESTAMP time config data was changed root: WINDOW root window of screen window: WINDOW window requesting notification size-id: SIZEID index of new SCREENSIZE subpixelOrder: SUBPIXELORDER order of subpixels widthInPixels: CARD16 width in pixels of the new SCREENSIZE heightInPixels: CARD16 height in pixels of the new SCREENSIZE widthInMillimeters: CARD16 width in mm of the new SCREENSIZE heightInMillimeters: CARD16 height in mm of the new SCREENSIZE └─── This event is generated whenever the screen configuration is changed and sent to requesting clients. 'timestamp' indicates when the screen configuration was changed. 'configTimestamp' says when the last time the configuration was changed. 'root' is the root of the screen the change occurred on, 'window' is window selecting for this event. 'size-id' contains the index of the current size. This event is sent whenever the screen's configuration changes or if a new screen configuration becomes available that was not available in the past. In this case (config-timestamp in the event not being equal to the config-timestamp returned in the last call to RRGetScreenInfo), the client MUST call RRGetScreenInfo to update its view of possible screen configurations to have a correct view of possible screen organizations. Clients which select screen change notification events may be sent an event immediately if the screen configuration was changed between when they connected to the X server and selected for notification. This is to prevent a common race that might occur on log-in, where many applications start up just at the time when a display manager or log in script might be changing the screen size or configuration. Note that the sizes in this event reflect the new SCREENSIZE and thus will appear rotated by the 'rotation' parameter from the sizes of the screen itself. In other words, when rotation is 90 or 270, widthInPixels in this event will be the same as the height value from a ConfigureNotify that reflects the same size change. This will probably confuse developers. 8.1 Events added in version 1.2 of the RandR extension ┌─── RROutputChangeNotify: timestamp: TIMESTAMP time screen was reconfigured config-timestamp: TIMESTAMP time available config data was changed window: WINDOW window requesting notification output: OUTPUT output affected by change crtc: CRTC connected CRTC or None mode: MODE mode in use on CRTC or None connection: CONNECTION connection status └─── This event is generated whenever the available output configurations have changed and is sent to requesting clients. 'timestamp' indicates when the crtc configuration was changed by a client. 'config-timestamp' says when the last time the available configurations changed. 'root' is the root of the screen the change occurred on, 'window' is window selecting for this event. The precise change can be detected by examining the new state of the system. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, this event will be delivered when the connection status of the output changes, however the 'connection' value will be set to 'Disconnected'. ┌─── RROutputPropertyNotify: window: WINDOW window requesting notification output: OUTPUT output affected by change atom: ATOM affected property time: TIMESTAMP time property was changed subpixel-order: SUBPIXELORDER order of subpixels state: { NewValue, Deleted } new property state └─── This event is reported to clients selecting RROutputPropertyChange on the window and is generated with state NewValue when a property of the window is changed using RRChangeOutputProperty even when adding zero-length data and when replacing all or part of a property with identical data. It is generated with state Deleted when a property of the window is deleted using either RRDeleteOutputProperty or RRGetOutputProperty. The timestamp indicates the server time when the property was changed. ┌─── RRCrtcChangeNotify timestamp: TIMESTAMP time monitor was changed window: WINDOW window requesting notification crtc: CRTC CRTC which changed mode: MODE new mode rotation: ROTATION; new rotation x: INT16 x position of CRTC within screen y: INT16 y position of CRTC within screen width: CARD16 width of new configuration height: CARD16 height of new configuration └─── This event is generated whenever the CRTC configuration is changed and sent to requesting clients. 'timestamp' indicates when the CRTC configuration was changed. 'window' is window selecting for this event. 'mode' is the new mode, or None if the crtc is disabled. 'x' and 'y' mark the location in the screen where this CRTC is reading data. 'width' and 'height' indicate the size of the CRTC viewport, which is the mode size adjusted by the optional Border output property described below. 'x', 'y, 'width' and 'height' are all zero when 'mode' is None. This event is sent whenever the monitor's configuration changes or if a new monitor configuration becomes available that was not available in the past. In this case, the client MUST call RRGetCrtcInfo to update its view of possible monitor configurations to have a correct view of possible monitor organizations. Clients which select monitor change notification events may be sent an event immediately if the monitor configuration was changed between when they connected to the X server and selected for notification. This is to prevent a common race that might occur on log-in, where many applications start up just at the time when a display manager or log in script might be changing the monitor size or configuration. 8.2 Events added in version 1.4 of the RandR extension ┌─── RRProviderChangeNotify: timestamp: TIMESTAMP time screen was reconfigured window: WINDOW window requesting notification provider: PROVIDER provider affected by change └─── This event is generated whenever the role for a provider has changed and is sent to requesting clients. 'timestamp' indicates when the provider configuration was changed by a client. 'window' is the window selecting for this event. The precise change can be detected by examining the new state of the system. ┌─── RRProviderPropertyNotify: window: WINDOW window requesting notification provider: PROVIDER provider affected by change atom: ATOM affected property time: TIMESTAMP time property was changed state: { NewValue, Deleted } new property state └─── This event is reported to clients selecting RRProviderPropertyChange on the window and is generated with state NewValue when a property of the window is changed using RRChangeProviderProperty even when adding zero-length data and when replacing all or part of a property with identical data. It is generated with state Deleted when a property of the window is deleted using either RRDeleteProviderProperty or RRGetProviderProperty. The timestamp indicates the server time when the property was changed. ┌─── RRResourceChangeNotify: window: WINDOW window requesting notification time: TIMESTAMP time property was changed └─── This event is reported to clients selecting RRResourceChange on the window and is generated whenever the set of available RandR resources associated with the screen has changed, either created or destroyed. Querying the list of available resources with RRGetScreenResources and RRGetProviders will return the new set. 8.3 Events added in version 1.6 of the RandR extension ┌─── RRLeaseNotify: timestamp : TIMESTAMP time screen was reconfigured window : WINDOW window requesting notification lease : LEASE lease created : BOOL created/destroyed indicator └─── This event is generated whenever a lease has been created or destroyed and is sent to requesting clients. 'timestamp' indicates when the change happened. 'window' is the window selecting for this event. â§â§â§â§â§â§â§â§â§â§â§ 9. Properties Properties are used for output specific parameters, and for announcing static or rarely changing data. Announced data is typically immutable. Properties are also used for evaluating new parameters before adding them to the RandR protocol. The following properties are hereby declared official, and drivers SHOULD prefix driver specific properties with '_', unless they are planned to be added to this specification. List values, that are not declared by the table below, and will remain driver specific or are not planned to be added to this specification, SHOULD be prefixed with "_" as well in order to avoid name space or semantics clashes with future extensions of these values. Beginning with version 1.3 of the RandR extension, certain properties are mandatory and MUST be provided by implementations. Earlier versions of the RandR extension MAY provide these properties as well, as long as the semantics are not altered. Clients SHOULD fall back gracefully to lower version functionality, though, if the driver doesn't handle a mandatory property correctly. Changes in version 1.6 of the protocol: When a “non-desktop†device is connected, the property information will be correct for the device, even though RRGetOutputInfo reports the device as disconnected. The “non-desktop†property will be set to 1 for such devices and not present on other devices. 9.1 Known properties "Backlight" aka RR_PROPERTY_BACKLIGHT Type: INTEGER Format: 32 Num. items: 1 Flags: - Range/List: 0-x (driver specific) This property controls the brightness on laptop panels and equivalent displays with a backlight controller. The driver specific maximum value MUST turn the backlight to full brightness, 1 SHOULD turn the backlight to minimum brightness, 0 SHOULD turn the backlight off. "CloneList" aka RR_PROPERTY_CLONE_LIST Type: ATOM Format: 32 Num. items: 2*n Flags: Immutable Range/List: 0- Some combinations of outputs on some cards cannot be served independently from each other, because they are wired up to the same encoder outputs. This property lists all output + signal format pairs that are driven together with this output, and thus can only be programmed in clone mode with the same CRTC. This property MUST be symmetric, but may change with changing signal format. I.e. if the property for DVI-1/VGA specifies VGA-1/VGA to be cloned, VGA-1/VGA has to list DVI-1/VGA as well. Outputs / format pairs listed in this property MUST be included in the CompatibilityList. "CompatibilityList" aka RR_PROPERTY_COMPATIBILITY_LIST Type: ATOM Format: 32 Num items: 2*n Flags: Immutable Range/List: 0- Some combinations of outputs on some cards cannot be served at all, because the according encoder is only capable of driving one output at a time. This property lists all output + signal format pairs that can be driven together with this output. NULL atoms specify any output / any signal format, respectively. This property MUST be symmetric, but may change with changing signal format. I.e. if the property for DVI-1/TMDS specifies VGA-1/VGA to be available, VGA-1/VGA has to list DVI-1/TMDS as well. "ConnectorNumber" aka RR_PROPERTY_CONNECTOR_NUMBER Type: INTEGER Format: 32 Num items: 1 Flags: Immutable, Static Range/List: 0- Outputs that route their signal to the same connector MUST have the same connector number. Outputs with the same connector number MUST route their signal to the same connector, except if it is 0, which indicates unknown connectivity. 1 is called the primary connector, 2 the secondary. 3 is typically a TV connector, but that is completely driver / hardware dependent. Outputs with the same connector number SHOULD have the same connector type. Meaning and client behavior for mismatching connector types is undefined at the moment. "ConnectorType" aka RR_PROPERTY_CONNECTOR_TYPE Type: ATOM Format: 32 Num items: 1 Flags: Immutable, Static Range/List: unknown VGA DVI DVIâ€I DVIâ€A DVIâ€D HDMI Panel TV TV-Composite TV-SVideo TV-Component TV-SCART TV-C4 DisplayPort Connector type, as far as known to the driver. Values with dashes (TVâ€Composite) describe more specific versions of the base values (TV). The former SHOULD be used if the connector is not capable of producing other signal formats. The later SHOULD be used if the exact connector is unknown, or the connector is a multiâ€format connector that is not described otherwise. DVI, for instance, SHOULD be handled like a DVIâ€I connector, unless additional information is available to the user agent. PANEL describes laptopâ€internal (normally LVDS) displays. TV, TVâ€SCART, TVâ€Component, and TVâ€C4 with signal format VGA are valid combinations and describe RGB TV signals. "EDID" aka RR_PROPERTY_RANDR_EDID Type: INTEGER Format: 8 Num items: n Flags: Immutable Range/List: - Raw EDID data from the device attached to the according output. Should include main EDID data and all extension blocks. Previously known as EdidData. “non-desktop†aka RR_PROPERTY_NON_DESKTOP Type: INTEGER Format: 32 Num items: 1 Flags Immutable Range/List: 0-1 Indicates whether the device attached to this output should not be considered part of the normal desktop. When set to 0 or not present, the output should be presented as part of the desktop. When set to 1, the output should not be presented as part of the desktop. To not present an output as part of the desktop, the normal desktop environment should not be shown on this output, nor should desktop applications be positioned on it. When set to 1, RRGetOutputInfo will always report connection status Disconnected, but RROutputChangeNotify events will still be delivered when the connection status changes and all other information about the output and connected device will be reported correctly. "SignalFormat" aka RR_PROPERTY_SIGNAL_FORMAT Type: ATOM Format: 32 Num items: 1 Flags: - Range/List: unknown VGA TMDS LVDS Composite Composite-PAL Composite-NTSC Composite-SECAM SVideo Component DisplayPort Signal format / physical protocol format that is used for the specified output. valid-values lists all possible formats on this output, which SHOULD be a subset of the list above and MUST be static. Values with dashes (Composite-PAL) describe more specific versions of the base values (Composite) and SHOULD be used if known to the driver. A driver MAY change this property of an output if the underlying hardware indicates a protocol change (e.g. TV formats). Clients are allowed to change the signal format in order to select a different signal format (e.g. Composite etc.) or physical protocol (e.g. VGA or TMDS on DVI-I). Laptop panels SHOULD not be detected with this property, but rather by ConnectorType. "SignalProperties" aka RR_PROPERTY_SIGNAL_FORMAT Type: ATOM Format: 32 Num items: n Flags: - Range/List: For Composite signals: NTSC NTSC-M NTSC-J NTSC-N NTSC-4.43 NTSC-film PAL PAL-B PAL-G PAL-H PAL-H PAL-I PAL-M PAL-D PAL-N PAL-Nc PAL-L PAL-60 SECAM SECAM-L SECAM-B SECAM-G SECAM-D SECAM-K SECAM-H SECAM-K For TMDS signals: SingleLink DualLink For DisplayPort signals: Lane1 Lane2 Lane4 LowSpeed HiSpeed Properties of the signal format that is currently used for the specified output. valid-values lists all possible properties on this output, which SHOULD be a subset of the list above. It will change if SignalFormat changes. Multiple properties are allowed. Values with dashes (PAL-B) describe more specific versions of the base values (PAL) and SHOULD be used if known to the driver. A driver MAY change this property of an output if the underlying hardware indicates a signal change (e.g. TV formats). Clients are allowed to change the properties in order to select a different signal subformat. "Border" aka RR_PROPERTY_BORDER Type: CARDINAL Format: 16 Num items: 0, 1, 2, or 4 Flags: Immutable Range/List: 0- This property is a list of integers specifying adjustments for the edges of the displayed image. How this property is applied depends on the number of elements in the list: 0 = No border is applied 1 = A border of Border[0] is applied to all four sides of the image. 2 = A border of Border[0] is applied to the left and right sides of the image, and a border of Border[1] is applied to the top and bottom. 4 = The border dimensions are as follows: Border[0]: left Border[1]: top Border[2]: right Border[3]: bottom Note that how many configuration dimensions are actually supported is specified by the BorderDimensions property described below. If more than BorderDimensions values are specified, the extra values are ignored. These border dimensions shrink the region of pixels displayed by the CRTC by the corresponding number of rows or columns, and is applied after the CRTC transform. For example, a mode with a 1920x1080 active region, border dimensions of [ 10, 20, 30, 40 ], and a ½x scaling transform would display a rectangle of 940x510 pixels from the scanout pixmap scaled to 1880x1020 raster pixels positioned at (10, 20) in display raster space. Raster pixels in the border are black. This property is created with pending == TRUE, so changes are not applied immediately and instead take effect at the next RRSetCrtcConfig. If multiple outputs with different border settings are bound to the same CRTC when the configuration is changed, the behavior is undefined. If the length of the property is less than four when the CRTC is configured, the missing values are assumed to be zero. If the length is greater than four, the extra values are ignored. If the width of the mode is less than or equal to the sum of the left and right borders, then the left and right border settings are ignored. Likewise, if the height of the mode is less than or equal to the sum of the top and bottom borders, the top and bottom borders are ignored. "BorderDimensions" aka RR_PROPERTY_BORDER_DIMENSIONS Type: CARDINAL Format: 8 Num items: 1 Flags: Immutable, Static Range/List: 0, 1, 2, or 4 This property lists how many border adjustment parameters can actually be used: 0 = no borders are supported 1 = a single border value is applied to all four sides of the image 2 = left/right and top/bottom borders can be specified independently 4 = all four borders can be specified independently "GUID" aka RR_PROPERTY_GUID Type: INTEGER Format: 8 Num items: 16 Flags: Immutable Range/List: - Some display devices, such as DisplayPort 1.2 devices, have globally unique identifiers. When such an identifier is available, this property contains its raw bytes. "TILE" aka RR_PROPERTY_RANDR_TILE Type: INTEGER Format: 32 Num items: 8 Flags: Immutable Range/List: - Tile monitors have an array of values describing the tiling, based on DisplayID v1.3 The 8 elements are: 0: group id - The tile group identifier 1: flags - flags for tile group 0x1 = single monitor enclosure 2: number of horizontal tiles in tile group 3: number of vertical tiles in tile group 4: horizontal tile location for this tile 5: vertical tile location for this tile 6: horizontal tile size for this tile 7: vertical tile size for this tile 9.2 Properties introduced with version 1.2 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── EDID yes n/a EDID is provided by the RandR frontend, thus not driver specific. 9.3 Properties introduced with version 1.3 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── CloneList yes not mandatory CompatibilityList yes not mandatory ConnectorNumber yes: static not mandatory ConnectorType yes: static RandR 1.3 SignalFormat no RandR 1.3 SignalProperties no not mandatory 9.4 Properties introduced with version 1.3.1 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── Backlight no not mandatory 9.5 Properties introduced with version 1.4.0 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── Border yes not mandatory BorderDimensions yes: static not mandatory 9.6 Properties introduced with version 1.4.1 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── GUID yes not mandatory 9.7 Properties introduced with version 1.5 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── TILE yes not mandatory 9.8 Properties introduced with version 1.6 of the RandR extension Property Immutable Mandatory since ──────── ───────── ─────────────── non-desktop yes not mandatory â§â§â§â§â§â§â§â§â§â§â§ 10. Extension Versioning The RandR extension was developed in parallel with the implementation to ensure the feasibility of various portions of the design. As portions of the extension are implemented, the version number of the extension has changed to reflect the portions of the standard provided. This document describes the version 1.4 of the specification, the partial implementations have version numbers less than that. Here's a list of what each version provided: 0.0: This prototype implemented resize and rotation in the TinyX server Used approximately the protocol described in the Usenix paper. Appeared in the TinyX server in XFree86 4.2, but not in the XFree86 main server. 0.1: Added subpixel order, added an event for subpixel order. This version was never checked in to XFree86 CVS. 1.0: Implements resize, rotation, and reflection. Implemented both in the XFree86 main server (size change only at this date), and fully (size change, rotation, and reflection) in XFree86's TinyX server. 1.1: Added refresh rates 1.2: Separate screens from CRTCs and outputs, switch to full VESA modes 1.3: Added cheap version of RRGetScreenResources. Added CRTC transformations. Added panning. Added primary outputs. Added standard properties. 1.4: Added provider objects for handling multi-GPU systems. 1.5: Added Monitors 1.6: Added Leases and non-desktop output information. Compatibility between 0.0 and 1.0 was *NOT* preserved, and 0.0 clients will fail against 1.0 servers. The wire encoding op-codes were changed for GetScreenInfo to ensure this failure in a relatively graceful way. Version 1.1 servers and clients are cross compatible with 1.0. Version 1.1 is considered to be stable and we intend upward compatibility from this point. Version 1.2 offers an extended model of the system with multiple output support. Version 1.3 adds a cheap version of GetScreenResources to avoid expensive DDC operations, CRTC transformations, panning, and the primary output concept. Versions 1.2 through 1.6 are backward-compatible with 1.1. â§â§â§â§â§â§â§â§â§â§â§ 11. Relationship with other extensions Two other extensions have a direct relationship with this extension. This section attempts to explain how these three are supposed to work together. 11.1 XFree86-VidModeExtension XFree86-VidModeExtension changes the configuration of a single monitor attached to the screen without changing the configuration of the screen itself. It provides the ability to specify new mode lines for the server to use along with selecting among existing mode lines. As it uses screen numbers instead of window identifiers, it can be used to affect multiple monitors in a single-screen Xinerama configuration. However, the association between screen numbers and root windows in a multi-Screen environment is not defined by the extension. Version 2.0 of this extension added the ability to adjust the DAC values in a TrueColor server to modify the brightness curves of the display. All of the utility of this extension is subsumed by RandR version 1.2, RandR should be used in preference to XFree86-VidModeExtension where both are present. 11.2 Xinerama Xinerama provides a mechanism for describing the relationship between the overall screen display and monitors placed within that area. As such, it provides the query functionality of RandR 1.2 without any of the configuration functionality. Applications using Xinerama to discover monitor geometry can continue to do so, with the caveat that they will not be informed of changes when they occur. However, Xinerama configuration data will be updated, so applications selecting for RandR notification and re-querying the configuration with the Xinerama extension will get updated information. It is probably better to view RandR as a superset of Xinerama at this point and use it in preference to Xinerama where both are present. â§â§â§â§â§â§â§â§â§â§â§ Appendix A. Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the core X protocol encoding document. A.1 Common Types ┌─── ROTATION 0x0001 Rotate_0 0x0002 Rotate_90 0x0004 Rotate_180 0x0008 Rotate_270 0x0010 Reflect_X 0x0020 Reflect_Y └─── Used to encode both sets of possible rotations and individual selected rotations. ┌─── RRSELECTMASK 0x0001 ScreenChangeNotifyMask 0x0002 CrtcChangeNotifyMask Added in version 1.2 0x0004 OutputChangeNotifyMask Added in version 1.2 0x0008 OutputPropertyNotifyMask Added in version 1.2 0x0010 ProviderChangeNotifyMask Added in version 1.4 0x0020 ProviderPropertyNotifyMask Added in version 1.4 0x0040 ResourceChangeNotifyMask Added in version 1.4 0x0080 LeaseNotifyMask Added in version 1.6 └─── Event select mask for RRSelectInput ┌─── RRCONFIGSTATUS 0x0 Success 0x1 InvalidConfigTime 0x2 InvalidTime 0x3 Failed └─── Return status for requests which depend on time. ┌─── MODEINFO (32) Added in version 1.2 4 CARD32 id 2 CARD16 width in pixels 2 CARD16 height in pixels 4 CARD32 dot clock 2 CARD16 h sync start 2 CARD16 h sync end 2 CARD16 h total 2 CARD16 h skew 2 CARD16 v sync start 2 CARD16 v sync end 2 CARD16 v total 2 CARD16 name length 4 SETofMODEFLAG mode flags └─── An output mode specifies the complete CRTC timings for a specific mode. The vertical and horizontal synchronization rates can be computed given the dot clock and the h total/v total values. If the dot clock is zero, then all of the timing parameters and flags are not used, and must be zero as this indicates that the timings are unknown or otherwise unused. The name itself will be encoded separately in each usage. ┌─── MODEFLAG 0x00000001 HSyncPositive 0x00000002 HSyncNegative 0x00000004 VSyncPositive 0x00000008 VSyncNegative 0x00000010 Interlace 0x00000020 DoubleScan 0x00000040 CSync 0x00000080 CSyncPositive 0x00000100 CSyncNegative 0x00000200 HSkewPresent 0x00000400 BCast 0x00000800 PixelMultiplex 0x00001000 DoubleClock 0x00002000 ClockDivideBy2 └─── ┌─── CONNECTION 0 Connected 1 Disconnected 2 UnknownConnection └─── ┌─── PROVIDER_CAPS Added in version 1.4 0x00000001 SourceOutput 0x00000002 SinkOutput 0x00000004 SourceOffload 0x00000008 SinkOffload └─── A.1.1 Common Types added in version 1.5 of the protocol ┌─── MONITORINFO (16 + 4*n) 4 ATOM name 1 BOOL primary 1 BOOL automatic 2 CARD16 noutputs 2 INT16 x 2 INT16 y 2 CARD16 width in pixels 2 CARD16 height in pixels 4 CARD32 width in millimeters 4 CARD32 height in millimeters 4*n OUTPUT outputs └─── A.2 Protocol Requests Opcodes 1 and 3 were used in the 0.0 protocols, and will return errors if used in version 1.0. ┌─── RRQueryVersion 1 CARD8 major opcode 1 0 RandR opcode 2 3 length 4 CARD32 major version 4 CARD32 minor version â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 1 CARD32 major version 1 CARD32 minor version └─── ┌─── RRSetScreenConfig 1 CARD8 major opcode 1 2 RandR opcode 2 6 length 4 WINDOW window on screen to be configured 4 TIMESTAMP timestamp 4 TIMESTAMP config timestamp 2 SIZEID size index 2 ROTATION rotation/reflection 2 CARD16 refresh rate (1.1 only) 2 CARD16 pad â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 0 reply length 4 TIMESTAMP new timestamp 4 TIMESTAMP new configuration timestamp 4 WINDOW root 2 SUBPIXELORDER subpixel order defined in Render 2 CARD16 pad4 4 CARD32 pad5 4 CARD32 pad6 └─── ┌─── RRSelectInput 1 CARD8 major opcode 1 4 RandR opcode 2 3 length 4 WINDOW window 2 SETofRRSELECTMASK enable 2 CARD16 pad └─── ┌─── RRGetScreenInfo 1 CARD8 major opcode 1 5 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 CARD8 set of Rotations 2 CARD16 sequence number 4 0 reply length 4 WINDOW root window 4 TIMESTAMP timestamp 4 TIMESTAMP config timestamp 2 CARD16 number of SCREENSIZE following 2 SIZEID current size index 2 ROTATION current rotation and reflection 2 CARD16 current rate (added in version 1.1) 2 CARD16 length of rate info (number of CARD16s) 2 CARD16 pad SCREENSIZE 2 CARD16 width in pixels 2 CARD16 height in pixels 2 CARD16 width in millimeters 2 CARD16 height in millimeters REFRESH 2 CARD16 number of rates (n) 2n CARD16 rates └─── A.2.1 Protocol Requests added with version 1.2 ┌─── RRGetScreenSizeRange 1 CARD8 major opcode 1 6 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 minWidth 2 CARD16 minHeight 2 CARD16 maxWidth 2 CARD16 maxHeight 16 unused └─── ┌─── RRSetScreenSize 1 CARD8 major opcode 1 7 RandR opcode 2 5 length 4 WINDOW window 2 CARD16 width 2 CARD16 height 4 CARD32 width in millimeters 4 CARD32 height in millimeters └─── ┌─── RRGetScreenResources 1 CARD8 major opcode 1 8 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 c+o+8m+(b+p)/4 reply length 4 TIMESTAMP timestamp 4 TIMESTAMP config-timestamp 2 c number of CRTCs 2 o number of outputs 2 m number of modeinfos 2 b total bytes in mode names 8 unused 4c LISTofCRTC crtcs 4o LISTofOUTPUT outputs 32m LISTofMODEINFO modeinfos b STRING8 mode names p unused, p=pad(b) └─── ┌─── RRGetOutputInfo 1 CARD8 major opcode 1 9 RandR opcode 2 3 length 4 OUTPUT output 4 TIMESTAMP config-timestamp â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 1+c+m+(n+p)/4 reply length 4 TIMESTAMP timestamp 4 CRTC current connected crtc 4 CARD32 width in millimeters 4 CARD32 height in millimeters 1 CONNECTION connection 1 SUBPIXELORDER subpixel-order 2 c number of CRTCs 2 m number of modes 2 p number of preferred modes 2 o number of clones 2 n length of name 4c LISTofCRTC crtcs 4m LISTofMODE modes 4o LISTofOUTPUT clones n STRING8 name p unused, p=pad(n) └─── ┌─── RRListOutputProperties 1 CARD8 major opcode 1 10 RandR opcode 2 2 length 4 OUTPUT output â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 2 n number of ATOMs in atoms 22 unused 4n LISTofATOM atoms └─── ┌─── RRQueryOutputProperty 1 CARD8 major opcode 1 11 RandR opcode 2 3 request length 4 OUTPUT output 4 ATOM property â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 1 BOOL pending 1 BOOL range 1 BOOL immutable 21 unused 4n LISTofINT32 valid values └─── ┌─── RRConfigureOutputProperty 1 CARD8 major opcode 1 12 RandR opcode 2 4+n request length 4 OUTPUT output 4 ATOM property 1 BOOL pending 1 BOOL range 2 unused 4n LISTofINT32 valid values └─── ┌─── RRChangeOutputProperty 1 CARD8 major opcode 1 13 RandR opcode 2 6+(n+p)/4 request length 4 OUTPUT output 4 ATOM property 4 ATOM type 1 CARD8 format 1 mode 0 Replace 1 Prepend 2 Append 2 unused 4 CARD32 length of data in format units (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) n LISTofBYTE data (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) └─── ┌─── RRDeleteOutputProperty 1 CARD8 major opcode 1 14 RandR opcode 2 3 request length 4 OUTPUT output 4 ATOM property └─── ┌─── RRGetOutputProperty 1 CARD8 major opcode 1 15 RandR opcode 2 7 request length 4 OUTPUT output 4 ATOM property 4 ATOM type 0 AnyPropertyType 4 CARD32 long-offset 4 CARD32 long-length 1 BOOL delete 1 BOOL pending 2 unused â–¶ 1 1 Reply 1 CARD8 format 2 CARD16 sequence number 4 (n+p)/4 reply length 4 ATOM type 0 None 4 CARD32 bytes-after 4 CARD32 length of value in format units (= 0 for format = 0) (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) 12 unused n LISTofBYTE value (n is zero for format = 0) (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) └─── ┌─── RRCreateMode 1 CARD8 major opcode 1 16 RandR opcode 2 10+(n+p)/4 length 4 WINDOW window 32 MODEINFO mode n STRING8 mode name p unused, p=pad(n) â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 4 MODE mode 20 unused └─── ┌─── RRDestroyMode 1 CARD8 major opcode 1 17 RandR opcode 2 2 length 4 MODE mode └─── ┌─── RRAddOutputMode 1 CARD8 major opcode 1 18 RandR opcode 2 3 length 4 OUTPUT output 4 MODE mode └─── ┌─── RRDeleteOutputMode 1 CARD8 major opcode 1 19 RandR opcode 2 3 length 4 OUTPUT output 4 MODE mode └─── ┌─── RRGetCrtcInfo 1 CARD8 major opcode 1 20 RandR opcode 2 3 length 4 CRTC crtc 4 TIMESTAMP config-timestamp â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 o+p reply length 4 TIMESTAMP timestamp 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height 4 MODE mode 2 ROTATION current rotation and reflection 2 ROTATION set of possible rotations 2 o number of outputs 2 p number of possible outputs 4o LISTofOUTPUT outputs 4p LISTofOUTPUT possible outputs └─── ┌─── RRSetCrtcConfig 1 CARD8 major opcode 1 21 RandR opcode 2 7+n length 4 CRTC crtc 4 TIMESTAMP timestamp 4 TIMESTAMP config timestamp 2 INT16 x 2 INT16 y 4 MODE mode 2 ROTATION rotation/reflection 2 unused 4n LISTofOUTPUT outputs â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 0 reply length 4 TIMESTAMP new timestamp 20 unused └─── ┌─── RRGetCrtcGammaSize 1 CARD8 major opcode 1 22 RandR opcode 2 2 length 4 CRTC crtc â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 size 22 unused └─── ┌─── RRGetCrtcGamma 1 CARD8 major opcode 1 23 RandR opcode 2 2 length 4 CRTC crtc â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 (6n+p)/4 reply length 2 n size 20 unused 2n LISTofCARD16 red 2n LISTofCARD16 green 2n LISTofCARD16 blue p unused, p=pad(6n) └─── ┌─── RRSetCrtcGamma 1 CARD8 major opcode 1 24 RandR opcode 2 3+(6n+p)/4 length 4 CRTC crtc 2 n size 2 unused 2n LISTofCARD16 red 2n LISTofCARD16 green 2n LISTofCARD16 blue p unused, p=pad(6n) └─── A.2.2 Protocol Requests added with version 1.3 ┌─── RRGetScreenResourcesCurrent 1 CARD8 major opcode 1 25 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 c+o+8m+(b+p)/4 reply length 4 TIMESTAMP timestamp 4 TIMESTAMP config-timestamp 2 c number of CRTCs 2 o number of outputs 2 m number of modeinfos 2 b total bytes in mode names 8 unused 4c LISTofCRTC crtcs 4o LISTofOUTPUT outputs 32m LISTofMODEINFO modeinfos b STRING8 mode names p unused, p=pad(b) └─── ┌─── RRSetCrtcTransform 1 CARD8 major opcode 1 26 RandR opcode 2 12+(n+p)/4+v length 4 CRTC crtc 36 TRANSFORM transform 2 CARD16 filter length 2 unused n STRING8 filter name p unused, p=pad(n) 4v FIXED filter params └─── ┌─── RRGetCrtcTransform 1 CARD8 major opcode 1 27 RandR opcode 2 2 length 4 CRTC crtc â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 16+(pn+pnp)/4+(cn+cnp)/4+pf+cf reply length 36 TRANSFORM pending transform 1 BOOL has transforms 3 unused 36 TRANSFORM current transform 4 unused 2 pn pending filter name length 2 pf pending filter num params 2 cn current filter name length 2 cf current filter num params pn STRING8 pending filter name pnp unused, pnp=pad(pn) 4*pf FIXED pending filter params cn STRING8 current filter name cnp unused, cnp=pad(cn) 4*cf FIXED current filter params └─── ┌─── RRGetPanning 1 CARD8 major opcode 1 28 RandR opcode 2 2 length 4 CRTC crtc â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 1 reply length 4 TIMESTAMP timestamp 2 CARD16 left 2 CARD16 top 2 CARD16 width 2 CARD16 height 2 CARD16 track_left 2 CARD16 track_top 2 CARD16 track_width 2 CARD16 track_height 2 INT16 border_left 2 INT16 border_top 2 INT16 border_right 2 INT16 border_bottom └─── ┌─── RRSetPanning 1 CARD8 major opcode 1 29 RandR opcode 2 9 length 4 CRTC crtc 4 TIMESTAMP timestamp 2 CARD16 left 2 CARD16 top 2 CARD16 width 2 CARD16 height 2 CARD16 track_left 2 CARD16 track_top 2 CARD16 track_width 2 CARD16 track_height 2 INT16 border_left 2 INT16 border_top 2 INT16 border_right 2 INT16 border_bottom â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 0 reply length 4 TIMESTAMP new timestamp 20 unused └─── ┌─── RRSetOutputPrimary 1 CARD8 major opcode 1 30 RandR opcode 2 3 length 4 WINDOW window 4 OUTPUT output └─── ┌─── RRGetOutputPrimary 1 CARD8 major opcode 1 31 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 CARD32 length 4 OUTPUT output 4 CARD32 pad1 4 CARD32 pad2 4 CARD32 pad3 4 CARD32 pad4 └─── A.2.3 Protocol Requests added with version 1.4 ┌─── RRGetProviders 1 CARD8 major opcode 1 32 RandR opcode 2 2 length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 p length 4 TIMESTAMP timestamp 2 p number of Providers 18 unused 4p LISTofPROVIDERS providers └─── ┌─── RRGetProviderInfo 1 CARD8 major opcode 1 33 RandR opcode 2 3 length 4 PROVIDER provider 4 TIMESTAMP config-timestamp â–¶ 1 1 Reply 1 RRCONFIGSTATUS status 2 CARD16 sequence number 4 1+c+o+(a*2)+(n+p)/4 reply length 4 TIMESTAMP timestamp 4 CARD32 capabilities 2 c number of crtcs 2 o number of outputs 2 a number of associated providers 2 n length of name 8 unused 4c LISTofCRTC crtcs 4o LISTofOUTPUT outputs 4a LISTofPROVIDER associated providers 4a CARD32 associated provider capability n STRING8 name p unused, p=pad(n) └─── ┌─── RRSetProviderOffloadSink 1 CARD8 major opcode 1 34 RandR opcode 2 4 length 4 PROVIDER provider 4 PROVIDER offload sink provider 4 TIMESTAMP timestamp └─── ┌─── RRSetProviderOutputSource 1 CARD8 major opcode 1 35 RandR opcode 2 4 length 4 PROVIDER provider 4 PROVIDER output source provider 4 TIMESTAMP timestamp └─── ┌─── RRListProviderProperties 1 CARD8 major opcode 1 36 RandR opcode 2 2 length 4 PROVIDER provider â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 2 n number of ATOMs in atoms 22 unused 4n LISTofATOM atoms └─── ┌─── RRQueryProviderProperty 1 CARD8 major opcode 1 37 RandR opcode 2 3 request length 4 PROVIDER provider 4 ATOM property â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 n reply length 1 BOOL pending 1 BOOL range 1 BOOL immutable 21 unused 4n LISTofINT32 valid values └─── ┌─── RRConfigureProviderProperty 1 CARD8 major opcode 1 38 RandR opcode 2 4+n request length 4 PROVIDER provider 4 ATOM property 1 BOOL pending 1 BOOL range 2 unused 4n LISTofINT32 valid values └─── ┌─── RRChangeProviderProperty 1 CARD8 major opcode 1 39 RandR opcode 2 6+(n+p)/4 request length 4 PROVIDER provider 4 ATOM property 4 ATOM type 1 CARD8 format 1 mode 0 Replace 1 Prepend 2 Append 2 unused 4 CARD32 length of data in format units (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) n LISTofBYTE data (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) └─── ┌─── RRDeleteProviderProperty 1 CARD8 major opcode 1 40 RandR opcode 2 3 request length 4 PROVIDER provider 4 ATOM property └─── ┌─── RRGetProviderProperty 1 CARD8 major opcode 1 41 RandR opcode 2 7 request length 4 PROVIDER provider 4 ATOM property 4 ATOM type 0 AnyPropertyType 4 CARD32 long-offset 4 CARD32 long-length 1 BOOL delete 1 BOOL pending 2 unused â–¶ 1 1 Reply 1 CARD8 format 2 CARD16 sequence number 4 (n+p)/4 reply length 4 ATOM type 0 None 4 CARD32 bytes-after 4 CARD32 length of value in format units (= 0 for format = 0) (= n for format = 8) (= n/2 for format = 16) (= n/4 for format = 32) 12 unused n LISTofBYTE value (n is zero for format = 0) (n is a multiple of 2 for format = 16) (n is a multiple of 4 for format = 32) p unused, p=pad(n) └─── A.2.4 Protocol Requests added with version 1.5 ┌─── RRGetMonitors 1 CARD8 major opcode 1 42 RandR opcode 2 2 request length 4 WINDOW window â–¶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 6*n + o reply length 4 TIMESTAMP timestamp 4 n nmonitors 4 o noutputs 12 unused n*24+o*4 LISTofMONITORINFO monitors └─── ┌─── RRSetMonitor 1 CARD8 major opcode 1 43 RandR opcode 2 6 + o request length 4 WINDOW window 24+o MONITORINFO monitorinfo └─── ┌─── RRDeleteMonitor 1 CARD8 major opcode 1 44 RandR opcode 2 3 request length 4 WINDOW window 4 ATOM name └─── A.3 Protocol Events ┌─── RRScreenChangeNotify 1 Base + 0 code 1 ROTATION new rotation and reflection 2 CARD16 sequence number 4 TIMESTAMP timestamp 4 TIMESTAMP configuration timestamp 4 WINDOW root window 4 WINDOW request window 2 SIZEID size ID 2 SUBPIXELORDER subpixel order defined in Render 2 CARD16 width in pixels 2 CARD16 height in pixels 2 CARD16 width in millimeters 2 CARD16 height in millimeters └─── A.3.1 Protocol Events added with version 1.2 ┌─── RRCrtcChangeNotify 1 Base + 1 code 1 0 sub-code 2 CARD16 sequence number 4 TIMESTAMP timestamp 4 WINDOW request window 4 CRTC crtc affected 4 MODE mode in use 2 ROTATION new rotation and reflection 2 unused 2 INT16 x 2 INT16 y 2 CARD16 width 2 CARD16 height └─── ┌─── RROutputChangeNotify 1 Base + 1 code 1 1 sub-code 2 CARD16 sequence number 4 TIMESTAMP timestamp 4 TIMESTAMP configuration timestamp 4 WINDOW request window 4 OUTPUT output affected 4 CRTC crtc in use 4 MODE mode in use 2 ROTATION rotation in use 1 CONNECTION connection status 1 SUBPIXELORDER subpixel order └─── ┌─── RROutputPropertyNotify 1 Base + 1 code 1 2 sub-code 2 CARD16 sequence number 4 WINDOW window 4 OUTPUT output 4 ATOM atom 4 TIMESTAMP time 1 state 0 NewValue 1 Deleted 11 unused └─── A.3.2 Protocol Events added with version 1.4 ┌─── RRProviderChangeNotify 1 Base + 1 code 1 3 sub-code 2 CARD16 sequence number 4 TIMESTAMP timestamp 4 WINDOW request window 4 PROVIDER provider affected 16 unused └─── ┌─── RRProviderPropertyNotify 1 Base + 1 code 1 4 sub-code 2 CARD16 sequence number 4 WINDOW window 4 PROVIDER provider 4 ATOM atom 4 TIMESTAMP time 1 state 0 NewValue 1 Deleted 11 unused └─── ┌─── RRResourceChangeNotify 1 Base + 1 code 1 5 sub-code 2 CARD16 sequence number 4 TIMESTAMP time 4 WINDOW window 20 unused └─── A.4 Protocol Errors ┌─── ERRORS Base + 0 Output Base + 1 Crtc Base + 2 Mode Base + 3 Provider └─── Bibliography [RANDR] Gettys, Jim and Keith Packard, "The X Resize and Rotate Extension - RandR", Proceedings of the 2001 USENIX Annual Technical Conference, Boston, MA [RENDER] Packard, Keith, "The X Rendering Extension", work in progress, https://gitlab.freedesktop.org/xorg/proto/xorgproto/raw/master/renderproto.txt xorgproto-2023.2/missing0000755000175000017500000001533614443010030012162 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xorgproto-2023.2/lg3dproto.pc.in0000644000175000017500000000020214443010026013420 00000000000000prefix=@prefix@ includedir=@includedir@ Name: Lg3dProto Description: LGE extension headers Version: 5.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-scrnsaverproto0000644000175000017500000000244314443010026014706 00000000000000Copyright (c) 1992 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. Author: Keith Packard, MIT X Consortium xorgproto-2023.2/compile0000755000175000017500000001635014443010030012136 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xorgproto-2023.2/scripts/0000755000175000017500000000000014443010035012327 500000000000000xorgproto-2023.2/scripts/keysym-generator.py0000755000175000017500000003761314443010026016143 00000000000000#!/usr/bin/env python3 # # SPDX-License-Identifier: MIT # # This script checks XF86keysym.h for the reserved evdev keysym range and/or # appends new keysym to that range. An up-to-date libevdev must be # available to guarantee the correct keycode ranges and names. # # Run with --help for usage information. # # # File is formatted with Python Black import argparse import logging import os import sys import re import subprocess from pathlib import Path try: import libevdev except ModuleNotFoundError as e: print(f"Error: {e}", file=sys.stderr) print( "One or more python modules are missing. Please install those " "modules and re-run this tool." ) sys.exit(77) logging.basicConfig(level=logging.DEBUG, format="%(levelname)s: %(message)s") logger = logging.getLogger("ksgen") start_token = re.compile(r"#define _EVDEVK.*") end_token = re.compile(r"#undef _EVDEVK\n") def die(msg): logger.critical(msg) sys.exit(1) def all_keysyms(directory): """ Extract the key names for all keysyms we have in our repo and return them as list. """ keysym_names = [] pattern = re.compile(r"^#define\s+(?P\w+)\s+(0x[0-9A-Fa-f]+)") for path in directory.glob("*keysym*.h"): with open(path) as fd: for line in fd: match = re.match(pattern, line) if match: keysym_names.append(match.group("name")) return keysym_names class Kernel(object): """ Wrapper around the kernel git tree to simplify searching for when a particular keycode was introduced. """ def __init__(self, repo): self.repo = repo exitcode, stdout, stderr = self.git_command("git branch --show-current") if exitcode != 0: die(f"{stderr}") if stdout.strip() != "master": die(f"Kernel repo must be on the master branch (current: {stdout.strip()})") exitcode, stdout, stderr = self.git_command("git tag --sort=version:refname") tags = stdout.split("\n") self.versions = list( filter(lambda v: re.match(r"^v[2-6]\.[0-9]+(\.[0-9]+)?$", v), tags) ) logger.debug(f"Kernel versions: {', '.join(self.versions)}") def git_command(self, cmd): """ Takes a single-string git command and runs it in the repo. Returns the tuple (exitcode, stdout, stderr) """ # logger.debug(f"git command: {cmd}") try: result = subprocess.run( cmd.split(" "), cwd=self.repo, capture_output=True, encoding="utf8" ) if result.returncode == 128: die(f"{result.stderr}") return result.returncode, result.stdout, result.stderr except FileNotFoundError: die(f"{self.repo} is not a git repository") def introduced_in_version(self, string): """ Search this repo for the first version with string in the headers. Returns the kernel version number (e.g. "v5.10") or None """ # The fastest approach is to git grep every version for the string # and return the first. Using git log -G and then git tag --contains # is an order of magnitude slower. def found_in_version(v): cmd = f"git grep -E \\<{string}\\> {v} -- include/" exitcode, _, _ = self.git_command(cmd) return exitcode == 0 def bisect(iterable, func): """ Return the first element in iterable for which func returns True. """ # bias to speed things up: most keycodes will be in the first # kernel version if func(iterable[0]): return iterable[0] lo, hi = 0, len(iterable) while lo < hi: mid = (lo + hi) // 2 if func(iterable[mid]): hi = mid else: lo = mid + 1 return iterable[hi] version = bisect(self.versions, found_in_version) logger.debug(f"Bisected {string} to {version}") # 2.6.11 doesn't count, that's the start of git return version if version != self.versions[0] else None def generate_keysym_line(code, kernel, kver_list=[]): """ Generate the line to append to the keysym file. This format is semi-ABI, scripts rely on the format of this line (e.g. in xkeyboard-config). """ evcode = libevdev.evbit(libevdev.EV_KEY.value, code) if not evcode.is_defined: # codes without a #define in the kernel return None if evcode.name.startswith("BTN_"): return None name = "".join([s.capitalize() for s in evcode.name[4:].lower().split("_")]) keysym = f"XF86XK_{name}" tabs = 4 - len(keysym) // 8 kver = kernel.introduced_in_version(evcode.name) or " " if kver_list: from fnmatch import fnmatch allowed_kvers = [v.strip() for v in kver_list.split(",")] for allowed in allowed_kvers: if fnmatch(kver, allowed): break else: # no match return None return f"#define {keysym}{' ' * tabs}_EVDEVK(0x{code:03X}) /* {kver:5s} {evcode.name} */" def verify(ns): """ Verify that the XF86keysym.h file follows the requirements. Since we expect the header file to be parsed by outside scripts, the requirements for the format are quite strict, including things like correct-case hex codes. """ # No other keysym must use this range reserved_range = re.compile(r"#define.*0x10081.*") normal_range = re.compile(r"#define.*0x1008.*") # This is the full pattern we expect. expected_pattern = re.compile( r"#define XF86XK_\w+\t+_EVDEVK\(0x([0-9A-F]{3})\)\t+/\* (v[2-6]\.[0-9]+(\.[0-9]+)?)? +KEY_\w+ \*/" ) # This is the comment pattern we expect expected_comment_pattern = re.compile( r"/\* Use: (?P\w+)\t+_EVDEVK\(0x(?P[0-9A-F]{3})\)\t+ (v[2-6]\.[0-9]+(\.[0-9]+)?)? +KEY_\w+ \*/" ) # Some patterns to spot specific errors, just so we can print useful errors define = re.compile(r"^#define .*") name_pattern = re.compile(r"#define (XF86XK_[^\s]*)") tab_check = re.compile(r"#define \w+(\s+)[^\s]+(\s+)") hex_pattern = re.compile(r".*0x([a-f0-9]+).*", re.I) comment_format = re.compile(r".*/\* ([^\s]+)?\s+(\w+)") kver_format = re.compile(r"v[2-6]\.[0-9]+(\.[0-9]+)?") in_evdev_codes_section = False had_evdev_codes_section = False success = True all_defines = [] all_keysym_names = all_keysyms(ns.header.parent) class ParserError(Exception): pass def error(msg, line): raise ParserError(f"{msg} in '{line.strip()}'") last_keycode = 0 for line in open(ns.header): try: if not in_evdev_codes_section: if re.match(start_token, line): in_evdev_codes_section = True had_evdev_codes_section = True continue if re.match(reserved_range, line): error("Using reserved range", line) match = re.match(name_pattern, line) if match: all_defines.append(match.group(1)) else: # Within the evdev defines section if re.match(end_token, line): in_evdev_codes_section = False continue # Comments we only search for a hex pattern and where there is one present # we only check for uppercase format, ordering and update our last_keycode. if not re.match(define, line): match = re.match(expected_comment_pattern, line) if match: hexcode = match.group("value") if hexcode != hexcode.upper(): error(f"Hex code 0x{hexcode} must be uppercase", line) if hexcode: keycode = int(hexcode, 16) if keycode < last_keycode: error("Keycode must be ascending", line) if keycode == last_keycode: error("Duplicate keycode", line) last_keycode = keycode name = match.group("name") if name not in all_keysym_names: error(f"Unknown keysym {name}", line) elif re.match(hex_pattern, line): logger.warning(f"Unexpected hex code in {line}") continue # Anything below here is a #define line # Let's check for specific errors if re.match(normal_range, line): error("Define must use _EVDEVK", line) match = re.match(name_pattern, line) if match: if match.group(1) in all_defines: error("Duplicate define", line) all_defines.append(match.group(1)) else: error("Typo", line) match = re.match(hex_pattern, line) if not match: error("No hex code", line) if match.group(1) != match.group(1).upper(): error(f"Hex code 0x{match.group(1)} must be uppercase", line) tabs = re.match(tab_check, line) if not tabs: # bug error("Matching error", line) if " " in tabs.group(1) or " " in tabs.group(2): error("Use tabs, not spaces", line) comment = re.match(comment_format, line) if not comment: error("Invalid comment format", line) kver = comment.group(1) if kver and not re.match(kver_format, kver): error("Invalid kernel version format", line) keyname = comment.group(2) if not keyname.startswith("KEY_") or keyname.upper() != keyname: error("Kernel keycode name invalid", line) # This could be an old libevdev if keyname not in [c.name for c in libevdev.EV_KEY.codes]: logger.warning(f"Unknown kernel keycode name {keyname}") # Check the full expected format, no better error messages # available if this fails match = re.match(expected_pattern, line) if not match: error("Failed match", line) keycode = int(match.group(1), 16) if keycode < last_keycode: error("Keycode must be ascending", line) if keycode == last_keycode: error("Duplicate keycode", line) # May cause a false positive for old libevdev if KEY_MAX is bumped if keycode < 0x0A0 or keycode > libevdev.EV_KEY.KEY_MAX.value: error("Keycode outside range", line) last_keycode = keycode except ParserError as e: logger.error(e) success = False if not had_evdev_codes_section: logger.error("Unable to locate EVDEVK section") success = False elif in_evdev_codes_section: logger.error("Unterminated EVDEVK section") success = False if success: logger.info("Verification succeeded") return 0 if success else 1 def add_keysyms(ns): """ Print a new XF86keysym.h file, adding any *missing* keycodes to the existing file. """ if verify(ns) != 0: die("Header file verification failed") # If verification succeeds, we can be a bit more lenient here because we already know # what the format of the field is. Specifically, we're searching for # 3-digit hexcode in brackets and use that as keycode. pattern = re.compile(r".*_EVDEVK\((0x[a-fA-F0-9]{3})\).*") max_code = max( [ c.value for c in libevdev.EV_KEY.codes if c.is_defined and c != libevdev.EV_KEY.KEY_MAX and not c.name.startswith("BTN") ] ) def defined_keycodes(path): """ Returns an iterator to the next #defined (or otherwise mentioned) keycode, all other lines (including the returned one) are passed through to printf. """ with open(path) as fd: in_evdev_codes_section = False for line in fd: if not in_evdev_codes_section: if re.match(start_token, line): in_evdev_codes_section = True # passthrough for all other lines print(line, end="") else: if re.match(r"#undef _EVDEVK\n", line): in_evdev_codes_section = False yield max_code else: match = re.match(pattern, line) if match: logger.debug(f"Found keycode in {line.strip()}") yield int(match.group(1), 16) print(line, end="") kernel = Kernel(ns.kernel_git_tree) prev_code = 255 - 8 # the last keycode we can map directly in X for code in defined_keycodes(ns.header): for missing in range(prev_code + 1, code): newline = generate_keysym_line( missing, kernel, kver_list=ns.kernel_versions ) if newline: print(newline) prev_code = code return 0 def find_xf86keysym_header(): """ Search for the XF86keysym.h file in the current tree or use the system one as last resort. This is a convenience function for running the script locally, it should not be relied on in the CI. """ paths = tuple(Path.cwd().glob("**/XF86keysym.h")) if not paths: fallbackdir = Path(os.getenv("INCLUDESDIR") or "/usr/include/") path = fallbackdir / "X11" / "XF86keysym.h" if not path.exists(): die(f"Unable to find XF86keysym.h in CWD or {fallbackdir}") else: if len(paths) > 1: die("Multiple XF86keysym.h in CWD, please use --header") path = paths[0] logger.info(f"Using header file {path}") return path def main(): parser = argparse.ArgumentParser(description="Keysym parser script") parser.add_argument("--verbose", "-v", action="count", default=0) parser.add_argument( "--header", type=str, default=None, help="Path to the XF86Keysym.h header file (default: search $CWD)", ) subparsers = parser.add_subparsers(help="command-specific help", dest="command") parser_verify = subparsers.add_parser( "verify", help="Verify the XF86keysym.h matches requirements (default)" ) parser_verify.set_defaults(func=verify) parser_generate = subparsers.add_parser( "add-keysyms", help="Add missing keysyms to the existing ones" ) parser_generate.add_argument( "--kernel-git-tree", type=str, default=None, required=True, help="Path to a kernel git repo, required to find git tags", ) parser_generate.add_argument( "--kernel-versions", type=str, default=[], required=False, help="Comma-separated list of kernel versions to limit ourselves to (e.g. 'v5.10,v5.9'). Supports fnmatch.", ) parser_generate.set_defaults(func=add_keysyms) ns = parser.parse_args() logger.setLevel( {2: logging.DEBUG, 1: logging.INFO, 0: logging.WARNING}.get(ns.verbose, 2) ) if not ns.header: ns.header = find_xf86keysym_header() else: ns.header = Path(ns.header) if ns.command is None: print("No command specified, defaulting to verify'") ns.func = verify sys.exit(ns.func(ns)) if __name__ == "__main__": main() xorgproto-2023.2/fixesproto.pc.in0000644000175000017500000000024614443010026013715 00000000000000prefix=@prefix@ includedir=@includedir@ Name: FixesProto Description: X Fixes extension headers Version: 6.1 Cflags: -I${includedir} Requires: xextproto >= 7.0.99.1 xorgproto-2023.2/PM_spec0000644000175000017500000001203414443010026012031 00000000000000 Proxy Management Protocol Draft Version 1.0 Ralph Mor, X Consortium The Proxy Management Protocol is an ICE based protocol that provides a way for application servers to easily locate proxy services available to them. Typically, a service called a "proxy manager" is responsible for resolving requests for proxy services, starting new proxies when appropriate, and keeping track of all of the available proxy services. The proxy manager strives to reuse existing proxies whenever possible. In order to request a proxy service, the GET_PROXY_ADDR message is sent to the proxy manager. The proxy manager will in turn forward this message to a proxy that it thinks can satisfy the request. GET_PROXY_ADDR proxy-service : STRING server-address : STRING host-address : STRING options : STRING auth-data-len : CARD16 auth-name : STRING or None auth-data : LISTofCARD8 or None --> status : CARD8 proxy-address : STRING failure-reason : STRING proxy-service is the name of the proxy service to be requested, for example "LBX". proxy-service is a case insensitive string. server-address is the network address of the target server. The format of the address is specific to proxy-service. For example, for a proxy service of "LBX", the address would be an X display address (e.g, "wkstn.x.org:0"). host-address is the network address of the host on which the proxied application will run. This information might be used by the proxy to restrict access to a specific host. options are proxy specific options that will be passed to the proxy. The details of these options are not specified here. Their syntax and semantics are defined by each proxy service. If auth-data-len is nonzero, then auth-name and auth-data contain authentication or authorization information that should be passed to the proxy. The proxy will typically use this to authenticate and authorize itself to the target server. The details of how the auth fields are used are specific to each proxy service. After sending GET_PROXY_ADDR the proxy manager expects a reply from the proxy. The status field of the reply indicates if the request can be satisfied. If status is Success, proxy-address will contain the network address of the proxy willing to handle this request. The format of the proxy address is specific to the proxy service being used. For example, for a proxy service of "LBX", the proxy address would be the X display address of the proxy (e.g, "gateway.x.org:63"). The proxy manager will forward the successful GET_PROXY_ADDR reply to whomever requested the proxy service. If status is Unable, the proxy is not able to satisfy the request but it believes some other proxy might be able to do so. Proxy-address is the empty string and failure-reason indicates the reason for failure. The proxy manager may choose to forward the original GET_PROXY_ADDR to another already running proxy, or it may choose to start up a new proxy. In the event that the proxy manager can not find or start a proxy, it will send a GET_PROXY_ADDR reply (with status Failure and an appropriate failure-reason) to whomever requested the proxy service. If status is Failure, the proxy is not able to satisfy the request and in addition is informing the requester that the request is invalid in some way and should not be retried. If the proxy manager starts up a new proxy, the proxy manager will need an indication from the proxy that it is ready to accept requests. The proxy is required to send a START_PROXY message to the proxy manager to identify itself and signal its readiness to receive requests. START_PROXY proxy-service : STRING (name of proxy service, e.g. "LBX") When the proxy manager receives the START_PROXY message from the proxy it checks that the proxy-service is the one that it's expecting. If the proxy-service is incorrect, an IceBadValue error will be sent to the proxy. Otherwise, the proxy manager will forward the original GET_PROXY_ADDR request to the proxy and the proxy will respond to the GET_PROXY_ADDR request in the same way as discussed above. Protocol -------- ICE protocol name is "PROXY_MANAGEMENT". The major opcode is assigned at run-time by ICE. Types ----- STRING 2 CARD16 length n LISTofCARD8 the string p p = pad(2+n,8) Encoding -------- GET_PROXY_ADDR 1 ? PROXY_MANAGEMENT 1 1 opcode 2 n auth-data-len (in bytes) 4 (a+b+c+d+e+n+p)/8 length of remaining data in 8-byte units a STRING proxy-service b STRING server-address c STRING host-address d STRING options e STRING auth-name (if auth-data-len > 0) n LISTofCARD8 auth-data (if auth-data-len > 0) p unused, p=pad(n,8) GET_PROXY_ADDR_REPLY 1 ? PROXY_MANAGEMENT 1 2 opcode 1 CARD8 status 0 Unable 1 Success 2 Failure 1 unused 4 (a+b)/8 length of remaining data in 8-byte units a STRING proxy-address b STRING failure-reason START_PROXY 1 ? PROXY_MANAGEMENT 1 3 opcode 2 unused 4 a/8 length of remaining data in 8-byte units a STRING proxy-service xorgproto-2023.2/configure.ac0000644000175000017500000001170414443010026013051 00000000000000dnl dnl Copyright © 2017 Keith Packard dnl dnl Permission to use, copy, modify, distribute, and sell this software and its dnl documentation for any purpose is hereby granted without fee, provided that dnl the above copyright notice appear in all copies and that both that dnl copyright notice and this permission notice appear in supporting dnl documentation, and that the name of Keith Packard not be used in dnl advertising or publicity pertaining to distribution of the software without dnl specific, written prior permission. Keith Packard makes no dnl representations about the suitability of this software for any purpose. It dnl is provided "as is" without express or implied warranty. dnl dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR dnl PERFORMANCE OF THIS SOFTWARE. dnl dnl Process this file with autoconf to create configure. AC_PREREQ([2.60]) # keep version in sync with meson.build AC_INIT([xorgproto], [2023.2], [https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues]) AM_INIT_AUTOMAKE([foreign dist-xz]) # Require xorg-macros: XORG_DEFAULT_OPTIONS m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.12) XORG_DEFAULT_OPTIONS XORG_ENABLE_SPECS XORG_WITH_XMLTO(0.0.22) XORG_WITH_FOP XORG_WITH_XSLTPROC XORG_CHECK_SGML_DOCTOOLS(1.8) AM_PATH_PYTHON([3.6], , [:]) AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) AC_CANONICAL_HOST AC_ARG_ENABLE(legacy, AS_HELP_STRING([--enable-legacy], [Install legacy protocol headers (default: false)]), [LEGACY=$enableval], [LEGACY=no]) AM_CONDITIONAL(LEGACY, [test "x$LEGACY" = "xyes"]) AC_CHECK_HEADERS([sys/select.h sys/param.h sys/types.h sys/time.h]) # Handle Xpoll.h.in # Avoid determining fds_bits on WIN32 hosts (not including cygwin) case $host_os in mingw*) fds_bits_found=true;; *) fds_bits_found=false;; esac if test "x$fds_bits_found" = xfalse ; then AC_CHECK_MEMBER(fd_set.fds_bits, [ fds_bits_found=plain USE_FDS_BITS="fds_bits" ],, [ #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_SYS_SELECT_H #include #endif ]) fi if test "x$fds_bits_found" = xfalse ; then AC_CHECK_MEMBER(fd_set.__fds_bits, [ fds_bits_found=underscores USE_FDS_BITS="__fds_bits" ],, [ #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_SYS_SELECT_H #include #endif ]) fi if test "x$fds_bits_found" = xfalse ; then AC_MSG_ERROR([Could not determine how to access the fds_bits or equivalent structure in fd_set on your platform.]) fi AC_SUBST([USE_FDS_BITS]) AC_CONFIG_FILES([applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc]) AC_OUTPUT xorgproto-2023.2/COPYING-fontcacheproto0000644000175000017500000000255214443010026014633 00000000000000Copyright (c) 1998-1999 Shunsuke Akiyama . All rights reserved. Copyright (c) 1998-1999 X-TrueType Server Project, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. xorgproto-2023.2/inputproto.pc.in0000644000175000017500000000021214443010026013727 00000000000000prefix=@prefix@ includedir=@includedir@ Name: InputProto Description: Input extension headers Version: 2.3.99.2 Cflags: -I${includedir} xorgproto-2023.2/include/0000755000175000017500000000000014443010035012263 500000000000000xorgproto-2023.2/include/X11/0000755000175000017500000000000014443010035012634 500000000000000xorgproto-2023.2/include/X11/Xthreads.h0000644000175000017500000003015314443010026014511 00000000000000/* * Copyright 1993, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * * */ #ifndef _XTHREADS_H_ # define _XTHREADS_H_ /* Redefine these to XtMalloc/XtFree or whatever you want before including * this header file. */ # ifndef xmalloc # define xmalloc malloc # endif # ifndef xfree # define xfree free # endif # ifdef CTHREADS # include typedef cthread_t xthread_t; typedef struct condition xcondition_rec; typedef struct mutex xmutex_rec; # define xthread_init() cthread_init() # define xthread_self cthread_self # define xthread_fork(func,closure) cthread_fork(func,closure) # define xthread_yield() cthread_yield() # define xthread_exit(v) cthread_exit(v) # define xthread_set_name(t,str) cthread_set_name(t,str) # define xmutex_init(m) mutex_init(m) # define xmutex_clear(m) mutex_clear(m) # define xmutex_lock(m) mutex_lock(m) # define xmutex_unlock(m) mutex_unlock(m) # define xmutex_set_name(m,str) mutex_set_name(m,str) # define xcondition_init(cv) condition_init(cv) # define xcondition_clear(cv) condition_clear(cv) # define xcondition_wait(cv,m) condition_wait(cv,m) # define xcondition_signal(cv) condition_signal(cv) # define xcondition_broadcast(cv) condition_broadcast(cv) # define xcondition_set_name(cv,str) condition_set_name(cv,str) # else /* !CTHREADS */ # if defined(SVR4) # include # include typedef thread_t xthread_t; typedef thread_key_t xthread_key_t; typedef cond_t xcondition_rec; typedef mutex_t xmutex_rec; # if defined(__UNIXWARE__) extern xthread_t (*_x11_thr_self)(); # define xthread_self (_x11_thr_self) # else # define xthread_self thr_self # endif # define xthread_fork(func,closure) thr_create(NULL,0,func,closure,THR_NEW_LWP|THR_DETACHED,NULL) # define xthread_yield() thr_yield() # define xthread_exit(v) thr_exit(v) # define xthread_key_create(kp,d) thr_keycreate(kp,d) # ifdef __sun # define xthread_key_delete(k) 0 # else # define xthread_key_delete(k) thr_keydelete(k) # endif # define xthread_set_specific(k,v) thr_setspecific(k,v) # define xthread_get_specific(k,vp) thr_getspecific(k,vp) # define xmutex_init(m) mutex_init(m,USYNC_THREAD,0) # define xmutex_clear(m) mutex_destroy(m) # define xmutex_lock(m) mutex_lock(m) # define xmutex_unlock(m) mutex_unlock(m) # define xcondition_init(cv) cond_init(cv,USYNC_THREAD,0) # define xcondition_clear(cv) cond_destroy(cv) # define xcondition_wait(cv,m) cond_wait(cv,m) # define xcondition_signal(cv) cond_signal(cv) # define xcondition_broadcast(cv) cond_broadcast(cv) # else /* !SVR4 */ # ifdef WIN32 # include typedef DWORD xthread_t; typedef DWORD xthread_key_t; struct _xthread_waiter { HANDLE sem; struct _xthread_waiter *next; }; typedef struct { CRITICAL_SECTION cs; struct _xthread_waiter *waiters; } xcondition_rec; typedef CRITICAL_SECTION xmutex_rec; extern void _Xthread_init(void); # define xthread_init() _Xthread_init() # define xthread_self GetCurrentThreadId # define xthread_fork(func,closure) { \ DWORD _tmptid; \ CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, (LPVOID)closure, 0, \ &_tmptid); \ } # define xthread_yield() Sleep(0) # define xthread_exit(v) ExitThread((DWORD)(v)) # define xthread_key_create(kp,d) *(kp) = TlsAlloc() # define xthread_key_delete(k) TlsFree(k) # define xthread_set_specific(k,v) TlsSetValue(k,v) # define xthread_get_specific(k,vp) TlsGetValue(k) # define xmutex_init(m) InitializeCriticalSection(m) # define xmutex_clear(m) DeleteCriticalSection(m) # define _XMUTEX_NESTS # define xmutex_lock(m) EnterCriticalSection(m) # define xmutex_unlock(m) LeaveCriticalSection(m) # define xcondition_init(cv) { \ InitializeCriticalSection(&(cv)->cs); \ (cv)->waiters = NULL; \ } # define xcondition_clear(cv) DeleteCriticalSection(&(cv)->cs) extern struct _xthread_waiter *_Xthread_waiter(); # define xcondition_wait(cv,m) { \ struct _xthread_waiter *_tmpthr = _Xthread_waiter(); \ EnterCriticalSection(&(cv)->cs); \ _tmpthr->next = (cv)->waiters; \ (cv)->waiters = _tmpthr; \ LeaveCriticalSection(&(cv)->cs); \ LeaveCriticalSection(m); \ WaitForSingleObject(_tmpthr->sem, INFINITE); \ EnterCriticalSection(m); \ } # define xcondition_signal(cv) { \ EnterCriticalSection(&(cv)->cs); \ if ((cv)->waiters) { \ ReleaseSemaphore((cv)->waiters->sem, 1, NULL); \ (cv)->waiters = (cv)->waiters->next; \ } \ LeaveCriticalSection(&(cv)->cs); \ } # define xcondition_broadcast(cv) { \ struct _xthread_waiter *_tmpthr; \ EnterCriticalSection(&(cv)->cs); \ for (_tmpthr = (cv)->waiters; _tmpthr; _tmpthr = _tmpthr->next) \ ReleaseSemaphore(_tmpthr->sem, 1, NULL); \ (cv)->waiters = NULL; \ LeaveCriticalSection(&(cv)->cs); \ } # else /* !WIN32 */ # ifdef USE_TIS_SUPPORT /* * TIS support is intended for thread safe libraries. * This should not be used for general client programming. */ # include typedef pthread_t xthread_t; typedef pthread_key_t xthread_key_t; typedef pthread_cond_t xcondition_rec; typedef pthread_mutex_t xmutex_rec; # define xthread_self tis_self # define xthread_fork(func,closure) { pthread_t _tmpxthr; \ pthread_create(&_tmpxthr,NULL,func,closure); } # define xthread_yield() pthread_yield_np() # define xthread_exit(v) pthread_exit(v) # define xthread_key_create(kp,d) tis_key_create(kp,d) # define xthread_key_delete(k) tis_key_delete(k) # define xthread_set_specific(k,v) tis_setspecific(k,v) # define xthread_get_specific(k,vp) *(vp) = tis_getspecific(k) # define XMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER # define xmutex_init(m) tis_mutex_init(m) # define xmutex_clear(m) tis_mutex_destroy(m) # define xmutex_lock(m) tis_mutex_lock(m) # define xmutex_unlock(m) tis_mutex_unlock(m) # define xcondition_init(c) tis_cond_init(c) # define xcondition_clear(c) tis_cond_destroy(c) # define xcondition_wait(c,m) tis_cond_wait(c,m) # define xcondition_signal(c) tis_cond_signal(c) # define xcondition_broadcast(c) tis_cond_broadcast(c) # else # ifdef USE_NBSD_THREADLIB /* * NetBSD threadlib support is intended for thread safe libraries. * This should not be used for general client programming. */ # include typedef thr_t xthread_t; typedef thread_key_t xthread_key_t; typedef cond_t xcondition_rec; typedef mutex_t xmutex_rec; # define xthread_self thr_self # define xthread_fork(func,closure) { thr_t _tmpxthr; \ /* XXX Create it detached? --thorpej */ \ thr_create(&_tmpxthr,NULL,func,closure); } # define xthread_yield() thr_yield() # define xthread_exit(v) thr_exit(v) # define xthread_key_create(kp,d) thr_keycreate(kp,d) # define xthread_key_delete(k) thr_keydelete(k) # define xthread_set_specific(k,v) thr_setspecific(k,v) # define xthread_get_specific(k,vp) *(vp) = thr_getspecific(k) # define XMUTEX_INITIALIZER MUTEX_INITIALIZER # define xmutex_init(m) mutex_init(m, 0) # define xmutex_clear(m) mutex_destroy(m) # define xmutex_lock(m) mutex_lock(m) # define xmutex_unlock(m) mutex_unlock(m) # define xcondition_init(c) cond_init(c, 0, 0) # define xcondition_clear(c) cond_destroy(c) # define xcondition_wait(c,m) cond_wait(c,m) # define xcondition_signal(c) cond_signal(c) # define xcondition_broadcast(c) cond_broadcast(c) # else # include typedef pthread_t xthread_t; typedef pthread_key_t xthread_key_t; typedef pthread_cond_t xcondition_rec; typedef pthread_mutex_t xmutex_rec; # define xthread_self pthread_self # define xthread_yield() pthread_yield() # define xthread_exit(v) pthread_exit(v) # define xthread_set_specific(k,v) pthread_setspecific(k,v) # define xmutex_clear(m) pthread_mutex_destroy(m) # define xmutex_lock(m) pthread_mutex_lock(m) # define xmutex_unlock(m) pthread_mutex_unlock(m) # ifndef XPRE_STANDARD_API # define xthread_key_create(kp,d) pthread_key_create(kp,d) # define xthread_key_delete(k) pthread_key_delete(k) # define xthread_get_specific(k,vp) *(vp) = pthread_getspecific(k) # define xthread_fork(func,closure) { pthread_t _tmpxthr; \ pthread_create(&_tmpxthr,NULL,func,closure); } # define XMUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER # define xmutex_init(m) pthread_mutex_init(m, NULL) # define xcondition_init(c) pthread_cond_init(c, NULL) # else /* XPRE_STANDARD_API */ # define xthread_key_create(kp,d) pthread_keycreate(kp,d) # define xthread_key_delete(k) 0 # define xthread_get_specific(k,vp) pthread_getspecific(k,vp) # define xthread_fork(func,closure) { pthread_t _tmpxthr; \ pthread_create(&_tmpxthr,pthread_attr_default,func,closure); } # define xmutex_init(m) pthread_mutex_init(m, pthread_mutexattr_default) # define xcondition_init(c) pthread_cond_init(c, pthread_condattr_default) # endif /* XPRE_STANDARD_API */ # define xcondition_clear(c) pthread_cond_destroy(c) # define xcondition_wait(c,m) pthread_cond_wait(c,m) # define xcondition_signal(c) pthread_cond_signal(c) # define xcondition_broadcast(c) pthread_cond_broadcast(c) # if defined(_DECTHREADS_) static xthread_t _X_no_thread_id; # define xthread_have_id(id) !pthread_equal(id, _X_no_thread_id) # define xthread_clear_id(id) id = _X_no_thread_id # define xthread_equal(id1,id2) pthread_equal(id1, id2) # endif /* _DECTHREADS_ */ # if defined(__linux__) # define xthread_have_id(id) !pthread_equal(id, 0) # define xthread_clear_id(id) id = 0 # define xthread_equal(id1,id2) pthread_equal(id1, id2) # endif /* linux */ # if defined(_CMA_VENDOR_) && defined(_CMA__IBM) && (_CMA_VENDOR_ == _CMA__IBM) # ifdef DEBUG /* too much of a hack to enable normally */ /* see also cma__obj_set_name() */ # define xmutex_set_name(m,str) ((char**)(m)->field1)[5] = (str) # define xcondition_set_name(cv,str) ((char**)(cv)->field1)[5] = (str) # endif /* DEBUG */ # endif /* _CMA_VENDOR_ == _CMA__IBM */ # endif /* USE_NBSD_THREADLIB */ # endif /* USE_TIS_SUPPORT */ # endif /* WIN32 */ # endif /* SVR4 */ # endif /* CTHREADS */ typedef xcondition_rec *xcondition_t; typedef xmutex_rec *xmutex_t; # ifndef xcondition_malloc # define xcondition_malloc() (xcondition_t)xmalloc(sizeof(xcondition_rec)) # endif # ifndef xcondition_free # define xcondition_free(c) xfree((char *)c) # endif # ifndef xmutex_malloc # define xmutex_malloc() (xmutex_t)xmalloc(sizeof(xmutex_rec)) # endif # ifndef xmutex_free # define xmutex_free(m) xfree((char *)m) # endif # ifndef xthread_have_id # define xthread_have_id(id) id # endif # ifndef xthread_clear_id # define xthread_clear_id(id) id = 0 # endif # ifndef xthread_equal # define xthread_equal(id1,id2) ((id1) == (id2)) # endif /* aids understood by some debuggers */ # ifndef xthread_set_name # define xthread_set_name(t,str) # endif # ifndef xmutex_set_name # define xmutex_set_name(m,str) # endif # ifndef xcondition_set_name # define xcondition_set_name(cv,str) # endif #endif /* _XTHREADS_H_ */ xorgproto-2023.2/include/X11/Xproto.h0000644000175000017500000014625714443010026014237 00000000000000/* Definitions for the X window system used by server and c bindings */ /* * This packet-construction scheme makes the following assumptions: * * 1. The compiler is able * to generate code which addresses one- and two-byte quantities. * In the worst case, this would be done with bit-fields. If bit-fields * are used it may be necessary to reorder the request fields in this file, * depending on the order in which the machine assigns bit fields to * machine words. There may also be a problem with sign extension, * as K+R specify that bitfields are always unsigned. * * 2. 2- and 4-byte fields in packet structures must be ordered by hand * such that they are naturally-aligned, so that no compiler will ever * insert padding bytes. * * 3. All packets are hand-padded to a multiple of 4 bytes, for * the same reason. */ #ifndef XPROTO_H #define XPROTO_H /*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #include #include /* * Define constants for the sizes of the network packets. The sz_ prefix is * used instead of something more descriptive so that the symbols are no more * than 32 characters in length (which causes problems for some compilers). */ #define sz_xSegment 8 #define sz_xPoint 4 #define sz_xRectangle 8 #define sz_xArc 12 #define sz_xConnClientPrefix 12 #define sz_xConnSetupPrefix 8 #define sz_xConnSetup 32 #define sz_xPixmapFormat 8 #define sz_xDepth 8 #define sz_xVisualType 24 #define sz_xWindowRoot 40 #define sz_xTimecoord 8 #define sz_xHostEntry 4 #define sz_xCharInfo 12 #define sz_xFontProp 8 #define sz_xTextElt 2 #define sz_xColorItem 12 #define sz_xrgb 8 #define sz_xGenericReply 32 #define sz_xGetWindowAttributesReply 44 #define sz_xGetGeometryReply 32 #define sz_xQueryTreeReply 32 #define sz_xInternAtomReply 32 #define sz_xGetAtomNameReply 32 #define sz_xGetPropertyReply 32 #define sz_xListPropertiesReply 32 #define sz_xGetSelectionOwnerReply 32 #define sz_xGrabPointerReply 32 #define sz_xQueryPointerReply 32 #define sz_xGetMotionEventsReply 32 #define sz_xTranslateCoordsReply 32 #define sz_xGetInputFocusReply 32 #define sz_xQueryKeymapReply 40 #define sz_xQueryFontReply 60 #define sz_xQueryTextExtentsReply 32 #define sz_xListFontsReply 32 #define sz_xGetFontPathReply 32 #define sz_xGetImageReply 32 #define sz_xListInstalledColormapsReply 32 #define sz_xAllocColorReply 32 #define sz_xAllocNamedColorReply 32 #define sz_xAllocColorCellsReply 32 #define sz_xAllocColorPlanesReply 32 #define sz_xQueryColorsReply 32 #define sz_xLookupColorReply 32 #define sz_xQueryBestSizeReply 32 #define sz_xQueryExtensionReply 32 #define sz_xListExtensionsReply 32 #define sz_xSetMappingReply 32 #define sz_xGetKeyboardControlReply 52 #define sz_xGetPointerControlReply 32 #define sz_xGetScreenSaverReply 32 #define sz_xListHostsReply 32 #define sz_xSetModifierMappingReply 32 #define sz_xError 32 #define sz_xEvent 32 #define sz_xKeymapEvent 32 #define sz_xReq 4 #define sz_xResourceReq 8 #define sz_xCreateWindowReq 32 #define sz_xChangeWindowAttributesReq 12 #define sz_xChangeSaveSetReq 8 #define sz_xReparentWindowReq 16 #define sz_xConfigureWindowReq 12 #define sz_xCirculateWindowReq 8 #define sz_xInternAtomReq 8 #define sz_xChangePropertyReq 24 #define sz_xDeletePropertyReq 12 #define sz_xGetPropertyReq 24 #define sz_xSetSelectionOwnerReq 16 #define sz_xConvertSelectionReq 24 #define sz_xSendEventReq 44 #define sz_xGrabPointerReq 24 #define sz_xGrabButtonReq 24 #define sz_xUngrabButtonReq 12 #define sz_xChangeActivePointerGrabReq 16 #define sz_xGrabKeyboardReq 16 #define sz_xGrabKeyReq 16 #define sz_xUngrabKeyReq 12 #define sz_xAllowEventsReq 8 #define sz_xGetMotionEventsReq 16 #define sz_xTranslateCoordsReq 16 #define sz_xWarpPointerReq 24 #define sz_xSetInputFocusReq 12 #define sz_xOpenFontReq 12 #define sz_xQueryTextExtentsReq 8 #define sz_xListFontsReq 8 #define sz_xSetFontPathReq 8 #define sz_xCreatePixmapReq 16 #define sz_xCreateGCReq 16 #define sz_xChangeGCReq 12 #define sz_xCopyGCReq 16 #define sz_xSetDashesReq 12 #define sz_xSetClipRectanglesReq 12 #define sz_xCopyAreaReq 28 #define sz_xCopyPlaneReq 32 #define sz_xPolyPointReq 12 #define sz_xPolySegmentReq 12 #define sz_xFillPolyReq 16 #define sz_xPutImageReq 24 #define sz_xGetImageReq 20 #define sz_xPolyTextReq 16 #define sz_xImageTextReq 16 #define sz_xCreateColormapReq 16 #define sz_xCopyColormapAndFreeReq 12 #define sz_xAllocColorReq 16 #define sz_xAllocNamedColorReq 12 #define sz_xAllocColorCellsReq 12 #define sz_xAllocColorPlanesReq 16 #define sz_xFreeColorsReq 12 #define sz_xStoreColorsReq 8 #define sz_xStoreNamedColorReq 16 #define sz_xQueryColorsReq 8 #define sz_xLookupColorReq 12 #define sz_xCreateCursorReq 32 #define sz_xCreateGlyphCursorReq 32 #define sz_xRecolorCursorReq 20 #define sz_xQueryBestSizeReq 12 #define sz_xQueryExtensionReq 8 #define sz_xChangeKeyboardControlReq 8 #define sz_xBellReq 4 #define sz_xChangePointerControlReq 12 #define sz_xSetScreenSaverReq 12 #define sz_xChangeHostsReq 8 #define sz_xListHostsReq 4 #define sz_xChangeModeReq 4 #define sz_xRotatePropertiesReq 12 #define sz_xReply 32 #define sz_xGrabKeyboardReply 32 #define sz_xListFontsWithInfoReply 60 #define sz_xSetPointerMappingReply 32 #define sz_xGetKeyboardMappingReply 32 #define sz_xGetPointerMappingReply 32 #define sz_xGetModifierMappingReply 32 #define sz_xListFontsWithInfoReq 8 #define sz_xPolyLineReq 12 #define sz_xPolyArcReq 12 #define sz_xPolyRectangleReq 12 #define sz_xPolyFillRectangleReq 12 #define sz_xPolyFillArcReq 12 #define sz_xPolyText8Req 16 #define sz_xPolyText16Req 16 #define sz_xImageText8Req 16 #define sz_xImageText16Req 16 #define sz_xSetPointerMappingReq 4 #define sz_xForceScreenSaverReq 4 #define sz_xSetCloseDownModeReq 4 #define sz_xClearAreaReq 16 #define sz_xSetAccessControlReq 4 #define sz_xGetKeyboardMappingReq 8 #define sz_xSetModifierMappingReq 4 #define sz_xPropIconSize 24 #define sz_xChangeKeyboardMappingReq 8 /* For the purpose of the structure definitions in this file, we must redefine the following types in terms of Xmd.h's types, which may include bit fields. All of these are #undef'd at the end of this file, restoring the definitions in X.h. */ #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define X_TCP_PORT 6000 /* add display number */ #define xTrue 1 #define xFalse 0 typedef CARD16 KeyButMask; /***************** Connection setup structures. See Chapter 8: Connection Setup of the X Window System Protocol specification for details. *****************/ /* Client initiates handshake with this data, followed by the strings * for the auth protocol & data. */ typedef struct { CARD8 byteOrder; BYTE pad; CARD16 majorVersion, minorVersion; CARD16 nbytesAuthProto; /* Authorization protocol */ CARD16 nbytesAuthString; /* Authorization string */ CARD16 pad2; } xConnClientPrefix; /* Server response to xConnClientPrefix. * * If success == Success, this is followed by xConnSetup and * numRoots xWindowRoot structs. * * If success == Failure, this is followed by a reason string. * * The protocol also defines a case of success == Authenticate, but * that doesn't seem to have ever been implemented by the X Consortium. */ typedef struct { CARD8 success; BYTE lengthReason; /*num bytes in string following if failure */ CARD16 majorVersion, minorVersion; CARD16 length; /* 1/4 additional bytes in setup info */ } xConnSetupPrefix; typedef struct { CARD32 release; CARD32 ridBase, ridMask; CARD32 motionBufferSize; CARD16 nbytesVendor; /* number of bytes in vendor string */ CARD16 maxRequestSize; CARD8 numRoots; /* number of roots structs to follow */ CARD8 numFormats; /* number of pixmap formats */ CARD8 imageByteOrder; /* LSBFirst, MSBFirst */ CARD8 bitmapBitOrder; /* LeastSignificant, MostSign...*/ CARD8 bitmapScanlineUnit, /* 8, 16, 32 */ bitmapScanlinePad; /* 8, 16, 32 */ KeyCode minKeyCode, maxKeyCode; CARD32 pad2; } xConnSetup; typedef struct { CARD8 depth; CARD8 bitsPerPixel; CARD8 scanLinePad; CARD8 pad1; CARD32 pad2; } xPixmapFormat; /* window root */ typedef struct { CARD8 depth; CARD8 pad1; CARD16 nVisuals; /* number of xVisualType structures following */ CARD32 pad2; } xDepth; typedef struct { VisualID visualID; #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 bitsPerRGB; CARD16 colormapEntries; CARD32 redMask, greenMask, blueMask; CARD32 pad; } xVisualType; typedef struct { Window windowId; Colormap defaultColormap; CARD32 whitePixel, blackPixel; CARD32 currentInputMask; CARD16 pixWidth, pixHeight; CARD16 mmWidth, mmHeight; CARD16 minInstalledMaps, maxInstalledMaps; VisualID rootVisualID; CARD8 backingStore; BOOL saveUnders; CARD8 rootDepth; CARD8 nDepths; /* number of xDepth structures following */ } xWindowRoot; /***************************************************************** * Structure Defns * Structures needed for replies *****************************************************************/ /* Used in GetMotionEvents */ typedef struct { CARD32 time; INT16 x, y; } xTimecoord; typedef struct { CARD8 family; BYTE pad; CARD16 length; } xHostEntry; typedef struct { INT16 leftSideBearing, rightSideBearing, characterWidth, ascent, descent; CARD16 attributes; } xCharInfo; typedef struct { Atom name; CARD32 value; } xFontProp; /* * non-aligned big-endian font ID follows this struct */ typedef struct { /* followed by string */ CARD8 len; /* number of *characters* in string, or FontChange (255) for font change, or 0 if just delta given */ INT8 delta; } xTextElt; typedef struct { CARD32 pixel; CARD16 red, green, blue; CARD8 flags; /* DoRed, DoGreen, DoBlue booleans */ CARD8 pad; } xColorItem; typedef struct { CARD16 red, green, blue, pad; } xrgb; typedef CARD8 KEYCODE; /***************** * XRep: * meant to be 32 byte quantity *****************/ /* GenericReply is the common format of all replies. The "data" items are specific to each individual reply type. */ typedef struct { BYTE type; /* X_Reply */ BYTE data1; /* depends on reply type */ CARD16 sequenceNumber; /* of last request received by server */ CARD32 length; /* 4 byte quantities beyond size of GenericReply */ CARD32 data00; CARD32 data01; CARD32 data02; CARD32 data03; CARD32 data04; CARD32 data05; } xGenericReply; /* Individual reply formats. */ typedef struct { BYTE type; /* X_Reply */ CARD8 backingStore; CARD16 sequenceNumber; CARD32 length; /* NOT 0; this is an extra-large reply */ VisualID visualID; #if defined(__cplusplus) || defined(c_plusplus) CARD16 c_class; #else CARD16 class; #endif CARD8 bitGravity; CARD8 winGravity; CARD32 backingBitPlanes; CARD32 backingPixel; BOOL saveUnder; BOOL mapInstalled; CARD8 mapState; BOOL override; Colormap colormap; CARD32 allEventMasks; CARD32 yourEventMask; CARD16 doNotPropagateMask; CARD16 pad; } xGetWindowAttributesReply; typedef struct { BYTE type; /* X_Reply */ CARD8 depth; CARD16 sequenceNumber; CARD32 length; /* 0 */ Window root; INT16 x, y; CARD16 width, height; CARD16 borderWidth; CARD16 pad1; CARD32 pad2; CARD32 pad3; } xGetGeometryReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; Window root, parent; CARD16 nChildren; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xQueryTreeReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ Atom atom; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xInternAtomReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* of additional bytes */ CARD16 nameLength; /* # of characters in name */ CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGetAtomNameReply; typedef struct { BYTE type; /* X_Reply */ CARD8 format; CARD16 sequenceNumber; CARD32 length; /* of additional bytes */ Atom propertyType; CARD32 bytesAfter; CARD32 nItems; /* # of 8, 16, or 32-bit entities in reply */ CARD32 pad1; CARD32 pad2; CARD32 pad3; } xGetPropertyReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nProperties; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xListPropertiesReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ Window owner; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetSelectionOwnerReply; typedef struct { BYTE type; /* X_Reply */ BYTE status; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGrabPointerReply; typedef xGrabPointerReply xGrabKeyboardReply; typedef struct { BYTE type; /* X_Reply */ BOOL sameScreen; CARD16 sequenceNumber; CARD32 length; /* 0 */ Window root, child; INT16 rootX, rootY, winX, winY; CARD16 mask; CARD16 pad1; CARD32 pad; } xQueryPointerReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 nEvents; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetMotionEventsReply; typedef struct { BYTE type; /* X_Reply */ BOOL sameScreen; CARD16 sequenceNumber; CARD32 length; /* 0 */ Window child; INT16 dstX, dstY; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xTranslateCoordsReply; typedef struct { BYTE type; /* X_Reply */ CARD8 revertTo; CARD16 sequenceNumber; CARD32 length; /* 0 */ Window focus; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xGetInputFocusReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 2, NOT 0; this is an extra-large reply */ BYTE map[32]; } xQueryKeymapReply; /* Warning: this MUST match (up to component renaming) xListFontsWithInfoReply */ typedef struct _xQueryFontReply { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* definitely > 0, even if "nCharInfos" is 0 */ xCharInfo minBounds; CARD32 walign1; xCharInfo maxBounds; CARD32 walign2; CARD16 minCharOrByte2, maxCharOrByte2; CARD16 defaultChar; CARD16 nFontProps; /* followed by this many xFontProp structures */ CARD8 drawDirection; CARD8 minByte1, maxByte1; BOOL allCharsExist; INT16 fontAscent, fontDescent; CARD32 nCharInfos; /* followed by this many xCharInfo structures */ } xQueryFontReply; typedef struct { BYTE type; /* X_Reply */ CARD8 drawDirection; CARD16 sequenceNumber; CARD32 length; /* 0 */ INT16 fontAscent, fontDescent; INT16 overallAscent, overallDescent; INT32 overallWidth, overallLeft, overallRight; CARD32 pad; } xQueryTextExtentsReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nFonts; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xListFontsReply; /* Warning: this MUST match (up to component renaming) xQueryFontReply */ typedef struct { BYTE type; /* X_Reply */ CARD8 nameLength; /* 0 indicates end-of-reply-sequence */ CARD16 sequenceNumber; CARD32 length; /* definitely > 0, even if "nameLength" is 0 */ xCharInfo minBounds; CARD32 walign1; xCharInfo maxBounds; CARD32 walign2; CARD16 minCharOrByte2, maxCharOrByte2; CARD16 defaultChar; CARD16 nFontProps; /* followed by this many xFontProp structures */ CARD8 drawDirection; CARD8 minByte1, maxByte1; BOOL allCharsExist; INT16 fontAscent, fontDescent; CARD32 nReplies; /* hint as to how many more replies might be coming */ } xListFontsWithInfoReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nPaths; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGetFontPathReply; typedef struct { BYTE type; /* X_Reply */ CARD8 depth; CARD16 sequenceNumber; CARD32 length; VisualID visual; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGetImageReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nColormaps; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xListInstalledColormapsReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 red, green, blue; CARD16 pad2; CARD32 pixel; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xAllocColorReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD32 pixel; CARD16 exactRed, exactGreen, exactBlue; CARD16 screenRed, screenGreen, screenBlue; CARD32 pad2; CARD32 pad3; } xAllocNamedColorReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nPixels, nMasks; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xAllocColorCellsReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nPixels; CARD16 pad2; CARD32 redMask, greenMask, blueMask; CARD32 pad3; CARD32 pad4; } xAllocColorPlanesReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 nColors; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xQueryColorsReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 exactRed, exactGreen, exactBlue; CARD16 screenRed, screenGreen, screenBlue; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLookupColorReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 width, height; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xQueryBestSizeReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ BOOL present; CARD8 major_opcode; CARD8 first_event; CARD8 first_error; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xQueryExtensionReply; typedef struct { BYTE type; /* X_Reply */ CARD8 nExtensions; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xListExtensionsReply; typedef struct { BYTE type; /* X_Reply */ CARD8 success; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xSetMappingReply; typedef xSetMappingReply xSetPointerMappingReply; typedef xSetMappingReply xSetModifierMappingReply; typedef struct { BYTE type; /* X_Reply */ CARD8 nElts; /* how many elements does the map have */ CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGetPointerMappingReply; typedef struct { BYTE type; CARD8 keySymsPerKeyCode; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGetKeyboardMappingReply; typedef struct { BYTE type; CARD8 numKeyPerModifier; CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetModifierMappingReply; typedef struct { BYTE type; /* X_Reply */ BOOL globalAutoRepeat; CARD16 sequenceNumber; CARD32 length; /* 5 */ CARD32 ledMask; CARD8 keyClickPercent, bellPercent; CARD16 bellPitch, bellDuration; CARD16 pad; BYTE map[32]; /* bit masks start here */ } xGetKeyboardControlReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 accelNumerator, accelDenominator; CARD16 threshold; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetPointerControlReply; typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 timeout, interval; BOOL preferBlanking; BOOL allowExposures; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetScreenSaverReply; typedef struct { BYTE type; /* X_Reply */ BOOL enabled; CARD16 sequenceNumber; CARD32 length; CARD16 nHosts; CARD16 pad1; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xListHostsReply; /***************************************************************** * Xerror * All errors are 32 bytes *****************************************************************/ typedef struct { BYTE type; /* X_Error */ BYTE errorCode; CARD16 sequenceNumber; /* the nth request from this client */ CARD32 resourceID; CARD16 minorCode; CARD8 majorCode; BYTE pad1; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xError; /***************************************************************** * xEvent * All events are 32 bytes *****************************************************************/ typedef struct _xEvent { union { struct { BYTE type; BYTE detail; CARD16 sequenceNumber; } u; struct { CARD32 pad00; Time time; Window root, event, child; INT16 rootX, rootY, eventX, eventY; KeyButMask state; BOOL sameScreen; BYTE pad1; } keyButtonPointer; struct { CARD32 pad00; Time time; Window root, event, child; INT16 rootX, rootY, eventX, eventY; KeyButMask state; BYTE mode; /* really XMode */ BYTE flags; /* sameScreen and focus booleans, packed together */ #define ELFlagFocus (1<<0) #define ELFlagSameScreen (1<<1) } enterLeave; struct { CARD32 pad00; Window window; BYTE mode; /* really XMode */ BYTE pad1, pad2, pad3; } focus; struct { CARD32 pad00; Window window; CARD16 x, y, width, height; CARD16 count; CARD16 pad2; } expose; struct { CARD32 pad00; Drawable drawable; CARD16 x, y, width, height; CARD16 minorEvent; CARD16 count; BYTE majorEvent; BYTE pad1, pad2, pad3; } graphicsExposure; struct { CARD32 pad00; Drawable drawable; CARD16 minorEvent; BYTE majorEvent; BYTE bpad; } noExposure; struct { CARD32 pad00; Window window; CARD8 state; BYTE pad1, pad2, pad3; } visibility; struct { CARD32 pad00; Window parent, window; INT16 x, y; CARD16 width, height, borderWidth; BOOL override; BYTE bpad; } createNotify; /* * The event fields in the structures for DestroyNotify, UnmapNotify, * MapNotify, ReparentNotify, ConfigureNotify, CirculateNotify, GravityNotify, * must be at the same offset because server internal code is depending upon * this to patch up the events before they are delivered. * Also note that MapRequest, ConfigureRequest and CirculateRequest have * the same offset for the event window. */ struct { CARD32 pad00; Window event, window; } destroyNotify; struct { CARD32 pad00; Window event, window; BOOL fromConfigure; BYTE pad1, pad2, pad3; } unmapNotify; struct { CARD32 pad00; Window event, window; BOOL override; BYTE pad1, pad2, pad3; } mapNotify; struct { CARD32 pad00; Window parent, window; } mapRequest; struct { CARD32 pad00; Window event, window, parent; INT16 x, y; BOOL override; BYTE pad1, pad2, pad3; } reparent; struct { CARD32 pad00; Window event, window, aboveSibling; INT16 x, y; CARD16 width, height, borderWidth; BOOL override; BYTE bpad; } configureNotify; struct { CARD32 pad00; Window parent, window, sibling; INT16 x, y; CARD16 width, height, borderWidth; CARD16 valueMask; CARD32 pad1; } configureRequest; struct { CARD32 pad00; Window event, window; INT16 x, y; CARD32 pad1, pad2, pad3, pad4; } gravity; struct { CARD32 pad00; Window window; CARD16 width, height; } resizeRequest; struct { /* The event field in the circulate record is really the parent when this is used as a CirculateRequest instead of a CirculateNotify */ CARD32 pad00; Window event, window, parent; BYTE place; /* Top or Bottom */ BYTE pad1, pad2, pad3; } circulate; struct { CARD32 pad00; Window window; Atom atom; Time time; BYTE state; /* NewValue or Deleted */ BYTE pad1; CARD16 pad2; } property; struct { CARD32 pad00; Time time; Window window; Atom atom; } selectionClear; struct { CARD32 pad00; Time time; Window owner, requestor; Atom selection, target, property; } selectionRequest; struct { CARD32 pad00; Time time; Window requestor; Atom selection, target, property; } selectionNotify; struct { CARD32 pad00; Window window; Colormap colormap; #if defined(__cplusplus) || defined(c_plusplus) BOOL c_new; #else BOOL new; #endif BYTE state; /* Installed or UnInstalled */ BYTE pad1, pad2; } colormap; struct { CARD32 pad00; CARD8 request; KeyCode firstKeyCode; CARD8 count; BYTE pad1; } mappingNotify; struct { CARD32 pad00; Window window; union { struct { Atom type; INT32 longs0; INT32 longs1; INT32 longs2; INT32 longs3; INT32 longs4; } l; struct { Atom type; INT16 shorts0; INT16 shorts1; INT16 shorts2; INT16 shorts3; INT16 shorts4; INT16 shorts5; INT16 shorts6; INT16 shorts7; INT16 shorts8; INT16 shorts9; } s; struct { Atom type; INT8 bytes[20]; } b; } u; } clientMessage; } u; } xEvent; /********************************************************* * * Generic event * * Those events are not part of the core protocol spec and can be used by * various extensions. * type is always GenericEvent * extension is the minor opcode of the extension the event belongs to. * evtype is the actual event type, unique __per extension__. * * GenericEvents can be longer than 32 bytes, with the length field * specifying the number of 4 byte blocks after the first 32 bytes. * * */ typedef struct { BYTE type; CARD8 extension; CARD16 sequenceNumber; CARD32 length; CARD16 evtype; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGenericEvent; /* KeymapNotify events are not included in the above union because they are different from all other events: they do not have a "detail" or "sequenceNumber", so there is room for a 248-bit key mask. */ typedef struct { BYTE type; BYTE map[31]; } xKeymapEvent; #define XEventSize (sizeof(xEvent)) /* XReply is the union of all the replies above whose "fixed part" fits in 32 bytes. It does NOT include GetWindowAttributesReply, QueryFontReply, QueryKeymapReply, or GetKeyboardControlReply ListFontsWithInfoReply */ typedef union { xGenericReply generic; xGetGeometryReply geom; xQueryTreeReply tree; xInternAtomReply atom; xGetAtomNameReply atomName; xGetPropertyReply property; xListPropertiesReply listProperties; xGetSelectionOwnerReply selection; xGrabPointerReply grabPointer; xGrabKeyboardReply grabKeyboard; xQueryPointerReply pointer; xGetMotionEventsReply motionEvents; xTranslateCoordsReply coords; xGetInputFocusReply inputFocus; xQueryTextExtentsReply textExtents; xListFontsReply fonts; xGetFontPathReply fontPath; xGetImageReply image; xListInstalledColormapsReply colormaps; xAllocColorReply allocColor; xAllocNamedColorReply allocNamedColor; xAllocColorCellsReply colorCells; xAllocColorPlanesReply colorPlanes; xQueryColorsReply colors; xLookupColorReply lookupColor; xQueryBestSizeReply bestSize; xQueryExtensionReply extension; xListExtensionsReply extensions; xSetModifierMappingReply setModifierMapping; xGetModifierMappingReply getModifierMapping; xSetPointerMappingReply setPointerMapping; xGetKeyboardMappingReply getKeyboardMapping; xGetPointerMappingReply getPointerMapping; xGetPointerControlReply pointerControl; xGetScreenSaverReply screenSaver; xListHostsReply hosts; xError error; xEvent event; } xReply; /***************************************************************** * REQUESTS *****************************************************************/ /* Request structure */ typedef struct _xReq { CARD8 reqType; CARD8 data; /* meaning depends on request type */ CARD16 length; /* length in 4 bytes quantities of whole request, including this header */ } xReq; /***************************************************************** * structures that follow request. *****************************************************************/ /* ResourceReq is used for any request which has a resource ID (or Atom or Time) as its one and only argument. */ typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD32 id; /* a Window, Drawable, Font, GContext, Pixmap, etc. */ } xResourceReq; typedef struct { CARD8 reqType; CARD8 depth; CARD16 length; Window wid, parent; INT16 x, y; CARD16 width, height, borderWidth; #if defined(__cplusplus) || defined(c_plusplus) CARD16 c_class; #else CARD16 class; #endif VisualID visual; CARD32 mask; } xCreateWindowReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window window; CARD32 valueMask; } xChangeWindowAttributesReq; typedef struct { CARD8 reqType; BYTE mode; CARD16 length; Window window; } xChangeSaveSetReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window window, parent; INT16 x, y; } xReparentWindowReq; typedef struct { CARD8 reqType; CARD8 pad; CARD16 length; Window window; CARD16 mask; CARD16 pad2; } xConfigureWindowReq; typedef struct { CARD8 reqType; CARD8 direction; CARD16 length; Window window; } xCirculateWindowReq; typedef struct { /* followed by padded string */ CARD8 reqType; BOOL onlyIfExists; CARD16 length; CARD16 nbytes; /* number of bytes in string */ CARD16 pad; } xInternAtomReq; typedef struct { CARD8 reqType; CARD8 mode; CARD16 length; Window window; Atom property, type; CARD8 format; BYTE pad[3]; CARD32 nUnits; /* length of stuff following, depends on format */ } xChangePropertyReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window window; Atom property; } xDeletePropertyReq; typedef struct { CARD8 reqType; #if defined(__cplusplus) || defined(c_plusplus) BOOL c_delete; #else BOOL delete; #endif CARD16 length; Window window; Atom property, type; CARD32 longOffset; CARD32 longLength; } xGetPropertyReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window window; Atom selection; Time time; } xSetSelectionOwnerReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window requestor; Atom selection, target, property; Time time; } xConvertSelectionReq; typedef struct { CARD8 reqType; BOOL propagate; CARD16 length; Window destination; CARD32 eventMask; xEvent event; } xSendEventReq; typedef struct { CARD8 reqType; BOOL ownerEvents; CARD16 length; Window grabWindow; CARD16 eventMask; BYTE pointerMode, keyboardMode; Window confineTo; Cursor cursor; Time time; } xGrabPointerReq; typedef struct { CARD8 reqType; BOOL ownerEvents; CARD16 length; Window grabWindow; CARD16 eventMask; BYTE pointerMode, keyboardMode; Window confineTo; Cursor cursor; CARD8 button; BYTE pad; CARD16 modifiers; } xGrabButtonReq; typedef struct { CARD8 reqType; CARD8 button; CARD16 length; Window grabWindow; CARD16 modifiers; CARD16 pad; } xUngrabButtonReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Cursor cursor; Time time; CARD16 eventMask; CARD16 pad2; } xChangeActivePointerGrabReq; typedef struct { CARD8 reqType; BOOL ownerEvents; CARD16 length; Window grabWindow; Time time; BYTE pointerMode, keyboardMode; CARD16 pad; } xGrabKeyboardReq; typedef struct { CARD8 reqType; BOOL ownerEvents; CARD16 length; Window grabWindow; CARD16 modifiers; CARD8 key; BYTE pointerMode, keyboardMode; BYTE pad1, pad2, pad3; } xGrabKeyReq; typedef struct { CARD8 reqType; CARD8 key; CARD16 length; Window grabWindow; CARD16 modifiers; CARD16 pad; } xUngrabKeyReq; typedef struct { CARD8 reqType; CARD8 mode; CARD16 length; Time time; } xAllowEventsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window window; Time start, stop; } xGetMotionEventsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window srcWid, dstWid; INT16 srcX, srcY; } xTranslateCoordsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Window srcWid, dstWid; INT16 srcX, srcY; CARD16 srcWidth, srcHeight; INT16 dstX, dstY; } xWarpPointerReq; typedef struct { CARD8 reqType; CARD8 revertTo; CARD16 length; Window focus; Time time; } xSetInputFocusReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Font fid; CARD16 nbytes; BYTE pad1, pad2; /* string follows on word boundary */ } xOpenFontReq; typedef struct { CARD8 reqType; BOOL oddLength; CARD16 length; Font fid; } xQueryTextExtentsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD16 maxNames; CARD16 nbytes; /* followed immediately by string bytes */ } xListFontsReq; typedef xListFontsReq xListFontsWithInfoReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD16 nFonts; BYTE pad1, pad2; /* LISTofSTRING8 follows on word boundary */ } xSetFontPathReq; typedef struct { CARD8 reqType; CARD8 depth; CARD16 length; Pixmap pid; Drawable drawable; CARD16 width, height; } xCreatePixmapReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; GContext gc; Drawable drawable; CARD32 mask; } xCreateGCReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; GContext gc; CARD32 mask; } xChangeGCReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; GContext srcGC, dstGC; CARD32 mask; } xCopyGCReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; GContext gc; CARD16 dashOffset; CARD16 nDashes; /* length LISTofCARD8 of values following */ } xSetDashesReq; typedef struct { CARD8 reqType; BYTE ordering; CARD16 length; GContext gc; INT16 xOrigin, yOrigin; } xSetClipRectanglesReq; typedef struct { CARD8 reqType; BOOL exposures; CARD16 length; Window window; INT16 x, y; CARD16 width, height; } xClearAreaReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Drawable srcDrawable, dstDrawable; GContext gc; INT16 srcX, srcY, dstX, dstY; CARD16 width, height; } xCopyAreaReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Drawable srcDrawable, dstDrawable; GContext gc; INT16 srcX, srcY, dstX, dstY; CARD16 width, height; CARD32 bitPlane; } xCopyPlaneReq; typedef struct { CARD8 reqType; BYTE coordMode; CARD16 length; Drawable drawable; GContext gc; } xPolyPointReq; typedef xPolyPointReq xPolyLineReq; /* same request structure */ /* The following used for PolySegment, PolyRectangle, PolyArc, PolyFillRectangle, PolyFillArc */ typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Drawable drawable; GContext gc; } xPolySegmentReq; typedef xPolySegmentReq xPolyArcReq; typedef xPolySegmentReq xPolyRectangleReq; typedef xPolySegmentReq xPolyFillRectangleReq; typedef xPolySegmentReq xPolyFillArcReq; typedef struct _FillPolyReq { CARD8 reqType; BYTE pad; CARD16 length; Drawable drawable; GContext gc; BYTE shape; BYTE coordMode; CARD16 pad1; } xFillPolyReq; typedef struct _PutImageReq { CARD8 reqType; CARD8 format; CARD16 length; Drawable drawable; GContext gc; CARD16 width, height; INT16 dstX, dstY; CARD8 leftPad; CARD8 depth; CARD16 pad; } xPutImageReq; typedef struct { CARD8 reqType; CARD8 format; CARD16 length; Drawable drawable; INT16 x, y; CARD16 width, height; CARD32 planeMask; } xGetImageReq; /* the following used by PolyText8 and PolyText16 */ typedef struct { CARD8 reqType; CARD8 pad; CARD16 length; Drawable drawable; GContext gc; INT16 x, y; /* items (xTextElt) start after struct */ } xPolyTextReq; typedef xPolyTextReq xPolyText8Req; typedef xPolyTextReq xPolyText16Req; typedef struct { CARD8 reqType; BYTE nChars; CARD16 length; Drawable drawable; GContext gc; INT16 x, y; } xImageTextReq; typedef xImageTextReq xImageText8Req; typedef xImageTextReq xImageText16Req; typedef struct { CARD8 reqType; BYTE alloc; CARD16 length; Colormap mid; Window window; VisualID visual; } xCreateColormapReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap mid; Colormap srcCmap; } xCopyColormapAndFreeReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; CARD16 red, green, blue; CARD16 pad2; } xAllocColorReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; CARD16 nbytes; /* followed by structure */ BYTE pad1, pad2; } xAllocNamedColorReq; typedef struct { CARD8 reqType; BOOL contiguous; CARD16 length; Colormap cmap; CARD16 colors, planes; } xAllocColorCellsReq; typedef struct { CARD8 reqType; BOOL contiguous; CARD16 length; Colormap cmap; CARD16 colors, red, green, blue; } xAllocColorPlanesReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; CARD32 planeMask; } xFreeColorsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; } xStoreColorsReq; typedef struct { CARD8 reqType; CARD8 flags; /* DoRed, DoGreen, DoBlue, as in xColorItem */ CARD16 length; Colormap cmap; CARD32 pixel; CARD16 nbytes; /* number of name string bytes following structure */ BYTE pad1, pad2; } xStoreNamedColorReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; } xQueryColorsReq; typedef struct { /* followed by string of length len */ CARD8 reqType; BYTE pad; CARD16 length; Colormap cmap; CARD16 nbytes; /* number of string bytes following structure*/ BYTE pad1, pad2; } xLookupColorReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Cursor cid; Pixmap source, mask; CARD16 foreRed, foreGreen, foreBlue; CARD16 backRed, backGreen, backBlue; CARD16 x, y; } xCreateCursorReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Cursor cid; Font source, mask; CARD16 sourceChar, maskChar; CARD16 foreRed, foreGreen, foreBlue; CARD16 backRed, backGreen, backBlue; } xCreateGlyphCursorReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Cursor cursor; CARD16 foreRed, foreGreen, foreBlue; CARD16 backRed, backGreen, backBlue; } xRecolorCursorReq; typedef struct { CARD8 reqType; #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD16 length; Drawable drawable; CARD16 width, height; } xQueryBestSizeReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD16 nbytes; /* number of string bytes following structure */ BYTE pad1, pad2; } xQueryExtensionReq; typedef struct { CARD8 reqType; CARD8 numKeyPerModifier; CARD16 length; } xSetModifierMappingReq; typedef struct { CARD8 reqType; CARD8 nElts; /* how many elements in the map */ CARD16 length; } xSetPointerMappingReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; KeyCode firstKeyCode; CARD8 count; CARD16 pad1; } xGetKeyboardMappingReq; typedef struct { CARD8 reqType; CARD8 keyCodes; CARD16 length; KeyCode firstKeyCode; CARD8 keySymsPerKeyCode; CARD16 pad1; } xChangeKeyboardMappingReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD32 mask; } xChangeKeyboardControlReq; typedef struct { CARD8 reqType; INT8 percent; /* -100 to 100 */ CARD16 length; } xBellReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; INT16 accelNum, accelDenum; INT16 threshold; BOOL doAccel, doThresh; } xChangePointerControlReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; INT16 timeout, interval; BYTE preferBlank, allowExpose; CARD16 pad2; } xSetScreenSaverReq; typedef struct { CARD8 reqType; BYTE mode; CARD16 length; CARD8 hostFamily; BYTE pad; CARD16 hostLength; } xChangeHostsReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; } xListHostsReq; typedef struct { CARD8 reqType; BYTE mode; CARD16 length; } xChangeModeReq; typedef xChangeModeReq xSetAccessControlReq; typedef xChangeModeReq xSetCloseDownModeReq; typedef xChangeModeReq xForceScreenSaverReq; typedef struct { /* followed by LIST of ATOM */ CARD8 reqType; BYTE pad; CARD16 length; Window window; CARD16 nAtoms; INT16 nPositions; } xRotatePropertiesReq; /* Reply codes */ #define X_Reply 1 /* Normal reply */ #define X_Error 0 /* Error */ /* Request codes */ #define X_CreateWindow 1 #define X_ChangeWindowAttributes 2 #define X_GetWindowAttributes 3 #define X_DestroyWindow 4 #define X_DestroySubwindows 5 #define X_ChangeSaveSet 6 #define X_ReparentWindow 7 #define X_MapWindow 8 #define X_MapSubwindows 9 #define X_UnmapWindow 10 #define X_UnmapSubwindows 11 #define X_ConfigureWindow 12 #define X_CirculateWindow 13 #define X_GetGeometry 14 #define X_QueryTree 15 #define X_InternAtom 16 #define X_GetAtomName 17 #define X_ChangeProperty 18 #define X_DeleteProperty 19 #define X_GetProperty 20 #define X_ListProperties 21 #define X_SetSelectionOwner 22 #define X_GetSelectionOwner 23 #define X_ConvertSelection 24 #define X_SendEvent 25 #define X_GrabPointer 26 #define X_UngrabPointer 27 #define X_GrabButton 28 #define X_UngrabButton 29 #define X_ChangeActivePointerGrab 30 #define X_GrabKeyboard 31 #define X_UngrabKeyboard 32 #define X_GrabKey 33 #define X_UngrabKey 34 #define X_AllowEvents 35 #define X_GrabServer 36 #define X_UngrabServer 37 #define X_QueryPointer 38 #define X_GetMotionEvents 39 #define X_TranslateCoords 40 #define X_WarpPointer 41 #define X_SetInputFocus 42 #define X_GetInputFocus 43 #define X_QueryKeymap 44 #define X_OpenFont 45 #define X_CloseFont 46 #define X_QueryFont 47 #define X_QueryTextExtents 48 #define X_ListFonts 49 #define X_ListFontsWithInfo 50 #define X_SetFontPath 51 #define X_GetFontPath 52 #define X_CreatePixmap 53 #define X_FreePixmap 54 #define X_CreateGC 55 #define X_ChangeGC 56 #define X_CopyGC 57 #define X_SetDashes 58 #define X_SetClipRectangles 59 #define X_FreeGC 60 #define X_ClearArea 61 #define X_CopyArea 62 #define X_CopyPlane 63 #define X_PolyPoint 64 #define X_PolyLine 65 #define X_PolySegment 66 #define X_PolyRectangle 67 #define X_PolyArc 68 #define X_FillPoly 69 #define X_PolyFillRectangle 70 #define X_PolyFillArc 71 #define X_PutImage 72 #define X_GetImage 73 #define X_PolyText8 74 #define X_PolyText16 75 #define X_ImageText8 76 #define X_ImageText16 77 #define X_CreateColormap 78 #define X_FreeColormap 79 #define X_CopyColormapAndFree 80 #define X_InstallColormap 81 #define X_UninstallColormap 82 #define X_ListInstalledColormaps 83 #define X_AllocColor 84 #define X_AllocNamedColor 85 #define X_AllocColorCells 86 #define X_AllocColorPlanes 87 #define X_FreeColors 88 #define X_StoreColors 89 #define X_StoreNamedColor 90 #define X_QueryColors 91 #define X_LookupColor 92 #define X_CreateCursor 93 #define X_CreateGlyphCursor 94 #define X_FreeCursor 95 #define X_RecolorCursor 96 #define X_QueryBestSize 97 #define X_QueryExtension 98 #define X_ListExtensions 99 #define X_ChangeKeyboardMapping 100 #define X_GetKeyboardMapping 101 #define X_ChangeKeyboardControl 102 #define X_GetKeyboardControl 103 #define X_Bell 104 #define X_ChangePointerControl 105 #define X_GetPointerControl 106 #define X_SetScreenSaver 107 #define X_GetScreenSaver 108 #define X_ChangeHosts 109 #define X_ListHosts 110 #define X_SetAccessControl 111 #define X_SetCloseDownMode 112 #define X_KillClient 113 #define X_RotateProperties 114 #define X_ForceScreenSaver 115 #define X_SetPointerMapping 116 #define X_GetPointerMapping 117 #define X_SetModifierMapping 118 #define X_GetModifierMapping 119 #define X_NoOperation 127 /* restore these definitions back to the typedefs in X.h */ #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #endif /* XPROTO_H */ xorgproto-2023.2/include/X11/Xos.h0000644000175000017500000001044214443010026013477 00000000000000/* * Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * * The X Window System is a Trademark of The Open Group. * */ /* This is a collection of things to try and minimize system dependencies * in a "significant" number of source files. */ #ifndef _XOS_H_ # define _XOS_H_ # include /* * Get major data types (esp. caddr_t) */ # include # if defined(__SCO__) || defined(__UNIXWARE__) # include # endif /* * Just about everyone needs the strings routines. We provide both forms here, * index/rindex and strchr/strrchr, so any systems that don't provide them all * need to have #defines here. * * These macros are defined this way, rather than, e.g.: * #defined index(s,c) strchr(s,c) * because someone might be using them as function pointers, and such * a change would break compatibility for anyone who's relying on them * being the way they currently are. So we're stuck with them this way, * which can be really inconvenient. :-( */ # include # if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) || defined(__FreeBSD__) # include # else # ifndef index # define index(s,c) (strchr((s),(c))) # endif # ifndef rindex # define rindex(s,c) (strrchr((s),(c))) # endif # endif /* * Get open(2) constants */ # if defined(X_NOT_POSIX) # include # if defined(USL) || defined(__i386__) && (defined(SYSV) || defined(SVR4)) # include # endif # ifdef WIN32 # include # else # include # endif # else /* X_NOT_POSIX */ # include # include # endif /* X_NOT_POSIX else */ /* * Get struct timeval and struct tm */ # if defined(_POSIX_SOURCE) && defined(SVR4) /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */ # undef _POSIX_SOURCE # include # define _POSIX_SOURCE # elif defined(WIN32) # include # if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) && !defined(_TIMEVAL_DEFINED) && !defined(_STRUCT_TIMEVAL) struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; # define _TIMEVAL_DEFINED # endif # include # define gettimeofday(t) \ { \ struct _timeb _gtodtmp; \ _ftime (&_gtodtmp); \ (t)->tv_sec = _gtodtmp.time; \ (t)->tv_usec = _gtodtmp.millitm * 1000; \ } # else # include # include # endif /* defined(_POSIX_SOURCE) && defined(SVR4) */ /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */ # if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */ # define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) # else # if defined(SVR4) || defined(__SVR4) || defined(WIN32) # define X_GETTIMEOFDAY(t) gettimeofday(t) # else # define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) # endif # endif /* XPG4 else */ # ifdef __GNU__ # define PATH_MAX 4096 # define MAXPATHLEN 4096 # define OPEN_MAX 256 /* We define a reasonable limit. */ # endif /* use POSIX name for signal */ # if defined(X_NOT_POSIX) && defined(SYSV) && !defined(SIGCHLD) # define SIGCHLD SIGCLD # endif # include #endif /* _XOS_H_ */ xorgproto-2023.2/include/X11/ap_keysym.h0000644000175000017500000000436614443010026014737 00000000000000/****************************************************************** Copyright 1987 by Apollo Computer Inc., Chelmsford, Massachusetts. Copyright 1989 by Hewlett-Packard Company. All Rights Reserved Permission to use, duplicate, change, and distribute this software and its documentation for any purpose and without fee is granted, provided that the above copyright notice appear in such copy and that this copyright notice appear in all supporting documentation, and that the names of Apollo Computer Inc., the Hewlett-Packard Company, or the X Consortium not be used in advertising or publicity pertaining to distribution of the software without written prior permission. HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. ******************************************************************/ #define apXK_LineDel 0x1000FF00 #define apXK_CharDel 0x1000FF01 #define apXK_Copy 0x1000FF02 #define apXK_Cut 0x1000FF03 #define apXK_Paste 0x1000FF04 #define apXK_Move 0x1000FF05 #define apXK_Grow 0x1000FF06 #define apXK_Cmd 0x1000FF07 #define apXK_Shell 0x1000FF08 #define apXK_LeftBar 0x1000FF09 #define apXK_RightBar 0x1000FF0A #define apXK_LeftBox 0x1000FF0B #define apXK_RightBox 0x1000FF0C #define apXK_UpBox 0x1000FF0D #define apXK_DownBox 0x1000FF0E #define apXK_Pop 0x1000FF0F #define apXK_Read 0x1000FF10 #define apXK_Edit 0x1000FF11 #define apXK_Save 0x1000FF12 #define apXK_Exit 0x1000FF13 #define apXK_Repeat 0x1000FF14 #define apXK_KP_parenleft 0x1000FFA8 #define apXK_KP_parenright 0x1000FFA9 xorgproto-2023.2/include/X11/Xdefs.h0000644000175000017500000000454114443010026014002 00000000000000/*********************************************************** Copyright (c) 1999 The XFree86 Project Inc. All Rights Reserved. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The XFree86 Project Inc. 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 XFree86 Project Inc.. */ /** ** Types definitions shared between server and clients **/ #ifndef _XDEFS_H #define _XDEFS_H #ifdef _XSERVER64 #include #endif #ifndef _XTYPEDEF_ATOM # define _XTYPEDEF_ATOM # ifndef _XSERVER64 typedef unsigned long Atom; # else typedef CARD32 Atom; # endif #endif #ifndef Bool # ifndef _XTYPEDEF_BOOL # define _XTYPEDEF_BOOL typedef int Bool; # endif #endif #ifndef _XTYPEDEF_POINTER # define _XTYPEDEF_POINTER typedef void *pointer; #endif #ifndef _XTYPEDEF_CLIENTPTR typedef struct _Client *ClientPtr; # define _XTYPEDEF_CLIENTPTR #endif #ifndef _XTYPEDEF_XID # define _XTYPEDEF_XID # ifndef _XSERVER64 typedef unsigned long XID; # else typedef CARD32 XID; # endif #endif #ifndef _XTYPEDEF_MASK # define _XTYPEDEF_MASK # ifndef _XSERVER64 typedef unsigned long Mask; # else typedef CARD32 Mask; # endif #endif #ifndef _XTYPEDEF_FONTPTR # define _XTYPEDEF_FONTPTR typedef struct _Font *FontPtr; /* also in fonts/include/font.h */ #endif #ifndef _XTYPEDEF_FONT # define _XTYPEDEF_FONT typedef XID Font; #endif #ifndef _XTYPEDEF_FSID # ifndef _XSERVER64 typedef unsigned long FSID; # else typedef CARD32 FSID; # endif #endif typedef FSID AccContext; /* OS independent time value XXX Should probably go in Xos.h */ typedef struct timeval **OSTimePtr; typedef void (* BlockHandlerProcPtr)(void * /* blockData */, OSTimePtr /* pTimeout */, void * /* pReadmask */); #endif xorgproto-2023.2/include/X11/Xwinsock.h0000644000175000017500000000445514443010026014542 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * This header file has for sole purpose to allow to include winsock.h * without getting any name conflicts with our code. * Conflicts come from the fact that including winsock.h actually pulls * in the whole Windows API... */ #undef _XFree86Server #ifdef XFree86Server # define _XFree86Server # undef XFree86Server #endif /* * mingw-w64 headers define BOOL as a typedef, protecting against macros * mingw.org headers define BOOL in terms of WINBOOL * ... so try to come up with something which works with both :-) */ #define _NO_BOOL_TYPEDEF #define BOOL WINBOOL #define INT32 wINT32 #undef Status #define Status wStatus #define ATOM wATOM #define BYTE wBYTE #define FreeResource wFreeResource #pragma push_macro ("ControlMask") #undef ControlMask #include #undef Status #define Status int #undef BYTE #undef BOOL #undef INT32 #undef ATOM #undef FreeResource #pragma pop_macro ("ControlMask") #undef CreateWindowA #undef RT_FONT #undef RT_CURSOR /* * Older version of this header used to name the windows API bool type wBOOL, * rather than more standard name WINBOOL */ #define wBOOL WINBOOL #ifdef _XFree86Server # define XFree86Server # undef _XFree86Server #endif xorgproto-2023.2/include/X11/keysymdef.h0000644000175000017500000053575614443010026014752 00000000000000/*********************************************************** Copyright 1987, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ /* * The "X11 Window System Protocol" standard defines in Appendix A the * keysym codes. These 29-bit integer values identify characters or * functions associated with each key (e.g., via the visible * engraving) of a keyboard layout. This file assigns mnemonic macro * names for these keysyms. * * This file is also compiled (by src/util/makekeys.c in libX11) into * hash tables that can be accessed with X11 library functions such as * XStringToKeysym() and XKeysymToString(). * * Where a keysym corresponds one-to-one to an ISO 10646 / Unicode * character, this is noted in a comment that provides both the U+xxxx * Unicode position, as well as the official Unicode name of the * character. * * Where the correspondence is either not one-to-one or semantically * unclear, the Unicode position and name are enclosed in * parentheses. Such legacy keysyms should be considered deprecated * and are not recommended for use in future keyboard mappings. * * For any future extension of the keysyms with characters already * found in ISO 10646 / Unicode, the following algorithm shall be * used. The new keysym code position will simply be the character's * Unicode number plus 0x01000000. The keysym values in the range * 0x01000100 to 0x0110ffff are reserved to represent Unicode * characters in the range U+0100 to U+10FFFF. * * While most newer Unicode-based X11 clients do already accept * Unicode-mapped keysyms in the range 0x01000100 to 0x0110ffff, it * will remain necessary for clients -- in the interest of * compatibility with existing servers -- to also understand the * existing legacy keysym values in the range 0x0100 to 0x20ff. * * Where several mnemonic names are defined for the same keysym in this * file, all but the first one listed should be considered deprecated. * * Mnemonic names for keysyms are defined in this file with lines * that match one of these Perl regular expressions: * * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\* U\+([0-9A-F]{4,6}) (.*) \*\/\s*$/ * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\*\(U\+([0-9A-F]{4,6}) (.*)\)\*\/\s*$/ * /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*(\/\*\s*(.*)\s*\*\/)?\s*$/ * * Before adding new keysyms, please do consider the following: In * addition to the keysym names defined in this file, the * XStringToKeysym() and XKeysymToString() functions will also handle * any keysym string of the form "U0020" to "U007E" and "U00A0" to * "U10FFFF" for all possible Unicode characters. In other words, * every possible Unicode character has already a keysym string * defined algorithmically, even if it is not listed here. Therefore, * defining an additional keysym macro is only necessary where a * non-hexadecimal mnemonic name is needed, or where the new keysym * does not represent any existing Unicode character. * * When adding new keysyms to this file, do not forget to also update the * following as needed: * * - the mappings in src/KeyBind.c in the libX11 repo * https://gitlab.freedesktop.org/xorg/lib/libx11 * * - the protocol specification in specs/keysyms.xml in this repo * https://gitlab.freedesktop.org/xorg/proto/xorgproto * */ #define XK_VoidSymbol 0xffffff /* Void symbol */ #ifdef XK_MISCELLANY /* * TTY function keys, cleverly chosen to map to ASCII, for convenience of * programming, but could have been arbitrary (at the cost of lookup * tables in client code). */ #define XK_BackSpace 0xff08 /* Back space, back char */ #define XK_Tab 0xff09 #define XK_Linefeed 0xff0a /* Linefeed, LF */ #define XK_Clear 0xff0b #define XK_Return 0xff0d /* Return, enter */ #define XK_Pause 0xff13 /* Pause, hold */ #define XK_Scroll_Lock 0xff14 #define XK_Sys_Req 0xff15 #define XK_Escape 0xff1b #define XK_Delete 0xffff /* Delete, rubout */ /* International & multi-key character composition */ #define XK_Multi_key 0xff20 /* Multi-key character compose */ #define XK_Codeinput 0xff37 #define XK_SingleCandidate 0xff3c #define XK_MultipleCandidate 0xff3d #define XK_PreviousCandidate 0xff3e /* Japanese keyboard support */ #define XK_Kanji 0xff21 /* Kanji, Kanji convert */ #define XK_Muhenkan 0xff22 /* Cancel Conversion */ #define XK_Henkan_Mode 0xff23 /* Start/Stop Conversion */ #define XK_Henkan 0xff23 /* Alias for Henkan_Mode */ #define XK_Romaji 0xff24 /* to Romaji */ #define XK_Hiragana 0xff25 /* to Hiragana */ #define XK_Katakana 0xff26 /* to Katakana */ #define XK_Hiragana_Katakana 0xff27 /* Hiragana/Katakana toggle */ #define XK_Zenkaku 0xff28 /* to Zenkaku */ #define XK_Hankaku 0xff29 /* to Hankaku */ #define XK_Zenkaku_Hankaku 0xff2a /* Zenkaku/Hankaku toggle */ #define XK_Touroku 0xff2b /* Add to Dictionary */ #define XK_Massyo 0xff2c /* Delete from Dictionary */ #define XK_Kana_Lock 0xff2d /* Kana Lock */ #define XK_Kana_Shift 0xff2e /* Kana Shift */ #define XK_Eisu_Shift 0xff2f /* Alphanumeric Shift */ #define XK_Eisu_toggle 0xff30 /* Alphanumeric toggle */ #define XK_Kanji_Bangou 0xff37 /* Codeinput */ #define XK_Zen_Koho 0xff3d /* Multiple/All Candidate(s) */ #define XK_Mae_Koho 0xff3e /* Previous Candidate */ /* 0xff31 thru 0xff3f are under XK_KOREAN */ /* Cursor control & motion */ #define XK_Home 0xff50 #define XK_Left 0xff51 /* Move left, left arrow */ #define XK_Up 0xff52 /* Move up, up arrow */ #define XK_Right 0xff53 /* Move right, right arrow */ #define XK_Down 0xff54 /* Move down, down arrow */ #define XK_Prior 0xff55 /* Prior, previous */ #define XK_Page_Up 0xff55 #define XK_Next 0xff56 /* Next */ #define XK_Page_Down 0xff56 #define XK_End 0xff57 /* EOL */ #define XK_Begin 0xff58 /* BOL */ /* Misc functions */ #define XK_Select 0xff60 /* Select, mark */ #define XK_Print 0xff61 #define XK_Execute 0xff62 /* Execute, run, do */ #define XK_Insert 0xff63 /* Insert, insert here */ #define XK_Undo 0xff65 #define XK_Redo 0xff66 /* Redo, again */ #define XK_Menu 0xff67 #define XK_Find 0xff68 /* Find, search */ #define XK_Cancel 0xff69 /* Cancel, stop, abort, exit */ #define XK_Help 0xff6a /* Help */ #define XK_Break 0xff6b #define XK_Mode_switch 0xff7e /* Character set switch */ #define XK_script_switch 0xff7e /* Alias for mode_switch */ #define XK_Num_Lock 0xff7f /* Keypad functions, keypad numbers cleverly chosen to map to ASCII */ #define XK_KP_Space 0xff80 /* Space */ #define XK_KP_Tab 0xff89 #define XK_KP_Enter 0xff8d /* Enter */ #define XK_KP_F1 0xff91 /* PF1, KP_A, ... */ #define XK_KP_F2 0xff92 #define XK_KP_F3 0xff93 #define XK_KP_F4 0xff94 #define XK_KP_Home 0xff95 #define XK_KP_Left 0xff96 #define XK_KP_Up 0xff97 #define XK_KP_Right 0xff98 #define XK_KP_Down 0xff99 #define XK_KP_Prior 0xff9a #define XK_KP_Page_Up 0xff9a #define XK_KP_Next 0xff9b #define XK_KP_Page_Down 0xff9b #define XK_KP_End 0xff9c #define XK_KP_Begin 0xff9d #define XK_KP_Insert 0xff9e #define XK_KP_Delete 0xff9f #define XK_KP_Equal 0xffbd /* Equals */ #define XK_KP_Multiply 0xffaa #define XK_KP_Add 0xffab #define XK_KP_Separator 0xffac /* Separator, often comma */ #define XK_KP_Subtract 0xffad #define XK_KP_Decimal 0xffae #define XK_KP_Divide 0xffaf #define XK_KP_0 0xffb0 #define XK_KP_1 0xffb1 #define XK_KP_2 0xffb2 #define XK_KP_3 0xffb3 #define XK_KP_4 0xffb4 #define XK_KP_5 0xffb5 #define XK_KP_6 0xffb6 #define XK_KP_7 0xffb7 #define XK_KP_8 0xffb8 #define XK_KP_9 0xffb9 /* * Auxiliary functions; note the duplicate definitions for left and right * function keys; Sun keyboards and a few other manufacturers have such * function key groups on the left and/or right sides of the keyboard. * We've not found a keyboard with more than 35 function keys total. */ #define XK_F1 0xffbe #define XK_F2 0xffbf #define XK_F3 0xffc0 #define XK_F4 0xffc1 #define XK_F5 0xffc2 #define XK_F6 0xffc3 #define XK_F7 0xffc4 #define XK_F8 0xffc5 #define XK_F9 0xffc6 #define XK_F10 0xffc7 #define XK_F11 0xffc8 #define XK_L1 0xffc8 #define XK_F12 0xffc9 #define XK_L2 0xffc9 #define XK_F13 0xffca #define XK_L3 0xffca #define XK_F14 0xffcb #define XK_L4 0xffcb #define XK_F15 0xffcc #define XK_L5 0xffcc #define XK_F16 0xffcd #define XK_L6 0xffcd #define XK_F17 0xffce #define XK_L7 0xffce #define XK_F18 0xffcf #define XK_L8 0xffcf #define XK_F19 0xffd0 #define XK_L9 0xffd0 #define XK_F20 0xffd1 #define XK_L10 0xffd1 #define XK_F21 0xffd2 #define XK_R1 0xffd2 #define XK_F22 0xffd3 #define XK_R2 0xffd3 #define XK_F23 0xffd4 #define XK_R3 0xffd4 #define XK_F24 0xffd5 #define XK_R4 0xffd5 #define XK_F25 0xffd6 #define XK_R5 0xffd6 #define XK_F26 0xffd7 #define XK_R6 0xffd7 #define XK_F27 0xffd8 #define XK_R7 0xffd8 #define XK_F28 0xffd9 #define XK_R8 0xffd9 #define XK_F29 0xffda #define XK_R9 0xffda #define XK_F30 0xffdb #define XK_R10 0xffdb #define XK_F31 0xffdc #define XK_R11 0xffdc #define XK_F32 0xffdd #define XK_R12 0xffdd #define XK_F33 0xffde #define XK_R13 0xffde #define XK_F34 0xffdf #define XK_R14 0xffdf #define XK_F35 0xffe0 #define XK_R15 0xffe0 /* Modifiers */ #define XK_Shift_L 0xffe1 /* Left shift */ #define XK_Shift_R 0xffe2 /* Right shift */ #define XK_Control_L 0xffe3 /* Left control */ #define XK_Control_R 0xffe4 /* Right control */ #define XK_Caps_Lock 0xffe5 /* Caps lock */ #define XK_Shift_Lock 0xffe6 /* Shift lock */ #define XK_Meta_L 0xffe7 /* Left meta */ #define XK_Meta_R 0xffe8 /* Right meta */ #define XK_Alt_L 0xffe9 /* Left alt */ #define XK_Alt_R 0xffea /* Right alt */ #define XK_Super_L 0xffeb /* Left super */ #define XK_Super_R 0xffec /* Right super */ #define XK_Hyper_L 0xffed /* Left hyper */ #define XK_Hyper_R 0xffee /* Right hyper */ #endif /* XK_MISCELLANY */ /* * Keyboard (XKB) Extension function and modifier keys * (from Appendix C of "The X Keyboard Extension: Protocol Specification") * Byte 3 = 0xfe */ #ifdef XK_XKB_KEYS #define XK_ISO_Lock 0xfe01 #define XK_ISO_Level2_Latch 0xfe02 #define XK_ISO_Level3_Shift 0xfe03 #define XK_ISO_Level3_Latch 0xfe04 #define XK_ISO_Level3_Lock 0xfe05 #define XK_ISO_Level5_Shift 0xfe11 #define XK_ISO_Level5_Latch 0xfe12 #define XK_ISO_Level5_Lock 0xfe13 #define XK_ISO_Group_Shift 0xff7e /* Alias for mode_switch */ #define XK_ISO_Group_Latch 0xfe06 #define XK_ISO_Group_Lock 0xfe07 #define XK_ISO_Next_Group 0xfe08 #define XK_ISO_Next_Group_Lock 0xfe09 #define XK_ISO_Prev_Group 0xfe0a #define XK_ISO_Prev_Group_Lock 0xfe0b #define XK_ISO_First_Group 0xfe0c #define XK_ISO_First_Group_Lock 0xfe0d #define XK_ISO_Last_Group 0xfe0e #define XK_ISO_Last_Group_Lock 0xfe0f #define XK_ISO_Left_Tab 0xfe20 #define XK_ISO_Move_Line_Up 0xfe21 #define XK_ISO_Move_Line_Down 0xfe22 #define XK_ISO_Partial_Line_Up 0xfe23 #define XK_ISO_Partial_Line_Down 0xfe24 #define XK_ISO_Partial_Space_Left 0xfe25 #define XK_ISO_Partial_Space_Right 0xfe26 #define XK_ISO_Set_Margin_Left 0xfe27 #define XK_ISO_Set_Margin_Right 0xfe28 #define XK_ISO_Release_Margin_Left 0xfe29 #define XK_ISO_Release_Margin_Right 0xfe2a #define XK_ISO_Release_Both_Margins 0xfe2b #define XK_ISO_Fast_Cursor_Left 0xfe2c #define XK_ISO_Fast_Cursor_Right 0xfe2d #define XK_ISO_Fast_Cursor_Up 0xfe2e #define XK_ISO_Fast_Cursor_Down 0xfe2f #define XK_ISO_Continuous_Underline 0xfe30 #define XK_ISO_Discontinuous_Underline 0xfe31 #define XK_ISO_Emphasize 0xfe32 #define XK_ISO_Center_Object 0xfe33 #define XK_ISO_Enter 0xfe34 #define XK_dead_grave 0xfe50 #define XK_dead_acute 0xfe51 #define XK_dead_circumflex 0xfe52 #define XK_dead_tilde 0xfe53 #define XK_dead_perispomeni 0xfe53 /* alias for dead_tilde */ #define XK_dead_macron 0xfe54 #define XK_dead_breve 0xfe55 #define XK_dead_abovedot 0xfe56 #define XK_dead_diaeresis 0xfe57 #define XK_dead_abovering 0xfe58 #define XK_dead_doubleacute 0xfe59 #define XK_dead_caron 0xfe5a #define XK_dead_cedilla 0xfe5b #define XK_dead_ogonek 0xfe5c #define XK_dead_iota 0xfe5d #define XK_dead_voiced_sound 0xfe5e #define XK_dead_semivoiced_sound 0xfe5f #define XK_dead_belowdot 0xfe60 #define XK_dead_hook 0xfe61 #define XK_dead_horn 0xfe62 #define XK_dead_stroke 0xfe63 #define XK_dead_abovecomma 0xfe64 #define XK_dead_psili 0xfe64 /* alias for dead_abovecomma */ #define XK_dead_abovereversedcomma 0xfe65 #define XK_dead_dasia 0xfe65 /* alias for dead_abovereversedcomma */ #define XK_dead_doublegrave 0xfe66 #define XK_dead_belowring 0xfe67 #define XK_dead_belowmacron 0xfe68 #define XK_dead_belowcircumflex 0xfe69 #define XK_dead_belowtilde 0xfe6a #define XK_dead_belowbreve 0xfe6b #define XK_dead_belowdiaeresis 0xfe6c #define XK_dead_invertedbreve 0xfe6d #define XK_dead_belowcomma 0xfe6e #define XK_dead_currency 0xfe6f /* dead vowels for universal syllable entry */ #define XK_dead_a 0xfe80 #define XK_dead_A 0xfe81 #define XK_dead_e 0xfe82 #define XK_dead_E 0xfe83 #define XK_dead_i 0xfe84 #define XK_dead_I 0xfe85 #define XK_dead_o 0xfe86 #define XK_dead_O 0xfe87 #define XK_dead_u 0xfe88 #define XK_dead_U 0xfe89 #define XK_dead_schwa 0xfe8a #define XK_dead_SCHWA 0xfe8b #define XK_dead_small_schwa 0xfe8a /* deprecated, remove in 2025 */ #define XK_dead_capital_schwa 0xfe8b /* deprecated, remove in 2025 */ #define XK_dead_greek 0xfe8c #define XK_First_Virtual_Screen 0xfed0 #define XK_Prev_Virtual_Screen 0xfed1 #define XK_Next_Virtual_Screen 0xfed2 #define XK_Last_Virtual_Screen 0xfed4 #define XK_Terminate_Server 0xfed5 #define XK_AccessX_Enable 0xfe70 #define XK_AccessX_Feedback_Enable 0xfe71 #define XK_RepeatKeys_Enable 0xfe72 #define XK_SlowKeys_Enable 0xfe73 #define XK_BounceKeys_Enable 0xfe74 #define XK_StickyKeys_Enable 0xfe75 #define XK_MouseKeys_Enable 0xfe76 #define XK_MouseKeys_Accel_Enable 0xfe77 #define XK_Overlay1_Enable 0xfe78 #define XK_Overlay2_Enable 0xfe79 #define XK_AudibleBell_Enable 0xfe7a #define XK_Pointer_Left 0xfee0 #define XK_Pointer_Right 0xfee1 #define XK_Pointer_Up 0xfee2 #define XK_Pointer_Down 0xfee3 #define XK_Pointer_UpLeft 0xfee4 #define XK_Pointer_UpRight 0xfee5 #define XK_Pointer_DownLeft 0xfee6 #define XK_Pointer_DownRight 0xfee7 #define XK_Pointer_Button_Dflt 0xfee8 #define XK_Pointer_Button1 0xfee9 #define XK_Pointer_Button2 0xfeea #define XK_Pointer_Button3 0xfeeb #define XK_Pointer_Button4 0xfeec #define XK_Pointer_Button5 0xfeed #define XK_Pointer_DblClick_Dflt 0xfeee #define XK_Pointer_DblClick1 0xfeef #define XK_Pointer_DblClick2 0xfef0 #define XK_Pointer_DblClick3 0xfef1 #define XK_Pointer_DblClick4 0xfef2 #define XK_Pointer_DblClick5 0xfef3 #define XK_Pointer_Drag_Dflt 0xfef4 #define XK_Pointer_Drag1 0xfef5 #define XK_Pointer_Drag2 0xfef6 #define XK_Pointer_Drag3 0xfef7 #define XK_Pointer_Drag4 0xfef8 #define XK_Pointer_Drag5 0xfefd #define XK_Pointer_EnableKeys 0xfef9 #define XK_Pointer_Accelerate 0xfefa #define XK_Pointer_DfltBtnNext 0xfefb #define XK_Pointer_DfltBtnPrev 0xfefc /* Single-Stroke Multiple-Character N-Graph Keysyms For The X Input Method */ #define XK_ch 0xfea0 #define XK_Ch 0xfea1 #define XK_CH 0xfea2 #define XK_c_h 0xfea3 #define XK_C_h 0xfea4 #define XK_C_H 0xfea5 #endif /* XK_XKB_KEYS */ /* * 3270 Terminal Keys * Byte 3 = 0xfd */ #ifdef XK_3270 #define XK_3270_Duplicate 0xfd01 #define XK_3270_FieldMark 0xfd02 #define XK_3270_Right2 0xfd03 #define XK_3270_Left2 0xfd04 #define XK_3270_BackTab 0xfd05 #define XK_3270_EraseEOF 0xfd06 #define XK_3270_EraseInput 0xfd07 #define XK_3270_Reset 0xfd08 #define XK_3270_Quit 0xfd09 #define XK_3270_PA1 0xfd0a #define XK_3270_PA2 0xfd0b #define XK_3270_PA3 0xfd0c #define XK_3270_Test 0xfd0d #define XK_3270_Attn 0xfd0e #define XK_3270_CursorBlink 0xfd0f #define XK_3270_AltCursor 0xfd10 #define XK_3270_KeyClick 0xfd11 #define XK_3270_Jump 0xfd12 #define XK_3270_Ident 0xfd13 #define XK_3270_Rule 0xfd14 #define XK_3270_Copy 0xfd15 #define XK_3270_Play 0xfd16 #define XK_3270_Setup 0xfd17 #define XK_3270_Record 0xfd18 #define XK_3270_ChangeScreen 0xfd19 #define XK_3270_DeleteWord 0xfd1a #define XK_3270_ExSelect 0xfd1b #define XK_3270_CursorSelect 0xfd1c #define XK_3270_PrintScreen 0xfd1d #define XK_3270_Enter 0xfd1e #endif /* XK_3270 */ /* * Latin 1 * (ISO/IEC 8859-1 = Unicode U+0020..U+00FF) * Byte 3 = 0 */ #ifdef XK_LATIN1 #define XK_space 0x0020 /* U+0020 SPACE */ #define XK_exclam 0x0021 /* U+0021 EXCLAMATION MARK */ #define XK_quotedbl 0x0022 /* U+0022 QUOTATION MARK */ #define XK_numbersign 0x0023 /* U+0023 NUMBER SIGN */ #define XK_dollar 0x0024 /* U+0024 DOLLAR SIGN */ #define XK_percent 0x0025 /* U+0025 PERCENT SIGN */ #define XK_ampersand 0x0026 /* U+0026 AMPERSAND */ #define XK_apostrophe 0x0027 /* U+0027 APOSTROPHE */ #define XK_quoteright 0x0027 /* deprecated */ #define XK_parenleft 0x0028 /* U+0028 LEFT PARENTHESIS */ #define XK_parenright 0x0029 /* U+0029 RIGHT PARENTHESIS */ #define XK_asterisk 0x002a /* U+002A ASTERISK */ #define XK_plus 0x002b /* U+002B PLUS SIGN */ #define XK_comma 0x002c /* U+002C COMMA */ #define XK_minus 0x002d /* U+002D HYPHEN-MINUS */ #define XK_period 0x002e /* U+002E FULL STOP */ #define XK_slash 0x002f /* U+002F SOLIDUS */ #define XK_0 0x0030 /* U+0030 DIGIT ZERO */ #define XK_1 0x0031 /* U+0031 DIGIT ONE */ #define XK_2 0x0032 /* U+0032 DIGIT TWO */ #define XK_3 0x0033 /* U+0033 DIGIT THREE */ #define XK_4 0x0034 /* U+0034 DIGIT FOUR */ #define XK_5 0x0035 /* U+0035 DIGIT FIVE */ #define XK_6 0x0036 /* U+0036 DIGIT SIX */ #define XK_7 0x0037 /* U+0037 DIGIT SEVEN */ #define XK_8 0x0038 /* U+0038 DIGIT EIGHT */ #define XK_9 0x0039 /* U+0039 DIGIT NINE */ #define XK_colon 0x003a /* U+003A COLON */ #define XK_semicolon 0x003b /* U+003B SEMICOLON */ #define XK_less 0x003c /* U+003C LESS-THAN SIGN */ #define XK_equal 0x003d /* U+003D EQUALS SIGN */ #define XK_greater 0x003e /* U+003E GREATER-THAN SIGN */ #define XK_question 0x003f /* U+003F QUESTION MARK */ #define XK_at 0x0040 /* U+0040 COMMERCIAL AT */ #define XK_A 0x0041 /* U+0041 LATIN CAPITAL LETTER A */ #define XK_B 0x0042 /* U+0042 LATIN CAPITAL LETTER B */ #define XK_C 0x0043 /* U+0043 LATIN CAPITAL LETTER C */ #define XK_D 0x0044 /* U+0044 LATIN CAPITAL LETTER D */ #define XK_E 0x0045 /* U+0045 LATIN CAPITAL LETTER E */ #define XK_F 0x0046 /* U+0046 LATIN CAPITAL LETTER F */ #define XK_G 0x0047 /* U+0047 LATIN CAPITAL LETTER G */ #define XK_H 0x0048 /* U+0048 LATIN CAPITAL LETTER H */ #define XK_I 0x0049 /* U+0049 LATIN CAPITAL LETTER I */ #define XK_J 0x004a /* U+004A LATIN CAPITAL LETTER J */ #define XK_K 0x004b /* U+004B LATIN CAPITAL LETTER K */ #define XK_L 0x004c /* U+004C LATIN CAPITAL LETTER L */ #define XK_M 0x004d /* U+004D LATIN CAPITAL LETTER M */ #define XK_N 0x004e /* U+004E LATIN CAPITAL LETTER N */ #define XK_O 0x004f /* U+004F LATIN CAPITAL LETTER O */ #define XK_P 0x0050 /* U+0050 LATIN CAPITAL LETTER P */ #define XK_Q 0x0051 /* U+0051 LATIN CAPITAL LETTER Q */ #define XK_R 0x0052 /* U+0052 LATIN CAPITAL LETTER R */ #define XK_S 0x0053 /* U+0053 LATIN CAPITAL LETTER S */ #define XK_T 0x0054 /* U+0054 LATIN CAPITAL LETTER T */ #define XK_U 0x0055 /* U+0055 LATIN CAPITAL LETTER U */ #define XK_V 0x0056 /* U+0056 LATIN CAPITAL LETTER V */ #define XK_W 0x0057 /* U+0057 LATIN CAPITAL LETTER W */ #define XK_X 0x0058 /* U+0058 LATIN CAPITAL LETTER X */ #define XK_Y 0x0059 /* U+0059 LATIN CAPITAL LETTER Y */ #define XK_Z 0x005a /* U+005A LATIN CAPITAL LETTER Z */ #define XK_bracketleft 0x005b /* U+005B LEFT SQUARE BRACKET */ #define XK_backslash 0x005c /* U+005C REVERSE SOLIDUS */ #define XK_bracketright 0x005d /* U+005D RIGHT SQUARE BRACKET */ #define XK_asciicircum 0x005e /* U+005E CIRCUMFLEX ACCENT */ #define XK_underscore 0x005f /* U+005F LOW LINE */ #define XK_grave 0x0060 /* U+0060 GRAVE ACCENT */ #define XK_quoteleft 0x0060 /* deprecated */ #define XK_a 0x0061 /* U+0061 LATIN SMALL LETTER A */ #define XK_b 0x0062 /* U+0062 LATIN SMALL LETTER B */ #define XK_c 0x0063 /* U+0063 LATIN SMALL LETTER C */ #define XK_d 0x0064 /* U+0064 LATIN SMALL LETTER D */ #define XK_e 0x0065 /* U+0065 LATIN SMALL LETTER E */ #define XK_f 0x0066 /* U+0066 LATIN SMALL LETTER F */ #define XK_g 0x0067 /* U+0067 LATIN SMALL LETTER G */ #define XK_h 0x0068 /* U+0068 LATIN SMALL LETTER H */ #define XK_i 0x0069 /* U+0069 LATIN SMALL LETTER I */ #define XK_j 0x006a /* U+006A LATIN SMALL LETTER J */ #define XK_k 0x006b /* U+006B LATIN SMALL LETTER K */ #define XK_l 0x006c /* U+006C LATIN SMALL LETTER L */ #define XK_m 0x006d /* U+006D LATIN SMALL LETTER M */ #define XK_n 0x006e /* U+006E LATIN SMALL LETTER N */ #define XK_o 0x006f /* U+006F LATIN SMALL LETTER O */ #define XK_p 0x0070 /* U+0070 LATIN SMALL LETTER P */ #define XK_q 0x0071 /* U+0071 LATIN SMALL LETTER Q */ #define XK_r 0x0072 /* U+0072 LATIN SMALL LETTER R */ #define XK_s 0x0073 /* U+0073 LATIN SMALL LETTER S */ #define XK_t 0x0074 /* U+0074 LATIN SMALL LETTER T */ #define XK_u 0x0075 /* U+0075 LATIN SMALL LETTER U */ #define XK_v 0x0076 /* U+0076 LATIN SMALL LETTER V */ #define XK_w 0x0077 /* U+0077 LATIN SMALL LETTER W */ #define XK_x 0x0078 /* U+0078 LATIN SMALL LETTER X */ #define XK_y 0x0079 /* U+0079 LATIN SMALL LETTER Y */ #define XK_z 0x007a /* U+007A LATIN SMALL LETTER Z */ #define XK_braceleft 0x007b /* U+007B LEFT CURLY BRACKET */ #define XK_bar 0x007c /* U+007C VERTICAL LINE */ #define XK_braceright 0x007d /* U+007D RIGHT CURLY BRACKET */ #define XK_asciitilde 0x007e /* U+007E TILDE */ #define XK_nobreakspace 0x00a0 /* U+00A0 NO-BREAK SPACE */ #define XK_exclamdown 0x00a1 /* U+00A1 INVERTED EXCLAMATION MARK */ #define XK_cent 0x00a2 /* U+00A2 CENT SIGN */ #define XK_sterling 0x00a3 /* U+00A3 POUND SIGN */ #define XK_currency 0x00a4 /* U+00A4 CURRENCY SIGN */ #define XK_yen 0x00a5 /* U+00A5 YEN SIGN */ #define XK_brokenbar 0x00a6 /* U+00A6 BROKEN BAR */ #define XK_section 0x00a7 /* U+00A7 SECTION SIGN */ #define XK_diaeresis 0x00a8 /* U+00A8 DIAERESIS */ #define XK_copyright 0x00a9 /* U+00A9 COPYRIGHT SIGN */ #define XK_ordfeminine 0x00aa /* U+00AA FEMININE ORDINAL INDICATOR */ #define XK_guillemetleft 0x00ab /* U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK */ #define XK_guillemotleft 0x00ab /* deprecated misspelling */ #define XK_notsign 0x00ac /* U+00AC NOT SIGN */ #define XK_hyphen 0x00ad /* U+00AD SOFT HYPHEN */ #define XK_registered 0x00ae /* U+00AE REGISTERED SIGN */ #define XK_macron 0x00af /* U+00AF MACRON */ #define XK_degree 0x00b0 /* U+00B0 DEGREE SIGN */ #define XK_plusminus 0x00b1 /* U+00B1 PLUS-MINUS SIGN */ #define XK_twosuperior 0x00b2 /* U+00B2 SUPERSCRIPT TWO */ #define XK_threesuperior 0x00b3 /* U+00B3 SUPERSCRIPT THREE */ #define XK_acute 0x00b4 /* U+00B4 ACUTE ACCENT */ #define XK_mu 0x00b5 /* U+00B5 MICRO SIGN */ #define XK_paragraph 0x00b6 /* U+00B6 PILCROW SIGN */ #define XK_periodcentered 0x00b7 /* U+00B7 MIDDLE DOT */ #define XK_cedilla 0x00b8 /* U+00B8 CEDILLA */ #define XK_onesuperior 0x00b9 /* U+00B9 SUPERSCRIPT ONE */ #define XK_ordmasculine 0x00ba /* U+00BA MASCULINE ORDINAL INDICATOR */ #define XK_masculine 0x00ba /* deprecated inconsistent name */ #define XK_guillemetright 0x00bb /* U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK */ #define XK_guillemotright 0x00bb /* deprecated misspelling */ #define XK_onequarter 0x00bc /* U+00BC VULGAR FRACTION ONE QUARTER */ #define XK_onehalf 0x00bd /* U+00BD VULGAR FRACTION ONE HALF */ #define XK_threequarters 0x00be /* U+00BE VULGAR FRACTION THREE QUARTERS */ #define XK_questiondown 0x00bf /* U+00BF INVERTED QUESTION MARK */ #define XK_Agrave 0x00c0 /* U+00C0 LATIN CAPITAL LETTER A WITH GRAVE */ #define XK_Aacute 0x00c1 /* U+00C1 LATIN CAPITAL LETTER A WITH ACUTE */ #define XK_Acircumflex 0x00c2 /* U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX */ #define XK_Atilde 0x00c3 /* U+00C3 LATIN CAPITAL LETTER A WITH TILDE */ #define XK_Adiaeresis 0x00c4 /* U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS */ #define XK_Aring 0x00c5 /* U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE */ #define XK_AE 0x00c6 /* U+00C6 LATIN CAPITAL LETTER AE */ #define XK_Ccedilla 0x00c7 /* U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA */ #define XK_Egrave 0x00c8 /* U+00C8 LATIN CAPITAL LETTER E WITH GRAVE */ #define XK_Eacute 0x00c9 /* U+00C9 LATIN CAPITAL LETTER E WITH ACUTE */ #define XK_Ecircumflex 0x00ca /* U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX */ #define XK_Ediaeresis 0x00cb /* U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS */ #define XK_Igrave 0x00cc /* U+00CC LATIN CAPITAL LETTER I WITH GRAVE */ #define XK_Iacute 0x00cd /* U+00CD LATIN CAPITAL LETTER I WITH ACUTE */ #define XK_Icircumflex 0x00ce /* U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX */ #define XK_Idiaeresis 0x00cf /* U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS */ #define XK_ETH 0x00d0 /* U+00D0 LATIN CAPITAL LETTER ETH */ #define XK_Eth 0x00d0 /* deprecated */ #define XK_Ntilde 0x00d1 /* U+00D1 LATIN CAPITAL LETTER N WITH TILDE */ #define XK_Ograve 0x00d2 /* U+00D2 LATIN CAPITAL LETTER O WITH GRAVE */ #define XK_Oacute 0x00d3 /* U+00D3 LATIN CAPITAL LETTER O WITH ACUTE */ #define XK_Ocircumflex 0x00d4 /* U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX */ #define XK_Otilde 0x00d5 /* U+00D5 LATIN CAPITAL LETTER O WITH TILDE */ #define XK_Odiaeresis 0x00d6 /* U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS */ #define XK_multiply 0x00d7 /* U+00D7 MULTIPLICATION SIGN */ #define XK_Oslash 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */ #define XK_Ooblique 0x00d8 /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */ #define XK_Ugrave 0x00d9 /* U+00D9 LATIN CAPITAL LETTER U WITH GRAVE */ #define XK_Uacute 0x00da /* U+00DA LATIN CAPITAL LETTER U WITH ACUTE */ #define XK_Ucircumflex 0x00db /* U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX */ #define XK_Udiaeresis 0x00dc /* U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS */ #define XK_Yacute 0x00dd /* U+00DD LATIN CAPITAL LETTER Y WITH ACUTE */ #define XK_THORN 0x00de /* U+00DE LATIN CAPITAL LETTER THORN */ #define XK_Thorn 0x00de /* deprecated */ #define XK_ssharp 0x00df /* U+00DF LATIN SMALL LETTER SHARP S */ #define XK_agrave 0x00e0 /* U+00E0 LATIN SMALL LETTER A WITH GRAVE */ #define XK_aacute 0x00e1 /* U+00E1 LATIN SMALL LETTER A WITH ACUTE */ #define XK_acircumflex 0x00e2 /* U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX */ #define XK_atilde 0x00e3 /* U+00E3 LATIN SMALL LETTER A WITH TILDE */ #define XK_adiaeresis 0x00e4 /* U+00E4 LATIN SMALL LETTER A WITH DIAERESIS */ #define XK_aring 0x00e5 /* U+00E5 LATIN SMALL LETTER A WITH RING ABOVE */ #define XK_ae 0x00e6 /* U+00E6 LATIN SMALL LETTER AE */ #define XK_ccedilla 0x00e7 /* U+00E7 LATIN SMALL LETTER C WITH CEDILLA */ #define XK_egrave 0x00e8 /* U+00E8 LATIN SMALL LETTER E WITH GRAVE */ #define XK_eacute 0x00e9 /* U+00E9 LATIN SMALL LETTER E WITH ACUTE */ #define XK_ecircumflex 0x00ea /* U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX */ #define XK_ediaeresis 0x00eb /* U+00EB LATIN SMALL LETTER E WITH DIAERESIS */ #define XK_igrave 0x00ec /* U+00EC LATIN SMALL LETTER I WITH GRAVE */ #define XK_iacute 0x00ed /* U+00ED LATIN SMALL LETTER I WITH ACUTE */ #define XK_icircumflex 0x00ee /* U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX */ #define XK_idiaeresis 0x00ef /* U+00EF LATIN SMALL LETTER I WITH DIAERESIS */ #define XK_eth 0x00f0 /* U+00F0 LATIN SMALL LETTER ETH */ #define XK_ntilde 0x00f1 /* U+00F1 LATIN SMALL LETTER N WITH TILDE */ #define XK_ograve 0x00f2 /* U+00F2 LATIN SMALL LETTER O WITH GRAVE */ #define XK_oacute 0x00f3 /* U+00F3 LATIN SMALL LETTER O WITH ACUTE */ #define XK_ocircumflex 0x00f4 /* U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX */ #define XK_otilde 0x00f5 /* U+00F5 LATIN SMALL LETTER O WITH TILDE */ #define XK_odiaeresis 0x00f6 /* U+00F6 LATIN SMALL LETTER O WITH DIAERESIS */ #define XK_division 0x00f7 /* U+00F7 DIVISION SIGN */ #define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ #define XK_ooblique 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ #define XK_ugrave 0x00f9 /* U+00F9 LATIN SMALL LETTER U WITH GRAVE */ #define XK_uacute 0x00fa /* U+00FA LATIN SMALL LETTER U WITH ACUTE */ #define XK_ucircumflex 0x00fb /* U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX */ #define XK_udiaeresis 0x00fc /* U+00FC LATIN SMALL LETTER U WITH DIAERESIS */ #define XK_yacute 0x00fd /* U+00FD LATIN SMALL LETTER Y WITH ACUTE */ #define XK_thorn 0x00fe /* U+00FE LATIN SMALL LETTER THORN */ #define XK_ydiaeresis 0x00ff /* U+00FF LATIN SMALL LETTER Y WITH DIAERESIS */ #endif /* XK_LATIN1 */ /* * Latin 2 * Byte 3 = 1 */ #ifdef XK_LATIN2 #define XK_Aogonek 0x01a1 /* U+0104 LATIN CAPITAL LETTER A WITH OGONEK */ #define XK_breve 0x01a2 /* U+02D8 BREVE */ #define XK_Lstroke 0x01a3 /* U+0141 LATIN CAPITAL LETTER L WITH STROKE */ #define XK_Lcaron 0x01a5 /* U+013D LATIN CAPITAL LETTER L WITH CARON */ #define XK_Sacute 0x01a6 /* U+015A LATIN CAPITAL LETTER S WITH ACUTE */ #define XK_Scaron 0x01a9 /* U+0160 LATIN CAPITAL LETTER S WITH CARON */ #define XK_Scedilla 0x01aa /* U+015E LATIN CAPITAL LETTER S WITH CEDILLA */ #define XK_Tcaron 0x01ab /* U+0164 LATIN CAPITAL LETTER T WITH CARON */ #define XK_Zacute 0x01ac /* U+0179 LATIN CAPITAL LETTER Z WITH ACUTE */ #define XK_Zcaron 0x01ae /* U+017D LATIN CAPITAL LETTER Z WITH CARON */ #define XK_Zabovedot 0x01af /* U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE */ #define XK_aogonek 0x01b1 /* U+0105 LATIN SMALL LETTER A WITH OGONEK */ #define XK_ogonek 0x01b2 /* U+02DB OGONEK */ #define XK_lstroke 0x01b3 /* U+0142 LATIN SMALL LETTER L WITH STROKE */ #define XK_lcaron 0x01b5 /* U+013E LATIN SMALL LETTER L WITH CARON */ #define XK_sacute 0x01b6 /* U+015B LATIN SMALL LETTER S WITH ACUTE */ #define XK_caron 0x01b7 /* U+02C7 CARON */ #define XK_scaron 0x01b9 /* U+0161 LATIN SMALL LETTER S WITH CARON */ #define XK_scedilla 0x01ba /* U+015F LATIN SMALL LETTER S WITH CEDILLA */ #define XK_tcaron 0x01bb /* U+0165 LATIN SMALL LETTER T WITH CARON */ #define XK_zacute 0x01bc /* U+017A LATIN SMALL LETTER Z WITH ACUTE */ #define XK_doubleacute 0x01bd /* U+02DD DOUBLE ACUTE ACCENT */ #define XK_zcaron 0x01be /* U+017E LATIN SMALL LETTER Z WITH CARON */ #define XK_zabovedot 0x01bf /* U+017C LATIN SMALL LETTER Z WITH DOT ABOVE */ #define XK_Racute 0x01c0 /* U+0154 LATIN CAPITAL LETTER R WITH ACUTE */ #define XK_Abreve 0x01c3 /* U+0102 LATIN CAPITAL LETTER A WITH BREVE */ #define XK_Lacute 0x01c5 /* U+0139 LATIN CAPITAL LETTER L WITH ACUTE */ #define XK_Cacute 0x01c6 /* U+0106 LATIN CAPITAL LETTER C WITH ACUTE */ #define XK_Ccaron 0x01c8 /* U+010C LATIN CAPITAL LETTER C WITH CARON */ #define XK_Eogonek 0x01ca /* U+0118 LATIN CAPITAL LETTER E WITH OGONEK */ #define XK_Ecaron 0x01cc /* U+011A LATIN CAPITAL LETTER E WITH CARON */ #define XK_Dcaron 0x01cf /* U+010E LATIN CAPITAL LETTER D WITH CARON */ #define XK_Dstroke 0x01d0 /* U+0110 LATIN CAPITAL LETTER D WITH STROKE */ #define XK_Nacute 0x01d1 /* U+0143 LATIN CAPITAL LETTER N WITH ACUTE */ #define XK_Ncaron 0x01d2 /* U+0147 LATIN CAPITAL LETTER N WITH CARON */ #define XK_Odoubleacute 0x01d5 /* U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE */ #define XK_Rcaron 0x01d8 /* U+0158 LATIN CAPITAL LETTER R WITH CARON */ #define XK_Uring 0x01d9 /* U+016E LATIN CAPITAL LETTER U WITH RING ABOVE */ #define XK_Udoubleacute 0x01db /* U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE */ #define XK_Tcedilla 0x01de /* U+0162 LATIN CAPITAL LETTER T WITH CEDILLA */ #define XK_racute 0x01e0 /* U+0155 LATIN SMALL LETTER R WITH ACUTE */ #define XK_abreve 0x01e3 /* U+0103 LATIN SMALL LETTER A WITH BREVE */ #define XK_lacute 0x01e5 /* U+013A LATIN SMALL LETTER L WITH ACUTE */ #define XK_cacute 0x01e6 /* U+0107 LATIN SMALL LETTER C WITH ACUTE */ #define XK_ccaron 0x01e8 /* U+010D LATIN SMALL LETTER C WITH CARON */ #define XK_eogonek 0x01ea /* U+0119 LATIN SMALL LETTER E WITH OGONEK */ #define XK_ecaron 0x01ec /* U+011B LATIN SMALL LETTER E WITH CARON */ #define XK_dcaron 0x01ef /* U+010F LATIN SMALL LETTER D WITH CARON */ #define XK_dstroke 0x01f0 /* U+0111 LATIN SMALL LETTER D WITH STROKE */ #define XK_nacute 0x01f1 /* U+0144 LATIN SMALL LETTER N WITH ACUTE */ #define XK_ncaron 0x01f2 /* U+0148 LATIN SMALL LETTER N WITH CARON */ #define XK_odoubleacute 0x01f5 /* U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE */ #define XK_rcaron 0x01f8 /* U+0159 LATIN SMALL LETTER R WITH CARON */ #define XK_uring 0x01f9 /* U+016F LATIN SMALL LETTER U WITH RING ABOVE */ #define XK_udoubleacute 0x01fb /* U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE */ #define XK_tcedilla 0x01fe /* U+0163 LATIN SMALL LETTER T WITH CEDILLA */ #define XK_abovedot 0x01ff /* U+02D9 DOT ABOVE */ #endif /* XK_LATIN2 */ /* * Latin 3 * Byte 3 = 2 */ #ifdef XK_LATIN3 #define XK_Hstroke 0x02a1 /* U+0126 LATIN CAPITAL LETTER H WITH STROKE */ #define XK_Hcircumflex 0x02a6 /* U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX */ #define XK_Iabovedot 0x02a9 /* U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE */ #define XK_Gbreve 0x02ab /* U+011E LATIN CAPITAL LETTER G WITH BREVE */ #define XK_Jcircumflex 0x02ac /* U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX */ #define XK_hstroke 0x02b1 /* U+0127 LATIN SMALL LETTER H WITH STROKE */ #define XK_hcircumflex 0x02b6 /* U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX */ #define XK_idotless 0x02b9 /* U+0131 LATIN SMALL LETTER DOTLESS I */ #define XK_gbreve 0x02bb /* U+011F LATIN SMALL LETTER G WITH BREVE */ #define XK_jcircumflex 0x02bc /* U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX */ #define XK_Cabovedot 0x02c5 /* U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE */ #define XK_Ccircumflex 0x02c6 /* U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX */ #define XK_Gabovedot 0x02d5 /* U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE */ #define XK_Gcircumflex 0x02d8 /* U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX */ #define XK_Ubreve 0x02dd /* U+016C LATIN CAPITAL LETTER U WITH BREVE */ #define XK_Scircumflex 0x02de /* U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX */ #define XK_cabovedot 0x02e5 /* U+010B LATIN SMALL LETTER C WITH DOT ABOVE */ #define XK_ccircumflex 0x02e6 /* U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX */ #define XK_gabovedot 0x02f5 /* U+0121 LATIN SMALL LETTER G WITH DOT ABOVE */ #define XK_gcircumflex 0x02f8 /* U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX */ #define XK_ubreve 0x02fd /* U+016D LATIN SMALL LETTER U WITH BREVE */ #define XK_scircumflex 0x02fe /* U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX */ #endif /* XK_LATIN3 */ /* * Latin 4 * Byte 3 = 3 */ #ifdef XK_LATIN4 #define XK_kra 0x03a2 /* U+0138 LATIN SMALL LETTER KRA */ #define XK_kappa 0x03a2 /* deprecated */ #define XK_Rcedilla 0x03a3 /* U+0156 LATIN CAPITAL LETTER R WITH CEDILLA */ #define XK_Itilde 0x03a5 /* U+0128 LATIN CAPITAL LETTER I WITH TILDE */ #define XK_Lcedilla 0x03a6 /* U+013B LATIN CAPITAL LETTER L WITH CEDILLA */ #define XK_Emacron 0x03aa /* U+0112 LATIN CAPITAL LETTER E WITH MACRON */ #define XK_Gcedilla 0x03ab /* U+0122 LATIN CAPITAL LETTER G WITH CEDILLA */ #define XK_Tslash 0x03ac /* U+0166 LATIN CAPITAL LETTER T WITH STROKE */ #define XK_rcedilla 0x03b3 /* U+0157 LATIN SMALL LETTER R WITH CEDILLA */ #define XK_itilde 0x03b5 /* U+0129 LATIN SMALL LETTER I WITH TILDE */ #define XK_lcedilla 0x03b6 /* U+013C LATIN SMALL LETTER L WITH CEDILLA */ #define XK_emacron 0x03ba /* U+0113 LATIN SMALL LETTER E WITH MACRON */ #define XK_gcedilla 0x03bb /* U+0123 LATIN SMALL LETTER G WITH CEDILLA */ #define XK_tslash 0x03bc /* U+0167 LATIN SMALL LETTER T WITH STROKE */ #define XK_ENG 0x03bd /* U+014A LATIN CAPITAL LETTER ENG */ #define XK_eng 0x03bf /* U+014B LATIN SMALL LETTER ENG */ #define XK_Amacron 0x03c0 /* U+0100 LATIN CAPITAL LETTER A WITH MACRON */ #define XK_Iogonek 0x03c7 /* U+012E LATIN CAPITAL LETTER I WITH OGONEK */ #define XK_Eabovedot 0x03cc /* U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE */ #define XK_Imacron 0x03cf /* U+012A LATIN CAPITAL LETTER I WITH MACRON */ #define XK_Ncedilla 0x03d1 /* U+0145 LATIN CAPITAL LETTER N WITH CEDILLA */ #define XK_Omacron 0x03d2 /* U+014C LATIN CAPITAL LETTER O WITH MACRON */ #define XK_Kcedilla 0x03d3 /* U+0136 LATIN CAPITAL LETTER K WITH CEDILLA */ #define XK_Uogonek 0x03d9 /* U+0172 LATIN CAPITAL LETTER U WITH OGONEK */ #define XK_Utilde 0x03dd /* U+0168 LATIN CAPITAL LETTER U WITH TILDE */ #define XK_Umacron 0x03de /* U+016A LATIN CAPITAL LETTER U WITH MACRON */ #define XK_amacron 0x03e0 /* U+0101 LATIN SMALL LETTER A WITH MACRON */ #define XK_iogonek 0x03e7 /* U+012F LATIN SMALL LETTER I WITH OGONEK */ #define XK_eabovedot 0x03ec /* U+0117 LATIN SMALL LETTER E WITH DOT ABOVE */ #define XK_imacron 0x03ef /* U+012B LATIN SMALL LETTER I WITH MACRON */ #define XK_ncedilla 0x03f1 /* U+0146 LATIN SMALL LETTER N WITH CEDILLA */ #define XK_omacron 0x03f2 /* U+014D LATIN SMALL LETTER O WITH MACRON */ #define XK_kcedilla 0x03f3 /* U+0137 LATIN SMALL LETTER K WITH CEDILLA */ #define XK_uogonek 0x03f9 /* U+0173 LATIN SMALL LETTER U WITH OGONEK */ #define XK_utilde 0x03fd /* U+0169 LATIN SMALL LETTER U WITH TILDE */ #define XK_umacron 0x03fe /* U+016B LATIN SMALL LETTER U WITH MACRON */ #endif /* XK_LATIN4 */ /* * Latin 8 */ #ifdef XK_LATIN8 #define XK_Wcircumflex 0x1000174 /* U+0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX */ #define XK_wcircumflex 0x1000175 /* U+0175 LATIN SMALL LETTER W WITH CIRCUMFLEX */ #define XK_Ycircumflex 0x1000176 /* U+0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX */ #define XK_ycircumflex 0x1000177 /* U+0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX */ #define XK_Babovedot 0x1001e02 /* U+1E02 LATIN CAPITAL LETTER B WITH DOT ABOVE */ #define XK_babovedot 0x1001e03 /* U+1E03 LATIN SMALL LETTER B WITH DOT ABOVE */ #define XK_Dabovedot 0x1001e0a /* U+1E0A LATIN CAPITAL LETTER D WITH DOT ABOVE */ #define XK_dabovedot 0x1001e0b /* U+1E0B LATIN SMALL LETTER D WITH DOT ABOVE */ #define XK_Fabovedot 0x1001e1e /* U+1E1E LATIN CAPITAL LETTER F WITH DOT ABOVE */ #define XK_fabovedot 0x1001e1f /* U+1E1F LATIN SMALL LETTER F WITH DOT ABOVE */ #define XK_Mabovedot 0x1001e40 /* U+1E40 LATIN CAPITAL LETTER M WITH DOT ABOVE */ #define XK_mabovedot 0x1001e41 /* U+1E41 LATIN SMALL LETTER M WITH DOT ABOVE */ #define XK_Pabovedot 0x1001e56 /* U+1E56 LATIN CAPITAL LETTER P WITH DOT ABOVE */ #define XK_pabovedot 0x1001e57 /* U+1E57 LATIN SMALL LETTER P WITH DOT ABOVE */ #define XK_Sabovedot 0x1001e60 /* U+1E60 LATIN CAPITAL LETTER S WITH DOT ABOVE */ #define XK_sabovedot 0x1001e61 /* U+1E61 LATIN SMALL LETTER S WITH DOT ABOVE */ #define XK_Tabovedot 0x1001e6a /* U+1E6A LATIN CAPITAL LETTER T WITH DOT ABOVE */ #define XK_tabovedot 0x1001e6b /* U+1E6B LATIN SMALL LETTER T WITH DOT ABOVE */ #define XK_Wgrave 0x1001e80 /* U+1E80 LATIN CAPITAL LETTER W WITH GRAVE */ #define XK_wgrave 0x1001e81 /* U+1E81 LATIN SMALL LETTER W WITH GRAVE */ #define XK_Wacute 0x1001e82 /* U+1E82 LATIN CAPITAL LETTER W WITH ACUTE */ #define XK_wacute 0x1001e83 /* U+1E83 LATIN SMALL LETTER W WITH ACUTE */ #define XK_Wdiaeresis 0x1001e84 /* U+1E84 LATIN CAPITAL LETTER W WITH DIAERESIS */ #define XK_wdiaeresis 0x1001e85 /* U+1E85 LATIN SMALL LETTER W WITH DIAERESIS */ #define XK_Ygrave 0x1001ef2 /* U+1EF2 LATIN CAPITAL LETTER Y WITH GRAVE */ #define XK_ygrave 0x1001ef3 /* U+1EF3 LATIN SMALL LETTER Y WITH GRAVE */ #endif /* XK_LATIN8 */ /* * Latin 9 * Byte 3 = 0x13 */ #ifdef XK_LATIN9 #define XK_OE 0x13bc /* U+0152 LATIN CAPITAL LIGATURE OE */ #define XK_oe 0x13bd /* U+0153 LATIN SMALL LIGATURE OE */ #define XK_Ydiaeresis 0x13be /* U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS */ #endif /* XK_LATIN9 */ /* * Katakana * Byte 3 = 4 */ #ifdef XK_KATAKANA #define XK_overline 0x047e /* U+203E OVERLINE */ #define XK_kana_fullstop 0x04a1 /* U+3002 IDEOGRAPHIC FULL STOP */ #define XK_kana_openingbracket 0x04a2 /* U+300C LEFT CORNER BRACKET */ #define XK_kana_closingbracket 0x04a3 /* U+300D RIGHT CORNER BRACKET */ #define XK_kana_comma 0x04a4 /* U+3001 IDEOGRAPHIC COMMA */ #define XK_kana_conjunctive 0x04a5 /* U+30FB KATAKANA MIDDLE DOT */ #define XK_kana_middledot 0x04a5 /* deprecated */ #define XK_kana_WO 0x04a6 /* U+30F2 KATAKANA LETTER WO */ #define XK_kana_a 0x04a7 /* U+30A1 KATAKANA LETTER SMALL A */ #define XK_kana_i 0x04a8 /* U+30A3 KATAKANA LETTER SMALL I */ #define XK_kana_u 0x04a9 /* U+30A5 KATAKANA LETTER SMALL U */ #define XK_kana_e 0x04aa /* U+30A7 KATAKANA LETTER SMALL E */ #define XK_kana_o 0x04ab /* U+30A9 KATAKANA LETTER SMALL O */ #define XK_kana_ya 0x04ac /* U+30E3 KATAKANA LETTER SMALL YA */ #define XK_kana_yu 0x04ad /* U+30E5 KATAKANA LETTER SMALL YU */ #define XK_kana_yo 0x04ae /* U+30E7 KATAKANA LETTER SMALL YO */ #define XK_kana_tsu 0x04af /* U+30C3 KATAKANA LETTER SMALL TU */ #define XK_kana_tu 0x04af /* deprecated */ #define XK_prolongedsound 0x04b0 /* U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK */ #define XK_kana_A 0x04b1 /* U+30A2 KATAKANA LETTER A */ #define XK_kana_I 0x04b2 /* U+30A4 KATAKANA LETTER I */ #define XK_kana_U 0x04b3 /* U+30A6 KATAKANA LETTER U */ #define XK_kana_E 0x04b4 /* U+30A8 KATAKANA LETTER E */ #define XK_kana_O 0x04b5 /* U+30AA KATAKANA LETTER O */ #define XK_kana_KA 0x04b6 /* U+30AB KATAKANA LETTER KA */ #define XK_kana_KI 0x04b7 /* U+30AD KATAKANA LETTER KI */ #define XK_kana_KU 0x04b8 /* U+30AF KATAKANA LETTER KU */ #define XK_kana_KE 0x04b9 /* U+30B1 KATAKANA LETTER KE */ #define XK_kana_KO 0x04ba /* U+30B3 KATAKANA LETTER KO */ #define XK_kana_SA 0x04bb /* U+30B5 KATAKANA LETTER SA */ #define XK_kana_SHI 0x04bc /* U+30B7 KATAKANA LETTER SI */ #define XK_kana_SU 0x04bd /* U+30B9 KATAKANA LETTER SU */ #define XK_kana_SE 0x04be /* U+30BB KATAKANA LETTER SE */ #define XK_kana_SO 0x04bf /* U+30BD KATAKANA LETTER SO */ #define XK_kana_TA 0x04c0 /* U+30BF KATAKANA LETTER TA */ #define XK_kana_CHI 0x04c1 /* U+30C1 KATAKANA LETTER TI */ #define XK_kana_TI 0x04c1 /* deprecated */ #define XK_kana_TSU 0x04c2 /* U+30C4 KATAKANA LETTER TU */ #define XK_kana_TU 0x04c2 /* deprecated */ #define XK_kana_TE 0x04c3 /* U+30C6 KATAKANA LETTER TE */ #define XK_kana_TO 0x04c4 /* U+30C8 KATAKANA LETTER TO */ #define XK_kana_NA 0x04c5 /* U+30CA KATAKANA LETTER NA */ #define XK_kana_NI 0x04c6 /* U+30CB KATAKANA LETTER NI */ #define XK_kana_NU 0x04c7 /* U+30CC KATAKANA LETTER NU */ #define XK_kana_NE 0x04c8 /* U+30CD KATAKANA LETTER NE */ #define XK_kana_NO 0x04c9 /* U+30CE KATAKANA LETTER NO */ #define XK_kana_HA 0x04ca /* U+30CF KATAKANA LETTER HA */ #define XK_kana_HI 0x04cb /* U+30D2 KATAKANA LETTER HI */ #define XK_kana_FU 0x04cc /* U+30D5 KATAKANA LETTER HU */ #define XK_kana_HU 0x04cc /* deprecated */ #define XK_kana_HE 0x04cd /* U+30D8 KATAKANA LETTER HE */ #define XK_kana_HO 0x04ce /* U+30DB KATAKANA LETTER HO */ #define XK_kana_MA 0x04cf /* U+30DE KATAKANA LETTER MA */ #define XK_kana_MI 0x04d0 /* U+30DF KATAKANA LETTER MI */ #define XK_kana_MU 0x04d1 /* U+30E0 KATAKANA LETTER MU */ #define XK_kana_ME 0x04d2 /* U+30E1 KATAKANA LETTER ME */ #define XK_kana_MO 0x04d3 /* U+30E2 KATAKANA LETTER MO */ #define XK_kana_YA 0x04d4 /* U+30E4 KATAKANA LETTER YA */ #define XK_kana_YU 0x04d5 /* U+30E6 KATAKANA LETTER YU */ #define XK_kana_YO 0x04d6 /* U+30E8 KATAKANA LETTER YO */ #define XK_kana_RA 0x04d7 /* U+30E9 KATAKANA LETTER RA */ #define XK_kana_RI 0x04d8 /* U+30EA KATAKANA LETTER RI */ #define XK_kana_RU 0x04d9 /* U+30EB KATAKANA LETTER RU */ #define XK_kana_RE 0x04da /* U+30EC KATAKANA LETTER RE */ #define XK_kana_RO 0x04db /* U+30ED KATAKANA LETTER RO */ #define XK_kana_WA 0x04dc /* U+30EF KATAKANA LETTER WA */ #define XK_kana_N 0x04dd /* U+30F3 KATAKANA LETTER N */ #define XK_voicedsound 0x04de /* U+309B KATAKANA-HIRAGANA VOICED SOUND MARK */ #define XK_semivoicedsound 0x04df /* U+309C KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK */ #define XK_kana_switch 0xff7e /* Alias for mode_switch */ #endif /* XK_KATAKANA */ /* * Arabic * Byte 3 = 5 */ #ifdef XK_ARABIC #define XK_Farsi_0 0x10006f0 /* U+06F0 EXTENDED ARABIC-INDIC DIGIT ZERO */ #define XK_Farsi_1 0x10006f1 /* U+06F1 EXTENDED ARABIC-INDIC DIGIT ONE */ #define XK_Farsi_2 0x10006f2 /* U+06F2 EXTENDED ARABIC-INDIC DIGIT TWO */ #define XK_Farsi_3 0x10006f3 /* U+06F3 EXTENDED ARABIC-INDIC DIGIT THREE */ #define XK_Farsi_4 0x10006f4 /* U+06F4 EXTENDED ARABIC-INDIC DIGIT FOUR */ #define XK_Farsi_5 0x10006f5 /* U+06F5 EXTENDED ARABIC-INDIC DIGIT FIVE */ #define XK_Farsi_6 0x10006f6 /* U+06F6 EXTENDED ARABIC-INDIC DIGIT SIX */ #define XK_Farsi_7 0x10006f7 /* U+06F7 EXTENDED ARABIC-INDIC DIGIT SEVEN */ #define XK_Farsi_8 0x10006f8 /* U+06F8 EXTENDED ARABIC-INDIC DIGIT EIGHT */ #define XK_Farsi_9 0x10006f9 /* U+06F9 EXTENDED ARABIC-INDIC DIGIT NINE */ #define XK_Arabic_percent 0x100066a /* U+066A ARABIC PERCENT SIGN */ #define XK_Arabic_superscript_alef 0x1000670 /* U+0670 ARABIC LETTER SUPERSCRIPT ALEF */ #define XK_Arabic_tteh 0x1000679 /* U+0679 ARABIC LETTER TTEH */ #define XK_Arabic_peh 0x100067e /* U+067E ARABIC LETTER PEH */ #define XK_Arabic_tcheh 0x1000686 /* U+0686 ARABIC LETTER TCHEH */ #define XK_Arabic_ddal 0x1000688 /* U+0688 ARABIC LETTER DDAL */ #define XK_Arabic_rreh 0x1000691 /* U+0691 ARABIC LETTER RREH */ #define XK_Arabic_comma 0x05ac /* U+060C ARABIC COMMA */ #define XK_Arabic_fullstop 0x10006d4 /* U+06D4 ARABIC FULL STOP */ #define XK_Arabic_0 0x1000660 /* U+0660 ARABIC-INDIC DIGIT ZERO */ #define XK_Arabic_1 0x1000661 /* U+0661 ARABIC-INDIC DIGIT ONE */ #define XK_Arabic_2 0x1000662 /* U+0662 ARABIC-INDIC DIGIT TWO */ #define XK_Arabic_3 0x1000663 /* U+0663 ARABIC-INDIC DIGIT THREE */ #define XK_Arabic_4 0x1000664 /* U+0664 ARABIC-INDIC DIGIT FOUR */ #define XK_Arabic_5 0x1000665 /* U+0665 ARABIC-INDIC DIGIT FIVE */ #define XK_Arabic_6 0x1000666 /* U+0666 ARABIC-INDIC DIGIT SIX */ #define XK_Arabic_7 0x1000667 /* U+0667 ARABIC-INDIC DIGIT SEVEN */ #define XK_Arabic_8 0x1000668 /* U+0668 ARABIC-INDIC DIGIT EIGHT */ #define XK_Arabic_9 0x1000669 /* U+0669 ARABIC-INDIC DIGIT NINE */ #define XK_Arabic_semicolon 0x05bb /* U+061B ARABIC SEMICOLON */ #define XK_Arabic_question_mark 0x05bf /* U+061F ARABIC QUESTION MARK */ #define XK_Arabic_hamza 0x05c1 /* U+0621 ARABIC LETTER HAMZA */ #define XK_Arabic_maddaonalef 0x05c2 /* U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE */ #define XK_Arabic_hamzaonalef 0x05c3 /* U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE */ #define XK_Arabic_hamzaonwaw 0x05c4 /* U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE */ #define XK_Arabic_hamzaunderalef 0x05c5 /* U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW */ #define XK_Arabic_hamzaonyeh 0x05c6 /* U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE */ #define XK_Arabic_alef 0x05c7 /* U+0627 ARABIC LETTER ALEF */ #define XK_Arabic_beh 0x05c8 /* U+0628 ARABIC LETTER BEH */ #define XK_Arabic_tehmarbuta 0x05c9 /* U+0629 ARABIC LETTER TEH MARBUTA */ #define XK_Arabic_teh 0x05ca /* U+062A ARABIC LETTER TEH */ #define XK_Arabic_theh 0x05cb /* U+062B ARABIC LETTER THEH */ #define XK_Arabic_jeem 0x05cc /* U+062C ARABIC LETTER JEEM */ #define XK_Arabic_hah 0x05cd /* U+062D ARABIC LETTER HAH */ #define XK_Arabic_khah 0x05ce /* U+062E ARABIC LETTER KHAH */ #define XK_Arabic_dal 0x05cf /* U+062F ARABIC LETTER DAL */ #define XK_Arabic_thal 0x05d0 /* U+0630 ARABIC LETTER THAL */ #define XK_Arabic_ra 0x05d1 /* U+0631 ARABIC LETTER REH */ #define XK_Arabic_zain 0x05d2 /* U+0632 ARABIC LETTER ZAIN */ #define XK_Arabic_seen 0x05d3 /* U+0633 ARABIC LETTER SEEN */ #define XK_Arabic_sheen 0x05d4 /* U+0634 ARABIC LETTER SHEEN */ #define XK_Arabic_sad 0x05d5 /* U+0635 ARABIC LETTER SAD */ #define XK_Arabic_dad 0x05d6 /* U+0636 ARABIC LETTER DAD */ #define XK_Arabic_tah 0x05d7 /* U+0637 ARABIC LETTER TAH */ #define XK_Arabic_zah 0x05d8 /* U+0638 ARABIC LETTER ZAH */ #define XK_Arabic_ain 0x05d9 /* U+0639 ARABIC LETTER AIN */ #define XK_Arabic_ghain 0x05da /* U+063A ARABIC LETTER GHAIN */ #define XK_Arabic_tatweel 0x05e0 /* U+0640 ARABIC TATWEEL */ #define XK_Arabic_feh 0x05e1 /* U+0641 ARABIC LETTER FEH */ #define XK_Arabic_qaf 0x05e2 /* U+0642 ARABIC LETTER QAF */ #define XK_Arabic_kaf 0x05e3 /* U+0643 ARABIC LETTER KAF */ #define XK_Arabic_lam 0x05e4 /* U+0644 ARABIC LETTER LAM */ #define XK_Arabic_meem 0x05e5 /* U+0645 ARABIC LETTER MEEM */ #define XK_Arabic_noon 0x05e6 /* U+0646 ARABIC LETTER NOON */ #define XK_Arabic_ha 0x05e7 /* U+0647 ARABIC LETTER HEH */ #define XK_Arabic_heh 0x05e7 /* deprecated */ #define XK_Arabic_waw 0x05e8 /* U+0648 ARABIC LETTER WAW */ #define XK_Arabic_alefmaksura 0x05e9 /* U+0649 ARABIC LETTER ALEF MAKSURA */ #define XK_Arabic_yeh 0x05ea /* U+064A ARABIC LETTER YEH */ #define XK_Arabic_fathatan 0x05eb /* U+064B ARABIC FATHATAN */ #define XK_Arabic_dammatan 0x05ec /* U+064C ARABIC DAMMATAN */ #define XK_Arabic_kasratan 0x05ed /* U+064D ARABIC KASRATAN */ #define XK_Arabic_fatha 0x05ee /* U+064E ARABIC FATHA */ #define XK_Arabic_damma 0x05ef /* U+064F ARABIC DAMMA */ #define XK_Arabic_kasra 0x05f0 /* U+0650 ARABIC KASRA */ #define XK_Arabic_shadda 0x05f1 /* U+0651 ARABIC SHADDA */ #define XK_Arabic_sukun 0x05f2 /* U+0652 ARABIC SUKUN */ #define XK_Arabic_madda_above 0x1000653 /* U+0653 ARABIC MADDAH ABOVE */ #define XK_Arabic_hamza_above 0x1000654 /* U+0654 ARABIC HAMZA ABOVE */ #define XK_Arabic_hamza_below 0x1000655 /* U+0655 ARABIC HAMZA BELOW */ #define XK_Arabic_jeh 0x1000698 /* U+0698 ARABIC LETTER JEH */ #define XK_Arabic_veh 0x10006a4 /* U+06A4 ARABIC LETTER VEH */ #define XK_Arabic_keheh 0x10006a9 /* U+06A9 ARABIC LETTER KEHEH */ #define XK_Arabic_gaf 0x10006af /* U+06AF ARABIC LETTER GAF */ #define XK_Arabic_noon_ghunna 0x10006ba /* U+06BA ARABIC LETTER NOON GHUNNA */ #define XK_Arabic_heh_doachashmee 0x10006be /* U+06BE ARABIC LETTER HEH DOACHASHMEE */ #define XK_Farsi_yeh 0x10006cc /* U+06CC ARABIC LETTER FARSI YEH */ #define XK_Arabic_farsi_yeh 0x10006cc /* U+06CC ARABIC LETTER FARSI YEH */ #define XK_Arabic_yeh_baree 0x10006d2 /* U+06D2 ARABIC LETTER YEH BARREE */ #define XK_Arabic_heh_goal 0x10006c1 /* U+06C1 ARABIC LETTER HEH GOAL */ #define XK_Arabic_switch 0xff7e /* Alias for mode_switch */ #endif /* XK_ARABIC */ /* * Cyrillic * Byte 3 = 6 */ #ifdef XK_CYRILLIC #define XK_Cyrillic_GHE_bar 0x1000492 /* U+0492 CYRILLIC CAPITAL LETTER GHE WITH STROKE */ #define XK_Cyrillic_ghe_bar 0x1000493 /* U+0493 CYRILLIC SMALL LETTER GHE WITH STROKE */ #define XK_Cyrillic_ZHE_descender 0x1000496 /* U+0496 CYRILLIC CAPITAL LETTER ZHE WITH DESCENDER */ #define XK_Cyrillic_zhe_descender 0x1000497 /* U+0497 CYRILLIC SMALL LETTER ZHE WITH DESCENDER */ #define XK_Cyrillic_KA_descender 0x100049a /* U+049A CYRILLIC CAPITAL LETTER KA WITH DESCENDER */ #define XK_Cyrillic_ka_descender 0x100049b /* U+049B CYRILLIC SMALL LETTER KA WITH DESCENDER */ #define XK_Cyrillic_KA_vertstroke 0x100049c /* U+049C CYRILLIC CAPITAL LETTER KA WITH VERTICAL STROKE */ #define XK_Cyrillic_ka_vertstroke 0x100049d /* U+049D CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE */ #define XK_Cyrillic_EN_descender 0x10004a2 /* U+04A2 CYRILLIC CAPITAL LETTER EN WITH DESCENDER */ #define XK_Cyrillic_en_descender 0x10004a3 /* U+04A3 CYRILLIC SMALL LETTER EN WITH DESCENDER */ #define XK_Cyrillic_U_straight 0x10004ae /* U+04AE CYRILLIC CAPITAL LETTER STRAIGHT U */ #define XK_Cyrillic_u_straight 0x10004af /* U+04AF CYRILLIC SMALL LETTER STRAIGHT U */ #define XK_Cyrillic_U_straight_bar 0x10004b0 /* U+04B0 CYRILLIC CAPITAL LETTER STRAIGHT U WITH STROKE */ #define XK_Cyrillic_u_straight_bar 0x10004b1 /* U+04B1 CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE */ #define XK_Cyrillic_HA_descender 0x10004b2 /* U+04B2 CYRILLIC CAPITAL LETTER HA WITH DESCENDER */ #define XK_Cyrillic_ha_descender 0x10004b3 /* U+04B3 CYRILLIC SMALL LETTER HA WITH DESCENDER */ #define XK_Cyrillic_CHE_descender 0x10004b6 /* U+04B6 CYRILLIC CAPITAL LETTER CHE WITH DESCENDER */ #define XK_Cyrillic_che_descender 0x10004b7 /* U+04B7 CYRILLIC SMALL LETTER CHE WITH DESCENDER */ #define XK_Cyrillic_CHE_vertstroke 0x10004b8 /* U+04B8 CYRILLIC CAPITAL LETTER CHE WITH VERTICAL STROKE */ #define XK_Cyrillic_che_vertstroke 0x10004b9 /* U+04B9 CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE */ #define XK_Cyrillic_SHHA 0x10004ba /* U+04BA CYRILLIC CAPITAL LETTER SHHA */ #define XK_Cyrillic_shha 0x10004bb /* U+04BB CYRILLIC SMALL LETTER SHHA */ #define XK_Cyrillic_SCHWA 0x10004d8 /* U+04D8 CYRILLIC CAPITAL LETTER SCHWA */ #define XK_Cyrillic_schwa 0x10004d9 /* U+04D9 CYRILLIC SMALL LETTER SCHWA */ #define XK_Cyrillic_I_macron 0x10004e2 /* U+04E2 CYRILLIC CAPITAL LETTER I WITH MACRON */ #define XK_Cyrillic_i_macron 0x10004e3 /* U+04E3 CYRILLIC SMALL LETTER I WITH MACRON */ #define XK_Cyrillic_O_bar 0x10004e8 /* U+04E8 CYRILLIC CAPITAL LETTER BARRED O */ #define XK_Cyrillic_o_bar 0x10004e9 /* U+04E9 CYRILLIC SMALL LETTER BARRED O */ #define XK_Cyrillic_U_macron 0x10004ee /* U+04EE CYRILLIC CAPITAL LETTER U WITH MACRON */ #define XK_Cyrillic_u_macron 0x10004ef /* U+04EF CYRILLIC SMALL LETTER U WITH MACRON */ #define XK_Serbian_dje 0x06a1 /* U+0452 CYRILLIC SMALL LETTER DJE */ #define XK_Macedonia_gje 0x06a2 /* U+0453 CYRILLIC SMALL LETTER GJE */ #define XK_Cyrillic_io 0x06a3 /* U+0451 CYRILLIC SMALL LETTER IO */ #define XK_Ukrainian_ie 0x06a4 /* U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE */ #define XK_Ukranian_je 0x06a4 /* deprecated */ #define XK_Macedonia_dse 0x06a5 /* U+0455 CYRILLIC SMALL LETTER DZE */ #define XK_Ukrainian_i 0x06a6 /* U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I */ #define XK_Ukranian_i 0x06a6 /* deprecated */ #define XK_Ukrainian_yi 0x06a7 /* U+0457 CYRILLIC SMALL LETTER YI */ #define XK_Ukranian_yi 0x06a7 /* deprecated */ #define XK_Cyrillic_je 0x06a8 /* U+0458 CYRILLIC SMALL LETTER JE */ #define XK_Serbian_je 0x06a8 /* deprecated */ #define XK_Cyrillic_lje 0x06a9 /* U+0459 CYRILLIC SMALL LETTER LJE */ #define XK_Serbian_lje 0x06a9 /* deprecated */ #define XK_Cyrillic_nje 0x06aa /* U+045A CYRILLIC SMALL LETTER NJE */ #define XK_Serbian_nje 0x06aa /* deprecated */ #define XK_Serbian_tshe 0x06ab /* U+045B CYRILLIC SMALL LETTER TSHE */ #define XK_Macedonia_kje 0x06ac /* U+045C CYRILLIC SMALL LETTER KJE */ #define XK_Ukrainian_ghe_with_upturn 0x06ad /* U+0491 CYRILLIC SMALL LETTER GHE WITH UPTURN */ #define XK_Byelorussian_shortu 0x06ae /* U+045E CYRILLIC SMALL LETTER SHORT U */ #define XK_Cyrillic_dzhe 0x06af /* U+045F CYRILLIC SMALL LETTER DZHE */ #define XK_Serbian_dze 0x06af /* deprecated */ #define XK_numerosign 0x06b0 /* U+2116 NUMERO SIGN */ #define XK_Serbian_DJE 0x06b1 /* U+0402 CYRILLIC CAPITAL LETTER DJE */ #define XK_Macedonia_GJE 0x06b2 /* U+0403 CYRILLIC CAPITAL LETTER GJE */ #define XK_Cyrillic_IO 0x06b3 /* U+0401 CYRILLIC CAPITAL LETTER IO */ #define XK_Ukrainian_IE 0x06b4 /* U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE */ #define XK_Ukranian_JE 0x06b4 /* deprecated */ #define XK_Macedonia_DSE 0x06b5 /* U+0405 CYRILLIC CAPITAL LETTER DZE */ #define XK_Ukrainian_I 0x06b6 /* U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I */ #define XK_Ukranian_I 0x06b6 /* deprecated */ #define XK_Ukrainian_YI 0x06b7 /* U+0407 CYRILLIC CAPITAL LETTER YI */ #define XK_Ukranian_YI 0x06b7 /* deprecated */ #define XK_Cyrillic_JE 0x06b8 /* U+0408 CYRILLIC CAPITAL LETTER JE */ #define XK_Serbian_JE 0x06b8 /* deprecated */ #define XK_Cyrillic_LJE 0x06b9 /* U+0409 CYRILLIC CAPITAL LETTER LJE */ #define XK_Serbian_LJE 0x06b9 /* deprecated */ #define XK_Cyrillic_NJE 0x06ba /* U+040A CYRILLIC CAPITAL LETTER NJE */ #define XK_Serbian_NJE 0x06ba /* deprecated */ #define XK_Serbian_TSHE 0x06bb /* U+040B CYRILLIC CAPITAL LETTER TSHE */ #define XK_Macedonia_KJE 0x06bc /* U+040C CYRILLIC CAPITAL LETTER KJE */ #define XK_Ukrainian_GHE_WITH_UPTURN 0x06bd /* U+0490 CYRILLIC CAPITAL LETTER GHE WITH UPTURN */ #define XK_Byelorussian_SHORTU 0x06be /* U+040E CYRILLIC CAPITAL LETTER SHORT U */ #define XK_Cyrillic_DZHE 0x06bf /* U+040F CYRILLIC CAPITAL LETTER DZHE */ #define XK_Serbian_DZE 0x06bf /* deprecated */ #define XK_Cyrillic_yu 0x06c0 /* U+044E CYRILLIC SMALL LETTER YU */ #define XK_Cyrillic_a 0x06c1 /* U+0430 CYRILLIC SMALL LETTER A */ #define XK_Cyrillic_be 0x06c2 /* U+0431 CYRILLIC SMALL LETTER BE */ #define XK_Cyrillic_tse 0x06c3 /* U+0446 CYRILLIC SMALL LETTER TSE */ #define XK_Cyrillic_de 0x06c4 /* U+0434 CYRILLIC SMALL LETTER DE */ #define XK_Cyrillic_ie 0x06c5 /* U+0435 CYRILLIC SMALL LETTER IE */ #define XK_Cyrillic_ef 0x06c6 /* U+0444 CYRILLIC SMALL LETTER EF */ #define XK_Cyrillic_ghe 0x06c7 /* U+0433 CYRILLIC SMALL LETTER GHE */ #define XK_Cyrillic_ha 0x06c8 /* U+0445 CYRILLIC SMALL LETTER HA */ #define XK_Cyrillic_i 0x06c9 /* U+0438 CYRILLIC SMALL LETTER I */ #define XK_Cyrillic_shorti 0x06ca /* U+0439 CYRILLIC SMALL LETTER SHORT I */ #define XK_Cyrillic_ka 0x06cb /* U+043A CYRILLIC SMALL LETTER KA */ #define XK_Cyrillic_el 0x06cc /* U+043B CYRILLIC SMALL LETTER EL */ #define XK_Cyrillic_em 0x06cd /* U+043C CYRILLIC SMALL LETTER EM */ #define XK_Cyrillic_en 0x06ce /* U+043D CYRILLIC SMALL LETTER EN */ #define XK_Cyrillic_o 0x06cf /* U+043E CYRILLIC SMALL LETTER O */ #define XK_Cyrillic_pe 0x06d0 /* U+043F CYRILLIC SMALL LETTER PE */ #define XK_Cyrillic_ya 0x06d1 /* U+044F CYRILLIC SMALL LETTER YA */ #define XK_Cyrillic_er 0x06d2 /* U+0440 CYRILLIC SMALL LETTER ER */ #define XK_Cyrillic_es 0x06d3 /* U+0441 CYRILLIC SMALL LETTER ES */ #define XK_Cyrillic_te 0x06d4 /* U+0442 CYRILLIC SMALL LETTER TE */ #define XK_Cyrillic_u 0x06d5 /* U+0443 CYRILLIC SMALL LETTER U */ #define XK_Cyrillic_zhe 0x06d6 /* U+0436 CYRILLIC SMALL LETTER ZHE */ #define XK_Cyrillic_ve 0x06d7 /* U+0432 CYRILLIC SMALL LETTER VE */ #define XK_Cyrillic_softsign 0x06d8 /* U+044C CYRILLIC SMALL LETTER SOFT SIGN */ #define XK_Cyrillic_yeru 0x06d9 /* U+044B CYRILLIC SMALL LETTER YERU */ #define XK_Cyrillic_ze 0x06da /* U+0437 CYRILLIC SMALL LETTER ZE */ #define XK_Cyrillic_sha 0x06db /* U+0448 CYRILLIC SMALL LETTER SHA */ #define XK_Cyrillic_e 0x06dc /* U+044D CYRILLIC SMALL LETTER E */ #define XK_Cyrillic_shcha 0x06dd /* U+0449 CYRILLIC SMALL LETTER SHCHA */ #define XK_Cyrillic_che 0x06de /* U+0447 CYRILLIC SMALL LETTER CHE */ #define XK_Cyrillic_hardsign 0x06df /* U+044A CYRILLIC SMALL LETTER HARD SIGN */ #define XK_Cyrillic_YU 0x06e0 /* U+042E CYRILLIC CAPITAL LETTER YU */ #define XK_Cyrillic_A 0x06e1 /* U+0410 CYRILLIC CAPITAL LETTER A */ #define XK_Cyrillic_BE 0x06e2 /* U+0411 CYRILLIC CAPITAL LETTER BE */ #define XK_Cyrillic_TSE 0x06e3 /* U+0426 CYRILLIC CAPITAL LETTER TSE */ #define XK_Cyrillic_DE 0x06e4 /* U+0414 CYRILLIC CAPITAL LETTER DE */ #define XK_Cyrillic_IE 0x06e5 /* U+0415 CYRILLIC CAPITAL LETTER IE */ #define XK_Cyrillic_EF 0x06e6 /* U+0424 CYRILLIC CAPITAL LETTER EF */ #define XK_Cyrillic_GHE 0x06e7 /* U+0413 CYRILLIC CAPITAL LETTER GHE */ #define XK_Cyrillic_HA 0x06e8 /* U+0425 CYRILLIC CAPITAL LETTER HA */ #define XK_Cyrillic_I 0x06e9 /* U+0418 CYRILLIC CAPITAL LETTER I */ #define XK_Cyrillic_SHORTI 0x06ea /* U+0419 CYRILLIC CAPITAL LETTER SHORT I */ #define XK_Cyrillic_KA 0x06eb /* U+041A CYRILLIC CAPITAL LETTER KA */ #define XK_Cyrillic_EL 0x06ec /* U+041B CYRILLIC CAPITAL LETTER EL */ #define XK_Cyrillic_EM 0x06ed /* U+041C CYRILLIC CAPITAL LETTER EM */ #define XK_Cyrillic_EN 0x06ee /* U+041D CYRILLIC CAPITAL LETTER EN */ #define XK_Cyrillic_O 0x06ef /* U+041E CYRILLIC CAPITAL LETTER O */ #define XK_Cyrillic_PE 0x06f0 /* U+041F CYRILLIC CAPITAL LETTER PE */ #define XK_Cyrillic_YA 0x06f1 /* U+042F CYRILLIC CAPITAL LETTER YA */ #define XK_Cyrillic_ER 0x06f2 /* U+0420 CYRILLIC CAPITAL LETTER ER */ #define XK_Cyrillic_ES 0x06f3 /* U+0421 CYRILLIC CAPITAL LETTER ES */ #define XK_Cyrillic_TE 0x06f4 /* U+0422 CYRILLIC CAPITAL LETTER TE */ #define XK_Cyrillic_U 0x06f5 /* U+0423 CYRILLIC CAPITAL LETTER U */ #define XK_Cyrillic_ZHE 0x06f6 /* U+0416 CYRILLIC CAPITAL LETTER ZHE */ #define XK_Cyrillic_VE 0x06f7 /* U+0412 CYRILLIC CAPITAL LETTER VE */ #define XK_Cyrillic_SOFTSIGN 0x06f8 /* U+042C CYRILLIC CAPITAL LETTER SOFT SIGN */ #define XK_Cyrillic_YERU 0x06f9 /* U+042B CYRILLIC CAPITAL LETTER YERU */ #define XK_Cyrillic_ZE 0x06fa /* U+0417 CYRILLIC CAPITAL LETTER ZE */ #define XK_Cyrillic_SHA 0x06fb /* U+0428 CYRILLIC CAPITAL LETTER SHA */ #define XK_Cyrillic_E 0x06fc /* U+042D CYRILLIC CAPITAL LETTER E */ #define XK_Cyrillic_SHCHA 0x06fd /* U+0429 CYRILLIC CAPITAL LETTER SHCHA */ #define XK_Cyrillic_CHE 0x06fe /* U+0427 CYRILLIC CAPITAL LETTER CHE */ #define XK_Cyrillic_HARDSIGN 0x06ff /* U+042A CYRILLIC CAPITAL LETTER HARD SIGN */ #endif /* XK_CYRILLIC */ /* * Greek * (based on an early draft of, and not quite identical to, ISO/IEC 8859-7) * Byte 3 = 7 */ #ifdef XK_GREEK #define XK_Greek_ALPHAaccent 0x07a1 /* U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS */ #define XK_Greek_EPSILONaccent 0x07a2 /* U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS */ #define XK_Greek_ETAaccent 0x07a3 /* U+0389 GREEK CAPITAL LETTER ETA WITH TONOS */ #define XK_Greek_IOTAaccent 0x07a4 /* U+038A GREEK CAPITAL LETTER IOTA WITH TONOS */ #define XK_Greek_IOTAdieresis 0x07a5 /* U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA */ #define XK_Greek_IOTAdiaeresis 0x07a5 /* old typo */ #define XK_Greek_OMICRONaccent 0x07a7 /* U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS */ #define XK_Greek_UPSILONaccent 0x07a8 /* U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS */ #define XK_Greek_UPSILONdieresis 0x07a9 /* U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA */ #define XK_Greek_OMEGAaccent 0x07ab /* U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS */ #define XK_Greek_accentdieresis 0x07ae /* U+0385 GREEK DIALYTIKA TONOS */ #define XK_Greek_horizbar 0x07af /* U+2015 HORIZONTAL BAR */ #define XK_Greek_alphaaccent 0x07b1 /* U+03AC GREEK SMALL LETTER ALPHA WITH TONOS */ #define XK_Greek_epsilonaccent 0x07b2 /* U+03AD GREEK SMALL LETTER EPSILON WITH TONOS */ #define XK_Greek_etaaccent 0x07b3 /* U+03AE GREEK SMALL LETTER ETA WITH TONOS */ #define XK_Greek_iotaaccent 0x07b4 /* U+03AF GREEK SMALL LETTER IOTA WITH TONOS */ #define XK_Greek_iotadieresis 0x07b5 /* U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA */ #define XK_Greek_iotaaccentdieresis 0x07b6 /* U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS */ #define XK_Greek_omicronaccent 0x07b7 /* U+03CC GREEK SMALL LETTER OMICRON WITH TONOS */ #define XK_Greek_upsilonaccent 0x07b8 /* U+03CD GREEK SMALL LETTER UPSILON WITH TONOS */ #define XK_Greek_upsilondieresis 0x07b9 /* U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA */ #define XK_Greek_upsilonaccentdieresis 0x07ba /* U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS */ #define XK_Greek_omegaaccent 0x07bb /* U+03CE GREEK SMALL LETTER OMEGA WITH TONOS */ #define XK_Greek_ALPHA 0x07c1 /* U+0391 GREEK CAPITAL LETTER ALPHA */ #define XK_Greek_BETA 0x07c2 /* U+0392 GREEK CAPITAL LETTER BETA */ #define XK_Greek_GAMMA 0x07c3 /* U+0393 GREEK CAPITAL LETTER GAMMA */ #define XK_Greek_DELTA 0x07c4 /* U+0394 GREEK CAPITAL LETTER DELTA */ #define XK_Greek_EPSILON 0x07c5 /* U+0395 GREEK CAPITAL LETTER EPSILON */ #define XK_Greek_ZETA 0x07c6 /* U+0396 GREEK CAPITAL LETTER ZETA */ #define XK_Greek_ETA 0x07c7 /* U+0397 GREEK CAPITAL LETTER ETA */ #define XK_Greek_THETA 0x07c8 /* U+0398 GREEK CAPITAL LETTER THETA */ #define XK_Greek_IOTA 0x07c9 /* U+0399 GREEK CAPITAL LETTER IOTA */ #define XK_Greek_KAPPA 0x07ca /* U+039A GREEK CAPITAL LETTER KAPPA */ #define XK_Greek_LAMDA 0x07cb /* U+039B GREEK CAPITAL LETTER LAMDA */ #define XK_Greek_LAMBDA 0x07cb /* U+039B GREEK CAPITAL LETTER LAMDA */ #define XK_Greek_MU 0x07cc /* U+039C GREEK CAPITAL LETTER MU */ #define XK_Greek_NU 0x07cd /* U+039D GREEK CAPITAL LETTER NU */ #define XK_Greek_XI 0x07ce /* U+039E GREEK CAPITAL LETTER XI */ #define XK_Greek_OMICRON 0x07cf /* U+039F GREEK CAPITAL LETTER OMICRON */ #define XK_Greek_PI 0x07d0 /* U+03A0 GREEK CAPITAL LETTER PI */ #define XK_Greek_RHO 0x07d1 /* U+03A1 GREEK CAPITAL LETTER RHO */ #define XK_Greek_SIGMA 0x07d2 /* U+03A3 GREEK CAPITAL LETTER SIGMA */ #define XK_Greek_TAU 0x07d4 /* U+03A4 GREEK CAPITAL LETTER TAU */ #define XK_Greek_UPSILON 0x07d5 /* U+03A5 GREEK CAPITAL LETTER UPSILON */ #define XK_Greek_PHI 0x07d6 /* U+03A6 GREEK CAPITAL LETTER PHI */ #define XK_Greek_CHI 0x07d7 /* U+03A7 GREEK CAPITAL LETTER CHI */ #define XK_Greek_PSI 0x07d8 /* U+03A8 GREEK CAPITAL LETTER PSI */ #define XK_Greek_OMEGA 0x07d9 /* U+03A9 GREEK CAPITAL LETTER OMEGA */ #define XK_Greek_alpha 0x07e1 /* U+03B1 GREEK SMALL LETTER ALPHA */ #define XK_Greek_beta 0x07e2 /* U+03B2 GREEK SMALL LETTER BETA */ #define XK_Greek_gamma 0x07e3 /* U+03B3 GREEK SMALL LETTER GAMMA */ #define XK_Greek_delta 0x07e4 /* U+03B4 GREEK SMALL LETTER DELTA */ #define XK_Greek_epsilon 0x07e5 /* U+03B5 GREEK SMALL LETTER EPSILON */ #define XK_Greek_zeta 0x07e6 /* U+03B6 GREEK SMALL LETTER ZETA */ #define XK_Greek_eta 0x07e7 /* U+03B7 GREEK SMALL LETTER ETA */ #define XK_Greek_theta 0x07e8 /* U+03B8 GREEK SMALL LETTER THETA */ #define XK_Greek_iota 0x07e9 /* U+03B9 GREEK SMALL LETTER IOTA */ #define XK_Greek_kappa 0x07ea /* U+03BA GREEK SMALL LETTER KAPPA */ #define XK_Greek_lamda 0x07eb /* U+03BB GREEK SMALL LETTER LAMDA */ #define XK_Greek_lambda 0x07eb /* U+03BB GREEK SMALL LETTER LAMDA */ #define XK_Greek_mu 0x07ec /* U+03BC GREEK SMALL LETTER MU */ #define XK_Greek_nu 0x07ed /* U+03BD GREEK SMALL LETTER NU */ #define XK_Greek_xi 0x07ee /* U+03BE GREEK SMALL LETTER XI */ #define XK_Greek_omicron 0x07ef /* U+03BF GREEK SMALL LETTER OMICRON */ #define XK_Greek_pi 0x07f0 /* U+03C0 GREEK SMALL LETTER PI */ #define XK_Greek_rho 0x07f1 /* U+03C1 GREEK SMALL LETTER RHO */ #define XK_Greek_sigma 0x07f2 /* U+03C3 GREEK SMALL LETTER SIGMA */ #define XK_Greek_finalsmallsigma 0x07f3 /* U+03C2 GREEK SMALL LETTER FINAL SIGMA */ #define XK_Greek_tau 0x07f4 /* U+03C4 GREEK SMALL LETTER TAU */ #define XK_Greek_upsilon 0x07f5 /* U+03C5 GREEK SMALL LETTER UPSILON */ #define XK_Greek_phi 0x07f6 /* U+03C6 GREEK SMALL LETTER PHI */ #define XK_Greek_chi 0x07f7 /* U+03C7 GREEK SMALL LETTER CHI */ #define XK_Greek_psi 0x07f8 /* U+03C8 GREEK SMALL LETTER PSI */ #define XK_Greek_omega 0x07f9 /* U+03C9 GREEK SMALL LETTER OMEGA */ #define XK_Greek_switch 0xff7e /* Alias for mode_switch */ #endif /* XK_GREEK */ /* * Technical * (from the DEC VT330/VT420 Technical Character Set, http://vt100.net/charsets/technical.html) * Byte 3 = 8 */ #ifdef XK_TECHNICAL #define XK_leftradical 0x08a1 /* U+23B7 RADICAL SYMBOL BOTTOM */ #define XK_topleftradical 0x08a2 /*(U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT)*/ #define XK_horizconnector 0x08a3 /*(U+2500 BOX DRAWINGS LIGHT HORIZONTAL)*/ #define XK_topintegral 0x08a4 /* U+2320 TOP HALF INTEGRAL */ #define XK_botintegral 0x08a5 /* U+2321 BOTTOM HALF INTEGRAL */ #define XK_vertconnector 0x08a6 /*(U+2502 BOX DRAWINGS LIGHT VERTICAL)*/ #define XK_topleftsqbracket 0x08a7 /* U+23A1 LEFT SQUARE BRACKET UPPER CORNER */ #define XK_botleftsqbracket 0x08a8 /* U+23A3 LEFT SQUARE BRACKET LOWER CORNER */ #define XK_toprightsqbracket 0x08a9 /* U+23A4 RIGHT SQUARE BRACKET UPPER CORNER */ #define XK_botrightsqbracket 0x08aa /* U+23A6 RIGHT SQUARE BRACKET LOWER CORNER */ #define XK_topleftparens 0x08ab /* U+239B LEFT PARENTHESIS UPPER HOOK */ #define XK_botleftparens 0x08ac /* U+239D LEFT PARENTHESIS LOWER HOOK */ #define XK_toprightparens 0x08ad /* U+239E RIGHT PARENTHESIS UPPER HOOK */ #define XK_botrightparens 0x08ae /* U+23A0 RIGHT PARENTHESIS LOWER HOOK */ #define XK_leftmiddlecurlybrace 0x08af /* U+23A8 LEFT CURLY BRACKET MIDDLE PIECE */ #define XK_rightmiddlecurlybrace 0x08b0 /* U+23AC RIGHT CURLY BRACKET MIDDLE PIECE */ #define XK_topleftsummation 0x08b1 #define XK_botleftsummation 0x08b2 #define XK_topvertsummationconnector 0x08b3 #define XK_botvertsummationconnector 0x08b4 #define XK_toprightsummation 0x08b5 #define XK_botrightsummation 0x08b6 #define XK_rightmiddlesummation 0x08b7 #define XK_lessthanequal 0x08bc /* U+2264 LESS-THAN OR EQUAL TO */ #define XK_notequal 0x08bd /* U+2260 NOT EQUAL TO */ #define XK_greaterthanequal 0x08be /* U+2265 GREATER-THAN OR EQUAL TO */ #define XK_integral 0x08bf /* U+222B INTEGRAL */ #define XK_therefore 0x08c0 /* U+2234 THEREFORE */ #define XK_variation 0x08c1 /* U+221D PROPORTIONAL TO */ #define XK_infinity 0x08c2 /* U+221E INFINITY */ #define XK_nabla 0x08c5 /* U+2207 NABLA */ #define XK_approximate 0x08c8 /* U+223C TILDE OPERATOR */ #define XK_similarequal 0x08c9 /* U+2243 ASYMPTOTICALLY EQUAL TO */ #define XK_ifonlyif 0x08cd /* U+21D4 LEFT RIGHT DOUBLE ARROW */ #define XK_implies 0x08ce /* U+21D2 RIGHTWARDS DOUBLE ARROW */ #define XK_identical 0x08cf /* U+2261 IDENTICAL TO */ #define XK_radical 0x08d6 /* U+221A SQUARE ROOT */ #define XK_includedin 0x08da /* U+2282 SUBSET OF */ #define XK_includes 0x08db /* U+2283 SUPERSET OF */ #define XK_intersection 0x08dc /* U+2229 INTERSECTION */ #define XK_union 0x08dd /* U+222A UNION */ #define XK_logicaland 0x08de /* U+2227 LOGICAL AND */ #define XK_logicalor 0x08df /* U+2228 LOGICAL OR */ #define XK_partialderivative 0x08ef /* U+2202 PARTIAL DIFFERENTIAL */ #define XK_function 0x08f6 /* U+0192 LATIN SMALL LETTER F WITH HOOK */ #define XK_leftarrow 0x08fb /* U+2190 LEFTWARDS ARROW */ #define XK_uparrow 0x08fc /* U+2191 UPWARDS ARROW */ #define XK_rightarrow 0x08fd /* U+2192 RIGHTWARDS ARROW */ #define XK_downarrow 0x08fe /* U+2193 DOWNWARDS ARROW */ #endif /* XK_TECHNICAL */ /* * Special * (from the DEC VT100 Special Graphics Character Set) * Byte 3 = 9 */ #ifdef XK_SPECIAL #define XK_blank 0x09df #define XK_soliddiamond 0x09e0 /* U+25C6 BLACK DIAMOND */ #define XK_checkerboard 0x09e1 /* U+2592 MEDIUM SHADE */ #define XK_ht 0x09e2 /* U+2409 SYMBOL FOR HORIZONTAL TABULATION */ #define XK_ff 0x09e3 /* U+240C SYMBOL FOR FORM FEED */ #define XK_cr 0x09e4 /* U+240D SYMBOL FOR CARRIAGE RETURN */ #define XK_lf 0x09e5 /* U+240A SYMBOL FOR LINE FEED */ #define XK_nl 0x09e8 /* U+2424 SYMBOL FOR NEWLINE */ #define XK_vt 0x09e9 /* U+240B SYMBOL FOR VERTICAL TABULATION */ #define XK_lowrightcorner 0x09ea /* U+2518 BOX DRAWINGS LIGHT UP AND LEFT */ #define XK_uprightcorner 0x09eb /* U+2510 BOX DRAWINGS LIGHT DOWN AND LEFT */ #define XK_upleftcorner 0x09ec /* U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT */ #define XK_lowleftcorner 0x09ed /* U+2514 BOX DRAWINGS LIGHT UP AND RIGHT */ #define XK_crossinglines 0x09ee /* U+253C BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL */ #define XK_horizlinescan1 0x09ef /* U+23BA HORIZONTAL SCAN LINE-1 */ #define XK_horizlinescan3 0x09f0 /* U+23BB HORIZONTAL SCAN LINE-3 */ #define XK_horizlinescan5 0x09f1 /* U+2500 BOX DRAWINGS LIGHT HORIZONTAL */ #define XK_horizlinescan7 0x09f2 /* U+23BC HORIZONTAL SCAN LINE-7 */ #define XK_horizlinescan9 0x09f3 /* U+23BD HORIZONTAL SCAN LINE-9 */ #define XK_leftt 0x09f4 /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */ #define XK_rightt 0x09f5 /* U+2524 BOX DRAWINGS LIGHT VERTICAL AND LEFT */ #define XK_bott 0x09f6 /* U+2534 BOX DRAWINGS LIGHT UP AND HORIZONTAL */ #define XK_topt 0x09f7 /* U+252C BOX DRAWINGS LIGHT DOWN AND HORIZONTAL */ #define XK_vertbar 0x09f8 /* U+2502 BOX DRAWINGS LIGHT VERTICAL */ #endif /* XK_SPECIAL */ /* * Publishing * (these are probably from a long forgotten DEC Publishing * font that once shipped with DECwrite) * Byte 3 = 0x0a */ #ifdef XK_PUBLISHING #define XK_emspace 0x0aa1 /* U+2003 EM SPACE */ #define XK_enspace 0x0aa2 /* U+2002 EN SPACE */ #define XK_em3space 0x0aa3 /* U+2004 THREE-PER-EM SPACE */ #define XK_em4space 0x0aa4 /* U+2005 FOUR-PER-EM SPACE */ #define XK_digitspace 0x0aa5 /* U+2007 FIGURE SPACE */ #define XK_punctspace 0x0aa6 /* U+2008 PUNCTUATION SPACE */ #define XK_thinspace 0x0aa7 /* U+2009 THIN SPACE */ #define XK_hairspace 0x0aa8 /* U+200A HAIR SPACE */ #define XK_emdash 0x0aa9 /* U+2014 EM DASH */ #define XK_endash 0x0aaa /* U+2013 EN DASH */ #define XK_signifblank 0x0aac /*(U+2423 OPEN BOX)*/ #define XK_ellipsis 0x0aae /* U+2026 HORIZONTAL ELLIPSIS */ #define XK_doubbaselinedot 0x0aaf /* U+2025 TWO DOT LEADER */ #define XK_onethird 0x0ab0 /* U+2153 VULGAR FRACTION ONE THIRD */ #define XK_twothirds 0x0ab1 /* U+2154 VULGAR FRACTION TWO THIRDS */ #define XK_onefifth 0x0ab2 /* U+2155 VULGAR FRACTION ONE FIFTH */ #define XK_twofifths 0x0ab3 /* U+2156 VULGAR FRACTION TWO FIFTHS */ #define XK_threefifths 0x0ab4 /* U+2157 VULGAR FRACTION THREE FIFTHS */ #define XK_fourfifths 0x0ab5 /* U+2158 VULGAR FRACTION FOUR FIFTHS */ #define XK_onesixth 0x0ab6 /* U+2159 VULGAR FRACTION ONE SIXTH */ #define XK_fivesixths 0x0ab7 /* U+215A VULGAR FRACTION FIVE SIXTHS */ #define XK_careof 0x0ab8 /* U+2105 CARE OF */ #define XK_figdash 0x0abb /* U+2012 FIGURE DASH */ #define XK_leftanglebracket 0x0abc /*(U+2329 LEFT-POINTING ANGLE BRACKET)*/ #define XK_decimalpoint 0x0abd /*(U+002E FULL STOP)*/ #define XK_rightanglebracket 0x0abe /*(U+232A RIGHT-POINTING ANGLE BRACKET)*/ #define XK_marker 0x0abf #define XK_oneeighth 0x0ac3 /* U+215B VULGAR FRACTION ONE EIGHTH */ #define XK_threeeighths 0x0ac4 /* U+215C VULGAR FRACTION THREE EIGHTHS */ #define XK_fiveeighths 0x0ac5 /* U+215D VULGAR FRACTION FIVE EIGHTHS */ #define XK_seveneighths 0x0ac6 /* U+215E VULGAR FRACTION SEVEN EIGHTHS */ #define XK_trademark 0x0ac9 /* U+2122 TRADE MARK SIGN */ #define XK_signaturemark 0x0aca /*(U+2613 SALTIRE)*/ #define XK_trademarkincircle 0x0acb #define XK_leftopentriangle 0x0acc /*(U+25C1 WHITE LEFT-POINTING TRIANGLE)*/ #define XK_rightopentriangle 0x0acd /*(U+25B7 WHITE RIGHT-POINTING TRIANGLE)*/ #define XK_emopencircle 0x0ace /*(U+25CB WHITE CIRCLE)*/ #define XK_emopenrectangle 0x0acf /*(U+25AF WHITE VERTICAL RECTANGLE)*/ #define XK_leftsinglequotemark 0x0ad0 /* U+2018 LEFT SINGLE QUOTATION MARK */ #define XK_rightsinglequotemark 0x0ad1 /* U+2019 RIGHT SINGLE QUOTATION MARK */ #define XK_leftdoublequotemark 0x0ad2 /* U+201C LEFT DOUBLE QUOTATION MARK */ #define XK_rightdoublequotemark 0x0ad3 /* U+201D RIGHT DOUBLE QUOTATION MARK */ #define XK_prescription 0x0ad4 /* U+211E PRESCRIPTION TAKE */ #define XK_permille 0x0ad5 /* U+2030 PER MILLE SIGN */ #define XK_minutes 0x0ad6 /* U+2032 PRIME */ #define XK_seconds 0x0ad7 /* U+2033 DOUBLE PRIME */ #define XK_latincross 0x0ad9 /* U+271D LATIN CROSS */ #define XK_hexagram 0x0ada #define XK_filledrectbullet 0x0adb /*(U+25AC BLACK RECTANGLE)*/ #define XK_filledlefttribullet 0x0adc /*(U+25C0 BLACK LEFT-POINTING TRIANGLE)*/ #define XK_filledrighttribullet 0x0add /*(U+25B6 BLACK RIGHT-POINTING TRIANGLE)*/ #define XK_emfilledcircle 0x0ade /*(U+25CF BLACK CIRCLE)*/ #define XK_emfilledrect 0x0adf /*(U+25AE BLACK VERTICAL RECTANGLE)*/ #define XK_enopencircbullet 0x0ae0 /*(U+25E6 WHITE BULLET)*/ #define XK_enopensquarebullet 0x0ae1 /*(U+25AB WHITE SMALL SQUARE)*/ #define XK_openrectbullet 0x0ae2 /*(U+25AD WHITE RECTANGLE)*/ #define XK_opentribulletup 0x0ae3 /*(U+25B3 WHITE UP-POINTING TRIANGLE)*/ #define XK_opentribulletdown 0x0ae4 /*(U+25BD WHITE DOWN-POINTING TRIANGLE)*/ #define XK_openstar 0x0ae5 /*(U+2606 WHITE STAR)*/ #define XK_enfilledcircbullet 0x0ae6 /*(U+2022 BULLET)*/ #define XK_enfilledsqbullet 0x0ae7 /*(U+25AA BLACK SMALL SQUARE)*/ #define XK_filledtribulletup 0x0ae8 /*(U+25B2 BLACK UP-POINTING TRIANGLE)*/ #define XK_filledtribulletdown 0x0ae9 /*(U+25BC BLACK DOWN-POINTING TRIANGLE)*/ #define XK_leftpointer 0x0aea /*(U+261C WHITE LEFT POINTING INDEX)*/ #define XK_rightpointer 0x0aeb /*(U+261E WHITE RIGHT POINTING INDEX)*/ #define XK_club 0x0aec /* U+2663 BLACK CLUB SUIT */ #define XK_diamond 0x0aed /* U+2666 BLACK DIAMOND SUIT */ #define XK_heart 0x0aee /* U+2665 BLACK HEART SUIT */ #define XK_maltesecross 0x0af0 /* U+2720 MALTESE CROSS */ #define XK_dagger 0x0af1 /* U+2020 DAGGER */ #define XK_doubledagger 0x0af2 /* U+2021 DOUBLE DAGGER */ #define XK_checkmark 0x0af3 /* U+2713 CHECK MARK */ #define XK_ballotcross 0x0af4 /* U+2717 BALLOT X */ #define XK_musicalsharp 0x0af5 /* U+266F MUSIC SHARP SIGN */ #define XK_musicalflat 0x0af6 /* U+266D MUSIC FLAT SIGN */ #define XK_malesymbol 0x0af7 /* U+2642 MALE SIGN */ #define XK_femalesymbol 0x0af8 /* U+2640 FEMALE SIGN */ #define XK_telephone 0x0af9 /* U+260E BLACK TELEPHONE */ #define XK_telephonerecorder 0x0afa /* U+2315 TELEPHONE RECORDER */ #define XK_phonographcopyright 0x0afb /* U+2117 SOUND RECORDING COPYRIGHT */ #define XK_caret 0x0afc /* U+2038 CARET */ #define XK_singlelowquotemark 0x0afd /* U+201A SINGLE LOW-9 QUOTATION MARK */ #define XK_doublelowquotemark 0x0afe /* U+201E DOUBLE LOW-9 QUOTATION MARK */ #define XK_cursor 0x0aff #endif /* XK_PUBLISHING */ /* * APL * Byte 3 = 0x0b */ #ifdef XK_APL #define XK_leftcaret 0x0ba3 /*(U+003C LESS-THAN SIGN)*/ #define XK_rightcaret 0x0ba6 /*(U+003E GREATER-THAN SIGN)*/ #define XK_downcaret 0x0ba8 /*(U+2228 LOGICAL OR)*/ #define XK_upcaret 0x0ba9 /*(U+2227 LOGICAL AND)*/ #define XK_overbar 0x0bc0 /*(U+00AF MACRON)*/ #define XK_downtack 0x0bc2 /* U+22A4 DOWN TACK */ #define XK_upshoe 0x0bc3 /*(U+2229 INTERSECTION)*/ #define XK_downstile 0x0bc4 /* U+230A LEFT FLOOR */ #define XK_underbar 0x0bc6 /*(U+005F LOW LINE)*/ #define XK_jot 0x0bca /* U+2218 RING OPERATOR */ #define XK_quad 0x0bcc /* U+2395 APL FUNCTIONAL SYMBOL QUAD */ #define XK_uptack 0x0bce /* U+22A5 UP TACK */ #define XK_circle 0x0bcf /* U+25CB WHITE CIRCLE */ #define XK_upstile 0x0bd3 /* U+2308 LEFT CEILING */ #define XK_downshoe 0x0bd6 /*(U+222A UNION)*/ #define XK_rightshoe 0x0bd8 /*(U+2283 SUPERSET OF)*/ #define XK_leftshoe 0x0bda /*(U+2282 SUBSET OF)*/ #define XK_lefttack 0x0bdc /* U+22A3 LEFT TACK */ #define XK_righttack 0x0bfc /* U+22A2 RIGHT TACK */ #endif /* XK_APL */ /* * Hebrew * Byte 3 = 0x0c */ #ifdef XK_HEBREW #define XK_hebrew_doublelowline 0x0cdf /* U+2017 DOUBLE LOW LINE */ #define XK_hebrew_aleph 0x0ce0 /* U+05D0 HEBREW LETTER ALEF */ #define XK_hebrew_bet 0x0ce1 /* U+05D1 HEBREW LETTER BET */ #define XK_hebrew_beth 0x0ce1 /* deprecated */ #define XK_hebrew_gimel 0x0ce2 /* U+05D2 HEBREW LETTER GIMEL */ #define XK_hebrew_gimmel 0x0ce2 /* deprecated */ #define XK_hebrew_dalet 0x0ce3 /* U+05D3 HEBREW LETTER DALET */ #define XK_hebrew_daleth 0x0ce3 /* deprecated */ #define XK_hebrew_he 0x0ce4 /* U+05D4 HEBREW LETTER HE */ #define XK_hebrew_waw 0x0ce5 /* U+05D5 HEBREW LETTER VAV */ #define XK_hebrew_zain 0x0ce6 /* U+05D6 HEBREW LETTER ZAYIN */ #define XK_hebrew_zayin 0x0ce6 /* deprecated */ #define XK_hebrew_chet 0x0ce7 /* U+05D7 HEBREW LETTER HET */ #define XK_hebrew_het 0x0ce7 /* deprecated */ #define XK_hebrew_tet 0x0ce8 /* U+05D8 HEBREW LETTER TET */ #define XK_hebrew_teth 0x0ce8 /* deprecated */ #define XK_hebrew_yod 0x0ce9 /* U+05D9 HEBREW LETTER YOD */ #define XK_hebrew_finalkaph 0x0cea /* U+05DA HEBREW LETTER FINAL KAF */ #define XK_hebrew_kaph 0x0ceb /* U+05DB HEBREW LETTER KAF */ #define XK_hebrew_lamed 0x0cec /* U+05DC HEBREW LETTER LAMED */ #define XK_hebrew_finalmem 0x0ced /* U+05DD HEBREW LETTER FINAL MEM */ #define XK_hebrew_mem 0x0cee /* U+05DE HEBREW LETTER MEM */ #define XK_hebrew_finalnun 0x0cef /* U+05DF HEBREW LETTER FINAL NUN */ #define XK_hebrew_nun 0x0cf0 /* U+05E0 HEBREW LETTER NUN */ #define XK_hebrew_samech 0x0cf1 /* U+05E1 HEBREW LETTER SAMEKH */ #define XK_hebrew_samekh 0x0cf1 /* deprecated */ #define XK_hebrew_ayin 0x0cf2 /* U+05E2 HEBREW LETTER AYIN */ #define XK_hebrew_finalpe 0x0cf3 /* U+05E3 HEBREW LETTER FINAL PE */ #define XK_hebrew_pe 0x0cf4 /* U+05E4 HEBREW LETTER PE */ #define XK_hebrew_finalzade 0x0cf5 /* U+05E5 HEBREW LETTER FINAL TSADI */ #define XK_hebrew_finalzadi 0x0cf5 /* deprecated */ #define XK_hebrew_zade 0x0cf6 /* U+05E6 HEBREW LETTER TSADI */ #define XK_hebrew_zadi 0x0cf6 /* deprecated */ #define XK_hebrew_qoph 0x0cf7 /* U+05E7 HEBREW LETTER QOF */ #define XK_hebrew_kuf 0x0cf7 /* deprecated */ #define XK_hebrew_resh 0x0cf8 /* U+05E8 HEBREW LETTER RESH */ #define XK_hebrew_shin 0x0cf9 /* U+05E9 HEBREW LETTER SHIN */ #define XK_hebrew_taw 0x0cfa /* U+05EA HEBREW LETTER TAV */ #define XK_hebrew_taf 0x0cfa /* deprecated */ #define XK_Hebrew_switch 0xff7e /* Alias for mode_switch */ #endif /* XK_HEBREW */ /* * Thai * Byte 3 = 0x0d */ #ifdef XK_THAI #define XK_Thai_kokai 0x0da1 /* U+0E01 THAI CHARACTER KO KAI */ #define XK_Thai_khokhai 0x0da2 /* U+0E02 THAI CHARACTER KHO KHAI */ #define XK_Thai_khokhuat 0x0da3 /* U+0E03 THAI CHARACTER KHO KHUAT */ #define XK_Thai_khokhwai 0x0da4 /* U+0E04 THAI CHARACTER KHO KHWAI */ #define XK_Thai_khokhon 0x0da5 /* U+0E05 THAI CHARACTER KHO KHON */ #define XK_Thai_khorakhang 0x0da6 /* U+0E06 THAI CHARACTER KHO RAKHANG */ #define XK_Thai_ngongu 0x0da7 /* U+0E07 THAI CHARACTER NGO NGU */ #define XK_Thai_chochan 0x0da8 /* U+0E08 THAI CHARACTER CHO CHAN */ #define XK_Thai_choching 0x0da9 /* U+0E09 THAI CHARACTER CHO CHING */ #define XK_Thai_chochang 0x0daa /* U+0E0A THAI CHARACTER CHO CHANG */ #define XK_Thai_soso 0x0dab /* U+0E0B THAI CHARACTER SO SO */ #define XK_Thai_chochoe 0x0dac /* U+0E0C THAI CHARACTER CHO CHOE */ #define XK_Thai_yoying 0x0dad /* U+0E0D THAI CHARACTER YO YING */ #define XK_Thai_dochada 0x0dae /* U+0E0E THAI CHARACTER DO CHADA */ #define XK_Thai_topatak 0x0daf /* U+0E0F THAI CHARACTER TO PATAK */ #define XK_Thai_thothan 0x0db0 /* U+0E10 THAI CHARACTER THO THAN */ #define XK_Thai_thonangmontho 0x0db1 /* U+0E11 THAI CHARACTER THO NANGMONTHO */ #define XK_Thai_thophuthao 0x0db2 /* U+0E12 THAI CHARACTER THO PHUTHAO */ #define XK_Thai_nonen 0x0db3 /* U+0E13 THAI CHARACTER NO NEN */ #define XK_Thai_dodek 0x0db4 /* U+0E14 THAI CHARACTER DO DEK */ #define XK_Thai_totao 0x0db5 /* U+0E15 THAI CHARACTER TO TAO */ #define XK_Thai_thothung 0x0db6 /* U+0E16 THAI CHARACTER THO THUNG */ #define XK_Thai_thothahan 0x0db7 /* U+0E17 THAI CHARACTER THO THAHAN */ #define XK_Thai_thothong 0x0db8 /* U+0E18 THAI CHARACTER THO THONG */ #define XK_Thai_nonu 0x0db9 /* U+0E19 THAI CHARACTER NO NU */ #define XK_Thai_bobaimai 0x0dba /* U+0E1A THAI CHARACTER BO BAIMAI */ #define XK_Thai_popla 0x0dbb /* U+0E1B THAI CHARACTER PO PLA */ #define XK_Thai_phophung 0x0dbc /* U+0E1C THAI CHARACTER PHO PHUNG */ #define XK_Thai_fofa 0x0dbd /* U+0E1D THAI CHARACTER FO FA */ #define XK_Thai_phophan 0x0dbe /* U+0E1E THAI CHARACTER PHO PHAN */ #define XK_Thai_fofan 0x0dbf /* U+0E1F THAI CHARACTER FO FAN */ #define XK_Thai_phosamphao 0x0dc0 /* U+0E20 THAI CHARACTER PHO SAMPHAO */ #define XK_Thai_moma 0x0dc1 /* U+0E21 THAI CHARACTER MO MA */ #define XK_Thai_yoyak 0x0dc2 /* U+0E22 THAI CHARACTER YO YAK */ #define XK_Thai_rorua 0x0dc3 /* U+0E23 THAI CHARACTER RO RUA */ #define XK_Thai_ru 0x0dc4 /* U+0E24 THAI CHARACTER RU */ #define XK_Thai_loling 0x0dc5 /* U+0E25 THAI CHARACTER LO LING */ #define XK_Thai_lu 0x0dc6 /* U+0E26 THAI CHARACTER LU */ #define XK_Thai_wowaen 0x0dc7 /* U+0E27 THAI CHARACTER WO WAEN */ #define XK_Thai_sosala 0x0dc8 /* U+0E28 THAI CHARACTER SO SALA */ #define XK_Thai_sorusi 0x0dc9 /* U+0E29 THAI CHARACTER SO RUSI */ #define XK_Thai_sosua 0x0dca /* U+0E2A THAI CHARACTER SO SUA */ #define XK_Thai_hohip 0x0dcb /* U+0E2B THAI CHARACTER HO HIP */ #define XK_Thai_lochula 0x0dcc /* U+0E2C THAI CHARACTER LO CHULA */ #define XK_Thai_oang 0x0dcd /* U+0E2D THAI CHARACTER O ANG */ #define XK_Thai_honokhuk 0x0dce /* U+0E2E THAI CHARACTER HO NOKHUK */ #define XK_Thai_paiyannoi 0x0dcf /* U+0E2F THAI CHARACTER PAIYANNOI */ #define XK_Thai_saraa 0x0dd0 /* U+0E30 THAI CHARACTER SARA A */ #define XK_Thai_maihanakat 0x0dd1 /* U+0E31 THAI CHARACTER MAI HAN-AKAT */ #define XK_Thai_saraaa 0x0dd2 /* U+0E32 THAI CHARACTER SARA AA */ #define XK_Thai_saraam 0x0dd3 /* U+0E33 THAI CHARACTER SARA AM */ #define XK_Thai_sarai 0x0dd4 /* U+0E34 THAI CHARACTER SARA I */ #define XK_Thai_saraii 0x0dd5 /* U+0E35 THAI CHARACTER SARA II */ #define XK_Thai_saraue 0x0dd6 /* U+0E36 THAI CHARACTER SARA UE */ #define XK_Thai_sarauee 0x0dd7 /* U+0E37 THAI CHARACTER SARA UEE */ #define XK_Thai_sarau 0x0dd8 /* U+0E38 THAI CHARACTER SARA U */ #define XK_Thai_sarauu 0x0dd9 /* U+0E39 THAI CHARACTER SARA UU */ #define XK_Thai_phinthu 0x0dda /* U+0E3A THAI CHARACTER PHINTHU */ #define XK_Thai_maihanakat_maitho 0x0dde #define XK_Thai_baht 0x0ddf /* U+0E3F THAI CURRENCY SYMBOL BAHT */ #define XK_Thai_sarae 0x0de0 /* U+0E40 THAI CHARACTER SARA E */ #define XK_Thai_saraae 0x0de1 /* U+0E41 THAI CHARACTER SARA AE */ #define XK_Thai_sarao 0x0de2 /* U+0E42 THAI CHARACTER SARA O */ #define XK_Thai_saraaimaimuan 0x0de3 /* U+0E43 THAI CHARACTER SARA AI MAIMUAN */ #define XK_Thai_saraaimaimalai 0x0de4 /* U+0E44 THAI CHARACTER SARA AI MAIMALAI */ #define XK_Thai_lakkhangyao 0x0de5 /* U+0E45 THAI CHARACTER LAKKHANGYAO */ #define XK_Thai_maiyamok 0x0de6 /* U+0E46 THAI CHARACTER MAIYAMOK */ #define XK_Thai_maitaikhu 0x0de7 /* U+0E47 THAI CHARACTER MAITAIKHU */ #define XK_Thai_maiek 0x0de8 /* U+0E48 THAI CHARACTER MAI EK */ #define XK_Thai_maitho 0x0de9 /* U+0E49 THAI CHARACTER MAI THO */ #define XK_Thai_maitri 0x0dea /* U+0E4A THAI CHARACTER MAI TRI */ #define XK_Thai_maichattawa 0x0deb /* U+0E4B THAI CHARACTER MAI CHATTAWA */ #define XK_Thai_thanthakhat 0x0dec /* U+0E4C THAI CHARACTER THANTHAKHAT */ #define XK_Thai_nikhahit 0x0ded /* U+0E4D THAI CHARACTER NIKHAHIT */ #define XK_Thai_leksun 0x0df0 /* U+0E50 THAI DIGIT ZERO */ #define XK_Thai_leknung 0x0df1 /* U+0E51 THAI DIGIT ONE */ #define XK_Thai_leksong 0x0df2 /* U+0E52 THAI DIGIT TWO */ #define XK_Thai_leksam 0x0df3 /* U+0E53 THAI DIGIT THREE */ #define XK_Thai_leksi 0x0df4 /* U+0E54 THAI DIGIT FOUR */ #define XK_Thai_lekha 0x0df5 /* U+0E55 THAI DIGIT FIVE */ #define XK_Thai_lekhok 0x0df6 /* U+0E56 THAI DIGIT SIX */ #define XK_Thai_lekchet 0x0df7 /* U+0E57 THAI DIGIT SEVEN */ #define XK_Thai_lekpaet 0x0df8 /* U+0E58 THAI DIGIT EIGHT */ #define XK_Thai_lekkao 0x0df9 /* U+0E59 THAI DIGIT NINE */ #endif /* XK_THAI */ /* * Korean * Byte 3 = 0x0e */ #ifdef XK_KOREAN #define XK_Hangul 0xff31 /* Hangul start/stop(toggle) */ #define XK_Hangul_Start 0xff32 /* Hangul start */ #define XK_Hangul_End 0xff33 /* Hangul end, English start */ #define XK_Hangul_Hanja 0xff34 /* Start Hangul->Hanja Conversion */ #define XK_Hangul_Jamo 0xff35 /* Hangul Jamo mode */ #define XK_Hangul_Romaja 0xff36 /* Hangul Romaja mode */ #define XK_Hangul_Codeinput 0xff37 /* Hangul code input mode */ #define XK_Hangul_Jeonja 0xff38 /* Jeonja mode */ #define XK_Hangul_Banja 0xff39 /* Banja mode */ #define XK_Hangul_PreHanja 0xff3a /* Pre Hanja conversion */ #define XK_Hangul_PostHanja 0xff3b /* Post Hanja conversion */ #define XK_Hangul_SingleCandidate 0xff3c /* Single candidate */ #define XK_Hangul_MultipleCandidate 0xff3d /* Multiple candidate */ #define XK_Hangul_PreviousCandidate 0xff3e /* Previous candidate */ #define XK_Hangul_Special 0xff3f /* Special symbols */ #define XK_Hangul_switch 0xff7e /* Alias for mode_switch */ /* Hangul Consonant Characters */ #define XK_Hangul_Kiyeog 0x0ea1 /* U+3131 HANGUL LETTER KIYEOK */ #define XK_Hangul_SsangKiyeog 0x0ea2 /* U+3132 HANGUL LETTER SSANGKIYEOK */ #define XK_Hangul_KiyeogSios 0x0ea3 /* U+3133 HANGUL LETTER KIYEOK-SIOS */ #define XK_Hangul_Nieun 0x0ea4 /* U+3134 HANGUL LETTER NIEUN */ #define XK_Hangul_NieunJieuj 0x0ea5 /* U+3135 HANGUL LETTER NIEUN-CIEUC */ #define XK_Hangul_NieunHieuh 0x0ea6 /* U+3136 HANGUL LETTER NIEUN-HIEUH */ #define XK_Hangul_Dikeud 0x0ea7 /* U+3137 HANGUL LETTER TIKEUT */ #define XK_Hangul_SsangDikeud 0x0ea8 /* U+3138 HANGUL LETTER SSANGTIKEUT */ #define XK_Hangul_Rieul 0x0ea9 /* U+3139 HANGUL LETTER RIEUL */ #define XK_Hangul_RieulKiyeog 0x0eaa /* U+313A HANGUL LETTER RIEUL-KIYEOK */ #define XK_Hangul_RieulMieum 0x0eab /* U+313B HANGUL LETTER RIEUL-MIEUM */ #define XK_Hangul_RieulPieub 0x0eac /* U+313C HANGUL LETTER RIEUL-PIEUP */ #define XK_Hangul_RieulSios 0x0ead /* U+313D HANGUL LETTER RIEUL-SIOS */ #define XK_Hangul_RieulTieut 0x0eae /* U+313E HANGUL LETTER RIEUL-THIEUTH */ #define XK_Hangul_RieulPhieuf 0x0eaf /* U+313F HANGUL LETTER RIEUL-PHIEUPH */ #define XK_Hangul_RieulHieuh 0x0eb0 /* U+3140 HANGUL LETTER RIEUL-HIEUH */ #define XK_Hangul_Mieum 0x0eb1 /* U+3141 HANGUL LETTER MIEUM */ #define XK_Hangul_Pieub 0x0eb2 /* U+3142 HANGUL LETTER PIEUP */ #define XK_Hangul_SsangPieub 0x0eb3 /* U+3143 HANGUL LETTER SSANGPIEUP */ #define XK_Hangul_PieubSios 0x0eb4 /* U+3144 HANGUL LETTER PIEUP-SIOS */ #define XK_Hangul_Sios 0x0eb5 /* U+3145 HANGUL LETTER SIOS */ #define XK_Hangul_SsangSios 0x0eb6 /* U+3146 HANGUL LETTER SSANGSIOS */ #define XK_Hangul_Ieung 0x0eb7 /* U+3147 HANGUL LETTER IEUNG */ #define XK_Hangul_Jieuj 0x0eb8 /* U+3148 HANGUL LETTER CIEUC */ #define XK_Hangul_SsangJieuj 0x0eb9 /* U+3149 HANGUL LETTER SSANGCIEUC */ #define XK_Hangul_Cieuc 0x0eba /* U+314A HANGUL LETTER CHIEUCH */ #define XK_Hangul_Khieuq 0x0ebb /* U+314B HANGUL LETTER KHIEUKH */ #define XK_Hangul_Tieut 0x0ebc /* U+314C HANGUL LETTER THIEUTH */ #define XK_Hangul_Phieuf 0x0ebd /* U+314D HANGUL LETTER PHIEUPH */ #define XK_Hangul_Hieuh 0x0ebe /* U+314E HANGUL LETTER HIEUH */ /* Hangul Vowel Characters */ #define XK_Hangul_A 0x0ebf /* U+314F HANGUL LETTER A */ #define XK_Hangul_AE 0x0ec0 /* U+3150 HANGUL LETTER AE */ #define XK_Hangul_YA 0x0ec1 /* U+3151 HANGUL LETTER YA */ #define XK_Hangul_YAE 0x0ec2 /* U+3152 HANGUL LETTER YAE */ #define XK_Hangul_EO 0x0ec3 /* U+3153 HANGUL LETTER EO */ #define XK_Hangul_E 0x0ec4 /* U+3154 HANGUL LETTER E */ #define XK_Hangul_YEO 0x0ec5 /* U+3155 HANGUL LETTER YEO */ #define XK_Hangul_YE 0x0ec6 /* U+3156 HANGUL LETTER YE */ #define XK_Hangul_O 0x0ec7 /* U+3157 HANGUL LETTER O */ #define XK_Hangul_WA 0x0ec8 /* U+3158 HANGUL LETTER WA */ #define XK_Hangul_WAE 0x0ec9 /* U+3159 HANGUL LETTER WAE */ #define XK_Hangul_OE 0x0eca /* U+315A HANGUL LETTER OE */ #define XK_Hangul_YO 0x0ecb /* U+315B HANGUL LETTER YO */ #define XK_Hangul_U 0x0ecc /* U+315C HANGUL LETTER U */ #define XK_Hangul_WEO 0x0ecd /* U+315D HANGUL LETTER WEO */ #define XK_Hangul_WE 0x0ece /* U+315E HANGUL LETTER WE */ #define XK_Hangul_WI 0x0ecf /* U+315F HANGUL LETTER WI */ #define XK_Hangul_YU 0x0ed0 /* U+3160 HANGUL LETTER YU */ #define XK_Hangul_EU 0x0ed1 /* U+3161 HANGUL LETTER EU */ #define XK_Hangul_YI 0x0ed2 /* U+3162 HANGUL LETTER YI */ #define XK_Hangul_I 0x0ed3 /* U+3163 HANGUL LETTER I */ /* Hangul syllable-final (JongSeong) Characters */ #define XK_Hangul_J_Kiyeog 0x0ed4 /* U+11A8 HANGUL JONGSEONG KIYEOK */ #define XK_Hangul_J_SsangKiyeog 0x0ed5 /* U+11A9 HANGUL JONGSEONG SSANGKIYEOK */ #define XK_Hangul_J_KiyeogSios 0x0ed6 /* U+11AA HANGUL JONGSEONG KIYEOK-SIOS */ #define XK_Hangul_J_Nieun 0x0ed7 /* U+11AB HANGUL JONGSEONG NIEUN */ #define XK_Hangul_J_NieunJieuj 0x0ed8 /* U+11AC HANGUL JONGSEONG NIEUN-CIEUC */ #define XK_Hangul_J_NieunHieuh 0x0ed9 /* U+11AD HANGUL JONGSEONG NIEUN-HIEUH */ #define XK_Hangul_J_Dikeud 0x0eda /* U+11AE HANGUL JONGSEONG TIKEUT */ #define XK_Hangul_J_Rieul 0x0edb /* U+11AF HANGUL JONGSEONG RIEUL */ #define XK_Hangul_J_RieulKiyeog 0x0edc /* U+11B0 HANGUL JONGSEONG RIEUL-KIYEOK */ #define XK_Hangul_J_RieulMieum 0x0edd /* U+11B1 HANGUL JONGSEONG RIEUL-MIEUM */ #define XK_Hangul_J_RieulPieub 0x0ede /* U+11B2 HANGUL JONGSEONG RIEUL-PIEUP */ #define XK_Hangul_J_RieulSios 0x0edf /* U+11B3 HANGUL JONGSEONG RIEUL-SIOS */ #define XK_Hangul_J_RieulTieut 0x0ee0 /* U+11B4 HANGUL JONGSEONG RIEUL-THIEUTH */ #define XK_Hangul_J_RieulPhieuf 0x0ee1 /* U+11B5 HANGUL JONGSEONG RIEUL-PHIEUPH */ #define XK_Hangul_J_RieulHieuh 0x0ee2 /* U+11B6 HANGUL JONGSEONG RIEUL-HIEUH */ #define XK_Hangul_J_Mieum 0x0ee3 /* U+11B7 HANGUL JONGSEONG MIEUM */ #define XK_Hangul_J_Pieub 0x0ee4 /* U+11B8 HANGUL JONGSEONG PIEUP */ #define XK_Hangul_J_PieubSios 0x0ee5 /* U+11B9 HANGUL JONGSEONG PIEUP-SIOS */ #define XK_Hangul_J_Sios 0x0ee6 /* U+11BA HANGUL JONGSEONG SIOS */ #define XK_Hangul_J_SsangSios 0x0ee7 /* U+11BB HANGUL JONGSEONG SSANGSIOS */ #define XK_Hangul_J_Ieung 0x0ee8 /* U+11BC HANGUL JONGSEONG IEUNG */ #define XK_Hangul_J_Jieuj 0x0ee9 /* U+11BD HANGUL JONGSEONG CIEUC */ #define XK_Hangul_J_Cieuc 0x0eea /* U+11BE HANGUL JONGSEONG CHIEUCH */ #define XK_Hangul_J_Khieuq 0x0eeb /* U+11BF HANGUL JONGSEONG KHIEUKH */ #define XK_Hangul_J_Tieut 0x0eec /* U+11C0 HANGUL JONGSEONG THIEUTH */ #define XK_Hangul_J_Phieuf 0x0eed /* U+11C1 HANGUL JONGSEONG PHIEUPH */ #define XK_Hangul_J_Hieuh 0x0eee /* U+11C2 HANGUL JONGSEONG HIEUH */ /* Ancient Hangul Consonant Characters */ #define XK_Hangul_RieulYeorinHieuh 0x0eef /* U+316D HANGUL LETTER RIEUL-YEORINHIEUH */ #define XK_Hangul_SunkyeongeumMieum 0x0ef0 /* U+3171 HANGUL LETTER KAPYEOUNMIEUM */ #define XK_Hangul_SunkyeongeumPieub 0x0ef1 /* U+3178 HANGUL LETTER KAPYEOUNPIEUP */ #define XK_Hangul_PanSios 0x0ef2 /* U+317F HANGUL LETTER PANSIOS */ #define XK_Hangul_KkogjiDalrinIeung 0x0ef3 /* U+3181 HANGUL LETTER YESIEUNG */ #define XK_Hangul_SunkyeongeumPhieuf 0x0ef4 /* U+3184 HANGUL LETTER KAPYEOUNPHIEUPH */ #define XK_Hangul_YeorinHieuh 0x0ef5 /* U+3186 HANGUL LETTER YEORINHIEUH */ /* Ancient Hangul Vowel Characters */ #define XK_Hangul_AraeA 0x0ef6 /* U+318D HANGUL LETTER ARAEA */ #define XK_Hangul_AraeAE 0x0ef7 /* U+318E HANGUL LETTER ARAEAE */ /* Ancient Hangul syllable-final (JongSeong) Characters */ #define XK_Hangul_J_PanSios 0x0ef8 /* U+11EB HANGUL JONGSEONG PANSIOS */ #define XK_Hangul_J_KkogjiDalrinIeung 0x0ef9 /* U+11F0 HANGUL JONGSEONG YESIEUNG */ #define XK_Hangul_J_YeorinHieuh 0x0efa /* U+11F9 HANGUL JONGSEONG YEORINHIEUH */ /* Korean currency symbol */ #define XK_Korean_Won 0x0eff /*(U+20A9 WON SIGN)*/ #endif /* XK_KOREAN */ /* * Armenian */ #ifdef XK_ARMENIAN #define XK_Armenian_ligature_ew 0x1000587 /* U+0587 ARMENIAN SMALL LIGATURE ECH YIWN */ #define XK_Armenian_full_stop 0x1000589 /* U+0589 ARMENIAN FULL STOP */ #define XK_Armenian_verjaket 0x1000589 /* U+0589 ARMENIAN FULL STOP */ #define XK_Armenian_separation_mark 0x100055d /* U+055D ARMENIAN COMMA */ #define XK_Armenian_but 0x100055d /* U+055D ARMENIAN COMMA */ #define XK_Armenian_hyphen 0x100058a /* U+058A ARMENIAN HYPHEN */ #define XK_Armenian_yentamna 0x100058a /* U+058A ARMENIAN HYPHEN */ #define XK_Armenian_exclam 0x100055c /* U+055C ARMENIAN EXCLAMATION MARK */ #define XK_Armenian_amanak 0x100055c /* U+055C ARMENIAN EXCLAMATION MARK */ #define XK_Armenian_accent 0x100055b /* U+055B ARMENIAN EMPHASIS MARK */ #define XK_Armenian_shesht 0x100055b /* U+055B ARMENIAN EMPHASIS MARK */ #define XK_Armenian_question 0x100055e /* U+055E ARMENIAN QUESTION MARK */ #define XK_Armenian_paruyk 0x100055e /* U+055E ARMENIAN QUESTION MARK */ #define XK_Armenian_AYB 0x1000531 /* U+0531 ARMENIAN CAPITAL LETTER AYB */ #define XK_Armenian_ayb 0x1000561 /* U+0561 ARMENIAN SMALL LETTER AYB */ #define XK_Armenian_BEN 0x1000532 /* U+0532 ARMENIAN CAPITAL LETTER BEN */ #define XK_Armenian_ben 0x1000562 /* U+0562 ARMENIAN SMALL LETTER BEN */ #define XK_Armenian_GIM 0x1000533 /* U+0533 ARMENIAN CAPITAL LETTER GIM */ #define XK_Armenian_gim 0x1000563 /* U+0563 ARMENIAN SMALL LETTER GIM */ #define XK_Armenian_DA 0x1000534 /* U+0534 ARMENIAN CAPITAL LETTER DA */ #define XK_Armenian_da 0x1000564 /* U+0564 ARMENIAN SMALL LETTER DA */ #define XK_Armenian_YECH 0x1000535 /* U+0535 ARMENIAN CAPITAL LETTER ECH */ #define XK_Armenian_yech 0x1000565 /* U+0565 ARMENIAN SMALL LETTER ECH */ #define XK_Armenian_ZA 0x1000536 /* U+0536 ARMENIAN CAPITAL LETTER ZA */ #define XK_Armenian_za 0x1000566 /* U+0566 ARMENIAN SMALL LETTER ZA */ #define XK_Armenian_E 0x1000537 /* U+0537 ARMENIAN CAPITAL LETTER EH */ #define XK_Armenian_e 0x1000567 /* U+0567 ARMENIAN SMALL LETTER EH */ #define XK_Armenian_AT 0x1000538 /* U+0538 ARMENIAN CAPITAL LETTER ET */ #define XK_Armenian_at 0x1000568 /* U+0568 ARMENIAN SMALL LETTER ET */ #define XK_Armenian_TO 0x1000539 /* U+0539 ARMENIAN CAPITAL LETTER TO */ #define XK_Armenian_to 0x1000569 /* U+0569 ARMENIAN SMALL LETTER TO */ #define XK_Armenian_ZHE 0x100053a /* U+053A ARMENIAN CAPITAL LETTER ZHE */ #define XK_Armenian_zhe 0x100056a /* U+056A ARMENIAN SMALL LETTER ZHE */ #define XK_Armenian_INI 0x100053b /* U+053B ARMENIAN CAPITAL LETTER INI */ #define XK_Armenian_ini 0x100056b /* U+056B ARMENIAN SMALL LETTER INI */ #define XK_Armenian_LYUN 0x100053c /* U+053C ARMENIAN CAPITAL LETTER LIWN */ #define XK_Armenian_lyun 0x100056c /* U+056C ARMENIAN SMALL LETTER LIWN */ #define XK_Armenian_KHE 0x100053d /* U+053D ARMENIAN CAPITAL LETTER XEH */ #define XK_Armenian_khe 0x100056d /* U+056D ARMENIAN SMALL LETTER XEH */ #define XK_Armenian_TSA 0x100053e /* U+053E ARMENIAN CAPITAL LETTER CA */ #define XK_Armenian_tsa 0x100056e /* U+056E ARMENIAN SMALL LETTER CA */ #define XK_Armenian_KEN 0x100053f /* U+053F ARMENIAN CAPITAL LETTER KEN */ #define XK_Armenian_ken 0x100056f /* U+056F ARMENIAN SMALL LETTER KEN */ #define XK_Armenian_HO 0x1000540 /* U+0540 ARMENIAN CAPITAL LETTER HO */ #define XK_Armenian_ho 0x1000570 /* U+0570 ARMENIAN SMALL LETTER HO */ #define XK_Armenian_DZA 0x1000541 /* U+0541 ARMENIAN CAPITAL LETTER JA */ #define XK_Armenian_dza 0x1000571 /* U+0571 ARMENIAN SMALL LETTER JA */ #define XK_Armenian_GHAT 0x1000542 /* U+0542 ARMENIAN CAPITAL LETTER GHAD */ #define XK_Armenian_ghat 0x1000572 /* U+0572 ARMENIAN SMALL LETTER GHAD */ #define XK_Armenian_TCHE 0x1000543 /* U+0543 ARMENIAN CAPITAL LETTER CHEH */ #define XK_Armenian_tche 0x1000573 /* U+0573 ARMENIAN SMALL LETTER CHEH */ #define XK_Armenian_MEN 0x1000544 /* U+0544 ARMENIAN CAPITAL LETTER MEN */ #define XK_Armenian_men 0x1000574 /* U+0574 ARMENIAN SMALL LETTER MEN */ #define XK_Armenian_HI 0x1000545 /* U+0545 ARMENIAN CAPITAL LETTER YI */ #define XK_Armenian_hi 0x1000575 /* U+0575 ARMENIAN SMALL LETTER YI */ #define XK_Armenian_NU 0x1000546 /* U+0546 ARMENIAN CAPITAL LETTER NOW */ #define XK_Armenian_nu 0x1000576 /* U+0576 ARMENIAN SMALL LETTER NOW */ #define XK_Armenian_SHA 0x1000547 /* U+0547 ARMENIAN CAPITAL LETTER SHA */ #define XK_Armenian_sha 0x1000577 /* U+0577 ARMENIAN SMALL LETTER SHA */ #define XK_Armenian_VO 0x1000548 /* U+0548 ARMENIAN CAPITAL LETTER VO */ #define XK_Armenian_vo 0x1000578 /* U+0578 ARMENIAN SMALL LETTER VO */ #define XK_Armenian_CHA 0x1000549 /* U+0549 ARMENIAN CAPITAL LETTER CHA */ #define XK_Armenian_cha 0x1000579 /* U+0579 ARMENIAN SMALL LETTER CHA */ #define XK_Armenian_PE 0x100054a /* U+054A ARMENIAN CAPITAL LETTER PEH */ #define XK_Armenian_pe 0x100057a /* U+057A ARMENIAN SMALL LETTER PEH */ #define XK_Armenian_JE 0x100054b /* U+054B ARMENIAN CAPITAL LETTER JHEH */ #define XK_Armenian_je 0x100057b /* U+057B ARMENIAN SMALL LETTER JHEH */ #define XK_Armenian_RA 0x100054c /* U+054C ARMENIAN CAPITAL LETTER RA */ #define XK_Armenian_ra 0x100057c /* U+057C ARMENIAN SMALL LETTER RA */ #define XK_Armenian_SE 0x100054d /* U+054D ARMENIAN CAPITAL LETTER SEH */ #define XK_Armenian_se 0x100057d /* U+057D ARMENIAN SMALL LETTER SEH */ #define XK_Armenian_VEV 0x100054e /* U+054E ARMENIAN CAPITAL LETTER VEW */ #define XK_Armenian_vev 0x100057e /* U+057E ARMENIAN SMALL LETTER VEW */ #define XK_Armenian_TYUN 0x100054f /* U+054F ARMENIAN CAPITAL LETTER TIWN */ #define XK_Armenian_tyun 0x100057f /* U+057F ARMENIAN SMALL LETTER TIWN */ #define XK_Armenian_RE 0x1000550 /* U+0550 ARMENIAN CAPITAL LETTER REH */ #define XK_Armenian_re 0x1000580 /* U+0580 ARMENIAN SMALL LETTER REH */ #define XK_Armenian_TSO 0x1000551 /* U+0551 ARMENIAN CAPITAL LETTER CO */ #define XK_Armenian_tso 0x1000581 /* U+0581 ARMENIAN SMALL LETTER CO */ #define XK_Armenian_VYUN 0x1000552 /* U+0552 ARMENIAN CAPITAL LETTER YIWN */ #define XK_Armenian_vyun 0x1000582 /* U+0582 ARMENIAN SMALL LETTER YIWN */ #define XK_Armenian_PYUR 0x1000553 /* U+0553 ARMENIAN CAPITAL LETTER PIWR */ #define XK_Armenian_pyur 0x1000583 /* U+0583 ARMENIAN SMALL LETTER PIWR */ #define XK_Armenian_KE 0x1000554 /* U+0554 ARMENIAN CAPITAL LETTER KEH */ #define XK_Armenian_ke 0x1000584 /* U+0584 ARMENIAN SMALL LETTER KEH */ #define XK_Armenian_O 0x1000555 /* U+0555 ARMENIAN CAPITAL LETTER OH */ #define XK_Armenian_o 0x1000585 /* U+0585 ARMENIAN SMALL LETTER OH */ #define XK_Armenian_FE 0x1000556 /* U+0556 ARMENIAN CAPITAL LETTER FEH */ #define XK_Armenian_fe 0x1000586 /* U+0586 ARMENIAN SMALL LETTER FEH */ #define XK_Armenian_apostrophe 0x100055a /* U+055A ARMENIAN APOSTROPHE */ #endif /* XK_ARMENIAN */ /* * Georgian */ #ifdef XK_GEORGIAN #define XK_Georgian_an 0x10010d0 /* U+10D0 GEORGIAN LETTER AN */ #define XK_Georgian_ban 0x10010d1 /* U+10D1 GEORGIAN LETTER BAN */ #define XK_Georgian_gan 0x10010d2 /* U+10D2 GEORGIAN LETTER GAN */ #define XK_Georgian_don 0x10010d3 /* U+10D3 GEORGIAN LETTER DON */ #define XK_Georgian_en 0x10010d4 /* U+10D4 GEORGIAN LETTER EN */ #define XK_Georgian_vin 0x10010d5 /* U+10D5 GEORGIAN LETTER VIN */ #define XK_Georgian_zen 0x10010d6 /* U+10D6 GEORGIAN LETTER ZEN */ #define XK_Georgian_tan 0x10010d7 /* U+10D7 GEORGIAN LETTER TAN */ #define XK_Georgian_in 0x10010d8 /* U+10D8 GEORGIAN LETTER IN */ #define XK_Georgian_kan 0x10010d9 /* U+10D9 GEORGIAN LETTER KAN */ #define XK_Georgian_las 0x10010da /* U+10DA GEORGIAN LETTER LAS */ #define XK_Georgian_man 0x10010db /* U+10DB GEORGIAN LETTER MAN */ #define XK_Georgian_nar 0x10010dc /* U+10DC GEORGIAN LETTER NAR */ #define XK_Georgian_on 0x10010dd /* U+10DD GEORGIAN LETTER ON */ #define XK_Georgian_par 0x10010de /* U+10DE GEORGIAN LETTER PAR */ #define XK_Georgian_zhar 0x10010df /* U+10DF GEORGIAN LETTER ZHAR */ #define XK_Georgian_rae 0x10010e0 /* U+10E0 GEORGIAN LETTER RAE */ #define XK_Georgian_san 0x10010e1 /* U+10E1 GEORGIAN LETTER SAN */ #define XK_Georgian_tar 0x10010e2 /* U+10E2 GEORGIAN LETTER TAR */ #define XK_Georgian_un 0x10010e3 /* U+10E3 GEORGIAN LETTER UN */ #define XK_Georgian_phar 0x10010e4 /* U+10E4 GEORGIAN LETTER PHAR */ #define XK_Georgian_khar 0x10010e5 /* U+10E5 GEORGIAN LETTER KHAR */ #define XK_Georgian_ghan 0x10010e6 /* U+10E6 GEORGIAN LETTER GHAN */ #define XK_Georgian_qar 0x10010e7 /* U+10E7 GEORGIAN LETTER QAR */ #define XK_Georgian_shin 0x10010e8 /* U+10E8 GEORGIAN LETTER SHIN */ #define XK_Georgian_chin 0x10010e9 /* U+10E9 GEORGIAN LETTER CHIN */ #define XK_Georgian_can 0x10010ea /* U+10EA GEORGIAN LETTER CAN */ #define XK_Georgian_jil 0x10010eb /* U+10EB GEORGIAN LETTER JIL */ #define XK_Georgian_cil 0x10010ec /* U+10EC GEORGIAN LETTER CIL */ #define XK_Georgian_char 0x10010ed /* U+10ED GEORGIAN LETTER CHAR */ #define XK_Georgian_xan 0x10010ee /* U+10EE GEORGIAN LETTER XAN */ #define XK_Georgian_jhan 0x10010ef /* U+10EF GEORGIAN LETTER JHAN */ #define XK_Georgian_hae 0x10010f0 /* U+10F0 GEORGIAN LETTER HAE */ #define XK_Georgian_he 0x10010f1 /* U+10F1 GEORGIAN LETTER HE */ #define XK_Georgian_hie 0x10010f2 /* U+10F2 GEORGIAN LETTER HIE */ #define XK_Georgian_we 0x10010f3 /* U+10F3 GEORGIAN LETTER WE */ #define XK_Georgian_har 0x10010f4 /* U+10F4 GEORGIAN LETTER HAR */ #define XK_Georgian_hoe 0x10010f5 /* U+10F5 GEORGIAN LETTER HOE */ #define XK_Georgian_fi 0x10010f6 /* U+10F6 GEORGIAN LETTER FI */ #endif /* XK_GEORGIAN */ /* * Azeri (and other Turkic or Caucasian languages) */ #ifdef XK_CAUCASUS /* latin */ #define XK_Xabovedot 0x1001e8a /* U+1E8A LATIN CAPITAL LETTER X WITH DOT ABOVE */ #define XK_Ibreve 0x100012c /* U+012C LATIN CAPITAL LETTER I WITH BREVE */ #define XK_Zstroke 0x10001b5 /* U+01B5 LATIN CAPITAL LETTER Z WITH STROKE */ #define XK_Gcaron 0x10001e6 /* U+01E6 LATIN CAPITAL LETTER G WITH CARON */ #define XK_Ocaron 0x10001d1 /* U+01D1 LATIN CAPITAL LETTER O WITH CARON */ #define XK_Obarred 0x100019f /* U+019F LATIN CAPITAL LETTER O WITH MIDDLE TILDE */ #define XK_xabovedot 0x1001e8b /* U+1E8B LATIN SMALL LETTER X WITH DOT ABOVE */ #define XK_ibreve 0x100012d /* U+012D LATIN SMALL LETTER I WITH BREVE */ #define XK_zstroke 0x10001b6 /* U+01B6 LATIN SMALL LETTER Z WITH STROKE */ #define XK_gcaron 0x10001e7 /* U+01E7 LATIN SMALL LETTER G WITH CARON */ #define XK_ocaron 0x10001d2 /* U+01D2 LATIN SMALL LETTER O WITH CARON */ #define XK_obarred 0x1000275 /* U+0275 LATIN SMALL LETTER BARRED O */ #define XK_SCHWA 0x100018f /* U+018F LATIN CAPITAL LETTER SCHWA */ #define XK_schwa 0x1000259 /* U+0259 LATIN SMALL LETTER SCHWA */ #define XK_EZH 0x10001b7 /* U+01B7 LATIN CAPITAL LETTER EZH */ #define XK_ezh 0x1000292 /* U+0292 LATIN SMALL LETTER EZH */ /* those are not really Caucasus */ /* For Inupiak */ #define XK_Lbelowdot 0x1001e36 /* U+1E36 LATIN CAPITAL LETTER L WITH DOT BELOW */ #define XK_lbelowdot 0x1001e37 /* U+1E37 LATIN SMALL LETTER L WITH DOT BELOW */ #endif /* XK_CAUCASUS */ /* * Vietnamese */ #ifdef XK_VIETNAMESE #define XK_Abelowdot 0x1001ea0 /* U+1EA0 LATIN CAPITAL LETTER A WITH DOT BELOW */ #define XK_abelowdot 0x1001ea1 /* U+1EA1 LATIN SMALL LETTER A WITH DOT BELOW */ #define XK_Ahook 0x1001ea2 /* U+1EA2 LATIN CAPITAL LETTER A WITH HOOK ABOVE */ #define XK_ahook 0x1001ea3 /* U+1EA3 LATIN SMALL LETTER A WITH HOOK ABOVE */ #define XK_Acircumflexacute 0x1001ea4 /* U+1EA4 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND ACUTE */ #define XK_acircumflexacute 0x1001ea5 /* U+1EA5 LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE */ #define XK_Acircumflexgrave 0x1001ea6 /* U+1EA6 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND GRAVE */ #define XK_acircumflexgrave 0x1001ea7 /* U+1EA7 LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE */ #define XK_Acircumflexhook 0x1001ea8 /* U+1EA8 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_acircumflexhook 0x1001ea9 /* U+1EA9 LATIN SMALL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_Acircumflextilde 0x1001eaa /* U+1EAA LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND TILDE */ #define XK_acircumflextilde 0x1001eab /* U+1EAB LATIN SMALL LETTER A WITH CIRCUMFLEX AND TILDE */ #define XK_Acircumflexbelowdot 0x1001eac /* U+1EAC LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND DOT BELOW */ #define XK_acircumflexbelowdot 0x1001ead /* U+1EAD LATIN SMALL LETTER A WITH CIRCUMFLEX AND DOT BELOW */ #define XK_Abreveacute 0x1001eae /* U+1EAE LATIN CAPITAL LETTER A WITH BREVE AND ACUTE */ #define XK_abreveacute 0x1001eaf /* U+1EAF LATIN SMALL LETTER A WITH BREVE AND ACUTE */ #define XK_Abrevegrave 0x1001eb0 /* U+1EB0 LATIN CAPITAL LETTER A WITH BREVE AND GRAVE */ #define XK_abrevegrave 0x1001eb1 /* U+1EB1 LATIN SMALL LETTER A WITH BREVE AND GRAVE */ #define XK_Abrevehook 0x1001eb2 /* U+1EB2 LATIN CAPITAL LETTER A WITH BREVE AND HOOK ABOVE */ #define XK_abrevehook 0x1001eb3 /* U+1EB3 LATIN SMALL LETTER A WITH BREVE AND HOOK ABOVE */ #define XK_Abrevetilde 0x1001eb4 /* U+1EB4 LATIN CAPITAL LETTER A WITH BREVE AND TILDE */ #define XK_abrevetilde 0x1001eb5 /* U+1EB5 LATIN SMALL LETTER A WITH BREVE AND TILDE */ #define XK_Abrevebelowdot 0x1001eb6 /* U+1EB6 LATIN CAPITAL LETTER A WITH BREVE AND DOT BELOW */ #define XK_abrevebelowdot 0x1001eb7 /* U+1EB7 LATIN SMALL LETTER A WITH BREVE AND DOT BELOW */ #define XK_Ebelowdot 0x1001eb8 /* U+1EB8 LATIN CAPITAL LETTER E WITH DOT BELOW */ #define XK_ebelowdot 0x1001eb9 /* U+1EB9 LATIN SMALL LETTER E WITH DOT BELOW */ #define XK_Ehook 0x1001eba /* U+1EBA LATIN CAPITAL LETTER E WITH HOOK ABOVE */ #define XK_ehook 0x1001ebb /* U+1EBB LATIN SMALL LETTER E WITH HOOK ABOVE */ #define XK_Etilde 0x1001ebc /* U+1EBC LATIN CAPITAL LETTER E WITH TILDE */ #define XK_etilde 0x1001ebd /* U+1EBD LATIN SMALL LETTER E WITH TILDE */ #define XK_Ecircumflexacute 0x1001ebe /* U+1EBE LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND ACUTE */ #define XK_ecircumflexacute 0x1001ebf /* U+1EBF LATIN SMALL LETTER E WITH CIRCUMFLEX AND ACUTE */ #define XK_Ecircumflexgrave 0x1001ec0 /* U+1EC0 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND GRAVE */ #define XK_ecircumflexgrave 0x1001ec1 /* U+1EC1 LATIN SMALL LETTER E WITH CIRCUMFLEX AND GRAVE */ #define XK_Ecircumflexhook 0x1001ec2 /* U+1EC2 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_ecircumflexhook 0x1001ec3 /* U+1EC3 LATIN SMALL LETTER E WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_Ecircumflextilde 0x1001ec4 /* U+1EC4 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND TILDE */ #define XK_ecircumflextilde 0x1001ec5 /* U+1EC5 LATIN SMALL LETTER E WITH CIRCUMFLEX AND TILDE */ #define XK_Ecircumflexbelowdot 0x1001ec6 /* U+1EC6 LATIN CAPITAL LETTER E WITH CIRCUMFLEX AND DOT BELOW */ #define XK_ecircumflexbelowdot 0x1001ec7 /* U+1EC7 LATIN SMALL LETTER E WITH CIRCUMFLEX AND DOT BELOW */ #define XK_Ihook 0x1001ec8 /* U+1EC8 LATIN CAPITAL LETTER I WITH HOOK ABOVE */ #define XK_ihook 0x1001ec9 /* U+1EC9 LATIN SMALL LETTER I WITH HOOK ABOVE */ #define XK_Ibelowdot 0x1001eca /* U+1ECA LATIN CAPITAL LETTER I WITH DOT BELOW */ #define XK_ibelowdot 0x1001ecb /* U+1ECB LATIN SMALL LETTER I WITH DOT BELOW */ #define XK_Obelowdot 0x1001ecc /* U+1ECC LATIN CAPITAL LETTER O WITH DOT BELOW */ #define XK_obelowdot 0x1001ecd /* U+1ECD LATIN SMALL LETTER O WITH DOT BELOW */ #define XK_Ohook 0x1001ece /* U+1ECE LATIN CAPITAL LETTER O WITH HOOK ABOVE */ #define XK_ohook 0x1001ecf /* U+1ECF LATIN SMALL LETTER O WITH HOOK ABOVE */ #define XK_Ocircumflexacute 0x1001ed0 /* U+1ED0 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND ACUTE */ #define XK_ocircumflexacute 0x1001ed1 /* U+1ED1 LATIN SMALL LETTER O WITH CIRCUMFLEX AND ACUTE */ #define XK_Ocircumflexgrave 0x1001ed2 /* U+1ED2 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND GRAVE */ #define XK_ocircumflexgrave 0x1001ed3 /* U+1ED3 LATIN SMALL LETTER O WITH CIRCUMFLEX AND GRAVE */ #define XK_Ocircumflexhook 0x1001ed4 /* U+1ED4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_ocircumflexhook 0x1001ed5 /* U+1ED5 LATIN SMALL LETTER O WITH CIRCUMFLEX AND HOOK ABOVE */ #define XK_Ocircumflextilde 0x1001ed6 /* U+1ED6 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND TILDE */ #define XK_ocircumflextilde 0x1001ed7 /* U+1ED7 LATIN SMALL LETTER O WITH CIRCUMFLEX AND TILDE */ #define XK_Ocircumflexbelowdot 0x1001ed8 /* U+1ED8 LATIN CAPITAL LETTER O WITH CIRCUMFLEX AND DOT BELOW */ #define XK_ocircumflexbelowdot 0x1001ed9 /* U+1ED9 LATIN SMALL LETTER O WITH CIRCUMFLEX AND DOT BELOW */ #define XK_Ohornacute 0x1001eda /* U+1EDA LATIN CAPITAL LETTER O WITH HORN AND ACUTE */ #define XK_ohornacute 0x1001edb /* U+1EDB LATIN SMALL LETTER O WITH HORN AND ACUTE */ #define XK_Ohorngrave 0x1001edc /* U+1EDC LATIN CAPITAL LETTER O WITH HORN AND GRAVE */ #define XK_ohorngrave 0x1001edd /* U+1EDD LATIN SMALL LETTER O WITH HORN AND GRAVE */ #define XK_Ohornhook 0x1001ede /* U+1EDE LATIN CAPITAL LETTER O WITH HORN AND HOOK ABOVE */ #define XK_ohornhook 0x1001edf /* U+1EDF LATIN SMALL LETTER O WITH HORN AND HOOK ABOVE */ #define XK_Ohorntilde 0x1001ee0 /* U+1EE0 LATIN CAPITAL LETTER O WITH HORN AND TILDE */ #define XK_ohorntilde 0x1001ee1 /* U+1EE1 LATIN SMALL LETTER O WITH HORN AND TILDE */ #define XK_Ohornbelowdot 0x1001ee2 /* U+1EE2 LATIN CAPITAL LETTER O WITH HORN AND DOT BELOW */ #define XK_ohornbelowdot 0x1001ee3 /* U+1EE3 LATIN SMALL LETTER O WITH HORN AND DOT BELOW */ #define XK_Ubelowdot 0x1001ee4 /* U+1EE4 LATIN CAPITAL LETTER U WITH DOT BELOW */ #define XK_ubelowdot 0x1001ee5 /* U+1EE5 LATIN SMALL LETTER U WITH DOT BELOW */ #define XK_Uhook 0x1001ee6 /* U+1EE6 LATIN CAPITAL LETTER U WITH HOOK ABOVE */ #define XK_uhook 0x1001ee7 /* U+1EE7 LATIN SMALL LETTER U WITH HOOK ABOVE */ #define XK_Uhornacute 0x1001ee8 /* U+1EE8 LATIN CAPITAL LETTER U WITH HORN AND ACUTE */ #define XK_uhornacute 0x1001ee9 /* U+1EE9 LATIN SMALL LETTER U WITH HORN AND ACUTE */ #define XK_Uhorngrave 0x1001eea /* U+1EEA LATIN CAPITAL LETTER U WITH HORN AND GRAVE */ #define XK_uhorngrave 0x1001eeb /* U+1EEB LATIN SMALL LETTER U WITH HORN AND GRAVE */ #define XK_Uhornhook 0x1001eec /* U+1EEC LATIN CAPITAL LETTER U WITH HORN AND HOOK ABOVE */ #define XK_uhornhook 0x1001eed /* U+1EED LATIN SMALL LETTER U WITH HORN AND HOOK ABOVE */ #define XK_Uhorntilde 0x1001eee /* U+1EEE LATIN CAPITAL LETTER U WITH HORN AND TILDE */ #define XK_uhorntilde 0x1001eef /* U+1EEF LATIN SMALL LETTER U WITH HORN AND TILDE */ #define XK_Uhornbelowdot 0x1001ef0 /* U+1EF0 LATIN CAPITAL LETTER U WITH HORN AND DOT BELOW */ #define XK_uhornbelowdot 0x1001ef1 /* U+1EF1 LATIN SMALL LETTER U WITH HORN AND DOT BELOW */ #define XK_Ybelowdot 0x1001ef4 /* U+1EF4 LATIN CAPITAL LETTER Y WITH DOT BELOW */ #define XK_ybelowdot 0x1001ef5 /* U+1EF5 LATIN SMALL LETTER Y WITH DOT BELOW */ #define XK_Yhook 0x1001ef6 /* U+1EF6 LATIN CAPITAL LETTER Y WITH HOOK ABOVE */ #define XK_yhook 0x1001ef7 /* U+1EF7 LATIN SMALL LETTER Y WITH HOOK ABOVE */ #define XK_Ytilde 0x1001ef8 /* U+1EF8 LATIN CAPITAL LETTER Y WITH TILDE */ #define XK_ytilde 0x1001ef9 /* U+1EF9 LATIN SMALL LETTER Y WITH TILDE */ #define XK_Ohorn 0x10001a0 /* U+01A0 LATIN CAPITAL LETTER O WITH HORN */ #define XK_ohorn 0x10001a1 /* U+01A1 LATIN SMALL LETTER O WITH HORN */ #define XK_Uhorn 0x10001af /* U+01AF LATIN CAPITAL LETTER U WITH HORN */ #define XK_uhorn 0x10001b0 /* U+01B0 LATIN SMALL LETTER U WITH HORN */ #define XK_combining_tilde 0x1000303 /* U+0303 COMBINING TILDE */ #define XK_combining_grave 0x1000300 /* U+0300 COMBINING GRAVE ACCENT */ #define XK_combining_acute 0x1000301 /* U+0301 COMBINING ACUTE ACCENT */ #define XK_combining_hook 0x1000309 /* U+0309 COMBINING HOOK ABOVE */ #define XK_combining_belowdot 0x1000323 /* U+0323 COMBINING DOT BELOW */ #endif /* XK_VIETNAMESE */ #ifdef XK_CURRENCY #define XK_EcuSign 0x10020a0 /* U+20A0 EURO-CURRENCY SIGN */ #define XK_ColonSign 0x10020a1 /* U+20A1 COLON SIGN */ #define XK_CruzeiroSign 0x10020a2 /* U+20A2 CRUZEIRO SIGN */ #define XK_FFrancSign 0x10020a3 /* U+20A3 FRENCH FRANC SIGN */ #define XK_LiraSign 0x10020a4 /* U+20A4 LIRA SIGN */ #define XK_MillSign 0x10020a5 /* U+20A5 MILL SIGN */ #define XK_NairaSign 0x10020a6 /* U+20A6 NAIRA SIGN */ #define XK_PesetaSign 0x10020a7 /* U+20A7 PESETA SIGN */ #define XK_RupeeSign 0x10020a8 /* U+20A8 RUPEE SIGN */ #define XK_WonSign 0x10020a9 /* U+20A9 WON SIGN */ #define XK_NewSheqelSign 0x10020aa /* U+20AA NEW SHEQEL SIGN */ #define XK_DongSign 0x10020ab /* U+20AB DONG SIGN */ #define XK_EuroSign 0x20ac /* U+20AC EURO SIGN */ #endif /* XK_CURRENCY */ #ifdef XK_MATHEMATICAL /* one, two and three are defined above. */ #define XK_zerosuperior 0x1002070 /* U+2070 SUPERSCRIPT ZERO */ #define XK_foursuperior 0x1002074 /* U+2074 SUPERSCRIPT FOUR */ #define XK_fivesuperior 0x1002075 /* U+2075 SUPERSCRIPT FIVE */ #define XK_sixsuperior 0x1002076 /* U+2076 SUPERSCRIPT SIX */ #define XK_sevensuperior 0x1002077 /* U+2077 SUPERSCRIPT SEVEN */ #define XK_eightsuperior 0x1002078 /* U+2078 SUPERSCRIPT EIGHT */ #define XK_ninesuperior 0x1002079 /* U+2079 SUPERSCRIPT NINE */ #define XK_zerosubscript 0x1002080 /* U+2080 SUBSCRIPT ZERO */ #define XK_onesubscript 0x1002081 /* U+2081 SUBSCRIPT ONE */ #define XK_twosubscript 0x1002082 /* U+2082 SUBSCRIPT TWO */ #define XK_threesubscript 0x1002083 /* U+2083 SUBSCRIPT THREE */ #define XK_foursubscript 0x1002084 /* U+2084 SUBSCRIPT FOUR */ #define XK_fivesubscript 0x1002085 /* U+2085 SUBSCRIPT FIVE */ #define XK_sixsubscript 0x1002086 /* U+2086 SUBSCRIPT SIX */ #define XK_sevensubscript 0x1002087 /* U+2087 SUBSCRIPT SEVEN */ #define XK_eightsubscript 0x1002088 /* U+2088 SUBSCRIPT EIGHT */ #define XK_ninesubscript 0x1002089 /* U+2089 SUBSCRIPT NINE */ #define XK_partdifferential 0x1002202 /* U+2202 PARTIAL DIFFERENTIAL */ #define XK_emptyset 0x1002205 /* U+2205 NULL SET */ #define XK_elementof 0x1002208 /* U+2208 ELEMENT OF */ #define XK_notelementof 0x1002209 /* U+2209 NOT AN ELEMENT OF */ #define XK_containsas 0x100220B /* U+220B CONTAINS AS MEMBER */ #define XK_squareroot 0x100221A /* U+221A SQUARE ROOT */ #define XK_cuberoot 0x100221B /* U+221B CUBE ROOT */ #define XK_fourthroot 0x100221C /* U+221C FOURTH ROOT */ #define XK_dintegral 0x100222C /* U+222C DOUBLE INTEGRAL */ #define XK_tintegral 0x100222D /* U+222D TRIPLE INTEGRAL */ #define XK_because 0x1002235 /* U+2235 BECAUSE */ #define XK_approxeq 0x1002248 /*(U+2248 ALMOST EQUAL TO)*/ #define XK_notapproxeq 0x1002247 /*(U+2247 NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO)*/ #define XK_notidentical 0x1002262 /* U+2262 NOT IDENTICAL TO */ #define XK_stricteq 0x1002263 /* U+2263 STRICTLY EQUIVALENT TO */ #endif /* XK_MATHEMATICAL */ #ifdef XK_BRAILLE #define XK_braille_dot_1 0xfff1 #define XK_braille_dot_2 0xfff2 #define XK_braille_dot_3 0xfff3 #define XK_braille_dot_4 0xfff4 #define XK_braille_dot_5 0xfff5 #define XK_braille_dot_6 0xfff6 #define XK_braille_dot_7 0xfff7 #define XK_braille_dot_8 0xfff8 #define XK_braille_dot_9 0xfff9 #define XK_braille_dot_10 0xfffa #define XK_braille_blank 0x1002800 /* U+2800 BRAILLE PATTERN BLANK */ #define XK_braille_dots_1 0x1002801 /* U+2801 BRAILLE PATTERN DOTS-1 */ #define XK_braille_dots_2 0x1002802 /* U+2802 BRAILLE PATTERN DOTS-2 */ #define XK_braille_dots_12 0x1002803 /* U+2803 BRAILLE PATTERN DOTS-12 */ #define XK_braille_dots_3 0x1002804 /* U+2804 BRAILLE PATTERN DOTS-3 */ #define XK_braille_dots_13 0x1002805 /* U+2805 BRAILLE PATTERN DOTS-13 */ #define XK_braille_dots_23 0x1002806 /* U+2806 BRAILLE PATTERN DOTS-23 */ #define XK_braille_dots_123 0x1002807 /* U+2807 BRAILLE PATTERN DOTS-123 */ #define XK_braille_dots_4 0x1002808 /* U+2808 BRAILLE PATTERN DOTS-4 */ #define XK_braille_dots_14 0x1002809 /* U+2809 BRAILLE PATTERN DOTS-14 */ #define XK_braille_dots_24 0x100280a /* U+280a BRAILLE PATTERN DOTS-24 */ #define XK_braille_dots_124 0x100280b /* U+280b BRAILLE PATTERN DOTS-124 */ #define XK_braille_dots_34 0x100280c /* U+280c BRAILLE PATTERN DOTS-34 */ #define XK_braille_dots_134 0x100280d /* U+280d BRAILLE PATTERN DOTS-134 */ #define XK_braille_dots_234 0x100280e /* U+280e BRAILLE PATTERN DOTS-234 */ #define XK_braille_dots_1234 0x100280f /* U+280f BRAILLE PATTERN DOTS-1234 */ #define XK_braille_dots_5 0x1002810 /* U+2810 BRAILLE PATTERN DOTS-5 */ #define XK_braille_dots_15 0x1002811 /* U+2811 BRAILLE PATTERN DOTS-15 */ #define XK_braille_dots_25 0x1002812 /* U+2812 BRAILLE PATTERN DOTS-25 */ #define XK_braille_dots_125 0x1002813 /* U+2813 BRAILLE PATTERN DOTS-125 */ #define XK_braille_dots_35 0x1002814 /* U+2814 BRAILLE PATTERN DOTS-35 */ #define XK_braille_dots_135 0x1002815 /* U+2815 BRAILLE PATTERN DOTS-135 */ #define XK_braille_dots_235 0x1002816 /* U+2816 BRAILLE PATTERN DOTS-235 */ #define XK_braille_dots_1235 0x1002817 /* U+2817 BRAILLE PATTERN DOTS-1235 */ #define XK_braille_dots_45 0x1002818 /* U+2818 BRAILLE PATTERN DOTS-45 */ #define XK_braille_dots_145 0x1002819 /* U+2819 BRAILLE PATTERN DOTS-145 */ #define XK_braille_dots_245 0x100281a /* U+281a BRAILLE PATTERN DOTS-245 */ #define XK_braille_dots_1245 0x100281b /* U+281b BRAILLE PATTERN DOTS-1245 */ #define XK_braille_dots_345 0x100281c /* U+281c BRAILLE PATTERN DOTS-345 */ #define XK_braille_dots_1345 0x100281d /* U+281d BRAILLE PATTERN DOTS-1345 */ #define XK_braille_dots_2345 0x100281e /* U+281e BRAILLE PATTERN DOTS-2345 */ #define XK_braille_dots_12345 0x100281f /* U+281f BRAILLE PATTERN DOTS-12345 */ #define XK_braille_dots_6 0x1002820 /* U+2820 BRAILLE PATTERN DOTS-6 */ #define XK_braille_dots_16 0x1002821 /* U+2821 BRAILLE PATTERN DOTS-16 */ #define XK_braille_dots_26 0x1002822 /* U+2822 BRAILLE PATTERN DOTS-26 */ #define XK_braille_dots_126 0x1002823 /* U+2823 BRAILLE PATTERN DOTS-126 */ #define XK_braille_dots_36 0x1002824 /* U+2824 BRAILLE PATTERN DOTS-36 */ #define XK_braille_dots_136 0x1002825 /* U+2825 BRAILLE PATTERN DOTS-136 */ #define XK_braille_dots_236 0x1002826 /* U+2826 BRAILLE PATTERN DOTS-236 */ #define XK_braille_dots_1236 0x1002827 /* U+2827 BRAILLE PATTERN DOTS-1236 */ #define XK_braille_dots_46 0x1002828 /* U+2828 BRAILLE PATTERN DOTS-46 */ #define XK_braille_dots_146 0x1002829 /* U+2829 BRAILLE PATTERN DOTS-146 */ #define XK_braille_dots_246 0x100282a /* U+282a BRAILLE PATTERN DOTS-246 */ #define XK_braille_dots_1246 0x100282b /* U+282b BRAILLE PATTERN DOTS-1246 */ #define XK_braille_dots_346 0x100282c /* U+282c BRAILLE PATTERN DOTS-346 */ #define XK_braille_dots_1346 0x100282d /* U+282d BRAILLE PATTERN DOTS-1346 */ #define XK_braille_dots_2346 0x100282e /* U+282e BRAILLE PATTERN DOTS-2346 */ #define XK_braille_dots_12346 0x100282f /* U+282f BRAILLE PATTERN DOTS-12346 */ #define XK_braille_dots_56 0x1002830 /* U+2830 BRAILLE PATTERN DOTS-56 */ #define XK_braille_dots_156 0x1002831 /* U+2831 BRAILLE PATTERN DOTS-156 */ #define XK_braille_dots_256 0x1002832 /* U+2832 BRAILLE PATTERN DOTS-256 */ #define XK_braille_dots_1256 0x1002833 /* U+2833 BRAILLE PATTERN DOTS-1256 */ #define XK_braille_dots_356 0x1002834 /* U+2834 BRAILLE PATTERN DOTS-356 */ #define XK_braille_dots_1356 0x1002835 /* U+2835 BRAILLE PATTERN DOTS-1356 */ #define XK_braille_dots_2356 0x1002836 /* U+2836 BRAILLE PATTERN DOTS-2356 */ #define XK_braille_dots_12356 0x1002837 /* U+2837 BRAILLE PATTERN DOTS-12356 */ #define XK_braille_dots_456 0x1002838 /* U+2838 BRAILLE PATTERN DOTS-456 */ #define XK_braille_dots_1456 0x1002839 /* U+2839 BRAILLE PATTERN DOTS-1456 */ #define XK_braille_dots_2456 0x100283a /* U+283a BRAILLE PATTERN DOTS-2456 */ #define XK_braille_dots_12456 0x100283b /* U+283b BRAILLE PATTERN DOTS-12456 */ #define XK_braille_dots_3456 0x100283c /* U+283c BRAILLE PATTERN DOTS-3456 */ #define XK_braille_dots_13456 0x100283d /* U+283d BRAILLE PATTERN DOTS-13456 */ #define XK_braille_dots_23456 0x100283e /* U+283e BRAILLE PATTERN DOTS-23456 */ #define XK_braille_dots_123456 0x100283f /* U+283f BRAILLE PATTERN DOTS-123456 */ #define XK_braille_dots_7 0x1002840 /* U+2840 BRAILLE PATTERN DOTS-7 */ #define XK_braille_dots_17 0x1002841 /* U+2841 BRAILLE PATTERN DOTS-17 */ #define XK_braille_dots_27 0x1002842 /* U+2842 BRAILLE PATTERN DOTS-27 */ #define XK_braille_dots_127 0x1002843 /* U+2843 BRAILLE PATTERN DOTS-127 */ #define XK_braille_dots_37 0x1002844 /* U+2844 BRAILLE PATTERN DOTS-37 */ #define XK_braille_dots_137 0x1002845 /* U+2845 BRAILLE PATTERN DOTS-137 */ #define XK_braille_dots_237 0x1002846 /* U+2846 BRAILLE PATTERN DOTS-237 */ #define XK_braille_dots_1237 0x1002847 /* U+2847 BRAILLE PATTERN DOTS-1237 */ #define XK_braille_dots_47 0x1002848 /* U+2848 BRAILLE PATTERN DOTS-47 */ #define XK_braille_dots_147 0x1002849 /* U+2849 BRAILLE PATTERN DOTS-147 */ #define XK_braille_dots_247 0x100284a /* U+284a BRAILLE PATTERN DOTS-247 */ #define XK_braille_dots_1247 0x100284b /* U+284b BRAILLE PATTERN DOTS-1247 */ #define XK_braille_dots_347 0x100284c /* U+284c BRAILLE PATTERN DOTS-347 */ #define XK_braille_dots_1347 0x100284d /* U+284d BRAILLE PATTERN DOTS-1347 */ #define XK_braille_dots_2347 0x100284e /* U+284e BRAILLE PATTERN DOTS-2347 */ #define XK_braille_dots_12347 0x100284f /* U+284f BRAILLE PATTERN DOTS-12347 */ #define XK_braille_dots_57 0x1002850 /* U+2850 BRAILLE PATTERN DOTS-57 */ #define XK_braille_dots_157 0x1002851 /* U+2851 BRAILLE PATTERN DOTS-157 */ #define XK_braille_dots_257 0x1002852 /* U+2852 BRAILLE PATTERN DOTS-257 */ #define XK_braille_dots_1257 0x1002853 /* U+2853 BRAILLE PATTERN DOTS-1257 */ #define XK_braille_dots_357 0x1002854 /* U+2854 BRAILLE PATTERN DOTS-357 */ #define XK_braille_dots_1357 0x1002855 /* U+2855 BRAILLE PATTERN DOTS-1357 */ #define XK_braille_dots_2357 0x1002856 /* U+2856 BRAILLE PATTERN DOTS-2357 */ #define XK_braille_dots_12357 0x1002857 /* U+2857 BRAILLE PATTERN DOTS-12357 */ #define XK_braille_dots_457 0x1002858 /* U+2858 BRAILLE PATTERN DOTS-457 */ #define XK_braille_dots_1457 0x1002859 /* U+2859 BRAILLE PATTERN DOTS-1457 */ #define XK_braille_dots_2457 0x100285a /* U+285a BRAILLE PATTERN DOTS-2457 */ #define XK_braille_dots_12457 0x100285b /* U+285b BRAILLE PATTERN DOTS-12457 */ #define XK_braille_dots_3457 0x100285c /* U+285c BRAILLE PATTERN DOTS-3457 */ #define XK_braille_dots_13457 0x100285d /* U+285d BRAILLE PATTERN DOTS-13457 */ #define XK_braille_dots_23457 0x100285e /* U+285e BRAILLE PATTERN DOTS-23457 */ #define XK_braille_dots_123457 0x100285f /* U+285f BRAILLE PATTERN DOTS-123457 */ #define XK_braille_dots_67 0x1002860 /* U+2860 BRAILLE PATTERN DOTS-67 */ #define XK_braille_dots_167 0x1002861 /* U+2861 BRAILLE PATTERN DOTS-167 */ #define XK_braille_dots_267 0x1002862 /* U+2862 BRAILLE PATTERN DOTS-267 */ #define XK_braille_dots_1267 0x1002863 /* U+2863 BRAILLE PATTERN DOTS-1267 */ #define XK_braille_dots_367 0x1002864 /* U+2864 BRAILLE PATTERN DOTS-367 */ #define XK_braille_dots_1367 0x1002865 /* U+2865 BRAILLE PATTERN DOTS-1367 */ #define XK_braille_dots_2367 0x1002866 /* U+2866 BRAILLE PATTERN DOTS-2367 */ #define XK_braille_dots_12367 0x1002867 /* U+2867 BRAILLE PATTERN DOTS-12367 */ #define XK_braille_dots_467 0x1002868 /* U+2868 BRAILLE PATTERN DOTS-467 */ #define XK_braille_dots_1467 0x1002869 /* U+2869 BRAILLE PATTERN DOTS-1467 */ #define XK_braille_dots_2467 0x100286a /* U+286a BRAILLE PATTERN DOTS-2467 */ #define XK_braille_dots_12467 0x100286b /* U+286b BRAILLE PATTERN DOTS-12467 */ #define XK_braille_dots_3467 0x100286c /* U+286c BRAILLE PATTERN DOTS-3467 */ #define XK_braille_dots_13467 0x100286d /* U+286d BRAILLE PATTERN DOTS-13467 */ #define XK_braille_dots_23467 0x100286e /* U+286e BRAILLE PATTERN DOTS-23467 */ #define XK_braille_dots_123467 0x100286f /* U+286f BRAILLE PATTERN DOTS-123467 */ #define XK_braille_dots_567 0x1002870 /* U+2870 BRAILLE PATTERN DOTS-567 */ #define XK_braille_dots_1567 0x1002871 /* U+2871 BRAILLE PATTERN DOTS-1567 */ #define XK_braille_dots_2567 0x1002872 /* U+2872 BRAILLE PATTERN DOTS-2567 */ #define XK_braille_dots_12567 0x1002873 /* U+2873 BRAILLE PATTERN DOTS-12567 */ #define XK_braille_dots_3567 0x1002874 /* U+2874 BRAILLE PATTERN DOTS-3567 */ #define XK_braille_dots_13567 0x1002875 /* U+2875 BRAILLE PATTERN DOTS-13567 */ #define XK_braille_dots_23567 0x1002876 /* U+2876 BRAILLE PATTERN DOTS-23567 */ #define XK_braille_dots_123567 0x1002877 /* U+2877 BRAILLE PATTERN DOTS-123567 */ #define XK_braille_dots_4567 0x1002878 /* U+2878 BRAILLE PATTERN DOTS-4567 */ #define XK_braille_dots_14567 0x1002879 /* U+2879 BRAILLE PATTERN DOTS-14567 */ #define XK_braille_dots_24567 0x100287a /* U+287a BRAILLE PATTERN DOTS-24567 */ #define XK_braille_dots_124567 0x100287b /* U+287b BRAILLE PATTERN DOTS-124567 */ #define XK_braille_dots_34567 0x100287c /* U+287c BRAILLE PATTERN DOTS-34567 */ #define XK_braille_dots_134567 0x100287d /* U+287d BRAILLE PATTERN DOTS-134567 */ #define XK_braille_dots_234567 0x100287e /* U+287e BRAILLE PATTERN DOTS-234567 */ #define XK_braille_dots_1234567 0x100287f /* U+287f BRAILLE PATTERN DOTS-1234567 */ #define XK_braille_dots_8 0x1002880 /* U+2880 BRAILLE PATTERN DOTS-8 */ #define XK_braille_dots_18 0x1002881 /* U+2881 BRAILLE PATTERN DOTS-18 */ #define XK_braille_dots_28 0x1002882 /* U+2882 BRAILLE PATTERN DOTS-28 */ #define XK_braille_dots_128 0x1002883 /* U+2883 BRAILLE PATTERN DOTS-128 */ #define XK_braille_dots_38 0x1002884 /* U+2884 BRAILLE PATTERN DOTS-38 */ #define XK_braille_dots_138 0x1002885 /* U+2885 BRAILLE PATTERN DOTS-138 */ #define XK_braille_dots_238 0x1002886 /* U+2886 BRAILLE PATTERN DOTS-238 */ #define XK_braille_dots_1238 0x1002887 /* U+2887 BRAILLE PATTERN DOTS-1238 */ #define XK_braille_dots_48 0x1002888 /* U+2888 BRAILLE PATTERN DOTS-48 */ #define XK_braille_dots_148 0x1002889 /* U+2889 BRAILLE PATTERN DOTS-148 */ #define XK_braille_dots_248 0x100288a /* U+288a BRAILLE PATTERN DOTS-248 */ #define XK_braille_dots_1248 0x100288b /* U+288b BRAILLE PATTERN DOTS-1248 */ #define XK_braille_dots_348 0x100288c /* U+288c BRAILLE PATTERN DOTS-348 */ #define XK_braille_dots_1348 0x100288d /* U+288d BRAILLE PATTERN DOTS-1348 */ #define XK_braille_dots_2348 0x100288e /* U+288e BRAILLE PATTERN DOTS-2348 */ #define XK_braille_dots_12348 0x100288f /* U+288f BRAILLE PATTERN DOTS-12348 */ #define XK_braille_dots_58 0x1002890 /* U+2890 BRAILLE PATTERN DOTS-58 */ #define XK_braille_dots_158 0x1002891 /* U+2891 BRAILLE PATTERN DOTS-158 */ #define XK_braille_dots_258 0x1002892 /* U+2892 BRAILLE PATTERN DOTS-258 */ #define XK_braille_dots_1258 0x1002893 /* U+2893 BRAILLE PATTERN DOTS-1258 */ #define XK_braille_dots_358 0x1002894 /* U+2894 BRAILLE PATTERN DOTS-358 */ #define XK_braille_dots_1358 0x1002895 /* U+2895 BRAILLE PATTERN DOTS-1358 */ #define XK_braille_dots_2358 0x1002896 /* U+2896 BRAILLE PATTERN DOTS-2358 */ #define XK_braille_dots_12358 0x1002897 /* U+2897 BRAILLE PATTERN DOTS-12358 */ #define XK_braille_dots_458 0x1002898 /* U+2898 BRAILLE PATTERN DOTS-458 */ #define XK_braille_dots_1458 0x1002899 /* U+2899 BRAILLE PATTERN DOTS-1458 */ #define XK_braille_dots_2458 0x100289a /* U+289a BRAILLE PATTERN DOTS-2458 */ #define XK_braille_dots_12458 0x100289b /* U+289b BRAILLE PATTERN DOTS-12458 */ #define XK_braille_dots_3458 0x100289c /* U+289c BRAILLE PATTERN DOTS-3458 */ #define XK_braille_dots_13458 0x100289d /* U+289d BRAILLE PATTERN DOTS-13458 */ #define XK_braille_dots_23458 0x100289e /* U+289e BRAILLE PATTERN DOTS-23458 */ #define XK_braille_dots_123458 0x100289f /* U+289f BRAILLE PATTERN DOTS-123458 */ #define XK_braille_dots_68 0x10028a0 /* U+28a0 BRAILLE PATTERN DOTS-68 */ #define XK_braille_dots_168 0x10028a1 /* U+28a1 BRAILLE PATTERN DOTS-168 */ #define XK_braille_dots_268 0x10028a2 /* U+28a2 BRAILLE PATTERN DOTS-268 */ #define XK_braille_dots_1268 0x10028a3 /* U+28a3 BRAILLE PATTERN DOTS-1268 */ #define XK_braille_dots_368 0x10028a4 /* U+28a4 BRAILLE PATTERN DOTS-368 */ #define XK_braille_dots_1368 0x10028a5 /* U+28a5 BRAILLE PATTERN DOTS-1368 */ #define XK_braille_dots_2368 0x10028a6 /* U+28a6 BRAILLE PATTERN DOTS-2368 */ #define XK_braille_dots_12368 0x10028a7 /* U+28a7 BRAILLE PATTERN DOTS-12368 */ #define XK_braille_dots_468 0x10028a8 /* U+28a8 BRAILLE PATTERN DOTS-468 */ #define XK_braille_dots_1468 0x10028a9 /* U+28a9 BRAILLE PATTERN DOTS-1468 */ #define XK_braille_dots_2468 0x10028aa /* U+28aa BRAILLE PATTERN DOTS-2468 */ #define XK_braille_dots_12468 0x10028ab /* U+28ab BRAILLE PATTERN DOTS-12468 */ #define XK_braille_dots_3468 0x10028ac /* U+28ac BRAILLE PATTERN DOTS-3468 */ #define XK_braille_dots_13468 0x10028ad /* U+28ad BRAILLE PATTERN DOTS-13468 */ #define XK_braille_dots_23468 0x10028ae /* U+28ae BRAILLE PATTERN DOTS-23468 */ #define XK_braille_dots_123468 0x10028af /* U+28af BRAILLE PATTERN DOTS-123468 */ #define XK_braille_dots_568 0x10028b0 /* U+28b0 BRAILLE PATTERN DOTS-568 */ #define XK_braille_dots_1568 0x10028b1 /* U+28b1 BRAILLE PATTERN DOTS-1568 */ #define XK_braille_dots_2568 0x10028b2 /* U+28b2 BRAILLE PATTERN DOTS-2568 */ #define XK_braille_dots_12568 0x10028b3 /* U+28b3 BRAILLE PATTERN DOTS-12568 */ #define XK_braille_dots_3568 0x10028b4 /* U+28b4 BRAILLE PATTERN DOTS-3568 */ #define XK_braille_dots_13568 0x10028b5 /* U+28b5 BRAILLE PATTERN DOTS-13568 */ #define XK_braille_dots_23568 0x10028b6 /* U+28b6 BRAILLE PATTERN DOTS-23568 */ #define XK_braille_dots_123568 0x10028b7 /* U+28b7 BRAILLE PATTERN DOTS-123568 */ #define XK_braille_dots_4568 0x10028b8 /* U+28b8 BRAILLE PATTERN DOTS-4568 */ #define XK_braille_dots_14568 0x10028b9 /* U+28b9 BRAILLE PATTERN DOTS-14568 */ #define XK_braille_dots_24568 0x10028ba /* U+28ba BRAILLE PATTERN DOTS-24568 */ #define XK_braille_dots_124568 0x10028bb /* U+28bb BRAILLE PATTERN DOTS-124568 */ #define XK_braille_dots_34568 0x10028bc /* U+28bc BRAILLE PATTERN DOTS-34568 */ #define XK_braille_dots_134568 0x10028bd /* U+28bd BRAILLE PATTERN DOTS-134568 */ #define XK_braille_dots_234568 0x10028be /* U+28be BRAILLE PATTERN DOTS-234568 */ #define XK_braille_dots_1234568 0x10028bf /* U+28bf BRAILLE PATTERN DOTS-1234568 */ #define XK_braille_dots_78 0x10028c0 /* U+28c0 BRAILLE PATTERN DOTS-78 */ #define XK_braille_dots_178 0x10028c1 /* U+28c1 BRAILLE PATTERN DOTS-178 */ #define XK_braille_dots_278 0x10028c2 /* U+28c2 BRAILLE PATTERN DOTS-278 */ #define XK_braille_dots_1278 0x10028c3 /* U+28c3 BRAILLE PATTERN DOTS-1278 */ #define XK_braille_dots_378 0x10028c4 /* U+28c4 BRAILLE PATTERN DOTS-378 */ #define XK_braille_dots_1378 0x10028c5 /* U+28c5 BRAILLE PATTERN DOTS-1378 */ #define XK_braille_dots_2378 0x10028c6 /* U+28c6 BRAILLE PATTERN DOTS-2378 */ #define XK_braille_dots_12378 0x10028c7 /* U+28c7 BRAILLE PATTERN DOTS-12378 */ #define XK_braille_dots_478 0x10028c8 /* U+28c8 BRAILLE PATTERN DOTS-478 */ #define XK_braille_dots_1478 0x10028c9 /* U+28c9 BRAILLE PATTERN DOTS-1478 */ #define XK_braille_dots_2478 0x10028ca /* U+28ca BRAILLE PATTERN DOTS-2478 */ #define XK_braille_dots_12478 0x10028cb /* U+28cb BRAILLE PATTERN DOTS-12478 */ #define XK_braille_dots_3478 0x10028cc /* U+28cc BRAILLE PATTERN DOTS-3478 */ #define XK_braille_dots_13478 0x10028cd /* U+28cd BRAILLE PATTERN DOTS-13478 */ #define XK_braille_dots_23478 0x10028ce /* U+28ce BRAILLE PATTERN DOTS-23478 */ #define XK_braille_dots_123478 0x10028cf /* U+28cf BRAILLE PATTERN DOTS-123478 */ #define XK_braille_dots_578 0x10028d0 /* U+28d0 BRAILLE PATTERN DOTS-578 */ #define XK_braille_dots_1578 0x10028d1 /* U+28d1 BRAILLE PATTERN DOTS-1578 */ #define XK_braille_dots_2578 0x10028d2 /* U+28d2 BRAILLE PATTERN DOTS-2578 */ #define XK_braille_dots_12578 0x10028d3 /* U+28d3 BRAILLE PATTERN DOTS-12578 */ #define XK_braille_dots_3578 0x10028d4 /* U+28d4 BRAILLE PATTERN DOTS-3578 */ #define XK_braille_dots_13578 0x10028d5 /* U+28d5 BRAILLE PATTERN DOTS-13578 */ #define XK_braille_dots_23578 0x10028d6 /* U+28d6 BRAILLE PATTERN DOTS-23578 */ #define XK_braille_dots_123578 0x10028d7 /* U+28d7 BRAILLE PATTERN DOTS-123578 */ #define XK_braille_dots_4578 0x10028d8 /* U+28d8 BRAILLE PATTERN DOTS-4578 */ #define XK_braille_dots_14578 0x10028d9 /* U+28d9 BRAILLE PATTERN DOTS-14578 */ #define XK_braille_dots_24578 0x10028da /* U+28da BRAILLE PATTERN DOTS-24578 */ #define XK_braille_dots_124578 0x10028db /* U+28db BRAILLE PATTERN DOTS-124578 */ #define XK_braille_dots_34578 0x10028dc /* U+28dc BRAILLE PATTERN DOTS-34578 */ #define XK_braille_dots_134578 0x10028dd /* U+28dd BRAILLE PATTERN DOTS-134578 */ #define XK_braille_dots_234578 0x10028de /* U+28de BRAILLE PATTERN DOTS-234578 */ #define XK_braille_dots_1234578 0x10028df /* U+28df BRAILLE PATTERN DOTS-1234578 */ #define XK_braille_dots_678 0x10028e0 /* U+28e0 BRAILLE PATTERN DOTS-678 */ #define XK_braille_dots_1678 0x10028e1 /* U+28e1 BRAILLE PATTERN DOTS-1678 */ #define XK_braille_dots_2678 0x10028e2 /* U+28e2 BRAILLE PATTERN DOTS-2678 */ #define XK_braille_dots_12678 0x10028e3 /* U+28e3 BRAILLE PATTERN DOTS-12678 */ #define XK_braille_dots_3678 0x10028e4 /* U+28e4 BRAILLE PATTERN DOTS-3678 */ #define XK_braille_dots_13678 0x10028e5 /* U+28e5 BRAILLE PATTERN DOTS-13678 */ #define XK_braille_dots_23678 0x10028e6 /* U+28e6 BRAILLE PATTERN DOTS-23678 */ #define XK_braille_dots_123678 0x10028e7 /* U+28e7 BRAILLE PATTERN DOTS-123678 */ #define XK_braille_dots_4678 0x10028e8 /* U+28e8 BRAILLE PATTERN DOTS-4678 */ #define XK_braille_dots_14678 0x10028e9 /* U+28e9 BRAILLE PATTERN DOTS-14678 */ #define XK_braille_dots_24678 0x10028ea /* U+28ea BRAILLE PATTERN DOTS-24678 */ #define XK_braille_dots_124678 0x10028eb /* U+28eb BRAILLE PATTERN DOTS-124678 */ #define XK_braille_dots_34678 0x10028ec /* U+28ec BRAILLE PATTERN DOTS-34678 */ #define XK_braille_dots_134678 0x10028ed /* U+28ed BRAILLE PATTERN DOTS-134678 */ #define XK_braille_dots_234678 0x10028ee /* U+28ee BRAILLE PATTERN DOTS-234678 */ #define XK_braille_dots_1234678 0x10028ef /* U+28ef BRAILLE PATTERN DOTS-1234678 */ #define XK_braille_dots_5678 0x10028f0 /* U+28f0 BRAILLE PATTERN DOTS-5678 */ #define XK_braille_dots_15678 0x10028f1 /* U+28f1 BRAILLE PATTERN DOTS-15678 */ #define XK_braille_dots_25678 0x10028f2 /* U+28f2 BRAILLE PATTERN DOTS-25678 */ #define XK_braille_dots_125678 0x10028f3 /* U+28f3 BRAILLE PATTERN DOTS-125678 */ #define XK_braille_dots_35678 0x10028f4 /* U+28f4 BRAILLE PATTERN DOTS-35678 */ #define XK_braille_dots_135678 0x10028f5 /* U+28f5 BRAILLE PATTERN DOTS-135678 */ #define XK_braille_dots_235678 0x10028f6 /* U+28f6 BRAILLE PATTERN DOTS-235678 */ #define XK_braille_dots_1235678 0x10028f7 /* U+28f7 BRAILLE PATTERN DOTS-1235678 */ #define XK_braille_dots_45678 0x10028f8 /* U+28f8 BRAILLE PATTERN DOTS-45678 */ #define XK_braille_dots_145678 0x10028f9 /* U+28f9 BRAILLE PATTERN DOTS-145678 */ #define XK_braille_dots_245678 0x10028fa /* U+28fa BRAILLE PATTERN DOTS-245678 */ #define XK_braille_dots_1245678 0x10028fb /* U+28fb BRAILLE PATTERN DOTS-1245678 */ #define XK_braille_dots_345678 0x10028fc /* U+28fc BRAILLE PATTERN DOTS-345678 */ #define XK_braille_dots_1345678 0x10028fd /* U+28fd BRAILLE PATTERN DOTS-1345678 */ #define XK_braille_dots_2345678 0x10028fe /* U+28fe BRAILLE PATTERN DOTS-2345678 */ #define XK_braille_dots_12345678 0x10028ff /* U+28ff BRAILLE PATTERN DOTS-12345678 */ #endif /* XK_BRAILLE */ /* * Sinhala (http://unicode.org/charts/PDF/U0D80.pdf) * http://www.nongnu.org/sinhala/doc/transliteration/sinhala-transliteration_6.html */ #ifdef XK_SINHALA #define XK_Sinh_ng 0x1000d82 /* U+0D82 SINHALA ANUSVARAYA */ #define XK_Sinh_h2 0x1000d83 /* U+0D83 SINHALA VISARGAYA */ #define XK_Sinh_a 0x1000d85 /* U+0D85 SINHALA AYANNA */ #define XK_Sinh_aa 0x1000d86 /* U+0D86 SINHALA AAYANNA */ #define XK_Sinh_ae 0x1000d87 /* U+0D87 SINHALA AEYANNA */ #define XK_Sinh_aee 0x1000d88 /* U+0D88 SINHALA AEEYANNA */ #define XK_Sinh_i 0x1000d89 /* U+0D89 SINHALA IYANNA */ #define XK_Sinh_ii 0x1000d8a /* U+0D8A SINHALA IIYANNA */ #define XK_Sinh_u 0x1000d8b /* U+0D8B SINHALA UYANNA */ #define XK_Sinh_uu 0x1000d8c /* U+0D8C SINHALA UUYANNA */ #define XK_Sinh_ri 0x1000d8d /* U+0D8D SINHALA IRUYANNA */ #define XK_Sinh_rii 0x1000d8e /* U+0D8E SINHALA IRUUYANNA */ #define XK_Sinh_lu 0x1000d8f /* U+0D8F SINHALA ILUYANNA */ #define XK_Sinh_luu 0x1000d90 /* U+0D90 SINHALA ILUUYANNA */ #define XK_Sinh_e 0x1000d91 /* U+0D91 SINHALA EYANNA */ #define XK_Sinh_ee 0x1000d92 /* U+0D92 SINHALA EEYANNA */ #define XK_Sinh_ai 0x1000d93 /* U+0D93 SINHALA AIYANNA */ #define XK_Sinh_o 0x1000d94 /* U+0D94 SINHALA OYANNA */ #define XK_Sinh_oo 0x1000d95 /* U+0D95 SINHALA OOYANNA */ #define XK_Sinh_au 0x1000d96 /* U+0D96 SINHALA AUYANNA */ #define XK_Sinh_ka 0x1000d9a /* U+0D9A SINHALA KAYANNA */ #define XK_Sinh_kha 0x1000d9b /* U+0D9B SINHALA MAHA. KAYANNA */ #define XK_Sinh_ga 0x1000d9c /* U+0D9C SINHALA GAYANNA */ #define XK_Sinh_gha 0x1000d9d /* U+0D9D SINHALA MAHA. GAYANNA */ #define XK_Sinh_ng2 0x1000d9e /* U+0D9E SINHALA KANTAJA NAASIKYAYA */ #define XK_Sinh_nga 0x1000d9f /* U+0D9F SINHALA SANYAKA GAYANNA */ #define XK_Sinh_ca 0x1000da0 /* U+0DA0 SINHALA CAYANNA */ #define XK_Sinh_cha 0x1000da1 /* U+0DA1 SINHALA MAHA. CAYANNA */ #define XK_Sinh_ja 0x1000da2 /* U+0DA2 SINHALA JAYANNA */ #define XK_Sinh_jha 0x1000da3 /* U+0DA3 SINHALA MAHA. JAYANNA */ #define XK_Sinh_nya 0x1000da4 /* U+0DA4 SINHALA TAALUJA NAASIKYAYA */ #define XK_Sinh_jnya 0x1000da5 /* U+0DA5 SINHALA TAALUJA SANYOOGA NAASIKYAYA */ #define XK_Sinh_nja 0x1000da6 /* U+0DA6 SINHALA SANYAKA JAYANNA */ #define XK_Sinh_tta 0x1000da7 /* U+0DA7 SINHALA TTAYANNA */ #define XK_Sinh_ttha 0x1000da8 /* U+0DA8 SINHALA MAHA. TTAYANNA */ #define XK_Sinh_dda 0x1000da9 /* U+0DA9 SINHALA DDAYANNA */ #define XK_Sinh_ddha 0x1000daa /* U+0DAA SINHALA MAHA. DDAYANNA */ #define XK_Sinh_nna 0x1000dab /* U+0DAB SINHALA MUURDHAJA NAYANNA */ #define XK_Sinh_ndda 0x1000dac /* U+0DAC SINHALA SANYAKA DDAYANNA */ #define XK_Sinh_tha 0x1000dad /* U+0DAD SINHALA TAYANNA */ #define XK_Sinh_thha 0x1000dae /* U+0DAE SINHALA MAHA. TAYANNA */ #define XK_Sinh_dha 0x1000daf /* U+0DAF SINHALA DAYANNA */ #define XK_Sinh_dhha 0x1000db0 /* U+0DB0 SINHALA MAHA. DAYANNA */ #define XK_Sinh_na 0x1000db1 /* U+0DB1 SINHALA DANTAJA NAYANNA */ #define XK_Sinh_ndha 0x1000db3 /* U+0DB3 SINHALA SANYAKA DAYANNA */ #define XK_Sinh_pa 0x1000db4 /* U+0DB4 SINHALA PAYANNA */ #define XK_Sinh_pha 0x1000db5 /* U+0DB5 SINHALA MAHA. PAYANNA */ #define XK_Sinh_ba 0x1000db6 /* U+0DB6 SINHALA BAYANNA */ #define XK_Sinh_bha 0x1000db7 /* U+0DB7 SINHALA MAHA. BAYANNA */ #define XK_Sinh_ma 0x1000db8 /* U+0DB8 SINHALA MAYANNA */ #define XK_Sinh_mba 0x1000db9 /* U+0DB9 SINHALA AMBA BAYANNA */ #define XK_Sinh_ya 0x1000dba /* U+0DBA SINHALA YAYANNA */ #define XK_Sinh_ra 0x1000dbb /* U+0DBB SINHALA RAYANNA */ #define XK_Sinh_la 0x1000dbd /* U+0DBD SINHALA DANTAJA LAYANNA */ #define XK_Sinh_va 0x1000dc0 /* U+0DC0 SINHALA VAYANNA */ #define XK_Sinh_sha 0x1000dc1 /* U+0DC1 SINHALA TAALUJA SAYANNA */ #define XK_Sinh_ssha 0x1000dc2 /* U+0DC2 SINHALA MUURDHAJA SAYANNA */ #define XK_Sinh_sa 0x1000dc3 /* U+0DC3 SINHALA DANTAJA SAYANNA */ #define XK_Sinh_ha 0x1000dc4 /* U+0DC4 SINHALA HAYANNA */ #define XK_Sinh_lla 0x1000dc5 /* U+0DC5 SINHALA MUURDHAJA LAYANNA */ #define XK_Sinh_fa 0x1000dc6 /* U+0DC6 SINHALA FAYANNA */ #define XK_Sinh_al 0x1000dca /* U+0DCA SINHALA AL-LAKUNA */ #define XK_Sinh_aa2 0x1000dcf /* U+0DCF SINHALA AELA-PILLA */ #define XK_Sinh_ae2 0x1000dd0 /* U+0DD0 SINHALA AEDA-PILLA */ #define XK_Sinh_aee2 0x1000dd1 /* U+0DD1 SINHALA DIGA AEDA-PILLA */ #define XK_Sinh_i2 0x1000dd2 /* U+0DD2 SINHALA IS-PILLA */ #define XK_Sinh_ii2 0x1000dd3 /* U+0DD3 SINHALA DIGA IS-PILLA */ #define XK_Sinh_u2 0x1000dd4 /* U+0DD4 SINHALA PAA-PILLA */ #define XK_Sinh_uu2 0x1000dd6 /* U+0DD6 SINHALA DIGA PAA-PILLA */ #define XK_Sinh_ru2 0x1000dd8 /* U+0DD8 SINHALA GAETTA-PILLA */ #define XK_Sinh_e2 0x1000dd9 /* U+0DD9 SINHALA KOMBUVA */ #define XK_Sinh_ee2 0x1000dda /* U+0DDA SINHALA DIGA KOMBUVA */ #define XK_Sinh_ai2 0x1000ddb /* U+0DDB SINHALA KOMBU DEKA */ #define XK_Sinh_o2 0x1000ddc /* U+0DDC SINHALA KOMBUVA HAA AELA-PILLA*/ #define XK_Sinh_oo2 0x1000ddd /* U+0DDD SINHALA KOMBUVA HAA DIGA AELA-PILLA*/ #define XK_Sinh_au2 0x1000dde /* U+0DDE SINHALA KOMBUVA HAA GAYANUKITTA */ #define XK_Sinh_lu2 0x1000ddf /* U+0DDF SINHALA GAYANUKITTA */ #define XK_Sinh_ruu2 0x1000df2 /* U+0DF2 SINHALA DIGA GAETTA-PILLA */ #define XK_Sinh_luu2 0x1000df3 /* U+0DF3 SINHALA DIGA GAYANUKITTA */ #define XK_Sinh_kunddaliya 0x1000df4 /* U+0DF4 SINHALA KUNDDALIYA */ #endif /* XK_SINHALA */ xorgproto-2023.2/include/X11/Sunkeysym.h0000644000175000017500000000764114443010026014744 00000000000000/* * Copyright (c) 1991, Oracle and/or its affiliates. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. */ /************************************************************ Copyright 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ***********************************************************/ /* * Floating Accent */ #define SunXK_FA_Grave 0x1005FF00 #define SunXK_FA_Circum 0x1005FF01 #define SunXK_FA_Tilde 0x1005FF02 #define SunXK_FA_Acute 0x1005FF03 #define SunXK_FA_Diaeresis 0x1005FF04 #define SunXK_FA_Cedilla 0x1005FF05 /* * Miscellaneous Functions */ #define SunXK_F36 0x1005FF10 /* Labeled F11 */ #define SunXK_F37 0x1005FF11 /* Labeled F12 */ #define SunXK_Sys_Req 0x1005FF60 #define SunXK_Print_Screen 0x0000FF61 /* Same as XK_Print */ /* * International & Multi-Key Character Composition */ #define SunXK_Compose 0x0000FF20 /* Same as XK_Multi_key */ #define SunXK_AltGraph 0x0000FF7E /* Same as XK_Mode_switch */ /* * Cursor Control */ #define SunXK_PageUp 0x0000FF55 /* Same as XK_Prior */ #define SunXK_PageDown 0x0000FF56 /* Same as XK_Next */ /* * Open Look Functions */ #define SunXK_Undo 0x0000FF65 /* Same as XK_Undo */ #define SunXK_Again 0x0000FF66 /* Same as XK_Redo */ #define SunXK_Find 0x0000FF68 /* Same as XK_Find */ #define SunXK_Stop 0x0000FF69 /* Same as XK_Cancel */ #define SunXK_Props 0x1005FF70 #define SunXK_Front 0x1005FF71 #define SunXK_Copy 0x1005FF72 #define SunXK_Open 0x1005FF73 #define SunXK_Paste 0x1005FF74 #define SunXK_Cut 0x1005FF75 #define SunXK_PowerSwitch 0x1005FF76 #define SunXK_AudioLowerVolume 0x1005FF77 #define SunXK_AudioMute 0x1005FF78 #define SunXK_AudioRaiseVolume 0x1005FF79 #define SunXK_VideoDegauss 0x1005FF7A #define SunXK_VideoLowerBrightness 0x1005FF7B #define SunXK_VideoRaiseBrightness 0x1005FF7C #define SunXK_PowerSwitchShift 0x1005FF7D xorgproto-2023.2/include/X11/extensions/0000755000175000017500000000000014443010035015033 500000000000000xorgproto-2023.2/include/X11/extensions/syncproto.h0000644000175000017500000002537114443010026017174 00000000000000/* Copyright 1991, 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /*********************************************************** Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts, and Olivetti Research Limited, Cambridge, England. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or Olivetti not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THEY 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. ******************************************************************/ #ifndef _SYNCPROTO_H_ #define _SYNCPROTO_H_ #include #define X_SyncInitialize 0 #define X_SyncListSystemCounters 1 #define X_SyncCreateCounter 2 #define X_SyncSetCounter 3 #define X_SyncChangeCounter 4 #define X_SyncQueryCounter 5 #define X_SyncDestroyCounter 6 #define X_SyncAwait 7 #define X_SyncCreateAlarm 8 #define X_SyncChangeAlarm 9 #define X_SyncQueryAlarm 10 #define X_SyncDestroyAlarm 11 #define X_SyncSetPriority 12 #define X_SyncGetPriority 13 #define X_SyncCreateFence 14 #define X_SyncTriggerFence 15 #define X_SyncResetFence 16 #define X_SyncDestroyFence 17 #define X_SyncQueryFence 18 #define X_SyncAwaitFence 19 /* cover up types from sync.h to make sure they're the right size for * protocol packaging. These will be undef'ed after all the protocol * structures are defined. */ #define XSyncCounter CARD32 #define XSyncAlarm CARD32 #define XSyncFence CARD32 #define Drawable CARD32 /* * Initialize */ typedef struct _xSyncInitialize { CARD8 reqType; CARD8 syncReqType; CARD16 length; CARD8 majorVersion; CARD8 minorVersion; CARD16 pad; } xSyncInitializeReq; #define sz_xSyncInitializeReq 8 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD8 majorVersion; CARD8 minorVersion; CARD16 pad; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xSyncInitializeReply; #define sz_xSyncInitializeReply 32 /* * ListSystemCounters */ typedef struct _xSyncListSystemCounters { CARD8 reqType; CARD8 syncReqType; CARD16 length; } xSyncListSystemCountersReq; #define sz_xSyncListSystemCountersReq 4 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; INT32 nCounters; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xSyncListSystemCountersReply; #define sz_xSyncListSystemCountersReply 32 typedef struct { XSyncCounter counter; INT32 resolution_hi; CARD32 resolution_lo; CARD16 name_length; } xSyncSystemCounter; #define sz_xSyncSystemCounter 14 /* * Create Counter */ typedef struct _xSyncCreateCounterReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncCounter cid; INT32 initial_value_hi; CARD32 initial_value_lo; } xSyncCreateCounterReq; #define sz_xSyncCreateCounterReq 16 /* * Change Counter */ typedef struct _xSyncChangeCounterReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncCounter cid; INT32 value_hi; CARD32 value_lo; } xSyncChangeCounterReq; #define sz_xSyncChangeCounterReq 16 /* * Set Counter */ typedef struct _xSyncSetCounterReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncCounter cid; INT32 value_hi; CARD32 value_lo; } xSyncSetCounterReq; #define sz_xSyncSetCounterReq 16 /* * Destroy Counter */ typedef struct _xSyncDestroyCounterReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncCounter counter; } xSyncDestroyCounterReq; #define sz_xSyncDestroyCounterReq 8 /* * Query Counter */ typedef struct _xSyncQueryCounterReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncCounter counter; } xSyncQueryCounterReq; #define sz_xSyncQueryCounterReq 8 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; INT32 value_hi; CARD32 value_lo; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xSyncQueryCounterReply; #define sz_xSyncQueryCounterReply 32 /* * Await */ typedef struct _xSyncAwaitReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; } xSyncAwaitReq; #define sz_xSyncAwaitReq 4 typedef struct _xSyncWaitCondition { XSyncCounter counter; CARD32 value_type; INT32 wait_value_hi; CARD32 wait_value_lo; CARD32 test_type; INT32 event_threshold_hi; CARD32 event_threshold_lo; } xSyncWaitCondition; #define sz_xSyncWaitCondition 28 /* * Create Alarm */ typedef struct _xSyncCreateAlarmReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncAlarm id; CARD32 valueMask; } xSyncCreateAlarmReq; #define sz_xSyncCreateAlarmReq 12 /* * Destroy Alarm */ typedef struct _xSyncDestroyAlarmReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncAlarm alarm; } xSyncDestroyAlarmReq; #define sz_xSyncDestroyAlarmReq 8 /* * Query Alarm */ typedef struct _xSyncQueryAlarmReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncAlarm alarm; } xSyncQueryAlarmReq; #define sz_xSyncQueryAlarmReq 8 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; XSyncCounter counter; CARD32 value_type; INT32 wait_value_hi; CARD32 wait_value_lo; CARD32 test_type; INT32 delta_hi; CARD32 delta_lo; BOOL events; BYTE state; BYTE pad0; BYTE pad1; } xSyncQueryAlarmReply; #define sz_xSyncQueryAlarmReply 40 /* * Change Alarm */ typedef struct _xSyncChangeAlarmReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncAlarm alarm; CARD32 valueMask; } xSyncChangeAlarmReq; #define sz_xSyncChangeAlarmReq 12 /* * SetPriority */ typedef struct _xSyncSetPriority{ CARD8 reqType; CARD8 syncReqType; CARD16 length; CARD32 id; INT32 priority; } xSyncSetPriorityReq; #define sz_xSyncSetPriorityReq 12 /* * Get Priority */ typedef struct _xSyncGetPriority{ CARD8 reqType; CARD8 syncReqType; CARD16 length; CARD32 id; /*XXX XID? */ } xSyncGetPriorityReq; #define sz_xSyncGetPriorityReq 8 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; INT32 priority; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xSyncGetPriorityReply; #define sz_xSyncGetPriorityReply 32 /* * Create Fence */ typedef struct _xSyncCreateFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; Drawable d; XSyncFence fid; BOOL initially_triggered; CARD8 pad0; CARD16 pad1; } xSyncCreateFenceReq; #define sz_xSyncCreateFenceReq 16 /* * Put a fence object in the "triggered" state. */ typedef struct _xSyncTriggerFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncFence fid; } xSyncTriggerFenceReq; #define sz_xSyncTriggerFenceReq 8 /* * Put a fence in the "untriggered" state. */ typedef struct _xSyncResetFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncFence fid; } xSyncResetFenceReq; #define sz_xSyncResetFenceReq 8 /* * Destroy a fence object */ typedef struct _xSyncDestroyFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncFence fid; } xSyncDestroyFenceReq; #define sz_xSyncDestroyFenceReq 8 /* * Query a fence object */ typedef struct _xSyncQueryFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; XSyncFence fid; } xSyncQueryFenceReq; #define sz_xSyncQueryFenceReq 8 /* * Wait for any of a list of fence sync objects * to reach the "triggered" state. */ typedef struct _xSyncAwaitFenceReq { CARD8 reqType; CARD8 syncReqType; CARD16 length; } xSyncAwaitFenceReq; #define sz_xSyncAwaitFenceReq 4 typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; BOOL triggered; BYTE pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xSyncQueryFenceReply; #define sz_xSyncQueryFenceReply 32 /* * Events */ typedef struct _xSyncCounterNotifyEvent { BYTE type; BYTE kind; CARD16 sequenceNumber; XSyncCounter counter; INT32 wait_value_hi; CARD32 wait_value_lo; INT32 counter_value_hi; CARD32 counter_value_lo; CARD32 time; CARD16 count; BOOL destroyed; BYTE pad0; } xSyncCounterNotifyEvent; typedef struct _xSyncAlarmNotifyEvent { BYTE type; BYTE kind; CARD16 sequenceNumber; XSyncAlarm alarm; INT32 counter_value_hi; CARD32 counter_value_lo; INT32 alarm_value_hi; CARD32 alarm_value_lo; CARD32 time; CARD8 state; BYTE pad0; BYTE pad1; BYTE pad2; } xSyncAlarmNotifyEvent; #undef XSyncCounter #undef XSyncAlarm #undef XSyncFence #undef Drawable #endif /* _SYNCPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/dbeproto.h0000644000175000017500000001625714443010026016755 00000000000000/****************************************************************************** * * Copyright (c) 1994, 1995 Hewlett-Packard Company * * 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 HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Except as contained in this notice, the name of the Hewlett-Packard * Company 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 Hewlett-Packard Company. * * Header file for Xlib-related DBE * *****************************************************************************/ #ifndef DBE_PROTO_H #define DBE_PROTO_H #include /* Request values used in (S)ProcDbeDispatch() */ #define X_DbeGetVersion 0 #define X_DbeAllocateBackBufferName 1 #define X_DbeDeallocateBackBufferName 2 #define X_DbeSwapBuffers 3 #define X_DbeBeginIdiom 4 #define X_DbeEndIdiom 5 #define X_DbeGetVisualInfo 6 #define X_DbeGetBackBufferAttributes 7 typedef CARD8 xDbeSwapAction; typedef CARD32 xDbeBackBuffer; /* TYPEDEFS */ /* Protocol data types */ typedef struct { CARD32 window; /* window */ xDbeSwapAction swapAction; /* swap action */ CARD8 pad1; /* unused */ CARD16 pad2; } xDbeSwapInfo; typedef struct { CARD32 visualID; /* associated visual */ CARD8 depth; /* depth of visual */ CARD8 perfLevel; /* performance level hint */ CARD16 pad1; } xDbeVisInfo; #define sz_xDbeVisInfo 8 typedef struct { CARD32 n; /* number of visual info items in list */ } xDbeScreenVisInfo; /* followed by n xDbeVisInfo items */ typedef struct { CARD32 window; /* window */ } xDbeBufferAttributes; /* Requests and replies */ typedef struct { CARD8 reqType; /* major-opcode: always codes->major_opcode */ CARD8 dbeReqType; /* minor-opcode: always X_DbeGetVersion (0) */ CARD16 length; /* request length: (2) */ CARD8 majorVersion; /* client-major-version */ CARD8 minorVersion; /* client-minor-version */ CARD16 unused; /* unused */ } xDbeGetVersionReq; #define sz_xDbeGetVersionReq 8 typedef struct { BYTE type; /* Reply: X_Reply (1) */ CARD8 unused; /* unused */ CARD16 sequenceNumber; /* sequence number */ CARD32 length; /* reply length: (0) */ CARD8 majorVersion; /* server-major-version */ CARD8 minorVersion; /* server-minor-version */ CARD16 pad1; /* unused */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xDbeGetVersionReply; #define sz_xDbeGetVersionReply 32 typedef struct { CARD8 reqType; /* major-opcode: codes->major_opcode */ CARD8 dbeReqType; /* X_DbeAllocateBackBufferName (1) */ CARD16 length; /* request length: (4) */ CARD32 window; /* window */ xDbeBackBuffer buffer; /* back buffer name */ xDbeSwapAction swapAction; /* swap action hint */ CARD8 pad1; /* unused */ CARD16 pad2; } xDbeAllocateBackBufferNameReq; #define sz_xDbeAllocateBackBufferNameReq 16 typedef struct { CARD8 reqType; /* major-opcode: codes->major_opcode */ CARD8 dbeReqType; /* X_DbeDeallocateBackBufferName (2) */ CARD16 length; /* request length: (2) */ xDbeBackBuffer buffer; /* back buffer name */ } xDbeDeallocateBackBufferNameReq; #define sz_xDbeDeallocateBackBufferNameReq 8 typedef struct { CARD8 reqType; /* major-opcode: always codes->major_opcode */ CARD8 dbeReqType; /* minor-opcode: always X_DbeSwapBuffers (3) */ CARD16 length; /* request length: (2+2n) */ CARD32 n; /* n, number of window/swap action pairs */ } xDbeSwapBuffersReq; /* followed by n window/swap action pairs */ #define sz_xDbeSwapBuffersReq 8 typedef struct { CARD8 reqType; /* major-opcode: always codes->major_opcode */ CARD8 dbeReqType; /* minor-opcode: always X_DbeBeginIdom (4) */ CARD16 length; /* request length: (1) */ } xDbeBeginIdiomReq; #define sz_xDbeBeginIdiomReq 4 typedef struct { CARD8 reqType; /* major-opcode: always codes->major_opcode */ CARD8 dbeReqType; /* minor-opcode: always X_DbeEndIdom (5) */ CARD16 length; /* request length: (1) */ } xDbeEndIdiomReq; #define sz_xDbeEndIdiomReq 4 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 dbeReqType; /* always X_DbeGetVisualInfo (6) */ CARD16 length; /* request length: (2+n) */ CARD32 n; /* n, number of drawables in list */ } xDbeGetVisualInfoReq; /* followed by n drawables */ #define sz_xDbeGetVisualInfoReq 8 typedef struct { BYTE type; /* Reply: X_Reply (1) */ CARD8 unused; /* unused */ CARD16 sequenceNumber; /* sequence number */ CARD32 length; /* reply length */ CARD32 m; /* m, number of visual infos in list */ CARD32 pad1; /* unused */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDbeGetVisualInfoReply; /* followed by m visual infos */ #define sz_xDbeGetVisualInfoReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 dbeReqType; /* X_DbeGetBackBufferAttributes (7) */ CARD16 length; /* request length: (2) */ xDbeBackBuffer buffer; /* back buffer name */ } xDbeGetBackBufferAttributesReq; #define sz_xDbeGetBackBufferAttributesReq 8 typedef struct { BYTE type; /* Reply: X_Reply (1) */ CARD8 unused; /* unused */ CARD16 sequenceNumber; /* sequence number */ CARD32 length; /* reply length: (0) */ CARD32 attributes; /* attributes */ CARD32 pad1; /* unused */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDbeGetBackBufferAttributesReply; #define sz_xDbeGetBackBufferAttributesReply 32 #endif /* DBE_PROTO_H */ xorgproto-2023.2/include/X11/extensions/xtrapemacros.h0000644000175000017500000004032114443010026017634 00000000000000/* $XFree86: xc/include/extensions/xtrapemacros.h,v 1.1 2001/11/02 23:29:26 dawes Exp $ */ #ifndef __XTRAPEMACROS__ #define __XTRAPEMACROS__ "@(#)xtrapemacros.h 1.9 - 90/09/18 " /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991, 1994 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This include file is designed to provide the *visible* * interface to XTrap data structures. Fields can be set * using these macros by client programs unless otherwise * specified; however, use of Trap Context convenience * routines is strongly encouraged (XETrapContext.c) */ #include #include /* msleep macro to replace msleep() for portability reasons */ #define msleep(m) usleep((m)*1000) /* Copying TC's assumes that the new TC must be created */ #define XECopyTC(src,mask,dest) \ (dest = XECreateTC(((src)->dpy), (mask), (&((src)->values)))) /* Expands to SET each element of the TCValues structure * Returns the TCValues Mask so that the Set can be entered * as an argument to the XEChangeTC() routine call */ /* Note: req_cb & evt_cb would only be used if you wanted to * *share* callbacks between Trap Contexts. Normally, * XEAddRequestCB() and XEAddEventCB() would be used. */ #define XETrapSetCfgReqCB(tcv,x) ((tcv)->req_cb = (x)) #define XETrapSetCfgEvtCB(tcv,x) ((tcv)->evt_cb = (x)) #define XETrapSetCfgMaxPktSize(tcv,x) ((tcv)->v.max_pkt_size = (x)) #define XETrapSetCfgCmdKey(tcv,x) ((tcv)->v.cmd_key = (x)) /* Note: e is only pertinent for "valid" or "data" */ #define XETrapSetCfgFlags(tcv,e,a) \ memcpy((tcv)->v.flags.e, (a), sizeof((tcv)->v.flags.e)) #define XETrapSetCfgFlagTimestamp(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapTimestamp, (x)) #define XETrapSetCfgFlagCmd(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapCmd, (x)) #define XETrapSetCfgFlagCmdKeyMod(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapCmdKeyMod, (x)) #define XETrapSetCfgFlagRequest(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapRequest, (x)) #define XETrapSetCfgFlagEvent(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapEvent, (x)) #define XETrapSetCfgFlagMaxPacket(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapMaxPacket, (x)) #define XETrapSetCfgFlagStatistics(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapStatistics, (x)) #define XETrapSetCfgFlagWinXY(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapWinXY, (x)) #define XETrapSetCfgFlagCursor(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapCursor, (x)) #define XETrapSetCfgFlagReq(tcv,request,x) \ BitSet((tcv)->v.flags.req, (request), (x)) #define XETrapSetCfgFlagXInput(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapXInput, (x)) #define XETrapSetCfgFlagColorReplies(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapColorReplies, (x)) #define XETrapSetCfgFlagGrabServer(tcv,e,x) \ BitSet((tcv)->v.flags.e, XETrapGrabServer, (x)) #define XETrapSetCfgFlagEvt(tcv,evt,x) \ BitSet((tcv)->v.flags.event, (evt), (x)) #define XETrapSetValFlagDeltaTimes(tcv,x) \ BitSet((tcv)->tc_flags, XETCDeltaTimes, (x)) /* Fields returned in the "GetAvailable" request */ #define XETrapGetAvailPFIdent(avail) ((avail)->pf_ident) #define XETrapGetAvailRelease(avail) ((avail)->xtrap_release) #define XETrapGetAvailVersion(avail) ((avail)->xtrap_version) #define XETrapGetAvailRevision(avail) ((avail)->xtrap_revision) #define XETrapGetAvailMaxPktSize(avail) ((avail)->max_pkt_size) #define XETrapGetAvailFlags(avail,a) \ memcpy((a), (avail)->valid, sizeof((avail)->valid)) #define XETrapGetAvailFlagTimestamp(avail) \ (BitValue((avail)->valid, XETrapTimestamp)) #define XETrapGetAvailFlagCmd(avail) \ (BitValue((avail)->valid, XETrapCmd)) #define XETrapGetAvailFlagCmdKeyMod(avail) \ (BitValue((avail)->valid, XETrapCmdKeyMod)) #define XETrapGetAvailFlagRequest(avail) \ (BitValue((avail)->valid, XETrapRequest)) #define XETrapGetAvailFlagEvent(avail) \ (BitValue((avail)->valid, XETrapEvent)) #define XETrapGetAvailFlagMaxPacket(avail) \ (BitValue((avail)->valid, XETrapMaxPacket)) #define XETrapGetAvailFlagStatistics(avail) \ (BitValue((avail)->valid, XETrapStatistics)) #define XETrapGetAvailFlagWinXY(avail) \ (BitValue((avail)->valid, XETrapWinXY)) #define XETrapGetAvailFlagCursor(avail) \ (BitValue((avail)->valid, XETrapCursor)) #define XETrapGetAvailFlagXInput(avail) \ (BitValue((avail)->valid, XETrapXInput)) #define XETrapGetAvailFlagVecEvt(avail) \ (BitValue((avail)->valid, XETrapVectorEvents)) #define XETrapGetAvailFlagColorReplies(avail) \ (BitValue((avail)->valid, XETrapColorReplies)) #define XETrapGetAvailFlagGrabServer(avail) \ (BitValue((avail)->valid, XETrapGrabServer)) #define XETrapGetAvailOpCode(avail) ((avail)->major_opcode) /* Macro's for creating current request and trap context macros */ #define XETrapGetCfgMaxPktSize(cfg) ((cfg)->max_pkt_size) #define XETrapGetCfgCmdKey(cfg) ((cfg)->cmd_key) #define XETrapGetCfgFlags(cfg,e,a) \ memcpy((a), (cfg)->flags.e, sizeof((cfg)->flags.e)) #define XETrapGetCfgFlagTimestamp(cfg,e) \ (BitValue((cfg)->flags.e, XETrapTimestamp)) #define XETrapGetCfgFlagCmd(cfg,e) \ (BitValue((cfg)->flags.e, XETrapCmd)) #define XETrapGetCfgFlagCmdKeyMod(cfg,e) \ (BitValue((cfg)->flags.e, XETrapCmdKeyMod)) #define XETrapGetCfgFlagRequest(cfg,e) \ (BitValue((cfg)->flags.e, XETrapRequest)) #define XETrapGetCfgFlagEvent(cfg,e) \ (BitValue((cfg)->flags.e, XETrapEvent)) #define XETrapGetCfgFlagMaxPacket(cfg,e) \ (BitValue((cfg)->flags.e, XETrapMaxPacket)) #define XETrapGetCfgFlagStatistics(cfg,e) \ (BitValue((cfg)->flags.e, XETrapStatistics)) #define XETrapGetCfgFlagWinXY(cfg,e) \ (BitValue((cfg)->flags.e, XETrapWinXY)) #define XETrapGetCfgFlagCursor(cfg,e) \ (BitValue((cfg)->flags.e, XETrapCursor)) #define XETrapGetCfgFlagXInput(cfg,e) \ (BitValue((cfg)->flags.e, XETrapXInput)) #define XETrapGetCfgFlagColorReplies(cfg,e) \ (BitValue((cfg)->flags.e, XETrapColorReplies)) #define XETrapGetCfgFlagGrabServer(cfg,e) \ (BitValue((cfg)->flags.e, XETrapGrabServer)) /* Request values are in "Xproto.h" of the flavor X_RequestType */ #define XETrapGetCfgFlagReq(cfg,request) \ (BitValue((cfg)->flags.req, (request))) /* Event types are in "X.h" of the flavor EventType (e.g. KeyPress) */ #define XETrapGetCfgFlagEvt(cfg,evt) \ (BitValue((cfg)->flags.event, (evt))) /* Fields returned int the "GetCurrent" Request */ #define XETrapGetCurX(avail) ((avail)->cur_x) #define XETrapGetCurY(avail) ((avail)->cur_y) #define XETrapGetCurSFlags(cur,a) \ memcpy((a), (cur)->state_flags, sizeof((cur)->state_flags)) #define XETrapGetCurMaxPktSize(cur) (XETrapGetCfgMaxPktSize(&((cur)->config))) #define XETrapGetCurCmdKey(cur) (XETrapGetCfgCmdKey(&((cur)->config))) /* Note: e is only pertinent for "valid" or "data" */ #define XETrapGetCurCFlags(cur,e,a) (XETrapGetCfgFlags(&((cur)->config),e,a)) #define XETrapGetCurFlagTimestamp(cur,e) \ (XETrapGetCfgFlagTimestamp(&((cur)->config),e)) #define XETrapGetCurFlagCmd(cur,e) (XETrapGetCfgFlagCmd(&((cur)->config),e)) #define XETrapGetCurFlagCmdKeyMod(cur,e) \ (XETrapGetCfgFlagCmdKeyMod(&((cur)->config),e)) #define XETrapGetCurFlagRequest(cur,r) \ (XETrapGetCfgFlagRequest(&((cur)->config),r)) #define XETrapGetCurFlagEvent(cur,e) \ (XETrapGetCfgFlagEvent(&((cur)->config),e)) #define XETrapGetCurFlagMaxPacket(cur,e) \ (XETrapGetCfgFlagMaxPacket(&((cur)->config),e)) #define XETrapGetCurFlagStatistics(cur,e) \ (XETrapGetCfgFlagStatistics(&((cur)->config),e)) #define XETrapGetCurFlagWinXY(cur,e) \ (XETrapGetCfgFlagWinXY(&((cur)->config),e)) #define XETrapGetCurFlagCursor(cur,e) \ (XETrapGetCfgFlagCursor(&((cur)->config),e)) #define XETrapGetCurFlagXInput(cur,e) \ (XETrapGetCfgFlagXInput(&((cur)->config),e)) #define XETrapGetCurFlagColorReplies(cur,e) \ (XETrapGetCfgFlagColorReplies(&((cur)->config),e)) #define XETrapGetCurFlagGrabServer(cur,e) \ (XETrapGetCfgFlagGrabServer(&((cur)->config),e)) /* Request values are in "Xproto.h" of the flavor X_RequestType */ #define XETrapGetCurFlagReq(cur,r) (XETrapGetCfgFlagReq(&((cur)->config),r)) /* Event types are in "X.h" of the flavor EventType (e.g. KeyPress) */ #define XETrapGetCurFlagEvt(cur,e) (XETrapGetCfgFlagEvt(&((cur)->config),e)) /* Fields returned int the "GetStatistics" Request */ #define XETrapGetStatsReq(stat,e) ((stat)->requests[(e)]) #define XETrapGetStatsEvt(stat,e) ((stat)->events[(e)]) /* Fields returned in the "GetVersion" request */ #define XETrapGetVersRelease(vers) ((vers)->xtrap_release) #define XETrapGetVersVersion(vers) ((vers)->xtrap_version) #define XETrapGetVersRevision(vers) ((vers)->xtrap_revision) /* Fields returned in the "GetLastInpTime" request */ #define XETrapGetLastInpTime(time_rep) ((time_rep)->last_time) /* Expands to GET each element of the TCValues structure */ #define XETrapGetTCReqCB(tc) ((tc)->values.req_cb) #define XETrapGetTCEvtCB(tc) ((tc)->values.evt_cb) #define XETrapGetTCTime(tc) ((tc)->values.last_time) /* TC specific flags */ #define XETrapGetTCLFlags(tc,a) \ memcpy((a), (tc)->values.tc_flags, sizeof((tc)->values.tc_flags)) #define XETrapGetTCFlagDeltaTimes(tc) \ (BitValue((tc)->values.tc_flags, XETCDeltaTimes)) #define XETrapGetTCFlagTrapActive(tc) \ (BitValue((tc)->values.tc_flags, XETCTrapActive)) #define XETrapGetTCMaxPktSize(tc) (XETrapGetCfgMaxPktSize(&((tc)->values.v))) #define XETrapGetTCCmdKey(tc) (XETrapGetCfgCmdKey(&((tc)->values.v))) /* Note: e is only pertinent for "valid" or "data" */ #define XETrapGetTCFlags(tc,e,a) (XETrapGetCfgFlags(&((tc)->values.v),e,a)) #define XETrapGetTCFlagTimestamp(tc,e) \ (XETrapGetCfgFlagTimestamp(&((tc)->values.v),e)) #define XETrapGetTCFlagCmd(tc,e) \ (XETrapGetCfgFlagCmd(&((tc)->values.v),e)) #define XETrapGetTCFlagCmdKeyMod(tc,e) \ (XETrapGetCfgFlagCmdKeyMod(&((tc)->values.v),e)) #define XETrapGetTCFlagRequest(tc,r) \ (XETrapGetCfgFlagRequest(&((tc)->values.v),r)) #define XETrapGetTCFlagEvent(tc,e) \ (XETrapGetCfgFlagEvent(&((tc)->values.v),e)) #define XETrapGetTCFlagMaxPacket(tc,e) \ (XETrapGetCfgFlagMaxPacket(&((tc)->values.v),e)) #define XETrapGetTCFlagStatistics(tc,e) \ (XETrapGetCfgFlagStatistics(&((tc)->values.v),e)) #define XETrapGetTCFlagWinXY(tc,e) \ (XETrapGetCfgFlagWinXY(&((tc)->values.v),e)) #define XETrapGetTCFlagCursor(tc,e) \ (XETrapGetCfgFlagCursor(&((tc)->values.v),e)) #define XETrapGetTCFlagXInput(tc,e) \ (XETrapGetCfgFlagXInput(&((tc)->values.v),e)) #define XETrapGetTCFlagColorReplies(tc,e) \ (XETrapGetCfgFlagColorReplies(&((tc)->values.v),e)) #define XETrapGetTCFlagGrabServer(tc,e) \ (XETrapGetCfgFlagGrabServer(&((tc)->values.v),e)) /* Request values are in "Xproto.h" of the flavor X_RequestType */ #define XETrapGetTCFlagReq(tc,r) \ (XETrapGetCfgFlagReq(&((tc)->values.v),r)) /* Event types are in "X.h" of the flavor EventType (e.g. KeyPress) */ #define XETrapGetTCFlagEvt(tc,e) \ (XETrapGetCfgFlagEvt(&((tc)->values.v),e)) /* The following can/should *not* be set directly! */ #define XETrapGetNext(tc) ((tc)->next) #define XETrapGetDpy(tc) ((tc)->dpy) #define XETrapGetEventBase(tc) ((tc)->eventBase) #define XETrapGetErrorBase(tc) ((tc)->errorBase) #define XETrapGetExtOpcode(tc) ((tc)->extOpcode) #define XETrapGetXBuff(tc) ((tc)->xbuff) #define XETrapGetXMaxSize(tc) ((tc)->xmax_size) #define XETrapGetExt(tc) ((tc)->ext_data) #define XETrapGetDirty(tc) ((tc)->dirty) #define XETrapGetValues(tc) memcpy((x),(tc)->values,sizeof((tc)->values)) #define XETrapGetEventFunc(tc) ((tc)->eventFunc) #define XETrapGetHeaderCount(phdr) ((phdr)->count) #define XETrapGetHeaderTimestamp(phdr) ((phdr)->timestamp) #define XETrapGetHeaderType(phdr) ((phdr)->type) #define XETrapGetHeaderScreen(phdr) ((phdr)->screen) #define XETrapGetHeaderWindowX(phdr) ((phdr)->win_x) #define XETrapGetHeaderWindowY(phdr) ((phdr)->win_y) #define XETrapGetHeaderClient(phdr) ((phdr)->client) #define XEGetRelease(tc) ((tc)->release) #define XEGetVersion(tc) ((tc)->version) #define XEGetRevision(tc) ((tc)->revision) /* Condition handling macros */ #if !defined(vms) && \ (!defined(_InitExceptionHandling) || !defined(_ClearExceptionHandling)) # ifndef _SetSIGBUSHandling # ifdef SIGBUS # define _SetSIGBUSHandling(rtn) (void)signal(SIGBUS, rtn) # else # define _SetSIGBUSHandling(rtn) /* */ # endif # endif # ifndef _SetSIGSEGVHandling # ifdef SIGSEGV # define _SetSIGSEGVHandling(rtn) (void)signal(SIGSEGV, rtn) # else # define _SetSIGSEGVHandling(rtn) /* */ # endif # endif # ifndef _SetSIGFPEHandling # ifdef SIGFPE # define _SetSIGFPEHandling(rtn) (void)signal(SIGFPE, rtn) # else # define _SetSIGFPEHandling(rtn) /* */ # endif # endif # ifndef _SetSIGILLHandling # ifdef SIGILL # define _SetSIGILLHandling(rtn) (void)signal(SIGILL, rtn) # else # define _SetSIGILLHandling(rtn) /* */ # endif # endif # ifndef _SetSIGSYSHandling # ifdef SIGSYS # define _SetSIGSYSHandling(rtn) (void)signal(SIGSYS, rtn) # else # define _SetSIGSYSHandling(rtn) /* */ # endif # endif # ifndef _SetSIGHUPHandling # ifdef SIGHUP # define _SetSIGHUPHandling(rtn) (void)signal(SIGHUP, rtn) # else # define _SetSIGHUPHandling(rtn) /* */ # endif # endif # ifndef _SetSIGPIPEHandling # ifdef SIGPIPE # define _SetSIGPIPEHandling(rtn) (void)signal(SIGPIPE, rtn) # else # define _SetSIGPIPEHandling(rtn) /* */ # endif # endif # ifndef _SetSIGTERMHandling # ifdef SIGTERM # define _SetSIGTERMHandling(rtn) (void)signal(SIGTERM, rtn) # else # define _SetSIGTERMHandling(rtn) /* */ # endif # endif #endif #ifndef _InitExceptionHandling #ifdef vms #define _InitExceptionHandling(rtn) \ VAXC$ESTABLISH(rtn) /* VMS exception handler */ #else /* vms */ #define _InitExceptionHandling(rtn) \ _SetSIGBUSHandling(rtn); /* Bus error */ \ _SetSIGSEGVHandling(rtn); /* Accvio/Segment error */ \ _SetSIGFPEHandling(rtn); /* Floating point exception */ \ _SetSIGILLHandling(rtn); /* Illegal instruction */ \ _SetSIGSYSHandling(rtn); /* Param error in sys call */ \ _SetSIGHUPHandling(rtn); \ _SetSIGPIPEHandling(rtn); \ _SetSIGTERMHandling(rtn) #endif /* vms */ #endif /* _InitExceptionHandling */ #ifndef _ClearExceptionHandling #ifdef vms #define _ClearExceptionHandling() \ LIB$REVERT() #else #define _ClearExceptionHandling() \ _SetSIGBUSHandling(SIG_DFL); /* Bus error */ \ _SetSIGSEGVHandling(SIG_DFL); /* Accvio/Segment error */ \ _SetSIGFPEHandling(SIG_DFL); /* Floating point exception */ \ _SetSIGILLHandling(SIG_DFL); /* Illegal instruction */ \ _SetSIGSYSHandling(SIG_DFL); /* Param error in sys call */ \ _SetSIGHUPHandling(SIG_DFL); \ _SetSIGPIPEHandling(SIG_DFL); \ _SetSIGTERMHandling(SIG_DFL) #endif /* vms */ #endif /* _ClearExceptionHandling */ #endif /* __XTRAPEMACROS__ */ xorgproto-2023.2/include/X11/extensions/xf86vmproto.h0000644000175000017500000003652414443010026017360 00000000000000/* Copyright 1995 Kaleb S. KEITHLEY 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 Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Kaleb S. KEITHLEY shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Kaleb S. KEITHLEY */ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ #ifndef _XF86VIDMODEPROTO_H_ #define _XF86VIDMODEPROTO_H_ #include #define XF86VIDMODENAME "XFree86-VidModeExtension" #define XF86VIDMODE_MAJOR_VERSION 2 /* current version numbers */ #define XF86VIDMODE_MINOR_VERSION 2 #define X_XF86VidModeQueryVersion 0 #define X_XF86VidModeGetModeLine 1 #define X_XF86VidModeModModeLine 2 #define X_XF86VidModeSwitchMode 3 #define X_XF86VidModeGetMonitor 4 #define X_XF86VidModeLockModeSwitch 5 #define X_XF86VidModeGetAllModeLines 6 #define X_XF86VidModeAddModeLine 7 #define X_XF86VidModeDeleteModeLine 8 #define X_XF86VidModeValidateModeLine 9 #define X_XF86VidModeSwitchToMode 10 #define X_XF86VidModeGetViewPort 11 #define X_XF86VidModeSetViewPort 12 /* new for version 2.x of this extension */ #define X_XF86VidModeGetDotClocks 13 #define X_XF86VidModeSetClientVersion 14 #define X_XF86VidModeSetGamma 15 #define X_XF86VidModeGetGamma 16 #define X_XF86VidModeGetGammaRamp 17 #define X_XF86VidModeSetGammaRamp 18 #define X_XF86VidModeGetGammaRampSize 19 #define X_XF86VidModeGetPermissions 20 /* * major version 0 == uses parameter-to-wire functions in XFree86 libXxf86vm. * major version 1 == uses parameter-to-wire functions hard-coded in xvidtune * client. * major version 2 == uses new protocol version in XFree86 4.0. */ typedef struct _XF86VidModeQueryVersion { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */ CARD16 length; } xXF86VidModeQueryVersionReq; #define sz_xXF86VidModeQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of XF86VidMode */ CARD16 minorVersion; /* minor version of XF86VidMode */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86VidModeQueryVersionReply; #define sz_xXF86VidModeQueryVersionReply 32 typedef struct _XF86VidModeGetModeLine { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 pad; } xXF86VidModeGetModeLineReq, xXF86VidModeGetAllModeLinesReq, xXF86VidModeGetMonitorReq, xXF86VidModeGetViewPortReq, xXF86VidModeGetDotClocksReq, xXF86VidModeGetPermissionsReq; #define sz_xXF86VidModeGetModeLineReq 8 #define sz_xXF86VidModeGetAllModeLinesReq 8 #define sz_xXF86VidModeGetMonitorReq 8 #define sz_xXF86VidModeGetViewPortReq 8 #define sz_xXF86VidModeGetDotClocksReq 8 #define sz_xXF86VidModeGetPermissionsReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 hskew; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD16 pad2; CARD32 flags; CARD32 reserved1; CARD32 reserved2; CARD32 reserved3; CARD32 privsize; } xXF86VidModeGetModeLineReply; #define sz_xXF86VidModeGetModeLineReply 52 /* 0.x version */ typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD32 flags; CARD32 privsize; } xXF86OldVidModeGetModeLineReply; #define sz_xXF86OldVidModeGetModeLineReply 36 typedef struct { CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD32 hskew; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD16 pad1; CARD32 flags; CARD32 reserved1; CARD32 reserved2; CARD32 reserved3; CARD32 privsize; } xXF86VidModeModeInfo; /* 0.x version */ typedef struct { CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD32 flags; CARD32 privsize; } xXF86OldVidModeModeInfo; typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 modecount; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86VidModeGetAllModeLinesReply; #define sz_xXF86VidModeGetAllModeLinesReply 32 typedef struct _XF86VidModeAddModeLine { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 hskew; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD16 pad1; CARD32 flags; CARD32 reserved1; CARD32 reserved2; CARD32 reserved3; CARD32 privsize; CARD32 after_dotclock; CARD16 after_hdisplay; CARD16 after_hsyncstart; CARD16 after_hsyncend; CARD16 after_htotal; CARD16 after_hskew; CARD16 after_vdisplay; CARD16 after_vsyncstart; CARD16 after_vsyncend; CARD16 after_vtotal; CARD16 pad2; CARD32 after_flags; CARD32 reserved4; CARD32 reserved5; CARD32 reserved6; } xXF86VidModeAddModeLineReq; #define sz_xXF86VidModeAddModeLineReq 92 /* 0.x version */ typedef struct _XF86OldVidModeAddModeLine { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD32 flags; CARD32 privsize; CARD32 after_dotclock; CARD16 after_hdisplay; CARD16 after_hsyncstart; CARD16 after_hsyncend; CARD16 after_htotal; CARD16 after_vdisplay; CARD16 after_vsyncstart; CARD16 after_vsyncend; CARD16 after_vtotal; CARD32 after_flags; } xXF86OldVidModeAddModeLineReq; #define sz_xXF86OldVidModeAddModeLineReq 60 typedef struct _XF86VidModeModModeLine { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */ CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 hskew; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD16 pad1; CARD32 flags; CARD32 reserved1; CARD32 reserved2; CARD32 reserved3; CARD32 privsize; } xXF86VidModeModModeLineReq; #define sz_xXF86VidModeModModeLineReq 48 /* 0.x version */ typedef struct _XF86OldVidModeModModeLine { CARD8 reqType; /* always XF86OldVidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86OldVidModeModModeLine */ CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD32 flags; CARD32 privsize; } xXF86OldVidModeModModeLineReq; #define sz_xXF86OldVidModeModModeLineReq 32 typedef struct _XF86VidModeValidateModeLine { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 hskew; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD16 pad1; CARD32 flags; CARD32 reserved1; CARD32 reserved2; CARD32 reserved3; CARD32 privsize; } xXF86VidModeDeleteModeLineReq, xXF86VidModeValidateModeLineReq, xXF86VidModeSwitchToModeReq; #define sz_xXF86VidModeDeleteModeLineReq 52 #define sz_xXF86VidModeValidateModeLineReq 52 #define sz_xXF86VidModeSwitchToModeReq 52 /* 0.x version */ typedef struct _XF86OldVidModeValidateModeLine { CARD8 reqType; /* always XF86OldVidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD32 screen; /* could be CARD16 but need the pad */ CARD32 dotclock; CARD16 hdisplay; CARD16 hsyncstart; CARD16 hsyncend; CARD16 htotal; CARD16 vdisplay; CARD16 vsyncstart; CARD16 vsyncend; CARD16 vtotal; CARD32 flags; CARD32 privsize; } xXF86OldVidModeDeleteModeLineReq, xXF86OldVidModeValidateModeLineReq, xXF86OldVidModeSwitchToModeReq; #define sz_xXF86OldVidModeDeleteModeLineReq 36 #define sz_xXF86OldVidModeValidateModeLineReq 36 #define sz_xXF86OldVidModeSwitchToModeReq 36 typedef struct _XF86VidModeSwitchMode { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */ CARD16 length; CARD16 screen; CARD16 zoom; } xXF86VidModeSwitchModeReq; #define sz_xXF86VidModeSwitchModeReq 8 typedef struct _XF86VidModeLockModeSwitch { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */ CARD16 length; CARD16 screen; CARD16 lock; } xXF86VidModeLockModeSwitchReq; #define sz_xXF86VidModeLockModeSwitchReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86VidModeValidateModeLineReply; #define sz_xXF86VidModeValidateModeLineReply 32 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD8 vendorLength; CARD8 modelLength; CARD8 nhsync; CARD8 nvsync; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86VidModeGetMonitorReply; #define sz_xXF86VidModeGetMonitorReply 32 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 x; CARD32 y; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86VidModeGetViewPortReply; #define sz_xXF86VidModeGetViewPortReply 32 typedef struct _XF86VidModeSetViewPort { CARD8 reqType; /* always VidModeReqCode */ CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 x; CARD32 y; } xXF86VidModeSetViewPortReq; #define sz_xXF86VidModeSetViewPortReq 16 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 flags; CARD32 clocks; CARD32 maxclocks; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xXF86VidModeGetDotClocksReply; #define sz_xXF86VidModeGetDotClocksReply 32 typedef struct _XF86VidModeSetClientVersion { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 major; CARD16 minor; } xXF86VidModeSetClientVersionReq; #define sz_xXF86VidModeSetClientVersionReq 8 typedef struct _XF86VidModeGetGamma { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 pad; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86VidModeGetGammaReq; #define sz_xXF86VidModeGetGammaReq 32 typedef struct { BYTE type; BOOL pad; CARD16 sequenceNumber; CARD32 length; CARD32 red; CARD32 green; CARD32 blue; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xXF86VidModeGetGammaReply; #define sz_xXF86VidModeGetGammaReply 32 typedef struct _XF86VidModeSetGamma { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 pad; CARD32 red; CARD32 green; CARD32 blue; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xXF86VidModeSetGammaReq; #define sz_xXF86VidModeSetGammaReq 32 typedef struct _XF86VidModeSetGammaRamp { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 size; } xXF86VidModeSetGammaRampReq; #define sz_xXF86VidModeSetGammaRampReq 8 typedef struct _XF86VidModeGetGammaRamp { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 size; } xXF86VidModeGetGammaRampReq; #define sz_xXF86VidModeGetGammaRampReq 8 typedef struct { BYTE type; BOOL pad; CARD16 sequenceNumber; CARD32 length; CARD16 size; CARD16 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86VidModeGetGammaRampReply; #define sz_xXF86VidModeGetGammaRampReply 32 typedef struct _XF86VidModeGetGammaRampSize { CARD8 reqType; /* always XF86VidModeReqCode */ CARD8 xf86vidmodeReqType; CARD16 length; CARD16 screen; CARD16 pad; } xXF86VidModeGetGammaRampSizeReq; #define sz_xXF86VidModeGetGammaRampSizeReq 8 typedef struct { BYTE type; BOOL pad; CARD16 sequenceNumber; CARD32 length; CARD16 size; CARD16 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86VidModeGetGammaRampSizeReply; #define sz_xXF86VidModeGetGammaRampSizeReply 32 typedef struct { BYTE type; BOOL pad; CARD16 sequenceNumber; CARD32 length; CARD32 permissions; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86VidModeGetPermissionsReply; #define sz_xXF86VidModeGetPermissionsReply 32 #endif /* _XF86VIDMODEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/Xvproto.h0000644000175000017500000002751514443010026016617 00000000000000/*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #ifndef XVPROTO_H #define XVPROTO_H /* ** File: ** ** Xvproto.h --- Xv protocol header file ** ** Author: ** ** David Carver (Digital Workstation Engineering/Project Athena) ** ** Revisions: ** ** 11.06.91 Carver ** - changed SetPortControl to SetPortAttribute ** - changed GetPortControl to GetPortAttribute ** - changed QueryBestSize ** ** 15.05.91 Carver ** - version 2.0 upgrade ** ** 24.01.91 Carver ** - version 1.4 upgrade ** */ #include /* Symbols: These are undefined at the end of this file to restore the values they have in Xv.h */ #define XvPortID CARD32 #define XvEncodingID CARD32 #define ShmSeg CARD32 #define VisualID CARD32 #define Drawable CARD32 #define GContext CARD32 #define Time CARD32 #define Atom CARD32 /* Structures */ typedef struct { INT32 numerator; INT32 denominator; } xvRational; #define sz_xvRational 8 typedef struct { XvPortID base_id; CARD16 name_size; CARD16 num_ports; CARD16 num_formats; CARD8 type; CARD8 pad; } xvAdaptorInfo; #define sz_xvAdaptorInfo 12 typedef struct { XvEncodingID encoding; CARD16 name_size; CARD16 width, height; CARD16 pad; xvRational rate; } xvEncodingInfo; #define sz_xvEncodingInfo (12 + sz_xvRational) typedef struct { VisualID visual; CARD8 depth; CARD8 pad1; CARD16 pad2; } xvFormat; #define sz_xvFormat 8 typedef struct { CARD32 flags; INT32 min; INT32 max; CARD32 size; } xvAttributeInfo; #define sz_xvAttributeInfo 16 typedef struct { CARD32 id; CARD8 type; CARD8 byte_order; CARD16 pad1; CARD8 guid[16]; CARD8 bpp; CARD8 num_planes; CARD16 pad2; CARD8 depth; CARD8 pad3; CARD16 pad4; CARD32 red_mask; CARD32 green_mask; CARD32 blue_mask; CARD8 format; CARD8 pad5; CARD16 pad6; CARD32 y_sample_bits; CARD32 u_sample_bits; CARD32 v_sample_bits; CARD32 horz_y_period; CARD32 horz_u_period; CARD32 horz_v_period; CARD32 vert_y_period; CARD32 vert_u_period; CARD32 vert_v_period; CARD8 comp_order[32]; CARD8 scanline_order; CARD8 pad7; CARD16 pad8; CARD32 pad9; CARD32 pad10; } xvImageFormatInfo; #define sz_xvImageFormatInfo 128 /* Requests */ #define xv_QueryExtension 0 #define xv_QueryAdaptors 1 #define xv_QueryEncodings 2 #define xv_GrabPort 3 #define xv_UngrabPort 4 #define xv_PutVideo 5 #define xv_PutStill 6 #define xv_GetVideo 7 #define xv_GetStill 8 #define xv_StopVideo 9 #define xv_SelectVideoNotify 10 #define xv_SelectPortNotify 11 #define xv_QueryBestSize 12 #define xv_SetPortAttribute 13 #define xv_GetPortAttribute 14 #define xv_QueryPortAttributes 15 #define xv_ListImageFormats 16 #define xv_QueryImageAttributes 17 #define xv_PutImage 18 #define xv_ShmPutImage 19 #define xv_LastRequest xv_ShmPutImage #define xvNumRequests (xv_LastRequest + 1) typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; } xvQueryExtensionReq; #define sz_xvQueryExtensionReq 4 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; CARD32 window; } xvQueryAdaptorsReq; #define sz_xvQueryAdaptorsReq 8 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; CARD32 port; } xvQueryEncodingsReq; #define sz_xvQueryEncodingsReq 8 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; INT16 vid_x; INT16 vid_y; CARD16 vid_w; CARD16 vid_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; } xvPutVideoReq; #define sz_xvPutVideoReq 32 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; INT16 vid_x; INT16 vid_y; CARD16 vid_w; CARD16 vid_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; } xvPutStillReq; #define sz_xvPutStillReq 32 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; INT16 vid_x; INT16 vid_y; CARD16 vid_w; CARD16 vid_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; } xvGetVideoReq; #define sz_xvGetVideoReq 32 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; INT16 vid_x; INT16 vid_y; CARD16 vid_w; CARD16 vid_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; } xvGetStillReq; #define sz_xvGetStillReq 32 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Time time; } xvGrabPortReq; #define sz_xvGrabPortReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Time time; } xvUngrabPortReq; #define sz_xvUngrabPortReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; Drawable drawable; BOOL onoff; CARD8 pad1; CARD16 pad2; } xvSelectVideoNotifyReq; #define sz_xvSelectVideoNotifyReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; BOOL onoff; CARD8 pad1; CARD16 pad2; } xvSelectPortNotifyReq; #define sz_xvSelectPortNotifyReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; } xvStopVideoReq; #define sz_xvStopVideoReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Atom attribute; INT32 value; } xvSetPortAttributeReq; #define sz_xvSetPortAttributeReq 16 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Atom attribute; } xvGetPortAttributeReq; #define sz_xvGetPortAttributeReq 12 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; CARD16 vid_w; CARD16 vid_h; CARD16 drw_w; CARD16 drw_h; CARD8 motion; CARD8 pad1; CARD16 pad2; } xvQueryBestSizeReq; #define sz_xvQueryBestSizeReq 20 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; } xvQueryPortAttributesReq; #define sz_xvQueryPortAttributesReq 8 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; CARD32 id; INT16 src_x; INT16 src_y; CARD16 src_w; CARD16 src_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; CARD16 width; CARD16 height; } xvPutImageReq; #define sz_xvPutImageReq 40 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; Drawable drawable; GContext gc; ShmSeg shmseg; CARD32 id; CARD32 offset; INT16 src_x; INT16 src_y; CARD16 src_w; CARD16 src_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; CARD16 width; CARD16 height; CARD8 send_event; CARD8 pad1; CARD16 pad2; } xvShmPutImageReq; #define sz_xvShmPutImageReq 52 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; XvPortID port; } xvListImageFormatsReq; #define sz_xvListImageFormatsReq 8 typedef struct { CARD8 reqType; CARD8 xvReqType; CARD16 length; CARD32 port; CARD32 id; CARD16 width; CARD16 height; } xvQueryImageAttributesReq; #define sz_xvQueryImageAttributesReq 16 /* Replies */ typedef struct _QueryExtensionReply { BYTE type; /* X_Reply */ CARD8 padb1; CARD16 sequenceNumber; CARD32 length; CARD16 version; CARD16 revision; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryExtensionReply; #define sz_xvQueryExtensionReply 32 typedef struct _QueryAdaptorsReply { BYTE type; /* X_Reply */ CARD8 padb1; CARD16 sequenceNumber; CARD32 length; CARD16 num_adaptors; CARD16 pads3; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryAdaptorsReply; #define sz_xvQueryAdaptorsReply 32 typedef struct _QueryEncodingsReply { BYTE type; /* X_Reply */ CARD8 padb1; CARD16 sequenceNumber; CARD32 length; CARD16 num_encodings; CARD16 padl3; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryEncodingsReply; #define sz_xvQueryEncodingsReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE result; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD32 padl3; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvGrabPortReply; #define sz_xvGrabPortReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; /* 0 */ INT32 value; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvGetPortAttributeReply; #define sz_xvGetPortAttributeReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD16 actual_width; CARD16 actual_height; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryBestSizeReply; #define sz_xvQueryBestSizeReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD32 num_attributes; CARD32 text_size; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryPortAttributesReply; #define sz_xvQueryPortAttributesReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 num_formats; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvListImageFormatsReply; #define sz_xvListImageFormatsReply 32 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 num_planes; CARD32 data_size; CARD16 width; CARD16 height; CARD32 padl6; CARD32 padl7; CARD32 padl8; } xvQueryImageAttributesReply; #define sz_xvQueryImageAttributesReply 32 /* DEFINE EVENT STRUCTURE */ typedef struct { union { struct { BYTE type; BYTE detail; CARD16 sequenceNumber; } u; struct { BYTE type; BYTE reason; CARD16 sequenceNumber; Time time; Drawable drawable; XvPortID port; CARD32 padl5; CARD32 padl6; CARD32 padl7; CARD32 padl8; } videoNotify; struct { BYTE type; BYTE padb1; CARD16 sequenceNumber; Time time; XvPortID port; Atom attribute; INT32 value; CARD32 padl6; CARD32 padl7; CARD32 padl8; } portNotify; } u; } xvEvent; #undef XvPortID #undef XvEncodingID #undef ShmSeg #undef VisualID #undef Drawable #undef GContext #undef Time #undef Atom #endif /* XVPROTO_H */ xorgproto-2023.2/include/X11/extensions/Xeviestr.h0000644000175000017500000000026414443010026016737 00000000000000#warning "Xeviestr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/xtestproto.h0000644000175000017500000000626614443010026017371 00000000000000/* Copyright 1992, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _XTESTPROTO_H_ #define _XTESTPROTO_H_ #include #define Window CARD32 #define Time CARD32 #define Cursor CARD32 #define X_XTestGetVersion 0 #define X_XTestCompareCursor 1 #define X_XTestFakeInput 2 #define X_XTestGrabControl 3 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 xtReqType; /* always X_XTestGetVersion */ CARD16 length; CARD8 majorVersion; CARD8 pad; CARD16 minorVersion; } xXTestGetVersionReq; #define sz_xXTestGetVersionReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 majorVersion; CARD16 sequenceNumber; CARD32 length; CARD16 minorVersion; CARD16 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXTestGetVersionReply; #define sz_xXTestGetVersionReply 32 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 xtReqType; /* always X_XTestCompareCursor */ CARD16 length; Window window; Cursor cursor; } xXTestCompareCursorReq; #define sz_xXTestCompareCursorReq 12 typedef struct { BYTE type; /* X_Reply */ BOOL same; CARD16 sequenceNumber; CARD32 length; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXTestCompareCursorReply; #define sz_xXTestCompareCursorReply 32 /* used only on the client side */ typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 xtReqType; /* always X_XTestFakeInput */ CARD16 length; BYTE type; BYTE detail; CARD16 pad0; Time time; Window root; CARD32 pad1; CARD32 pad2; INT16 rootX, rootY; CARD32 pad3; CARD16 pad4; CARD8 pad5; CARD8 deviceid; } xXTestFakeInputReq; #define sz_xXTestFakeInputReq 36 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 xtReqType; /* always X_XTestGrabControl */ CARD16 length; BOOL impervious; CARD8 pad0; CARD8 pad1; CARD8 pad2; } xXTestGrabControlReq; #define sz_xXTestGrabControlReq 8 #undef Window #undef Time #undef Cursor #endif /* _XTESTPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xf86mscstr.h0000644000175000017500000001373014443010026017157 00000000000000/* $XFree86: xc/include/extensions/xf86mscstr.h,v 3.12 2002/11/20 04:04:56 dawes Exp $ */ /* * Copyright (c) 1995, 1996 The XFree86 Project, Inc */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _XF86MISCSTR_H_ #define _XF86MISCSTR_H_ #include #define XF86MISCNAME "XFree86-Misc" #define XF86MISC_MAJOR_VERSION 0 /* current version numbers */ #define XF86MISC_MINOR_VERSION 9 typedef struct _XF86MiscQueryVersion { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscQueryVersion */ CARD16 length; } xXF86MiscQueryVersionReq; #define sz_xXF86MiscQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of XFree86-Misc */ CARD16 minorVersion; /* minor version of XFree86-Misc */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86MiscQueryVersionReply; #define sz_xXF86MiscQueryVersionReply 32 #ifdef _XF86MISC_SAVER_COMPAT_ typedef struct _XF86MiscGetSaver { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscGetSaver */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86MiscGetSaverReq; #define sz_xXF86MiscGetSaverReq 8 typedef struct _XF86MiscSetSaver { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscSetSaver */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 suspendTime; CARD32 offTime; } xXF86MiscSetSaverReq; #define sz_xXF86MiscSetSaverReq 16 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 suspendTime; CARD32 offTime; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86MiscGetSaverReply; #define sz_xXF86MiscGetSaverReply 32 #endif typedef struct _XF86MiscGetMouseSettings { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscGetMouseSettings */ CARD16 length; } xXF86MiscGetMouseSettingsReq; #define sz_xXF86MiscGetMouseSettingsReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 mousetype; CARD32 baudrate; CARD32 samplerate; CARD32 resolution; CARD32 buttons; BOOL emulate3buttons; BOOL chordmiddle; CARD16 pad2; CARD32 emulate3timeout; CARD32 flags; CARD32 devnamelen; /* strlen(device)+1 */ } xXF86MiscGetMouseSettingsReply; #define sz_xXF86MiscGetMouseSettingsReply 44 typedef struct _XF86MiscGetKbdSettings { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscGetKbdSettings */ CARD16 length; } xXF86MiscGetKbdSettingsReq; #define sz_xXF86MiscGetKbdSettingsReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 kbdtype; CARD32 rate; CARD32 delay; BOOL servnumlock; BOOL pad2; CARD16 pad3; CARD32 pad4; CARD32 pad5; } xXF86MiscGetKbdSettingsReply; #define sz_xXF86MiscGetKbdSettingsReply 32 typedef struct _XF86MiscSetMouseSettings { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscSetMouseSettings */ CARD16 length; CARD32 mousetype; CARD32 baudrate; CARD32 samplerate; CARD32 resolution; CARD32 buttons; BOOL emulate3buttons; BOOL chordmiddle; CARD16 devnamelen; CARD32 emulate3timeout; CARD32 flags; } xXF86MiscSetMouseSettingsReq; #define sz_xXF86MiscSetMouseSettingsReq 36 typedef struct _XF86MiscSetKbdSettings { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscSetKbdSettings */ CARD16 length; CARD32 kbdtype; CARD32 rate; CARD32 delay; BOOL servnumlock; BOOL pad1; CARD16 pad2; } xXF86MiscSetKbdSettingsReq; #define sz_xXF86MiscSetKbdSettingsReq 20 typedef struct _XF86MiscSetGrabKeysState { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscSetKbdSettings */ CARD16 length; BOOL enable; BOOL pad1; CARD16 pad2; } xXF86MiscSetGrabKeysStateReq; #define sz_xXF86MiscSetGrabKeysStateReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86MiscSetGrabKeysStateReply; #define sz_xXF86MiscSetGrabKeysStateReply 32 typedef struct _XF86MiscSetClientVersion { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; CARD16 length; CARD16 major; CARD16 minor; } xXF86MiscSetClientVersionReq; #define sz_xXF86MiscSetClientVersionReq 8 typedef struct _XF86MiscGetFilePaths { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscGetFilePaths */ CARD16 length; } xXF86MiscGetFilePathsReq; #define sz_xXF86MiscGetFilePathsReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 configlen; CARD16 modulelen; CARD16 loglen; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86MiscGetFilePathsReply; #define sz_xXF86MiscGetFilePathsReply 32 typedef struct _XF86MiscPassMessage { CARD8 reqType; /* always XF86MiscReqCode */ CARD8 xf86miscReqType; /* always X_XF86MiscPassMessage */ CARD16 length; CARD16 typelen; CARD16 vallen; CARD16 screen; CARD16 pad; } xXF86MiscPassMessageReq; #define sz_xXF86MiscPassMessageReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 mesglen; CARD16 pad2; CARD32 status; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86MiscPassMessageReply; #define sz_xXF86MiscPassMessageReply 32 #endif /* _XF86MISCSTR_H_ */ xorgproto-2023.2/include/X11/extensions/shapeproto.h0000644000175000017500000001511214443010026017310 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ #ifndef _SHAPEPROTO_H_ #define _SHAPEPROTO_H_ #include /* * Protocol requests constants and alignment values * These would really be in SHAPE's X.h and Xproto.h equivalents */ #define Window CARD32 #define Time CARD32 #define X_ShapeQueryVersion 0 #define X_ShapeRectangles 1 #define X_ShapeMask 2 #define X_ShapeCombine 3 #define X_ShapeOffset 4 #define X_ShapeQueryExtents 5 #define X_ShapeSelectInput 6 #define X_ShapeInputSelected 7 #define X_ShapeGetRectangles 8 typedef struct _ShapeQueryVersion { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeQueryVersion */ CARD16 length; } xShapeQueryVersionReq; #define sz_xShapeQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of SHAPE protocol */ CARD16 minorVersion; /* minor version of SHAPE protocol */ CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xShapeQueryVersionReply; #define sz_xShapeQueryVersionReply 32 typedef struct _ShapeRectangles { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeRectangles */ CARD16 length; CARD8 op; /* Set, ... */ CARD8 destKind; /* ShapeBounding or ShapeClip */ CARD8 ordering; /* UnSorted, YSorted, YXSorted, YXBanded */ CARD8 pad0; /* not used */ Window dest; INT16 xOff; INT16 yOff; } xShapeRectanglesReq; /* followed by xRects */ #define sz_xShapeRectanglesReq 16 typedef struct _ShapeMask { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeMask */ CARD16 length; CARD8 op; /* Set, ... */ CARD8 destKind; /* ShapeBounding or ShapeClip */ CARD16 junk; /* not used */ Window dest; INT16 xOff; INT16 yOff; CARD32 src; /* 1 bit pixmap */ } xShapeMaskReq; #define sz_xShapeMaskReq 20 typedef struct _ShapeCombine { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeCombine */ CARD16 length; CARD8 op; /* Set, ... */ CARD8 destKind; /* ShapeBounding or ShapeClip */ CARD8 srcKind; /* ShapeBounding or ShapeClip */ CARD8 junk; /* not used */ Window dest; INT16 xOff; INT16 yOff; Window src; } xShapeCombineReq; #define sz_xShapeCombineReq 20 typedef struct _ShapeOffset { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeOffset */ CARD16 length; CARD8 destKind; /* ShapeBounding or ShapeClip */ CARD8 junk1; /* not used */ CARD16 junk2; /* not used */ Window dest; INT16 xOff; INT16 yOff; } xShapeOffsetReq; #define sz_xShapeOffsetReq 16 typedef struct _ShapeQueryExtents { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeQueryExtents */ CARD16 length; Window window; } xShapeQueryExtentsReq; #define sz_xShapeQueryExtentsReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD8 boundingShaped; /* window has bounding shape */ CARD8 clipShaped; /* window has clip shape */ CARD16 unused1; INT16 xBoundingShape; /* extents of bounding shape */ INT16 yBoundingShape; CARD16 widthBoundingShape; CARD16 heightBoundingShape; INT16 xClipShape; /* extents of clip shape */ INT16 yClipShape; CARD16 widthClipShape; CARD16 heightClipShape; CARD32 pad1; } xShapeQueryExtentsReply; #define sz_xShapeQueryExtentsReply 32 typedef struct _ShapeSelectInput { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeSelectInput */ CARD16 length; Window window; BYTE enable; /* xTrue -> send events */ BYTE pad1; CARD16 pad2; } xShapeSelectInputReq; #define sz_xShapeSelectInputReq 12 typedef struct _ShapeNotify { BYTE type; /* always eventBase + ShapeNotify */ BYTE kind; /* either ShapeBounding or ShapeClip */ CARD16 sequenceNumber; Window window; INT16 x; INT16 y; /* extents of new shape */ CARD16 width; CARD16 height; Time time; /* time of change */ BYTE shaped; /* set when a shape actual exists */ BYTE pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; } xShapeNotifyEvent; #define sz_xShapeNotifyEvent 32 typedef struct _ShapeInputSelected { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeInputSelected */ CARD16 length; Window window; } xShapeInputSelectedReq; #define sz_xShapeInputSelectedReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 enabled; /* current status */ CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD32 pad1; /* unused */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xShapeInputSelectedReply; #define sz_xShapeInputSelectedReply 32 typedef struct _ShapeGetRectangles { CARD8 reqType; /* always ShapeReqCode */ CARD8 shapeReqType; /* always X_ShapeGetRectangles */ CARD16 length; Window window; CARD8 kind; /* ShapeBounding or ShapeClip */ CARD8 junk1; CARD16 junk2; } xShapeGetRectanglesReq; #define sz_xShapeGetRectanglesReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 ordering; /* UnSorted, YSorted, YXSorted, YXBanded */ CARD16 sequenceNumber; CARD32 length; /* not zero */ CARD32 nrects; /* number of rectangles */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xShapeGetRectanglesReply; /* followed by xRectangles */ #define sz_xShapeGetRectanglesReply 32 #undef Window #undef Time #endif /* _SHAPEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/dri2proto.h0000644000175000017500000002017614443010026017056 00000000000000/* * Copyright © 2008 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft- * ware"), to deal in the Software without restriction, including without * limitation the rights to use, copy, modify, merge, publish, distribute, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, provided that the above copyright * notice(s) and this permission notice appear in all copies of the Soft- * ware and that both the above copyright notice(s) and this permission * notice appear in supporting documentation. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE- * QUENTIAL 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 PERFOR- * MANCE OF THIS SOFTWARE. * * Except as contained in this notice, the name of a copyright holder shall * not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization of * the copyright holder. * * Authors: * Kristian Høgsberg (krh@redhat.com) */ #ifndef _DRI2_PROTO_H_ #define _DRI2_PROTO_H_ #define DRI2_NAME "DRI2" #define DRI2_MAJOR 1 #define DRI2_MINOR 4 #define DRI2NumberErrors 0 #define DRI2NumberEvents 2 #define DRI2NumberRequests 14 #define X_DRI2QueryVersion 0 #define X_DRI2Connect 1 #define X_DRI2Authenticate 2 #define X_DRI2CreateDrawable 3 #define X_DRI2DestroyDrawable 4 #define X_DRI2GetBuffers 5 #define X_DRI2CopyRegion 6 #define X_DRI2GetBuffersWithFormat 7 #define X_DRI2SwapBuffers 8 #define X_DRI2GetMSC 9 #define X_DRI2WaitMSC 10 #define X_DRI2WaitSBC 11 #define X_DRI2SwapInterval 12 #define X_DRI2GetParam 13 /* * Events */ #define DRI2_BufferSwapComplete 0 #define DRI2_InvalidateBuffers 1 typedef struct { CARD32 attachment; CARD32 name; CARD32 pitch; CARD32 cpp; CARD32 flags; } xDRI2Buffer; typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xDRI2QueryVersionReq; #define sz_xDRI2QueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDRI2QueryVersionReply; #define sz_xDRI2QueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 window; CARD32 driverType; } xDRI2ConnectReq; #define sz_xDRI2ConnectReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 driverNameLength; CARD32 deviceNameLength; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDRI2ConnectReply; #define sz_xDRI2ConnectReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 window; CARD32 magic; } xDRI2AuthenticateReq; #define sz_xDRI2AuthenticateReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 authenticated; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xDRI2AuthenticateReply; #define sz_xDRI2AuthenticateReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; } xDRI2CreateDrawableReq; #define sz_xDRI2CreateDrawableReq 8 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; } xDRI2DestroyDrawableReq; #define sz_xDRI2DestroyDrawableReq 8 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 count; } xDRI2GetBuffersReq; #define sz_xDRI2GetBuffersReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 width; CARD32 height; CARD32 count; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDRI2GetBuffersReply; #define sz_xDRI2GetBuffersReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 region; CARD32 dest; CARD32 src; } xDRI2CopyRegionReq; #define sz_xDRI2CopyRegionReq 20 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xDRI2CopyRegionReply; #define sz_xDRI2CopyRegionReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 target_msc_hi; CARD32 target_msc_lo; CARD32 divisor_hi; CARD32 divisor_lo; CARD32 remainder_hi; CARD32 remainder_lo; } xDRI2SwapBuffersReq; #define sz_xDRI2SwapBuffersReq 32 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 swap_hi; CARD32 swap_lo; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDRI2SwapBuffersReply; #define sz_xDRI2SwapBuffersReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; } xDRI2GetMSCReq; #define sz_xDRI2GetMSCReq 8 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 target_msc_hi; CARD32 target_msc_lo; CARD32 divisor_hi; CARD32 divisor_lo; CARD32 remainder_hi; CARD32 remainder_lo; } xDRI2WaitMSCReq; #define sz_xDRI2WaitMSCReq 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 target_sbc_hi; CARD32 target_sbc_lo; } xDRI2WaitSBCReq; #define sz_xDRI2WaitSBCReq 16 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 ust_hi; CARD32 ust_lo; CARD32 msc_hi; CARD32 msc_lo; CARD32 sbc_hi; CARD32 sbc_lo; } xDRI2MSCReply; #define sz_xDRI2MSCReply 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 interval; } xDRI2SwapIntervalReq; #define sz_xDRI2SwapIntervalReq 12 typedef struct { CARD8 type; CARD8 pad; CARD16 sequenceNumber; CARD16 event_type; CARD16 pad2; CARD32 drawable; CARD32 ust_hi; CARD32 ust_lo; CARD32 msc_hi; CARD32 msc_lo; CARD32 sbc_hi; CARD32 sbc_lo; } xDRI2BufferSwapComplete; #define sz_xDRI2BufferSwapComplete 32 typedef struct { CARD8 type; CARD8 pad; CARD16 sequenceNumber; CARD16 event_type; CARD16 pad2; CARD32 drawable; CARD32 ust_hi; CARD32 ust_lo; CARD32 msc_hi; CARD32 msc_lo; CARD32 sbc; } xDRI2BufferSwapComplete2; #define sz_xDRI2BufferSwapComplete2 32 typedef struct { CARD8 type; CARD8 pad; CARD16 sequenceNumber; CARD32 drawable; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xDRI2InvalidateBuffers; #define sz_xDRI2InvalidateBuffers 32 typedef struct { CARD8 reqType; CARD8 dri2ReqType; CARD16 length; CARD32 drawable; CARD32 param; } xDRI2GetParamReq; #define sz_xDRI2GetParamReq 12 typedef struct { BYTE type; /*X_Reply*/ BOOL is_param_recognized; CARD16 sequenceNumber; CARD32 length; CARD32 value_hi; CARD32 value_lo; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDRI2GetParamReply; #define sz_xDRI2GetParamReply 32 #endif xorgproto-2023.2/include/X11/extensions/windowswm.h0000644000175000017500000001577214443010026017176 00000000000000/* * WindowsWM extension is based on AppleWM extension * Authors: Kensuke Matsuzaki */ /************************************************************************** Copyright (c) 2002 Apple Computer, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ #ifndef _WINDOWSWM_H_ #define _WINDOWSWM_H_ #include #define X_WindowsWMQueryVersion 0 #define X_WindowsWMFrameGetRect 1 #define X_WindowsWMFrameDraw 2 #define X_WindowsWMFrameSetTitle 3 #define X_WindowsWMDisableUpdate 4 #define X_WindowsWMReenableUpdate 5 #define X_WindowsWMSelectInput 6 #define X_WindowsWMSetFrontProcess 7 /* Events */ #define WindowsWMControllerNotify 0 #define WindowsWMActivationNotify 1 #define WindowsWMNumberEvents 2 #define WindowsWMControllerNotifyMask (1L << 0) #define WindowsWMActivationNotifyMask (1L << 1) /* "Kinds" of ControllerNotify events */ #define WindowsWMMinimizeWindow 0 #define WindowsWMMaximizeWindow 1 #define WindowsWMRestoreWindow 2 #define WindowsWMCloseWindow 3 #define WindowsWMBringAllToFront 4 #define WindowsWMHideWindow 5 #define WindowsWMMoveWindow 6 #define WindowsWMResizeWindow 7 #define WindowsWMActivateWindow 8 /* "Kinds" of ActivationNotify events */ #define WindowsWMIsActive 0 #define WindowsWMIsInactive 1 /* Errors */ #define WindowsWMClientNotLocal 0 #define WindowsWMOperationNotSupported 1 #define WindowsWMNumberErrors (WindowsWMOperationNotSupported + 1) /* Possible value for frame_rect argument to XWindowsWMFrameGetRect() */ #define WindowsWMFrameRectTitleBar 1 #define WindowsWMFrameRectTracking 2 #define WindowsWMFrameRectGrowBox 3 /* Window frame styles */ #define WindowsWMFrameStyleBorder 0x800000 #define WindowsWMFrameStyleCaption 0xc00000 #define WindowsWMFrameStyleChild 0x40000000 #define WindowsWMFrameStyleChildWindow 0x40000000 #define WindowsWMFrameStyleClipChildren 0x2000000 #define WindowsWMFrameStyleClipSiblings 0x4000000 #define WindowsWMFrameStyleDisabled 0x8000000 #define WindowsWMFrameStyleDlgFrame 0x400000 #define WindowsWMFrameStyleGroup 0x20000 #define WindowsWMFrameStyleHScroll 0x100000 #define WindowsWMFrameStyleIconic 0x20000000 #define WindowsWMFrameStyleMaximize 0x1000000 #define WindowsWMFrameStyleMaximizeBox 0x10000 #define WindowsWMFrameStyleMinimize 0x20000000 #define WindowsWMFrameStyleMinimizeBox 0x20000 #define WindowsWMFrameStyleOverlapped 0 #define WindowsWMFrameStyleOverlappedWindow 0xcf0000 #define WindowsWMFrameStylePopup 0x80000000 #define WindowsWMFrameStylePopupWindow 0x80880000 #define WindowsWMFrameStyleSizeBox 0x40000 #define WindowsWMFrameStyleSysMenu 0x80000 #define WindowsWMFrameStyleTabStop 0x10000 #define WindowsWMFrameStyleThickFrame 0x40000 #define WindowsWMFrameStyleTiled 0 #define WindowsWMFrameStyleTiledWindow 0xcf0000 #define WindowsWMFrameStyleVisible 0x10000000 #define WindowsWMFrameStyleVScroll 0x200000 /* Window frame Ex-styles */ #define WindowsWMFrameStyleExAcceptFiles 16 #define WindowsWMFrameStyleExAppWindow 0x40000 #define WindowsWMFrameStyleExClientEdge 512 #define WindowsWMFrameStyleExComposited 0x2000000 #define WindowsWMFrameStyleExContextHelp 0x400 #define WindowsWMFrameStyleExControlParent 0x10000 #define WindowsWMFrameStyleExDlgModalFrame 1 #define WindowsWMFrameStyleExLayered 0x80000 #define WindowsWMFrameStyleExLayoutRtl 0x400000 #define WindowsWMFrameStyleExLeft 0 #define WindowsWMFrameStyleExLeftScrollBar 0x4000 #define WindowsWMFrameStyleExLtrReading 0 #define WindowsWMFrameStyleExMDIChild 64 #define WindowsWMFrameStyleExNoActivate 0x8000000 #define WindowsWMFrameStyleExNoInheritLayout 0x100000 #define WindowsWMFrameStyleExNoParentNotify 4 #define WindowsWMFrameStyleExOverlappedWindow 0x300 #define WindowsWMFrameStyleExPaletteWindow 0x188 #define WindowsWMFrameStyleExRight 0x1000 #define WindowsWMFrameStyleExRightScrollBar 0 #define WindowsWMFrameStyleExRtlReading 0x2000 #define WindowsWMFrameStyleExStaticEdge 0x20000 #define WindowsWMFrameStyleExToolWindow 128 #define WindowsWMFrameStyleExTopMost 8 #define WindowsWMFrameStyleExTransparent 32 #define WindowsWMFrameStyleExWindowEdge 256 #define WINDOWSWM_RAISE_ON_CLICK "_WINDOWSWM_RAISE_ON_CLICK" #define WINDOWSWM_MOUSE_ACTIVATE "_WINDOWSWM_MOUSE_ACTIVATE" #define WINDOWSWM_CLIENT_WINDOW "_WINDOWSWM_CLIENT_WINDOW" #define WINDOWSWM_NATIVE_HWND "_WINDOWSWM_NATIVE_HWND" #ifndef _WINDOWSWM_SERVER_ typedef struct { int type; /* of event */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if this came from a SendEvent request */ Display *display; /* Display the event was read from */ Window window; /* window of event */ Time time; /* server timestamp when event happened */ int kind; /* subtype of event */ int arg; int x; int y; int w; int h; } XWindowsWMNotifyEvent; _XFUNCPROTOBEGIN Bool XWindowsWMQueryExtension (Display *dpy, int *event_base, int *error_base); Bool XWindowsWMQueryVersion (Display *dpy, int *majorVersion, int *minorVersion, int *patchVersion); Bool XWindowsWMDisableUpdate (Display *dpy, int screen); Bool XWindowsWMReenableUpdate (Display *dpy, int screen); Bool XWindowsWMSelectInput (Display *dpy, unsigned long mask); Bool XWindowsWMSetFrontProcess (Display *dpy); Bool XWindowsWMFrameGetRect (Display *dpy, unsigned int frame_style, unsigned int frame_style_ex, unsigned int frame_rect, short inner_x, short inner_y, short inner_w, short inner_h, short *ret_x, short *ret_y, short *ret_w, short *ret_h); Bool XWindowsWMFrameDraw (Display *dpy, int screen, Window window, unsigned int frame_style, unsigned int frame_style_ex, short inner_x, short inner_y, short inner_w, short inner_h); Bool XWindowsWMFrameSetTitle (Display *dpy, int screen, Window window, unsigned int title_length, const char * title_bytes); _XFUNCPROTOEND #endif /* _WINDOWSWM_SERVER_ */ #endif /* _WINDOWSWM_H_ */ xorgproto-2023.2/include/X11/extensions/dri3proto.h0000644000175000017500000001441014443010026017051 00000000000000/* * 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. */ #ifndef _DRI3_PROTO_H_ #define _DRI3_PROTO_H_ #define DRI3_NAME "DRI3" #define DRI3_MAJOR 1 #define DRI3_MINOR 3 #define DRI3NumberErrors 0 #define DRI3NumberEvents 0 #define X_DRI3QueryVersion 0 #define X_DRI3Open 1 #define X_DRI3PixmapFromBuffer 2 #define X_DRI3BufferFromPixmap 3 #define X_DRI3FenceFromFD 4 #define X_DRI3FDFromFence 5 /* v1.2 */ #define xDRI3GetSupportedModifiers 6 #define xDRI3PixmapFromBuffers 7 #define xDRI3BuffersFromPixmap 8 /* v1.3 */ #define xDRI3SetDRMDeviceInUse 9 #define DRI3NumberRequests 10 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xDRI3QueryVersionReq; #define sz_xDRI3QueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDRI3QueryVersionReply; #define sz_xDRI3QueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 drawable; CARD32 provider; } xDRI3OpenReq; #define sz_xDRI3OpenReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 nfd; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xDRI3OpenReply; #define sz_xDRI3OpenReply 32 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 pixmap; CARD32 drawable; CARD32 size; CARD16 width; CARD16 height; CARD16 stride; CARD8 depth; CARD8 bpp; } xDRI3PixmapFromBufferReq; #define sz_xDRI3PixmapFromBufferReq 24 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 pixmap; } xDRI3BufferFromPixmapReq; #define sz_xDRI3BufferFromPixmapReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 nfd; /* Number of file descriptors returned (1) */ CARD16 sequenceNumber; CARD32 length; CARD32 size; CARD16 width; CARD16 height; CARD16 stride; CARD8 depth; CARD8 bpp; CARD32 pad20; CARD32 pad24; CARD32 pad28; } xDRI3BufferFromPixmapReply; #define sz_xDRI3BufferFromPixmapReply 32 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 drawable; CARD32 fence; BOOL initially_triggered; CARD8 pad13; CARD16 pad14; } xDRI3FenceFromFDReq; #define sz_xDRI3FenceFromFDReq 16 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 drawable; CARD32 fence; } xDRI3FDFromFenceReq; #define sz_xDRI3FDFromFenceReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 nfd; /* Number of file descriptors returned (1) */ CARD16 sequenceNumber; CARD32 length; CARD32 pad08; CARD32 pad12; CARD32 pad16; CARD32 pad20; CARD32 pad24; CARD32 pad28; } xDRI3FDFromFenceReply; #define sz_xDRI3FDFromFenceReply 32 /* v1.2 */ typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 window; CARD8 depth; CARD8 bpp; CARD16 pad10; } xDRI3GetSupportedModifiersReq; #define sz_xDRI3GetSupportedModifiersReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numWindowModifiers; CARD32 numScreenModifiers; CARD32 pad16; CARD32 pad20; CARD32 pad24; CARD32 pad28; } xDRI3GetSupportedModifiersReply; #define sz_xDRI3GetSupportedModifiersReply 32 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 pixmap; CARD32 window; CARD8 num_buffers; /* Number of file descriptors passed */ CARD8 pad13; CARD16 pad14; CARD16 width; CARD16 height; CARD32 stride0; CARD32 offset0; CARD32 stride1; CARD32 offset1; CARD32 stride2; CARD32 offset2; CARD32 stride3; CARD32 offset3; CARD8 depth; CARD8 bpp; CARD16 pad54; CARD64 modifier; } xDRI3PixmapFromBuffersReq; #define sz_xDRI3PixmapFromBuffersReq 64 typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 pixmap; } xDRI3BuffersFromPixmapReq; #define sz_xDRI3BuffersFromPixmapReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 nfd; /* Number of file descriptors returned */ CARD16 sequenceNumber; CARD32 length; CARD16 width; CARD16 height; CARD32 pad12; CARD64 modifier; CARD8 depth; CARD8 bpp; CARD16 pad26; CARD32 pad28; } xDRI3BuffersFromPixmapReply; #define sz_xDRI3BuffersFromPixmapReply 32 /* v1.3 */ typedef struct { CARD8 reqType; CARD8 dri3ReqType; CARD16 length; CARD32 window; CARD32 drmMajor; CARD32 drmMinor; } xDRI3SetDRMDeviceInUseReq; #define sz_xDRI3SetDRMDeviceInUseReq 16 #endif xorgproto-2023.2/include/X11/extensions/compositeproto.h0000644000175000017500000001250114443010026020211 00000000000000/* * Copyright (c) 2006, Oracle and/or its affiliates. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. */ /* * Copyright © 2003 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _COMPOSITEPROTO_H_ #define _COMPOSITEPROTO_H_ #include #include #define Window CARD32 #define Region CARD32 #define Pixmap CARD32 /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xCompositeQueryVersionReq; #define sz_xCompositeQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xCompositeQueryVersionReply; #define sz_xCompositeQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; CARD8 update; CARD8 pad1; CARD16 pad2; } xCompositeRedirectWindowReq; #define sz_xCompositeRedirectWindowReq 12 typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; CARD8 update; CARD8 pad1; CARD16 pad2; } xCompositeRedirectSubwindowsReq; #define sz_xCompositeRedirectSubwindowsReq 12 typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; CARD8 update; CARD8 pad1; CARD16 pad2; } xCompositeUnredirectWindowReq; #define sz_xCompositeUnredirectWindowReq 12 typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; CARD8 update; CARD8 pad1; CARD16 pad2; } xCompositeUnredirectSubwindowsReq; #define sz_xCompositeUnredirectSubwindowsReq 12 typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Region region; Window window; } xCompositeCreateRegionFromBorderClipReq; #define sz_xCompositeCreateRegionFromBorderClipReq 12 /* Version 0.2 additions */ typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; Pixmap pixmap; } xCompositeNameWindowPixmapReq; #define sz_xCompositeNameWindowPixmapReq 12 /* Version 0.3 additions */ typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; } xCompositeGetOverlayWindowReq; #define sz_xCompositeGetOverlayWindowReq sizeof(xCompositeGetOverlayWindowReq) typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; Window overlayWin; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xCompositeGetOverlayWindowReply; #define sz_xCompositeGetOverlayWindowReply sizeof(xCompositeGetOverlayWindowReply) typedef struct { CARD8 reqType; CARD8 compositeReqType; CARD16 length; Window window; } xCompositeReleaseOverlayWindowReq; #define sz_xCompositeReleaseOverlayWindowReq sizeof(xCompositeReleaseOverlayWindowReq) #undef Window #undef Region #undef Pixmap #endif /* _COMPOSITEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xfixesproto.h0000644000175000017500000003234514443010026017525 00000000000000/* * Copyright (c) 2006, Oracle and/or its affiliates. * Copyright 2010 Red Hat, Inc. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. */ /* * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * * 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _XFIXESPROTO_H_ #define _XFIXESPROTO_H_ #include #include #include #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define Picture CARD32 /*************** Version 1 ******************/ typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; } xXFixesReq; /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xXFixesQueryVersionReq; #define sz_xXFixesQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXFixesQueryVersionReply; #define sz_xXFixesQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; BYTE mode; /* SetModeInsert/SetModeDelete*/ BYTE target; /* SaveSetNearest/SaveSetRoot*/ BYTE map; /* SaveSetMap/SaveSetUnmap */ BYTE pad1; Window window; } xXFixesChangeSaveSetReq; #define sz_xXFixesChangeSaveSetReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Window window; Atom selection; CARD32 eventMask; } xXFixesSelectSelectionInputReq; #define sz_xXFixesSelectSelectionInputReq 16 typedef struct { CARD8 type; CARD8 subtype; CARD16 sequenceNumber; Window window; Window owner; Atom selection; Time timestamp; Time selectionTimestamp; CARD32 pad2; CARD32 pad3; } xXFixesSelectionNotifyEvent; typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Window window; CARD32 eventMask; } xXFixesSelectCursorInputReq; #define sz_xXFixesSelectCursorInputReq 12 typedef struct { CARD8 type; CARD8 subtype; CARD16 sequenceNumber; Window window; CARD32 cursorSerial; Time timestamp; Atom name; /* Version 2 */ CARD32 pad1; CARD32 pad2; CARD32 pad3; } xXFixesCursorNotifyEvent; typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; } xXFixesGetCursorImageReq; #define sz_xXFixesGetCursorImageReq 4 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD16 xhot; CARD16 yhot; CARD32 cursorSerial; CARD32 pad2; CARD32 pad3; } xXFixesGetCursorImageReply; #define sz_xXFixesGetCursorImageReply 32 /*************** Version 2 ******************/ #define Region CARD32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; /* LISTofRECTANGLE */ } xXFixesCreateRegionReq; #define sz_xXFixesCreateRegionReq 8 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; Pixmap bitmap; } xXFixesCreateRegionFromBitmapReq; #define sz_xXFixesCreateRegionFromBitmapReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; Window window; CARD8 kind; CARD8 pad1; CARD16 pad2; } xXFixesCreateRegionFromWindowReq; #define sz_xXFixesCreateRegionFromWindowReq 16 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; GContext gc; } xXFixesCreateRegionFromGCReq; #define sz_xXFixesCreateRegionFromGCReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; Picture picture; } xXFixesCreateRegionFromPictureReq; #define sz_xXFixesCreateRegionFromPictureReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; } xXFixesDestroyRegionReq; #define sz_xXFixesDestroyRegionReq 8 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; /* LISTofRECTANGLE */ } xXFixesSetRegionReq; #define sz_xXFixesSetRegionReq 8 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region source; Region destination; } xXFixesCopyRegionReq; #define sz_xXFixesCopyRegionReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region source1; Region source2; Region destination; } xXFixesCombineRegionReq, xXFixesUnionRegionReq, xXFixesIntersectRegionReq, xXFixesSubtractRegionReq; #define sz_xXFixesCombineRegionReq 16 #define sz_xXFixesUnionRegionReq sz_xXFixesCombineRegionReq #define sz_xXFixesIntersectRegionReq sz_xXFixesCombineRegionReq #define sz_xXFixesSubtractRegionReq sz_xXFixesCombineRegionReq typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region source; INT16 x, y; CARD16 width, height; Region destination; } xXFixesInvertRegionReq; #define sz_xXFixesInvertRegionReq 20 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; INT16 dx, dy; } xXFixesTranslateRegionReq; #define sz_xXFixesTranslateRegionReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region source; Region destination; } xXFixesRegionExtentsReq; #define sz_xXFixesRegionExtentsReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region region; } xXFixesFetchRegionReq; #define sz_xXFixesFetchRegionReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; INT16 x, y; CARD16 width, height; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXFixesFetchRegionReply; #define sz_xXFixesFetchRegionReply 32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; GContext gc; Region region; INT16 xOrigin, yOrigin; } xXFixesSetGCClipRegionReq; #define sz_xXFixesSetGCClipRegionReq 16 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Window dest; BYTE destKind; CARD8 pad1; CARD16 pad2; INT16 xOff, yOff; Region region; } xXFixesSetWindowShapeRegionReq; #define sz_xXFixesSetWindowShapeRegionReq 20 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Picture picture; Region region; INT16 xOrigin, yOrigin; } xXFixesSetPictureClipRegionReq; #define sz_xXFixesSetPictureClipRegionReq 16 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Cursor cursor; CARD16 nbytes; CARD16 pad; } xXFixesSetCursorNameReq; #define sz_xXFixesSetCursorNameReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Cursor cursor; } xXFixesGetCursorNameReq; #define sz_xXFixesGetCursorNameReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; Atom atom; CARD16 nbytes; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXFixesGetCursorNameReply; #define sz_xXFixesGetCursorNameReply 32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; } xXFixesGetCursorImageAndNameReq; #define sz_xXFixesGetCursorImageAndNameReq 4 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD16 xhot; CARD16 yhot; CARD32 cursorSerial; Atom cursorName; CARD16 nbytes; CARD16 pad; } xXFixesGetCursorImageAndNameReply; #define sz_xXFixesGetCursorImageAndNameReply 32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Cursor source; Cursor destination; } xXFixesChangeCursorReq; #define sz_xXFixesChangeCursorReq 12 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Cursor source; CARD16 nbytes; CARD16 pad; } xXFixesChangeCursorByNameReq; #define sz_xXFixesChangeCursorByNameReq 12 /*************** Version 3 ******************/ typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Region source; Region destination; CARD16 left; CARD16 right; CARD16 top; CARD16 bottom; } xXFixesExpandRegionReq; #define sz_xXFixesExpandRegionReq 20 /*************** Version 4.0 ******************/ typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Window window; } xXFixesHideCursorReq; #define sz_xXFixesHideCursorReq sizeof(xXFixesHideCursorReq) typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Window window; } xXFixesShowCursorReq; #define sz_xXFixesShowCursorReq sizeof(xXFixesShowCursorReq) /*************** Version 5.0 ******************/ #define Barrier CARD32 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Barrier barrier; Window window; INT16 x1; INT16 y1; INT16 x2; INT16 y2; CARD32 directions; CARD16 pad; CARD16 num_devices; /* array of CARD16 devices */ } xXFixesCreatePointerBarrierReq; #define sz_xXFixesCreatePointerBarrierReq 28 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; Barrier barrier; } xXFixesDestroyPointerBarrierReq; #define sz_xXFixesDestroyPointerBarrierReq 8 /*************** Version 6.0 ******************/ typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; CARD32 disconnect_mode; } xXFixesSetClientDisconnectModeReq; #define sz_xXFixesSetClientDisconnectModeReq 8 typedef struct { CARD8 reqType; CARD8 xfixesReqType; CARD16 length; } xXFixesGetClientDisconnectModeReq; #define sz_xXFixesGetClientDisconnectModeReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 disconnect_mode; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXFixesGetClientDisconnectModeReply; #define sz_xXFixesGetClientDisconnectModeReply 32 #undef Barrier #undef Region #undef Picture #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #endif /* _XFIXESPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xf86vmstr.h0000644000175000017500000000027114443010026017013 00000000000000#warning "xf86vmstr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/xtrapbits.h0000644000175000017500000000613014443010026017144 00000000000000/* $XFree86$ */ /* * This include file is designed to be a portable way for systems to define * bit field manipulation of arrays of bits. */ #ifndef __XTRAPBITS__ #define __XTRAPBITS__ "@(#)xtrapbits.h 1.6 - 90/09/18 " /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1994 by Digital Equipment Corporation, Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * */ typedef unsigned char *UByteP; /* Pointer to an unsigned byte array */ #define BitsInByte 8L /* The number of bits in a byte */ #define BitInByte(bit) /* Returns the bit mask of a byte */ \ (1L << (((bit) % BitsInByte))) #define BitInWord(bit) /* Returns the bit mask of a word */ \ (1L << (((bit) % (BitsInByte * 2L)))) #define BitInLong(bit) /* Returns the bit mask of a long */ \ (1L << (((bit) % (BitsInByte * 4L)))) #define ByteInArray(array,bit) /* Returns the byte offset to get to a bit */ \ (((UByteP)(array))[(bit) / BitsInByte]) #define BitIsTrue(array,bit) /* Test to see if a specific bit is True */ \ (ByteInArray(array,bit) & BitInByte(bit)) #define BitIsFalse(array,bit) /* Test to see if a specific bit is False */ \ (!(BitIsTrue(array,bit))) #define BitTrue(array,bit) /* Set a specific bit to be True */ \ (ByteInArray(array,bit) |= BitInByte(bit)) #define BitFalse(array,bit) /* Set a specific bit to be False */ \ (ByteInArray(array,bit) &= ~BitInByte(bit)) #define BitToggle(array,bit) /* Toggle a specific bit */ \ (ByteInArray(array,bit) ^= BitInByte(bit)) #define BitCopy(dest,src,bit) /* Copy a specific bit */ \ BitIsTrue((src),(bit)) ? BitTrue((dest),(bit)) : BitFalse((dest),(bit)) #define BitValue(array,bit) /* Return True or False depending on bit */ \ (BitIsTrue((array),(bit)) ? True : False) #define BitSet(array,bit,value) /* Set bit to given value in array */ \ (value) ? BitTrue((array),(bit)) : BitFalse((array),(bit)) #endif /* __XTRAPBITS__ */ xorgproto-2023.2/include/X11/extensions/recordproto.h0000644000175000017500000001672214443010026017476 00000000000000/*************************************************************************** * Copyright 1995 Network Computing Devices * * 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 Network Computing Devices * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * * NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES 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. **************************************************************************/ #ifndef _RECORDPROTO_H_ #define _RECORDPROTO_H_ #include /* only difference between 1.12 and 1.13 is byte order of device events, which the library doesn't deal with. */ /********************************************************* * * Protocol request constants * */ #define X_RecordQueryVersion 0 /* First request from client */ #define X_RecordCreateContext 1 /* Create client RC */ #define X_RecordRegisterClients 2 /* Add to client RC */ #define X_RecordUnregisterClients 3 /* Delete from client RC */ #define X_RecordGetContext 4 /* Query client RC */ #define X_RecordEnableContext 5 /* Enable interception and reporting */ #define X_RecordDisableContext 6 /* Disable interception and reporting */ #define X_RecordFreeContext 7 /* Free client RC */ #define sz_XRecordRange 32 #define sz_XRecordClientInfo 12 #define sz_XRecordState 16 #define sz_XRecordDatum 32 #define XRecordGlobaldef #define XRecordGlobalref extern #define RecordMaxEvent (128L-1L) #define RecordMinDeviceEvent (2L) #define RecordMaxDeviceEvent (6L) #define RecordMaxError (256L-1L) #define RecordMaxCoreRequest (128L-1L) #define RecordMaxExtRequest (256L-1L) #define RecordMinExtRequest (129L-1L) #define RECORD_RC CARD32 #define RECORD_XIDBASE CARD32 #define RECORD_CLIENTSPEC CARD32 #define RECORD_ELEMENT_HEADER CARD8 typedef RECORD_CLIENTSPEC RecordClientSpec, *RecordClientSpecPtr; typedef struct { CARD8 first; CARD8 last; } RECORD_RANGE8; typedef struct { CARD16 first; CARD16 last; } RECORD_RANGE16; typedef struct { RECORD_RANGE8 majorCode; RECORD_RANGE16 minorCode; } RECORD_EXTRANGE; typedef struct { RECORD_RANGE8 coreRequests; RECORD_RANGE8 coreReplies; RECORD_EXTRANGE extRequests; RECORD_EXTRANGE extReplies; RECORD_RANGE8 deliveredEvents; RECORD_RANGE8 deviceEvents; RECORD_RANGE8 errors; BOOL clientStarted; BOOL clientDied; } RECORDRANGE; #define sz_RECORDRANGE 24 /* typedef RECORDRANGE xRecordRange, *xRecordRangePtr; #define sz_xRecordRange 24 */ /* Cannot have structures within structures going over the wire */ typedef struct { CARD8 coreRequestsFirst; CARD8 coreRequestsLast; CARD8 coreRepliesFirst; CARD8 coreRepliesLast; CARD8 extRequestsMajorFirst; CARD8 extRequestsMajorLast; CARD16 extRequestsMinorFirst; CARD16 extRequestsMinorLast; CARD8 extRepliesMajorFirst; CARD8 extRepliesMajorLast; CARD16 extRepliesMinorFirst; CARD16 extRepliesMinorLast; CARD8 deliveredEventsFirst; CARD8 deliveredEventsLast; CARD8 deviceEventsFirst; CARD8 deviceEventsLast; CARD8 errorsFirst; CARD8 errorsLast; BOOL clientStarted; BOOL clientDied; } xRecordRange; #define sz_xRecordRange 24 typedef struct { RECORD_CLIENTSPEC clientResource; CARD32 nRanges; /* LISTofRECORDRANGE */ } RECORD_CLIENT_INFO; typedef RECORD_CLIENT_INFO xRecordClientInfo; /* * Initialize */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xRecordQueryVersionReq; #define sz_xRecordQueryVersionReq 8 typedef struct { CARD8 type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRecordQueryVersionReply; #define sz_xRecordQueryVersionReply 32 /* * Create RC */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; RECORD_ELEMENT_HEADER elementHeader; CARD8 pad; CARD16 pad0; CARD32 nClients; CARD32 nRanges; /* LISTofRECORD_CLIENTSPEC */ /* LISTofRECORDRANGE */ } xRecordCreateContextReq; #define sz_xRecordCreateContextReq 20 /* * Add to RC */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; RECORD_ELEMENT_HEADER elementHeader; CARD8 pad; CARD16 pad0; CARD32 nClients; CARD32 nRanges; /* LISTofRECORD_CLIENTSPEC */ /* LISTofRECORDRANGE */ } xRecordRegisterClientsReq; #define sz_xRecordRegisterClientsReq 20 /* * Delete from RC */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; CARD32 nClients; /* LISTofRECORD_CLIENTSPEC */ } xRecordUnregisterClientsReq; #define sz_xRecordUnregisterClientsReq 12 /* * Query RC */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; } xRecordGetContextReq; #define sz_xRecordGetContextReq 8 typedef struct { CARD8 type; BOOL enabled; CARD16 sequenceNumber; CARD32 length; RECORD_ELEMENT_HEADER elementHeader; CARD8 pad; CARD16 pad0; CARD32 nClients; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; /* LISTofCLIENT_INFO */ /* intercepted-clients */ } xRecordGetContextReply; #define sz_xRecordGetContextReply 32 /* * Enable data interception */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; } xRecordEnableContextReq; #define sz_xRecordEnableContextReq 8 typedef struct { CARD8 type; CARD8 category; CARD16 sequenceNumber; CARD32 length; RECORD_ELEMENT_HEADER elementHeader; BOOL clientSwapped; CARD16 pad1; RECORD_XIDBASE idBase; CARD32 serverTime; CARD32 recordedSequenceNumber; CARD32 pad3; CARD32 pad4; /* BYTE data; */ } xRecordEnableContextReply; #define sz_xRecordEnableContextReply 32 /* * Disable data interception */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; } xRecordDisableContextReq; #define sz_xRecordDisableContextReq 8 /* * Free RC */ typedef struct { CARD8 reqType; CARD8 recordReqType; CARD16 length; RECORD_RC context; } xRecordFreeContextReq; #define sz_xRecordFreeContextReq 8 #undef RECORD_RC #undef RECORD_XIDBASE #undef RECORD_ELEMENT_HEADER #undef RECORD_CLIENTSPEC #endif xorgproto-2023.2/include/X11/extensions/Printstr.h0000644000175000017500000005565214443010026016766 00000000000000/* $Xorg: Printstr.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */ /****************************************************************************** ****************************************************************************** ** ** File: Printstr.h ** ** Description: Definitions needed by the server and library, but ** not clients. ** ** Print.h for server, library and clients. ** ****************************************************************************** ** ** (c) Copyright 1996 Hewlett-Packard Company ** (c) Copyright 1996 International Business Machines Corp. ** (c) Copyright 1996, Oracle and/or its affiliates. ** (c) Copyright 1996 Novell, Inc. ** (c) Copyright 1996 Digital Equipment Corp. ** (c) Copyright 1996 Fujitsu Limited ** (c) Copyright 1996 Hitachi, Ltd. ** ** 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 ** COPYRIGHT HOLDERS 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 copyright holders shall ** not be used in advertising or otherwise to promote the sale, use or other ** dealings in this Software without prior written authorization from said ** copyright holders. ** ****************************************************************************** *****************************************************************************/ /* $XFree86: xc/include/extensions/Printstr.h,v 1.5 2001/08/01 00:44:35 tsi Exp $ */ #ifndef _XpPrintstr_H_ #define _XpPrintstr_H_ /* * NEED_EVENTS and NEED_REPLIES are hacks to limit the linker symbol-table * size. When function prototypes are needed from Print.h, this sets up * a cascading dependency on Printstr.h and eventually Xproto.h to provide * the event and reply struct definitions. */ #ifndef NEED_EVENTS #define NEED_EVENTS #endif /* NEED_EVENTS */ #define NEED_REPLIES #include #ifndef _XP_PRINT_SERVER_ #include #endif /* _XP_PRINT_SERVER_ */ /* * Pull in other definitions. Print.h will hide some things if we're * doing server side work. */ #include #include _XFUNCPROTOBEGIN /****************************************************************************** * * Protocol requests constants and alignment values * * Note: Xlib macro's expect X_ABC where ABC is the name of the * protocol request. */ #define X_PrintQueryVersion 0 #define X_PrintGetPrinterList 1 #define X_PrintCreateContext 2 #define X_PrintSetContext 3 #define X_PrintGetContext 4 #define X_PrintDestroyContext 5 #define X_PrintGetContextScreen 6 #define X_PrintStartJob 7 #define X_PrintEndJob 8 #define X_PrintStartDoc 9 #define X_PrintEndDoc 10 #define X_PrintPutDocumentData 11 #define X_PrintGetDocumentData 12 #define X_PrintStartPage 13 #define X_PrintEndPage 14 #define X_PrintSelectInput 15 #define X_PrintInputSelected 16 #define X_PrintGetAttributes 17 #define X_PrintSetAttributes 18 #define X_PrintGetOneAttribute 19 #define X_PrintRehashPrinterList 20 #define X_PrintGetPageDimensions 21 #define X_PrintQueryScreens 22 #define X_PrintSetImageResolution 23 #define X_PrintGetImageResolution 24 /******************************************************************** * * Protocol data types */ #define PCONTEXT CARD32 #define WINDOW CARD32 #define DRAWABLE CARD32 #define BITMASK CARD32 /****************************************************************************** * * Event wire struct definitions * * Note: Xlib macro's expect xABC struct names and sz_xABC size * constants where ABC is the name of the protocol request. */ /********************************************************************* * * Events. * * See Print.h for the protocol "type" values. */ typedef struct _xPrintPrintEvent { BYTE type; /* XPPrintNotify + extEntry->eventBase */ BYTE detail; /* XPStartJobNotify, XPEndJobNotify, XPStartDocNotify, XPEndDocNotify, XPStartPageNotify, XPEndPageNotify */ CARD16 sequenceNumber; PCONTEXT printContext; /* print context */ BOOL cancel; /* canceled flag */ CARD8 pad1; /* rest is unused */ CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xPrintPrintEvent; #define sz_xPrintPrintEvent 32; typedef struct _xPrintAttributeEvent { BYTE type; /* XPAttributeNotify + extEntry->eventBase */ BYTE detail; /* XPJobAttr, XPDocAttr, XPPageAttr, XPPrinterAttr, XPSpoolerAttr, XPMediumAttr, XPServerAttr */ CARD16 sequenceNumber; PCONTEXT printContext; /* print context */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xPrintAttributeEvent; #define sz_xPrintAttributeEvent 32; /********************************************************************* * * Requests */ typedef struct _PrintQueryVersion { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintQueryVersion */ CARD16 length; } xPrintQueryVersionReq; #define sz_xPrintQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of Xp protocol */ CARD16 minorVersion; /* minor version of Xp protocol */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xPrintQueryVersionReply; #define sz_xPrintQueryVersionReply 32 typedef struct _PrintGetPrinterList { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetPrinterList */ CARD16 length; CARD32 printerNameLen; /* length of printer name */ CARD32 localeLen; /* length of locale string */ /* variable portion ***************************************** STRING8 printerName; * printer name * BYTE pad(printerNameLen) * unused * STRING8 locale; * locale * BYTE pad(localeLen) * unused * ************************************************************/ } xPrintGetPrinterListReq; #define sz_xPrintGetPrinterListReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 listCount; /* of PRINTER recs below */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; /* variable portion ***************************************** CARD32 nameLen; * length of name in bytes * STRING8 name; * name * BYTE pad(nameLen) * unused * CARD32 descLen; * length of desc in bytes * STRING8 desc; * localized description * BYTE pad(descLen) * unused * ************************************************************/ } xPrintGetPrinterListReply; #define sz_xPrintGetPrinterListReply 32 typedef struct _PrintRehashPrinterList { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintRehashPrinterList */ CARD16 length; } xPrintRehashPrinterListReq; #define sz_xPrintRehashPrinterListReq 4 typedef struct _PrintCreateContext { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintInitSetContext */ CARD16 length; CARD32 contextID; /* ID for context */ CARD32 printerNameLen; /* length of printerName in bytes */ CARD32 localeLen; /* length of locale in bytes */ /* variable portion ***************************************** STRING8 printerName * printer name * BYTE pad(printerNameLen) * unused * STRING8 locale * locale * BYTE pad(locale) * unused * ************************************************************/ } xPrintCreateContextReq; #define sz_xPrintCreateContextReq 16 typedef struct _PrintSetContext { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintSetContext */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintSetContextReq; #define sz_xPrintSetContextReq 8 typedef struct _PrintGetContext { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetContext */ CARD16 length; } xPrintGetContextReq; #define sz_xPrintGetContextReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; PCONTEXT printContext; /* print context */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xPrintGetContextReply; #define sz_xPrintGetContextReply 32 typedef struct _PrintDestroyContext { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintDestroyContext */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintDestroyContextReq; #define sz_xPrintDestroyContextReq 8 typedef struct _PrintGetContextScreen { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetContextScreen */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintGetContextScreenReq; #define sz_xPrintGetContextScreenReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; WINDOW rootWindow; /* screenPtr represented as rootWin */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xPrintGetContextScreenReply; #define sz_xPrintGetContextScreenReply 32 typedef struct _PrintStartJob { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintStartJob */ CARD16 length; CARD8 saveData; /* save data boolean */ CARD8 pad1; CARD16 pad2; } xPrintStartJobReq; #define sz_xPrintStartJobReq 8 typedef struct _PrintEndJob { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintEndJob */ CARD16 length; BOOL cancel; /* cancel boolean */ CARD8 pad1; CARD16 pad2; } xPrintEndJobReq; #define sz_xPrintEndJobReq 8 typedef struct _PrintStartDoc { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintStartDoc */ CARD16 length; CARD8 type; /* type for document */ CARD8 pad1; CARD16 pad2; } xPrintStartDocReq; #define sz_xPrintStartDocReq 8 typedef struct _PrintEndDoc { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintEndDoc */ CARD16 length; BOOL cancel; /* cancel boolean */ CARD8 pad1; CARD16 pad2; } xPrintEndDocReq; #define sz_xPrintEndDocReq 8 typedef struct _PrintPutDocumentData { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintPutDocumentData */ CARD16 length; DRAWABLE drawable; /* target drawable */ CARD32 len_data; /* big len in bytes */ CARD16 len_fmt; /* len in bytes */ CARD16 len_options; /* len in bytes */ /* variable portion ***************************************** LISTofBYTE data; * data * BYTE pad(len_data) * unused * STRING8 doc_fmt; * ISO compliant desc of data type * BYTE pad(len_fmt) * unused * STRING8 options; * additional device-dependent desc * BYTE pad(len_options) * unused * ************************************************************/ } xPrintPutDocumentDataReq; #define sz_xPrintPutDocumentDataReq 16 typedef struct _PrintGetDocumentData { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetDocumentData */ CARD16 length; PCONTEXT printContext; /* print context */ CARD32 maxBufferSize; /* maximum buffer size requested */ } xPrintGetDocumentDataReq; #define sz_xPrintGetDocumentDataReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 statusCode; /* status code for reply */ CARD32 finishedFlag; /* is this the last reply */ CARD32 dataLen; /* data length */ CARD32 pad1; CARD32 pad2; CARD32 pad3; /* variable portion ***************************************** LISTofBYTE data; * data * BYTE pad(count) * unused * ************************************************************/ } xPrintGetDocumentDataReply; #define sz_xPrintGetDocumentDataReply 32 typedef struct _PrintStartPage { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintStartPage */ CARD16 length; WINDOW window; /* window */ } xPrintStartPageReq; #define sz_xPrintStartPageReq 8 typedef struct _PrintEndPage { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintEndPage */ CARD16 length; BOOL cancel; /* cancel boolean */ CARD8 pad1; CARD16 pad2; } xPrintEndPageReq; #define sz_xPrintEndPageReq 8 typedef struct _PrintSelectInput { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintSelectInput */ CARD16 length; PCONTEXT printContext; /* print context */ BITMASK eventMask; } xPrintSelectInputReq; #define sz_xPrintSelectInputReq 12 typedef struct _PrintInputSelected { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintInputSelected */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintInputSelectedReq; #define sz_xPrintInputSelectedReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; BITMASK eventMask; /* your event mask */ BITMASK allEventsMask; /* all event mask */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xPrintInputSelectedReply; #define sz_xPrintInputSelectedReply 32 typedef struct _PrintGetAttributes { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetAttributes */ CARD16 length; PCONTEXT printContext; /* print context */ CARD8 type; /* type */ CARD8 pad1; /* unused */ CARD16 pad2; /* unused */ } xPrintGetAttributesReq; #define sz_xPrintGetAttributesReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 stringLen; /* length of xrm db string */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; /* variable portion ***************************************** STRING8 string; * xrm db as a string * BYTE pad(stringLen) * unused * ************************************************************/ } xPrintGetAttributesReply; #define sz_xPrintGetAttributesReply 32 typedef struct _PrintSetAttributes { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintSetAttributes */ CARD16 length; PCONTEXT printContext; /* print context */ CARD32 stringLen; /* length of xrm db string */ CARD8 type; /* type */ CARD8 rule; /* replacement rule */ CARD16 pad1; /* unused */ /* variable portion ***************************************** STRING8 string; * xrm db as a string * BYTE pad(stringLen) * unused * ************************************************************/ } xPrintSetAttributesReq; #define sz_xPrintSetAttributesReq 16 typedef struct _PrintGetOneAttribute { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetOneAttribute */ CARD16 length; PCONTEXT printContext; /* print context */ CARD32 nameLen; /* length of name string */ CARD8 type; /* type */ CARD8 pad1; /* unused */ CARD16 pad2; /* unused */ /* variable portion ***************************************** STRING8 name; * name as a string * BYTE pad(name) * unused * ************************************************************/ } xPrintGetOneAttributeReq; #define sz_xPrintGetOneAttributeReq 16 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 valueLen; /* length of value string */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; /* variable portion ***************************************** STRING8 value; * value as a string * BYTE pad(value) * unused * ************************************************************/ } xPrintGetOneAttributeReply; #define sz_xPrintGetOneAttributeReply 32 typedef struct _PrintGetPageDimensions { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetPageDimensions */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintGetPageDimensionsReq; #define sz_xPrintGetPageDimensionsReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 width; /* total pixel width */ CARD16 height; /* total pixel height */ CARD16 rx; /* reproducible x pixel offset */ CARD16 ry; /* reproducible y pixel offset */ CARD16 rwidth; /* reproducible x pixel width */ CARD16 rheight; /* reproducible y pixel width */ CARD32 pad1; CARD32 pad2; CARD32 pad3; } xPrintGetPageDimensionsReply; #define sz_xPrintGetPageDimensionsReply 32 typedef struct _PrintQueryScreens { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintQueryScreens */ CARD16 length; } xPrintQueryScreensReq; #define sz_xPrintQueryScreensReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 listCount; /* number of screens following */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; /* variable portion ***************************************** WINDOW rootWindow; * root window of screen * ************************************************************/ } xPrintQueryScreensReply; #define sz_xPrintQueryScreensReply 32 typedef struct _PrintSetImageResolution { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintSetImageResolution */ CARD16 length; PCONTEXT printContext; /* print context */ CARD16 imageRes; /* image resolution */ CARD16 pad1; } xPrintSetImageResolutionReq; #define sz_xPrintSetImageResolutionReq 12 typedef struct { BYTE type; /* X_Reply */ BOOL status; /* accepted or not */ CARD16 sequenceNumber; CARD32 length; CARD16 prevRes; /* previous resolution */ CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xPrintSetImageResolutionReply; #define sz_xPrintSetImageResolutionReply 32 typedef struct _PrintGetImageResolution { CARD8 reqType; /* always PrintReqCode */ CARD8 printReqType; /* always X_PrintGetImageResolution */ CARD16 length; PCONTEXT printContext; /* print context */ } xPrintGetImageResolutionReq; #define sz_xPrintGetImageResolutionReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD16 imageRes; /* image resolution */ CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xPrintGetImageResolutionReply; #define sz_xPrintGetImageResolutionReply 32 #ifndef _XP_PRINT_SERVER_ /*********************************************************************** * * Library-only definitions. */ extern XPHinterProc _xp_hinter_proc; extern char *_xp_hinter_desc; extern int _xp_hinter_init; #else /* _XP_PRINT_SERVER_ */ /*********************************************************************** * * Server-only definitions shared between the extension and DDX layers. * */ /* * Internal return code used to indicate that the requesting * client has been suspended. */ #define Suspended 84 struct _XpContext; extern void XpRegisterPrinterScreen( ScreenPtr pScreen, int (*CreateContext)(struct _XpContext *)); typedef struct _xpprintFuncs { int (*StartJob)( struct _XpContext * /* pContext */, Bool /* sendClientData */, ClientPtr /* client */); int (*EndJob)(struct _XpContext *, int); int (*StartDoc)( struct _XpContext * /* pContext */, XPDocumentType /* type */); int (*EndDoc)(struct _XpContext *, int); int (*StartPage)( struct _XpContext * /* pContext */, WindowPtr /* pWin */); int (*EndPage)( struct _XpContext * /* pContext */, WindowPtr /* pWin */); int (*PutDocumentData)( struct _XpContext * /* pContext */, DrawablePtr /* pDraw */, char * /* pData */, int /* len_data */, char * /* pDoc_fmt */, int /* len_fmt */, char * /* pOptions */, int /* len_options */, ClientPtr /* client */); int (*GetDocumentData)( struct _XpContext * /* pContext */, ClientPtr /* client */, int /* maxBufferSize */); int (*DestroyContext)( struct _XpContext *); /* pContext */ char *(*GetAttributes)( struct _XpContext *, XPAttributes /* pool */); char *(*GetOneAttribute)( struct _XpContext * /* pContext */, XPAttributes /* pool */, char * /* attrs */); int (*SetAttributes)( struct _XpContext * /* pContext */, XPAttributes /* pool */, char * /* attrs */); int (*AugmentAttributes)( struct _XpContext * /* pContext */, XPAttributes /* pool */, char * /* attrs */); int (*GetMediumDimensions)( struct _XpContext * /* pPrintContext */, CARD16 * /* pWidth */, CARD16 * /* pHeight */); int (*GetReproducibleArea)( struct _XpContext * /* pPrintContext */, xRectangle * /* pRect */); int (*SetImageResolution)( struct _XpContext * /* pPrintContext */, int /* imageRes */, Bool * /* pStatus */); } XpDriverFuncs, *XpDriverFuncsPtr; /* * Each print context is represented by one of the following structs * associated with a resource ID of type RTcontext . A pointer to * the context is placed in the Xp extension's devPrivates * element in each client * which establishes a context via * either initContext or setContext. * The context pointer is also placed in the struct indicated by the * RTpage resource associated with each StartPage'd window. */ typedef struct _XpContext { XID contextID; char *printerName; int screenNum; /* screen containing the printer */ struct _XpClient *clientHead; /* list of clients */ CARD32 state; VisualID pageWin; PrivateRec *devPrivates; XpDriverFuncs funcs; ClientPtr clientSlept; int imageRes; } XpContextRec, *XpContextPtr; #include /* FontResolutionPtr */ extern FontResolutionPtr XpGetClientResolutions(ClientPtr, int *); extern XpContextPtr XpContextOfClient(ClientPtr); extern XpContextPtr XpGetPrintContext(ClientPtr); extern int XpRehashPrinterList(void); extern void XpSetFontResFunc(ClientPtr); extern void XpUnsetFontResFunc(ClientPtr); extern void XpRegisterInitFunc(ScreenPtr, char *, int (*)(struct _XpContext *)); #endif /* _XP_PRINT_SERVER_ */ _XFUNCPROTOEND #endif /* _XpPrintstr_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dga.h0000644000175000017500000000056114443010026016375 00000000000000#ifdef _XF86DGA_SERVER_ #warning "xf86dga.h is obsolete and may be removed in the future." #warning "include instead." #include #else #warning "xf86dga.h is obsolete and may be removed in the future." #warning "include instead." #include #endif xorgproto-2023.2/include/X11/extensions/windowswmstr.h0000644000175000017500000001153114443010026017714 00000000000000/* * WindowsWM extension is based on AppleWM extension * Authors: Kensuke Matsuzaki */ /************************************************************************** Copyright (c) 2002 Apple Computer, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ #ifndef _WINDOWSWMSTR_H_ #define _WINDOWSWMSTR_H_ #include #include #include #define WINDOWSWMNAME "Windows-WM" #define WINDOWS_WM_MAJOR_VERSION 1 /* current version numbers */ #define WINDOWS_WM_MINOR_VERSION 0 #define WINDOWS_WM_PATCH_VERSION 0 typedef struct _WindowsWMQueryVersion { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMQueryVersion */ CARD16 length; } xWindowsWMQueryVersionReq; #define sz_xWindowsWMQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of WM protocol */ CARD16 minorVersion; /* minor version of WM protocol */ CARD32 patchVersion; /* patch version of WM protocol */ CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xWindowsWMQueryVersionReply; #define sz_xWindowsWMQueryVersionReply 32 typedef struct _WindowsWMDisableUpdate { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMDisableUpdate */ CARD16 length; CARD32 screen; } xWindowsWMDisableUpdateReq; #define sz_xWindowsWMDisableUpdateReq 8 typedef struct _WindowsWMReenableUpdate { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMReenableUpdate */ CARD16 length; CARD32 screen; } xWindowsWMReenableUpdateReq; #define sz_xWindowsWMReenableUpdateReq 8 typedef struct _WindowsWMSelectInput { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMSelectInput */ CARD16 length; CARD32 mask; } xWindowsWMSelectInputReq; #define sz_xWindowsWMSelectInputReq 8 typedef struct _WindowsWMNotify { BYTE type; /* always eventBase + event type */ BYTE kind; CARD16 sequenceNumber; Window window; Time time; /* time of change */ CARD16 pad1; CARD32 arg; INT16 x; INT16 y; CARD16 w; CARD16 h; } xWindowsWMNotifyEvent; #define sz_xWindowsWMNotifyEvent 28 typedef struct _WindowsWMSetFrontProcess { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMSetFrontProcess */ CARD16 length; } xWindowsWMSetFrontProcessReq; #define sz_xWindowsWMSetFrontProcessReq 4 typedef struct _WindowsWMFrameGetRect { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMFrameGetRect */ CARD16 length; CARD32 frame_style; CARD32 frame_style_ex; CARD16 frame_rect; INT16 ix; INT16 iy; CARD16 iw; CARD16 ih; CARD16 pad1; } xWindowsWMFrameGetRectReq; #define sz_xWindowsWMFrameGetRectReq 24 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; INT16 x; INT16 y; CARD16 w; CARD16 h; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xWindowsWMFrameGetRectReply; #define sz_xWindowsWMFrameGetRectReply 32 typedef struct _WindowsWMFrameDraw { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMFrameDraw */ CARD16 length; CARD32 screen; CARD32 window; CARD32 frame_style; CARD32 frame_style_ex; INT16 ix; INT16 iy; CARD16 iw; CARD16 ih; } xWindowsWMFrameDrawReq; #define sz_xWindowsWMFrameDrawReq 28 typedef struct _WindowsWMFrameSetTitle { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_WMFrameSetTitle */ CARD16 length; CARD32 screen; CARD32 window; CARD32 title_length; } xWindowsWMFrameSetTitleReq; #define sz_xWindowsWMFrameSetTitleReq 16 #endif /* _WINDOWSWMSTR_H_ */ xorgproto-2023.2/include/X11/extensions/secur.h0000644000175000017500000000413514443010026016250 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _SECUR_H #define _SECUR_H #define SECURITY_EXTENSION_NAME "SECURITY" #define SECURITY_MAJOR_VERSION 1 #define SECURITY_MINOR_VERSION 0 #define XSecurityNumberEvents 1 #define XSecurityNumberErrors 2 #define XSecurityBadAuthorization 0 #define XSecurityBadAuthorizationProtocol 1 /* trust levels */ #define XSecurityClientTrusted 0 #define XSecurityClientUntrusted 1 /* authorization attribute masks */ #define XSecurityTimeout (1<<0) #define XSecurityTrustLevel (1<<1) #define XSecurityGroup (1<<2) #define XSecurityEventMask (1<<3) #define XSecurityAllAuthorizationAttributes \ (XSecurityTimeout | XSecurityTrustLevel | XSecurityGroup | XSecurityEventMask) /* event masks */ #define XSecurityAuthorizationRevokedMask (1<<0) #define XSecurityAllEventMasks XSecurityAuthorizationRevokedMask /* event offsets */ #define XSecurityAuthorizationRevoked 0 #define XSecurityAuthorizationName "XC-QUERY-SECURITY-1" #define XSecurityAuthorizationNameLen 19 #endif /* _SECUR_H */ xorgproto-2023.2/include/X11/extensions/dpmsproto.h0000644000175000017500000001225014443010026017153 00000000000000/***************************************************************** Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 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. 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 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. ******************************************************************/ #ifndef _DPMSPROTO_H_ #define _DPMSPROTO_H_ #include #define X_DPMSGetVersion 0 #define X_DPMSCapable 1 #define X_DPMSGetTimeouts 2 #define X_DPMSSetTimeouts 3 #define X_DPMSEnable 4 #define X_DPMSDisable 5 #define X_DPMSForceLevel 6 #define X_DPMSInfo 7 #define X_DPMSSelectInput 8 #define DPMSNumberEvents 0 #define DPMSNumberErrors 0 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSGetVersion */ CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xDPMSGetVersionReq; #define sz_xDPMSGetVersionReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDPMSGetVersionReply; #define sz_xDPMSGetVersionReply 32 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSCapable */ CARD16 length; } xDPMSCapableReq; #define sz_xDPMSCapableReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; BOOL capable; CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xDPMSCapableReply; #define sz_xDPMSCapableReply 32 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSGetTimeouts */ CARD16 length; } xDPMSGetTimeoutsReq; #define sz_xDPMSGetTimeoutsReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 standby; CARD16 suspend; CARD16 off; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDPMSGetTimeoutsReply; #define sz_xDPMSGetTimeoutsReply 32 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSSetTimeouts */ CARD16 length; CARD16 standby; CARD16 suspend; CARD16 off; CARD16 pad0; } xDPMSSetTimeoutsReq; #define sz_xDPMSSetTimeoutsReq 12 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSEnable */ CARD16 length; } xDPMSEnableReq; #define sz_xDPMSEnableReq 4 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSDisable */ CARD16 length; } xDPMSDisableReq; #define sz_xDPMSDisableReq 4 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSForceLevel */ CARD16 length; CARD16 level; /* power level requested */ CARD16 pad0; } xDPMSForceLevelReq; #define sz_xDPMSForceLevelReq 8 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSInfo */ CARD16 length; } xDPMSInfoReq; #define sz_xDPMSInfoReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 power_level; BOOL state; CARD8 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xDPMSInfoReply; #define sz_xDPMSInfoReply 32 typedef struct { CARD8 reqType; /* always DPMSCode */ CARD8 dpmsReqType; /* always X_DPMSSelectInput */ CARD16 length B16; CARD32 eventMask B32; } xDPMSSelectInputReq; #define sz_xDPMSSelectInputReq 8 typedef struct { CARD8 type; CARD8 extension; CARD16 sequenceNumber B16; CARD32 length; CARD16 evtype B16; CARD16 pad0 B16; Time timestamp B32; CARD16 power_level B16; BOOL state; CARD8 pad1; CARD32 pad2 B32; CARD32 pad3 B32; CARD32 pad4 B32; } xDPMSInfoNotifyEvent; #define sz_xDPMSInfoNotifyEvent 32 #endif /* _DPMSPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/damageproto.h0000644000175000017500000000703714443010026017435 00000000000000/* * Copyright © 2003 Keith Packard * Copyright © 2007 Eric Anholt * * 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _DAMAGEPROTO_H_ #define _DAMAGEPROTO_H_ #include #include #include #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define Picture CARD32 #define Region CARD32 #define Damage CARD32 /************** Version 0 ******************/ typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; } xDamageReq; /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xDamageQueryVersionReq; #define sz_xDamageQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xDamageQueryVersionReply; #define sz_xDamageQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; Damage damage; Drawable drawable; CARD8 level; CARD8 pad1; CARD16 pad2; } xDamageCreateReq; #define sz_xDamageCreateReq 16 typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; Damage damage; } xDamageDestroyReq; #define sz_xDamageDestroyReq 8 typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; Damage damage; Region repair; Region parts; } xDamageSubtractReq; #define sz_xDamageSubtractReq 16 typedef struct { CARD8 reqType; CARD8 damageReqType; CARD16 length; Drawable drawable; Region region; } xDamageAddReq; #define sz_xDamageAddReq 12 /* Events */ #define DamageNotifyMore 0x80 typedef struct { CARD8 type; CARD8 level; CARD16 sequenceNumber; Drawable drawable; Damage damage; Time timestamp; xRectangle area; xRectangle geometry; } xDamageNotifyEvent; #undef Damage #undef Region #undef Picture #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #endif /* _DAMAGEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/XKBstr.h0000644000175000017500000004636114443010026016313 00000000000000/************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _XKBSTR_H_ #define _XKBSTR_H_ #include #include #define XkbCharToInt(v) ((v)&0x80?(int)((v)|(~0xff)):(int)((v)&0x7f)) #define XkbIntTo2Chars(i,h,l) (((h)=((i>>8)&0xff)),((l)=((i)&0xff))) #define Xkb2CharsToInt(h,l) ((short)(((h)<<8)|(l))) /* * The Xkb structs are full of implicit padding to properly align members. * We can't clean that up without breaking ABI, so tell clang not to bother * complaining about it. */ #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpadded" #endif /* * Common data structures and access macros */ typedef struct _XkbStateRec { unsigned char group; unsigned char locked_group; unsigned short base_group; unsigned short latched_group; unsigned char mods; unsigned char base_mods; unsigned char latched_mods; unsigned char locked_mods; unsigned char compat_state; unsigned char grab_mods; unsigned char compat_grab_mods; unsigned char lookup_mods; unsigned char compat_lookup_mods; unsigned short ptr_buttons; } XkbStateRec,*XkbStatePtr; #define XkbModLocks(s) ((s)->locked_mods) #define XkbStateMods(s) ((s)->base_mods|(s)->latched_mods|XkbModLocks(s)) #define XkbGroupLock(s) ((s)->locked_group) #define XkbStateGroup(s) ((s)->base_group+(s)->latched_group+XkbGroupLock(s)) #define XkbStateFieldFromRec(s) XkbBuildCoreState((s)->lookup_mods,(s)->group) #define XkbGrabStateFromRec(s) XkbBuildCoreState((s)->grab_mods,(s)->group) typedef struct _XkbMods { unsigned char mask; /* effective mods */ unsigned char real_mods; unsigned short vmods; } XkbModsRec,*XkbModsPtr; typedef struct _XkbKTMapEntry { Bool active; unsigned char level; XkbModsRec mods; } XkbKTMapEntryRec,*XkbKTMapEntryPtr; typedef struct _XkbKeyType { XkbModsRec mods; unsigned char num_levels; unsigned char map_count; /* map is an array of map_count XkbKTMapEntryRec structs */ XkbKTMapEntryPtr map; /* preserve is an array of map_count XkbModsRec structs */ XkbModsPtr preserve; Atom name; /* level_names is an array of num_levels Atoms */ Atom * level_names; } XkbKeyTypeRec, *XkbKeyTypePtr; #define XkbNumGroups(g) ((g)&0x0f) #define XkbOutOfRangeGroupInfo(g) ((g)&0xf0) #define XkbOutOfRangeGroupAction(g) ((g)&0xc0) #define XkbOutOfRangeGroupNumber(g) (((g)&0x30)>>4) #define XkbSetGroupInfo(g,w,n) (((w)&0xc0)|(((n)&3)<<4)|((g)&0x0f)) #define XkbSetNumGroups(g,n) (((g)&0xf0)|((n)&0x0f)) /* * Structures and access macros used primarily by the server */ typedef struct _XkbBehavior { unsigned char type; unsigned char data; } XkbBehavior; #define XkbAnyActionDataSize 7 typedef struct _XkbAnyAction { unsigned char type; unsigned char data[XkbAnyActionDataSize]; } XkbAnyAction; typedef struct _XkbModAction { unsigned char type; unsigned char flags; unsigned char mask; unsigned char real_mods; unsigned char vmods1; unsigned char vmods2; } XkbModAction; #define XkbModActionVMods(a) \ ((short)(((a)->vmods1<<8)|((a)->vmods2))) #define XkbSetModActionVMods(a,v) \ (((a)->vmods1=(((v)>>8)&0xff)),(a)->vmods2=((v)&0xff)) typedef struct _XkbGroupAction { unsigned char type; unsigned char flags; char group_XXX; } XkbGroupAction; #define XkbSAGroup(a) (XkbCharToInt((a)->group_XXX)) #define XkbSASetGroup(a,g) ((a)->group_XXX=(g)) typedef struct _XkbISOAction { unsigned char type; unsigned char flags; unsigned char mask; unsigned char real_mods; char group_XXX; unsigned char affect; unsigned char vmods1; unsigned char vmods2; } XkbISOAction; typedef struct _XkbPtrAction { unsigned char type; unsigned char flags; unsigned char high_XXX; unsigned char low_XXX; unsigned char high_YYY; unsigned char low_YYY; } XkbPtrAction; #define XkbPtrActionX(a) (Xkb2CharsToInt((a)->high_XXX,(a)->low_XXX)) #define XkbPtrActionY(a) (Xkb2CharsToInt((a)->high_YYY,(a)->low_YYY)) #define XkbSetPtrActionX(a,x) (XkbIntTo2Chars(x,(a)->high_XXX,(a)->low_XXX)) #define XkbSetPtrActionY(a,y) (XkbIntTo2Chars(y,(a)->high_YYY,(a)->low_YYY)) typedef struct _XkbPtrBtnAction { unsigned char type; unsigned char flags; unsigned char count; unsigned char button; } XkbPtrBtnAction; typedef struct _XkbPtrDfltAction { unsigned char type; unsigned char flags; unsigned char affect; char valueXXX; } XkbPtrDfltAction; #define XkbSAPtrDfltValue(a) (XkbCharToInt((a)->valueXXX)) #define XkbSASetPtrDfltValue(a,c) ((a)->valueXXX= ((c)&0xff)) typedef struct _XkbSwitchScreenAction { unsigned char type; unsigned char flags; char screenXXX; } XkbSwitchScreenAction; #define XkbSAScreen(a) (XkbCharToInt((a)->screenXXX)) #define XkbSASetScreen(a,s) ((a)->screenXXX= ((s)&0xff)) typedef struct _XkbCtrlsAction { unsigned char type; unsigned char flags; unsigned char ctrls3; unsigned char ctrls2; unsigned char ctrls1; unsigned char ctrls0; } XkbCtrlsAction; #define XkbActionSetCtrls(a,c) (((a)->ctrls3=(((c)>>24)&0xff)),\ ((a)->ctrls2=(((c)>>16)&0xff)),\ ((a)->ctrls1=(((c)>>8)&0xff)),\ ((a)->ctrls0=((c)&0xff))) #define XkbActionCtrls(a) ((((unsigned int)(a)->ctrls3)<<24)|\ (((unsigned int)(a)->ctrls2)<<16)|\ (((unsigned int)(a)->ctrls1)<<8)|\ ((unsigned int)((a)->ctrls0))) typedef struct _XkbMessageAction { unsigned char type; unsigned char flags; unsigned char message[6]; } XkbMessageAction; typedef struct _XkbRedirectKeyAction { unsigned char type; unsigned char new_key; unsigned char mods_mask; unsigned char mods; unsigned char vmods_mask0; unsigned char vmods_mask1; unsigned char vmods0; unsigned char vmods1; } XkbRedirectKeyAction; #define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|\ ((unsigned int)(a)->vmods0)) #define XkbSARedirectSetVMods(a,m) (((a)->vmods1=(((m)>>8)&0xff)),\ ((a)->vmods0=((m)&0xff))) #define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask1)<<8)|\ ((unsigned int)(a)->vmods_mask0)) #define XkbSARedirectSetVModsMask(a,m) (((a)->vmods_mask1=(((m)>>8)&0xff)),\ ((a)->vmods_mask0=((m)&0xff))) typedef struct _XkbDeviceBtnAction { unsigned char type; unsigned char flags; unsigned char count; unsigned char button; unsigned char device; } XkbDeviceBtnAction; typedef struct _XkbDeviceValuatorAction { unsigned char type; unsigned char device; unsigned char v1_what; unsigned char v1_ndx; unsigned char v1_value; unsigned char v2_what; unsigned char v2_ndx; unsigned char v2_value; } XkbDeviceValuatorAction; typedef union _XkbAction { XkbAnyAction any; XkbModAction mods; XkbGroupAction group; XkbISOAction iso; XkbPtrAction ptr; XkbPtrBtnAction btn; XkbPtrDfltAction dflt; XkbSwitchScreenAction screen; XkbCtrlsAction ctrls; XkbMessageAction msg; XkbRedirectKeyAction redirect; XkbDeviceBtnAction devbtn; XkbDeviceValuatorAction devval; unsigned char type; } XkbAction; typedef struct _XkbControls { unsigned char mk_dflt_btn; unsigned char num_groups; unsigned char groups_wrap; XkbModsRec internal; XkbModsRec ignore_lock; unsigned int enabled_ctrls; unsigned short repeat_delay; unsigned short repeat_interval; unsigned short slow_keys_delay; unsigned short debounce_delay; unsigned short mk_delay; unsigned short mk_interval; unsigned short mk_time_to_max; unsigned short mk_max_speed; short mk_curve; unsigned short ax_options; unsigned short ax_timeout; unsigned short axt_opts_mask; unsigned short axt_opts_values; unsigned int axt_ctrls_mask; unsigned int axt_ctrls_values; unsigned char per_key_repeat[XkbPerKeyBitArraySize]; } XkbControlsRec, *XkbControlsPtr; #define XkbAX_AnyFeedback(c) ((c)->enabled_ctrls&XkbAccessXFeedbackMask) #define XkbAX_NeedOption(c,w) ((c)->ax_options&(w)) #define XkbAX_NeedFeedback(c,w) (XkbAX_AnyFeedback(c)&&XkbAX_NeedOption(c,w)) typedef struct _XkbServerMapRec { /* acts is an array of XkbActions structs, with size_acts entries allocated, and num_acts entries used. */ unsigned short num_acts; unsigned short size_acts; XkbAction *acts; /* behaviors, key_acts, explicit, & vmodmap are all arrays with (xkb->max_key_code + 1) entries allocated for each. */ XkbBehavior *behaviors; unsigned short *key_acts; #if defined(__cplusplus) || defined(c_plusplus) /* explicit is a C++ reserved word */ unsigned char *c_explicit; #else unsigned char *explicit; #endif unsigned char vmods[XkbNumVirtualMods]; unsigned short *vmodmap; } XkbServerMapRec, *XkbServerMapPtr; #define XkbSMKeyActionsPtr(m,k) (&(m)->acts[(m)->key_acts[k]]) /* * Structures and access macros used primarily by clients */ typedef struct _XkbSymMapRec { unsigned char kt_index[XkbNumKbdGroups]; unsigned char group_info; unsigned char width; unsigned short offset; } XkbSymMapRec, *XkbSymMapPtr; typedef struct _XkbClientMapRec { /* types is an array of XkbKeyTypeRec structs, with size_types entries allocated, and num_types entries used. */ unsigned char size_types; unsigned char num_types; XkbKeyTypePtr types; /* syms is an array of size_syms KeySyms, in which num_syms are used */ unsigned short size_syms; unsigned short num_syms; KeySym *syms; /* key_sym_map is an array of (max_key_code + 1) XkbSymMapRec structs */ XkbSymMapPtr key_sym_map; /* modmap is an array of (max_key_code + 1) unsigned chars */ unsigned char *modmap; } XkbClientMapRec, *XkbClientMapPtr; #define XkbCMKeyGroupInfo(m,k) ((m)->key_sym_map[k].group_info) #define XkbCMKeyNumGroups(m,k) (XkbNumGroups((m)->key_sym_map[k].group_info)) #define XkbCMKeyGroupWidth(m,k,g) (XkbCMKeyType(m,k,g)->num_levels) #define XkbCMKeyGroupsWidth(m,k) ((m)->key_sym_map[k].width) #define XkbCMKeyTypeIndex(m,k,g) ((m)->key_sym_map[k].kt_index[g&0x3]) #define XkbCMKeyType(m,k,g) (&(m)->types[XkbCMKeyTypeIndex(m,k,g)]) #define XkbCMKeyNumSyms(m,k) (XkbCMKeyGroupsWidth(m,k)*XkbCMKeyNumGroups(m,k)) #define XkbCMKeySymsOffset(m,k) ((m)->key_sym_map[k].offset) #define XkbCMKeySymsPtr(m,k) (&(m)->syms[XkbCMKeySymsOffset(m,k)]) /* * Compatibility structures and access macros */ typedef struct _XkbSymInterpretRec { KeySym sym; unsigned char flags; unsigned char match; unsigned char mods; unsigned char virtual_mod; XkbAnyAction act; } XkbSymInterpretRec,*XkbSymInterpretPtr; typedef struct _XkbCompatMapRec { /* sym_interpret is an array of XkbSymInterpretRec structs, in which size_si are allocated & num_si are used. */ XkbSymInterpretPtr sym_interpret; XkbModsRec groups[XkbNumKbdGroups]; unsigned short num_si; unsigned short size_si; } XkbCompatMapRec, *XkbCompatMapPtr; typedef struct _XkbIndicatorMapRec { unsigned char flags; unsigned char which_groups; unsigned char groups; unsigned char which_mods; XkbModsRec mods; unsigned int ctrls; } XkbIndicatorMapRec, *XkbIndicatorMapPtr; #define XkbIM_IsAuto(i) ((((i)->flags&XkbIM_NoAutomatic)==0)&&\ (((i)->which_groups&&(i)->groups)||\ ((i)->which_mods&&(i)->mods.mask)||\ ((i)->ctrls))) #define XkbIM_InUse(i) (((i)->flags)||((i)->which_groups)||\ ((i)->which_mods)||((i)->ctrls)) typedef struct _XkbIndicatorRec { unsigned long phys_indicators; XkbIndicatorMapRec maps[XkbNumIndicators]; } XkbIndicatorRec,*XkbIndicatorPtr; typedef struct _XkbKeyNameRec { char name[XkbKeyNameLength] _X_NONSTRING; } XkbKeyNameRec,*XkbKeyNamePtr; typedef struct _XkbKeyAliasRec { char real[XkbKeyNameLength] _X_NONSTRING; char alias[XkbKeyNameLength] _X_NONSTRING; } XkbKeyAliasRec,*XkbKeyAliasPtr; /* * Names for everything */ typedef struct _XkbNamesRec { Atom keycodes; Atom geometry; Atom symbols; Atom types; Atom compat; Atom vmods[XkbNumVirtualMods]; Atom indicators[XkbNumIndicators]; Atom groups[XkbNumKbdGroups]; /* keys is an array of (xkb->max_key_code + 1) XkbKeyNameRec entries */ XkbKeyNamePtr keys; /* key_aliases is an array of num_key_aliases XkbKeyAliasRec entries */ XkbKeyAliasPtr key_aliases; /* radio_groups is an array of num_rg Atoms */ Atom *radio_groups; Atom phys_symbols; /* num_keys seems to be unused in libX11 */ unsigned char num_keys; unsigned char num_key_aliases; unsigned short num_rg; } XkbNamesRec,*XkbNamesPtr; typedef struct _XkbGeometry *XkbGeometryPtr; /* * Tie it all together into one big keyboard description */ typedef struct _XkbDesc { struct _XDisplay * dpy; unsigned short flags; unsigned short device_spec; KeyCode min_key_code; KeyCode max_key_code; XkbControlsPtr ctrls; XkbServerMapPtr server; XkbClientMapPtr map; XkbIndicatorPtr indicators; XkbNamesPtr names; XkbCompatMapPtr compat; XkbGeometryPtr geom; } XkbDescRec, *XkbDescPtr; #define XkbKeyKeyTypeIndex(d,k,g) (XkbCMKeyTypeIndex((d)->map,k,g)) #define XkbKeyKeyType(d,k,g) (XkbCMKeyType((d)->map,k,g)) #define XkbKeyGroupWidth(d,k,g) (XkbCMKeyGroupWidth((d)->map,k,g)) #define XkbKeyGroupsWidth(d,k) (XkbCMKeyGroupsWidth((d)->map,k)) #define XkbKeyGroupInfo(d,k) (XkbCMKeyGroupInfo((d)->map,(k))) #define XkbKeyNumGroups(d,k) (XkbCMKeyNumGroups((d)->map,(k))) #define XkbKeyNumSyms(d,k) (XkbCMKeyNumSyms((d)->map,(k))) #define XkbKeySymsPtr(d,k) (XkbCMKeySymsPtr((d)->map,(k))) #define XkbKeySym(d,k,n) (XkbKeySymsPtr(d,k)[n]) #define XkbKeySymEntry(d,k,sl,g) \ (XkbKeySym(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl)))) #define XkbKeyAction(d,k,n) \ (XkbKeyHasActions(d,k)?&XkbKeyActionsPtr(d,k)[n]:NULL) #define XkbKeyActionEntry(d,k,sl,g) \ (XkbKeyHasActions(d,k)?\ XkbKeyAction(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl))):NULL) #define XkbKeyHasActions(d,k) ((d)->server->key_acts[k]!=0) #define XkbKeyNumActions(d,k) (XkbKeyHasActions(d,k)?XkbKeyNumSyms(d,k):1) #define XkbKeyActionsPtr(d,k) (XkbSMKeyActionsPtr((d)->server,k)) #define XkbKeycodeInRange(d,k) (((k)>=(d)->min_key_code)&&\ ((k)<=(d)->max_key_code)) #define XkbNumKeys(d) ((d)->max_key_code-(d)->min_key_code+1) /* * The following structures can be used to track changes * to a keyboard device */ typedef struct _XkbMapChanges { unsigned short changed; KeyCode min_key_code; KeyCode max_key_code; unsigned char first_type; unsigned char num_types; KeyCode first_key_sym; unsigned char num_key_syms; KeyCode first_key_act; unsigned char num_key_acts; KeyCode first_key_behavior; unsigned char num_key_behaviors; KeyCode first_key_explicit; unsigned char num_key_explicit; KeyCode first_modmap_key; unsigned char num_modmap_keys; KeyCode first_vmodmap_key; unsigned char num_vmodmap_keys; unsigned char pad; unsigned short vmods; } XkbMapChangesRec,*XkbMapChangesPtr; typedef struct _XkbControlsChanges { unsigned int changed_ctrls; unsigned int enabled_ctrls_changes; Bool num_groups_changed; } XkbControlsChangesRec,*XkbControlsChangesPtr; typedef struct _XkbIndicatorChanges { unsigned int state_changes; unsigned int map_changes; } XkbIndicatorChangesRec,*XkbIndicatorChangesPtr; typedef struct _XkbNameChanges { unsigned int changed; unsigned char first_type; unsigned char num_types; unsigned char first_lvl; unsigned char num_lvls; unsigned char num_aliases; unsigned char num_rg; unsigned char first_key; unsigned char num_keys; unsigned short changed_vmods; unsigned long changed_indicators; unsigned char changed_groups; } XkbNameChangesRec,*XkbNameChangesPtr; typedef struct _XkbCompatChanges { unsigned char changed_groups; unsigned short first_si; unsigned short num_si; } XkbCompatChangesRec,*XkbCompatChangesPtr; typedef struct _XkbChanges { unsigned short device_spec; unsigned short state_changes; XkbMapChangesRec map; XkbControlsChangesRec ctrls; XkbIndicatorChangesRec indicators; XkbNameChangesRec names; XkbCompatChangesRec compat; } XkbChangesRec, *XkbChangesPtr; /* * These data structures are used to construct a keymap from * a set of components or to list components in the server * database. */ typedef struct _XkbComponentNames { char * keymap; char * keycodes; char * types; char * compat; char * symbols; char * geometry; } XkbComponentNamesRec, *XkbComponentNamesPtr; typedef struct _XkbComponentName { unsigned short flags; char * name; } XkbComponentNameRec,*XkbComponentNamePtr; typedef struct _XkbComponentList { int num_keymaps; int num_keycodes; int num_types; int num_compat; int num_symbols; int num_geometry; XkbComponentNamePtr keymaps; XkbComponentNamePtr keycodes; XkbComponentNamePtr types; XkbComponentNamePtr compat; XkbComponentNamePtr symbols; XkbComponentNamePtr geometry; } XkbComponentListRec, *XkbComponentListPtr; /* * The following data structures describe and track changes to a * non-keyboard extension device */ typedef struct _XkbDeviceLedInfo { unsigned short led_class; unsigned short led_id; unsigned int phys_indicators; unsigned int maps_present; unsigned int names_present; unsigned int state; Atom names[XkbNumIndicators]; XkbIndicatorMapRec maps[XkbNumIndicators]; } XkbDeviceLedInfoRec,*XkbDeviceLedInfoPtr; typedef struct _XkbDeviceInfo { char * name; Atom type; unsigned short device_spec; Bool has_own_state; unsigned short supported; unsigned short unsupported; /* btn_acts is an array of num_btn XkbAction entries */ unsigned short num_btns; XkbAction * btn_acts; unsigned short sz_leds; unsigned short num_leds; unsigned short dflt_kbd_fb; unsigned short dflt_led_fb; /* leds is an array of XkbDeviceLedInfoRec in which sz_leds entries are allocated and num_leds entries are used */ XkbDeviceLedInfoPtr leds; } XkbDeviceInfoRec,*XkbDeviceInfoPtr; #define XkbXI_DevHasBtnActs(d) (((d)->num_btns>0)&&((d)->btn_acts!=NULL)) #define XkbXI_LegalDevBtn(d,b) (XkbXI_DevHasBtnActs(d)&&((b)<(d)->num_btns)) #define XkbXI_DevHasLeds(d) (((d)->num_leds>0)&&((d)->leds!=NULL)) typedef struct _XkbDeviceLedChanges { unsigned short led_class; unsigned short led_id; unsigned int defined; /* names or maps changed */ struct _XkbDeviceLedChanges *next; } XkbDeviceLedChangesRec,*XkbDeviceLedChangesPtr; typedef struct _XkbDeviceChanges { unsigned int changed; unsigned short first_btn; unsigned short num_btns; XkbDeviceLedChangesRec leds; } XkbDeviceChangesRec,*XkbDeviceChangesPtr; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif /* _XKBSTR_H_ */ xorgproto-2023.2/include/X11/extensions/XKBsrv.h0000644000175000017500000006656214443010026016322 00000000000000/************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _XKBSRV_H_ #define _XKBSRV_H_ #ifdef XKB_IN_SERVER #define XkbAllocClientMap SrvXkbAllocClientMap #define XkbAllocServerMap SrvXkbAllocServerMap #define XkbChangeTypesOfKey SrvXkbChangeTypesOfKey #define XkbAddKeyType SrvXkbAddKeyType #define XkbCopyKeyType SrvXkbCopyKeyType #define XkbCopyKeyTypes SrvXkbCopyKeyTypes #define XkbFreeClientMap SrvXkbFreeClientMap #define XkbFreeServerMap SrvXkbFreeServerMap #define XkbInitCanonicalKeyTypes SrvXkbInitCanonicalKeyTypes #define XkbKeyTypesForCoreSymbols SrvXkbKeyTypesForCoreSymbols #define XkbApplyCompatMapToKey SrvXkbApplyCompatMapToKey #define XkbUpdateMapFromCore SrvXkbUpdateMapFromCore #define XkbResizeKeyActions SrvXkbResizeKeyActions #define XkbResizeKeySyms SrvXkbResizeKeySyms #define XkbResizeKeyType SrvXkbResizeKeyType #define XkbAllocCompatMap SrvXkbAllocCompatMap #define XkbAllocControls SrvXkbAllocControls #define XkbAllocIndicatorMaps SrvXkbAllocIndicatorMaps #define XkbAllocKeyboard SrvXkbAllocKeyboard #define XkbAllocNames SrvXkbAllocNames #define XkbFreeCompatMap SrvXkbFreeCompatMap #define XkbFreeControls SrvXkbFreeControls #define XkbFreeIndicatorMaps SrvXkbFreeIndicatorMaps #define XkbFreeKeyboard SrvXkbFreeKeyboard #define XkbFreeNames SrvXkbFreeNames #define XkbAddDeviceLedInfo SrvXkbAddDeviceLedInfo #define XkbAllocDeviceInfo SrvXkbAllocDeviceInfo #define XkbFreeDeviceInfo SrvXkbFreeDeviceInfo #define XkbResizeDeviceButtonActions SrvXkbResizeDeviceButtonActions #define XkbLatchModifiers SrvXkbLatchModifiers #define XkbLatchGroup SrvXkbLatchGroup #define XkbVirtualModsToReal SrvXkbVirtualModsToReal #define XkbChangeKeycodeRange SrvXkbChangeKeycodeRange #define XkbApplyVirtualModChanges SrvXkbApplyVirtualModChanges #define XkbUpdateActionVirtualMods SrvXkbUpdateActionVirtualMods #define XkbUpdateKeyTypeVirtualMods SrvXkbUpdateKeyTypeVirtualMods #endif #include #include #include "inputstr.h" typedef struct _XkbInterest { DeviceIntPtr dev; ClientPtr client; XID resource; struct _XkbInterest * next; CARD16 extDevNotifyMask; CARD16 stateNotifyMask; CARD16 namesNotifyMask; CARD32 ctrlsNotifyMask; CARD8 compatNotifyMask; BOOL bellNotifyMask; BOOL actionMessageMask; CARD16 accessXNotifyMask; CARD32 iStateNotifyMask; CARD32 iMapNotifyMask; CARD16 altSymsNotifyMask; CARD32 autoCtrls; CARD32 autoCtrlValues; } XkbInterestRec,*XkbInterestPtr; typedef struct _XkbRadioGroup { CARD8 flags; CARD8 nMembers; CARD8 dfltDown; CARD8 currentDown; CARD8 members[XkbRGMaxMembers]; } XkbRadioGroupRec, *XkbRadioGroupPtr; typedef struct _XkbEventCause { CARD8 kc; CARD8 event; CARD8 mjr; CARD8 mnr; ClientPtr client; } XkbEventCauseRec,*XkbEventCausePtr; #define XkbSetCauseKey(c,k,e) { (c)->kc= (k),(c)->event= (e),\ (c)->mjr= (c)->mnr= 0; \ (c)->client= NULL; } #define XkbSetCauseReq(c,j,n,cl) { (c)->kc= (c)->event= 0,\ (c)->mjr= (j),(c)->mnr= (n);\ (c)->client= (cl); } #define XkbSetCauseCoreReq(c,e,cl) XkbSetCauseReq(c,e,0,cl) #define XkbSetCauseXkbReq(c,e,cl) XkbSetCauseReq(c,XkbReqCode,e,cl) #define XkbSetCauseUnknown(c) XkbSetCauseKey(c,0,0) #define _OFF_TIMER 0 #define _KRG_WARN_TIMER 1 #define _KRG_TIMER 2 #define _SK_TIMEOUT_TIMER 3 #define _ALL_TIMEOUT_TIMER 4 #define _BEEP_NONE 0 #define _BEEP_FEATURE_ON 1 #define _BEEP_FEATURE_OFF 2 #define _BEEP_FEATURE_CHANGE 3 #define _BEEP_SLOW_WARN 4 #define _BEEP_SLOW_PRESS 5 #define _BEEP_SLOW_ACCEPT 6 #define _BEEP_SLOW_REJECT 7 #define _BEEP_SLOW_RELEASE 8 #define _BEEP_STICKY_LATCH 9 #define _BEEP_STICKY_LOCK 10 #define _BEEP_STICKY_UNLOCK 11 #define _BEEP_LED_ON 12 #define _BEEP_LED_OFF 13 #define _BEEP_LED_CHANGE 14 #define _BEEP_BOUNCE_REJECT 15 typedef struct _XkbSrvInfo { XkbStateRec prev_state; XkbStateRec state; XkbDescPtr desc; DeviceIntPtr device; KbdCtrlProcPtr kbdProc; XkbRadioGroupPtr radioGroups; CARD8 nRadioGroups; CARD8 clearMods; CARD8 setMods; INT16 groupChange; CARD16 dfltPtrDelta; double mouseKeysCurve; double mouseKeysCurveFactor; INT16 mouseKeysDX; INT16 mouseKeysDY; CARD8 mouseKeysFlags; Bool mouseKeysAccel; CARD8 mouseKeysCounter; CARD8 lockedPtrButtons; CARD8 shiftKeyCount; KeyCode mouseKey; KeyCode inactiveKey; KeyCode slowKey; KeyCode repeatKey; CARD8 krgTimerActive; CARD8 beepType; CARD8 beepCount; CARD32 flags; CARD32 lastPtrEventTime; CARD32 lastShiftEventTime; OsTimerPtr beepTimer; OsTimerPtr mouseKeyTimer; OsTimerPtr slowKeysTimer; OsTimerPtr bounceKeysTimer; OsTimerPtr repeatKeyTimer; OsTimerPtr krgTimer; } XkbSrvInfoRec, *XkbSrvInfoPtr; #define XkbSLI_IsDefault (1L<<0) #define XkbSLI_HasOwnState (1L<<1) typedef struct _XkbSrvLedInfo { CARD16 flags; CARD16 class; CARD16 id; union { KbdFeedbackPtr kf; LedFeedbackPtr lf; } fb; CARD32 physIndicators; CARD32 autoState; CARD32 explicitState; CARD32 effectiveState; CARD32 mapsPresent; CARD32 namesPresent; XkbIndicatorMapPtr maps; Atom * names; CARD32 usesBase; CARD32 usesLatched; CARD32 usesLocked; CARD32 usesEffective; CARD32 usesCompat; CARD32 usesControls; CARD32 usedComponents; } XkbSrvLedInfoRec, *XkbSrvLedInfoPtr; /* * Settings for xkbClientFlags field (used by DIX) * These flags _must_ not overlap with XkbPCF_* */ #define _XkbClientInitialized (1<<15) #define _XkbWantsDetectableAutoRepeat(c)\ ((c)->xkbClientFlags&XkbPCF_DetectableAutoRepeatMask) /* * Settings for flags field */ #define _XkbStateNotifyInProgress (1<<0) typedef struct { ProcessInputProc processInputProc; ProcessInputProc realInputProc; DeviceUnwrapProc unwrapProc; } xkbDeviceInfoRec, *xkbDeviceInfoPtr; #define WRAP_PROCESS_INPUT_PROC(device, oldprocs, proc, unwrapproc) \ device->public.processInputProc = proc; \ oldprocs->processInputProc = \ oldprocs->realInputProc = device->public.realInputProc; \ device->public.realInputProc = proc; \ oldprocs->unwrapProc = device->unwrapProc; \ device->unwrapProc = unwrapproc; #define COND_WRAP_PROCESS_INPUT_PROC(device, oldprocs, proc, unwrapproc) \ if (device->public.processInputProc == device->public.realInputProc)\ device->public.processInputProc = proc; \ oldprocs->processInputProc = \ oldprocs->realInputProc = device->public.realInputProc; \ device->public.realInputProc = proc; \ oldprocs->unwrapProc = device->unwrapProc; \ device->unwrapProc = unwrapproc; #define UNWRAP_PROCESS_INPUT_PROC(device, oldprocs) \ device->public.processInputProc = oldprocs->processInputProc; \ device->public.realInputProc = oldprocs->realInputProc; \ device->unwrapProc = oldprocs->unwrapProc; #define XKBDEVICEINFO(dev) ((xkbDeviceInfoPtr) (dev)->devPrivates[xkbDevicePrivateIndex].ptr) /***====================================================================***/ /***====================================================================***/ #define XkbAX_KRGMask (XkbSlowKeysMask|XkbBounceKeysMask) #define XkbAllFilteredEventsMask \ (XkbAccessXKeysMask|XkbRepeatKeysMask|XkbMouseKeysAccelMask|XkbAX_KRGMask) /***====================================================================***/ extern int XkbReqCode; extern int XkbEventBase; extern int XkbKeyboardErrorCode; extern int XkbDisableLockActions; extern char * XkbBaseDirectory; extern char * XkbBinDirectory; extern char * XkbInitialMap; extern int _XkbClientMajor; extern int _XkbClientMinor; extern unsigned int XkbXIUnsupported; extern char * XkbModelUsed,*XkbLayoutUsed,*XkbVariantUsed,*XkbOptionsUsed; extern Bool noXkbExtension; extern Bool XkbWantRulesProp; extern pointer XkbLastRepeatEvent; extern CARD32 xkbDebugFlags; extern CARD32 xkbDebugCtrls; #define _XkbAlloc(s) xalloc((s)) #define _XkbCalloc(n,s) Xcalloc((n)*(s)) #define _XkbRealloc(o,s) Xrealloc((o),(s)) #define _XkbTypedAlloc(t) ((t *)xalloc(sizeof(t))) #define _XkbTypedCalloc(n,t) ((t *)Xcalloc((n)*sizeof(t))) #define _XkbTypedRealloc(o,n,t) \ ((o)?(t *)Xrealloc((o),(n)*sizeof(t)):_XkbTypedCalloc(n,t)) #define _XkbClearElems(a,f,l,t) bzero(&(a)[f],((l)-(f)+1)*sizeof(t)) #define _XkbFree(p) Xfree(p) #define _XkbLibError(c,l,d) \ { _XkbErrCode= (c); _XkbErrLocation= (l); _XkbErrData= (d); } #define _XkbErrCode2(a,b) ((XID)((((unsigned int)(a))<<24)|((b)&0xffffff))) #define _XkbErrCode3(a,b,c) _XkbErrCode2(a,(((unsigned int)(b))<<16)|(c)) #define _XkbErrCode4(a,b,c,d) _XkbErrCode3(a,b,((((unsigned int)(c))<<8)|(d))) extern int DeviceKeyPress,DeviceKeyRelease; extern int DeviceButtonPress,DeviceButtonRelease; #ifdef XINPUT #define _XkbIsPressEvent(t) (((t)==KeyPress)||((t)==DeviceKeyPress)) #define _XkbIsReleaseEvent(t) (((t)==KeyRelease)||((t)==DeviceKeyRelease)) #else #define _XkbIsPressEvent(t) ((t)==KeyPress) #define _XkbIsReleaseEvent(t) ((t)==KeyRelease) #endif #define _XkbCoreKeycodeInRange(c,k) (((k)>=(c)->curKeySyms.minKeyCode)&&\ ((k)<=(c)->curKeySyms.maxKeyCode)) #define _XkbCoreNumKeys(c) ((c)->curKeySyms.maxKeyCode-\ (c)->curKeySyms.minKeyCode+1) #define XConvertCase(s,l,u) XkbConvertCase(s,l,u) #undef IsKeypadKey #define IsKeypadKey(s) XkbKSIsKeypad(s) typedef int Status; typedef pointer XPointer; typedef struct _XDisplay Display; #ifndef True #define True 1 #define False 0 #endif #ifndef PATH_MAX #ifdef MAXPATHLEN #define PATH_MAX MAXPATHLEN #else #define PATH_MAX 1024 #endif #endif _XFUNCPROTOBEGIN extern void XkbUseMsg( void ); extern int XkbProcessArguments( int /* argc */, char ** /* argv */, int /* i */ ); extern void XkbSetExtension(DeviceIntPtr device, ProcessInputProc proc); extern void XkbFreeCompatMap( XkbDescPtr /* xkb */, unsigned int /* which */, Bool /* freeMap */ ); extern void XkbFreeNames( XkbDescPtr /* xkb */, unsigned int /* which */, Bool /* freeMap */ ); extern DeviceIntPtr _XkbLookupAnyDevice( int /* id */, int * /* why_rtrn */ ); extern DeviceIntPtr _XkbLookupKeyboard( int /* id */, int * /* why_rtrn */ ); extern DeviceIntPtr _XkbLookupBellDevice( int /* id */, int * /* why_rtrn */ ); extern DeviceIntPtr _XkbLookupLedDevice( int /* id */, int * /* why_rtrn */ ); extern DeviceIntPtr _XkbLookupButtonDevice( int /* id */, int * /* why_rtrn */ ); extern XkbDescPtr XkbAllocKeyboard( void ); extern Status XkbAllocClientMap( XkbDescPtr /* xkb */, unsigned int /* which */, unsigned int /* nTypes */ ); extern Status XkbAllocServerMap( XkbDescPtr /* xkb */, unsigned int /* which */, unsigned int /* nNewActions */ ); extern void XkbFreeClientMap( XkbDescPtr /* xkb */, unsigned int /* what */, Bool /* freeMap */ ); extern void XkbFreeServerMap( XkbDescPtr /* xkb */, unsigned int /* what */, Bool /* freeMap */ ); extern Status XkbAllocIndicatorMaps( XkbDescPtr /* xkb */ ); extern Status XkbAllocCompatMap( XkbDescPtr /* xkb */, unsigned int /* which */, unsigned int /* nInterpret */ ); extern Status XkbAllocNames( XkbDescPtr /* xkb */, unsigned int /* which */, int /* nTotalRG */, int /* nTotalAliases */ ); extern Status XkbAllocControls( XkbDescPtr /* xkb */, unsigned int /* which*/ ); extern Status XkbCopyKeyType( XkbKeyTypePtr /* from */, XkbKeyTypePtr /* into */ ); extern Status XkbCopyKeyTypes( XkbKeyTypePtr /* from */, XkbKeyTypePtr /* into */, int /* num_types */ ); extern Status XkbResizeKeyType( XkbDescPtr /* xkb */, int /* type_ndx */, int /* map_count */, Bool /* want_preserve */, int /* new_num_lvls */ ); extern void XkbFreeKeyboard( XkbDescPtr /* xkb */, unsigned int /* which */, Bool /* freeDesc */ ); extern void XkbSetActionKeyMods( XkbDescPtr /* xkb */, XkbAction * /* act */, unsigned int /* mods */ ); extern Bool XkbCheckActionVMods( XkbDescPtr /* xkb */, XkbAction * /* act */, unsigned int /* changed */ ); extern Bool XkbApplyVModChanges( XkbSrvInfoPtr /* xkbi */, unsigned int /* changed */, XkbChangesPtr /* pChanges */, unsigned int * /* needChecksRtrn */, XkbEventCausePtr /* cause */ ); extern void XkbApplyVModChangesToAllDevices( DeviceIntPtr /* dev */, XkbDescPtr /* xkb */, unsigned int /* changed */, XkbEventCausePtr /* cause */ ); extern unsigned int XkbMaskForVMask( XkbDescPtr /* xkb */, unsigned int /* vmask */ ); extern Bool XkbVirtualModsToReal( XkbDescPtr /* xkb */, unsigned int /* virtua_mask */, unsigned int * /* mask_rtrn */ ); extern unsigned int XkbAdjustGroup( int /* group */, XkbControlsPtr /* ctrls */ ); extern KeySym *XkbResizeKeySyms( XkbDescPtr /* xkb */, int /* key */, int /* needed */ ); extern XkbAction *XkbResizeKeyActions( XkbDescPtr /* xkb */, int /* key */, int /* needed */ ); extern void XkbUpdateKeyTypesFromCore( DeviceIntPtr /* pXDev */, KeyCode /* first */, CARD8 /* num */, XkbChangesPtr /* pChanges */ ); extern void XkbUpdateDescActions( XkbDescPtr /* xkb */, KeyCode /* first */, CARD8 /* num */, XkbChangesPtr /* changes */ ); extern void XkbUpdateActions( DeviceIntPtr /* pXDev */, KeyCode /* first */, CARD8 /* num */, XkbChangesPtr /* pChanges */, unsigned int * /* needChecksRtrn */, XkbEventCausePtr /* cause */ ); extern void XkbUpdateCoreDescription( DeviceIntPtr /* keybd */, Bool /* resize */ ); extern void XkbApplyMappingChange( DeviceIntPtr /* pXDev */, CARD8 /* request */, KeyCode /* firstKey */, CARD8 /* num */, ClientPtr /* client */ ); extern void XkbSetIndicators( DeviceIntPtr /* pXDev */, CARD32 /* affect */, CARD32 /* values */, XkbEventCausePtr /* cause */ ); extern void XkbUpdateIndicators( DeviceIntPtr /* keybd */, CARD32 /* changed */, Bool /* check_edevs */, XkbChangesPtr /* pChanges */, XkbEventCausePtr /* cause */ ); extern XkbSrvLedInfoPtr XkbAllocSrvLedInfo( DeviceIntPtr /* dev */, KbdFeedbackPtr /* kf */, LedFeedbackPtr /* lf */, unsigned int /* needed_parts */ ); extern XkbSrvLedInfoPtr XkbFindSrvLedInfo( DeviceIntPtr /* dev */, unsigned int /* class */, unsigned int /* id */, unsigned int /* needed_parts */ ); extern void XkbApplyLedNameChanges( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, unsigned int /* changed_names */, xkbExtensionDeviceNotify * /* ed */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbApplyLedMapChanges( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, unsigned int /* changed_maps */, xkbExtensionDeviceNotify * /* ed */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbApplyLedStateChanges( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, unsigned int /* changed_leds */, xkbExtensionDeviceNotify * /* ed */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbUpdateLedAutoState( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, unsigned int /* maps_to_check */, xkbExtensionDeviceNotify * /* ed */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbFlushLedEvents( DeviceIntPtr /* dev */, DeviceIntPtr /* kbd */, XkbSrvLedInfoPtr /* sli */, xkbExtensionDeviceNotify * /* ed */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbUpdateAllDeviceIndicators( XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern unsigned int XkbIndicatorsToUpdate( DeviceIntPtr /* dev */, unsigned long /* state_changes */, Bool /* enabled_ctrl_changes */ ); extern void XkbComputeDerivedState( XkbSrvInfoPtr /* xkbi */ ); extern void XkbCheckSecondaryEffects( XkbSrvInfoPtr /* xkbi */, unsigned int /* which */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void XkbCheckIndicatorMaps( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, unsigned int /* which */ ); extern unsigned int XkbStateChangedFlags( XkbStatePtr /* old */, XkbStatePtr /* new */ ); extern void XkbSendStateNotify( DeviceIntPtr /* kbd */, xkbStateNotify * /* pSN */ ); extern void XkbSendMapNotify( DeviceIntPtr /* kbd */, xkbMapNotify * /* ev */ ); extern int XkbComputeControlsNotify( DeviceIntPtr /* kbd */, XkbControlsPtr /* old */, XkbControlsPtr /* new */, xkbControlsNotify * /* pCN */, Bool /* forceCtrlProc */ ); extern void XkbSendControlsNotify( DeviceIntPtr /* kbd */, xkbControlsNotify * /* ev */ ); extern void XkbSendCompatMapNotify( DeviceIntPtr /* kbd */, xkbCompatMapNotify * /* ev */ ); extern void XkbSendIndicatorNotify( DeviceIntPtr /* kbd */, int /* xkbType */, xkbIndicatorNotify * /* ev */ ); extern void XkbHandleBell( BOOL /* force */, BOOL /* eventOnly */, DeviceIntPtr /* kbd */, CARD8 /* percent */, pointer /* ctrl */, CARD8 /* class */, Atom /* name */, WindowPtr /* pWin */, ClientPtr /* pClient */ ); extern void XkbSendAccessXNotify( DeviceIntPtr /* kbd */, xkbAccessXNotify * /* pEv */ ); extern void XkbSendNamesNotify( DeviceIntPtr /* kbd */, xkbNamesNotify * /* ev */ ); extern void XkbSendCompatNotify( DeviceIntPtr /* kbd */, xkbCompatMapNotify * /* ev */ ); extern void XkbSendActionMessage( DeviceIntPtr /* kbd */, xkbActionMessage * /* ev */ ); extern void XkbSendExtensionDeviceNotify( DeviceIntPtr /* kbd */, ClientPtr /* client */, xkbExtensionDeviceNotify * /* ev */ ); extern void XkbSendNotification( DeviceIntPtr /* kbd */, XkbChangesPtr /* pChanges */, XkbEventCausePtr /* cause */ ); extern void XkbProcessKeyboardEvent( struct _xEvent * /* xE */, DeviceIntPtr /* keybd */, int /* count */ ); extern void XkbProcessOtherEvent( struct _xEvent * /* xE */, DeviceIntPtr /* keybd */, int /* count */ ); extern void XkbHandleActions( DeviceIntPtr /* dev */, DeviceIntPtr /* kbd */, struct _xEvent * /* xE */, int /* count */ ); extern Bool XkbEnableDisableControls( XkbSrvInfoPtr /* xkbi */, unsigned long /* change */, unsigned long /* newValues */, XkbChangesPtr /* changes */, XkbEventCausePtr /* cause */ ); extern void AccessXInit( DeviceIntPtr /* dev */ ); extern Bool AccessXFilterPressEvent( register struct _xEvent * /* xE */, register DeviceIntPtr /* keybd */, int /* count */ ); extern Bool AccessXFilterReleaseEvent( register struct _xEvent * /* xE */, register DeviceIntPtr /* keybd */, int /* count */ ); extern void AccessXCancelRepeatKey( XkbSrvInfoPtr /* xkbi */, KeyCode /* key */ ); extern void AccessXComputeCurveFactor( XkbSrvInfoPtr /* xkbi */, XkbControlsPtr /* ctrls */ ); extern XkbDeviceLedInfoPtr XkbAddDeviceLedInfo( XkbDeviceInfoPtr /* devi */, unsigned int /* ledClass */, unsigned int /* ledId */ ); extern XkbDeviceInfoPtr XkbAllocDeviceInfo( unsigned int /* deviceSpec */, unsigned int /* nButtons */, unsigned int /* szLeds */ ); extern void XkbFreeDeviceInfo( XkbDeviceInfoPtr /* devi */, unsigned int /* which */, Bool /* freeDevI */ ); extern Status XkbResizeDeviceButtonActions( XkbDeviceInfoPtr /* devi */, unsigned int /* newTotal */ ); extern XkbInterestPtr XkbFindClientResource( DevicePtr /* inDev */, ClientPtr /* client */ ); extern XkbInterestPtr XkbAddClientResource( DevicePtr /* inDev */, ClientPtr /* client */, XID /* id */ ); extern int XkbRemoveClient( DevicePtr /* inDev */, ClientPtr /* client */ ); extern int XkbRemoveResourceClient( DevicePtr /* inDev */, XID /* id */ ); extern int XkbDDXInitDevice( DeviceIntPtr /* dev */ ); extern int XkbDDXAccessXBeep( DeviceIntPtr /* dev */, unsigned int /* what */, unsigned int /* which */ ); extern void XkbDDXKeyClick( DeviceIntPtr /* dev */, int /* keycode */, int /* synthetic */ ); extern int XkbDDXUsesSoftRepeat( DeviceIntPtr /* dev */ ); extern void XkbDDXKeybdCtrlProc( DeviceIntPtr /* dev */, KeybdCtrl * /* ctrl */ ); extern void XkbDDXChangeControls( DeviceIntPtr /* dev */, XkbControlsPtr /* old */, XkbControlsPtr /* new */ ); extern void XkbDDXUpdateIndicators( DeviceIntPtr /* keybd */, CARD32 /* newState */ ); extern void XkbDDXUpdateDeviceIndicators( DeviceIntPtr /* dev */, XkbSrvLedInfoPtr /* sli */, CARD32 /* newState */ ); extern void XkbDDXFakePointerButton( int /* event */, int /* button */ ); extern void XkbDDXFakePointerMotion( unsigned int /* flags */, int /* x */, int /* y */ ); extern void XkbDDXFakeDeviceButton( DeviceIntPtr /* dev */, Bool /* press */, int /* button */ ); extern int XkbDDXTerminateServer( DeviceIntPtr /* dev */, KeyCode /* key */, XkbAction * /* act */ ); extern int XkbDDXSwitchScreen( DeviceIntPtr /* dev */, KeyCode /* key */, XkbAction * /* act */ ); extern int XkbDDXPrivate( DeviceIntPtr /* dev */, KeyCode /* key */, XkbAction * /* act */ ); extern void XkbDisableComputedAutoRepeats( DeviceIntPtr /* pXDev */, unsigned int /* key */ ); extern void XkbSetRepeatKeys( DeviceIntPtr /* pXDev */, int /* key */, int /* onoff */ ); extern int XkbLatchModifiers( DeviceIntPtr /* pXDev */, CARD8 /* mask */, CARD8 /* latches */ ); extern int XkbLatchGroup( DeviceIntPtr /* pXDev */, int /* group */ ); extern void XkbClearAllLatchesAndLocks( DeviceIntPtr /* dev */, XkbSrvInfoPtr /* xkbi */, Bool /* genEv */, XkbEventCausePtr /* cause */ ); extern void XkbSetRulesDflts( char * /* rulesFile */, char * /* model */, char * /* layout */, char * /* variant */, char * /* options */ ); extern void XkbInitDevice( DeviceIntPtr /* pXDev */ ); extern Bool XkbInitKeyboardDeviceStruct( DeviceIntPtr /* pXDev */, XkbComponentNamesPtr /* pNames */, KeySymsPtr /* pSyms */, CARD8 /* pMods */[], BellProcPtr /* bellProc */, KbdCtrlProcPtr /* ctrlProc */ ); extern int SProcXkbDispatch( ClientPtr /* client */ ); extern XkbGeometryPtr XkbLookupNamedGeometry( DeviceIntPtr /* dev */, Atom /* name */, Bool * /* shouldFree */ ); extern char * _XkbDupString( char * /* str */ ); extern void XkbConvertCase( KeySym /* sym */, KeySym * /* lower */, KeySym * /* upper */ ); extern Status XkbChangeKeycodeRange( XkbDescPtr /* xkb */, int /* minKC */, int /* maxKC */, XkbChangesPtr /* changes */ ); extern int XkbFinishDeviceInit( DeviceIntPtr /* pXDev */ ); extern void XkbFreeSrvLedInfo( XkbSrvLedInfoPtr /* sli */ ); extern void XkbFreeInfo( XkbSrvInfoPtr /* xkbi */ ); extern Status XkbChangeTypesOfKey( XkbDescPtr /* xkb */, int /* key */, int /* nGroups */, unsigned int /* groups */, int * /* newTypesIn */, XkbMapChangesPtr /* changes */ ); extern XkbKeyTypePtr XkbAddKeyType( XkbDescPtr /* xkb */, Atom /* name */, int /* map_count */, Bool /* want_preserve */, int /* num_lvls */ ); extern Status XkbInitCanonicalKeyTypes( XkbDescPtr /* xkb */, unsigned int /* which */, int /* keypadVMod */ ); extern int XkbKeyTypesForCoreSymbols( XkbDescPtr /* xkb */, int /* map_width */, KeySym * /* core_syms */, unsigned int /* protected */, int * /* types_inout */, KeySym * /* xkb_syms_rtrn */ ); extern Bool XkbApplyCompatMapToKey( XkbDescPtr /* xkb */, KeyCode /* key */, XkbChangesPtr /* changes */ ); extern Bool XkbUpdateMapFromCore( XkbDescPtr /* xkb */, KeyCode /* first_key */, int /* num_keys */, int /* map_width */, KeySym * /* core_keysyms */, XkbChangesPtr /* changes */ ); extern void XkbFreeControls( XkbDescPtr /* xkb */, unsigned int /* which */, Bool /* freeMap */ ); extern void XkbFreeIndicatorMaps( XkbDescPtr /* xkb */ ); extern Bool XkbApplyVirtualModChanges( XkbDescPtr /* xkb */, unsigned int /* changed */, XkbChangesPtr /* changes */ ); extern Bool XkbUpdateActionVirtualMods( XkbDescPtr /* xkb */, XkbAction * /* act */, unsigned int /* changed */ ); extern void XkbUpdateKeyTypeVirtualMods( XkbDescPtr /* xkb */, XkbKeyTypePtr /* type */, unsigned int /* changed */, XkbChangesPtr /* changes */ ); extern void XkbSendNewKeyboardNotify( DeviceIntPtr /* kbd */, xkbNewKeyboardNotify * /* pNKN */ ); #ifdef XKBSRV_NEED_FILE_FUNCS #include #include #include #define _XkbListKeymaps 0 #define _XkbListKeycodes 1 #define _XkbListTypes 2 #define _XkbListCompat 3 #define _XkbListSymbols 4 #define _XkbListGeometry 5 #define _XkbListNumComponents 6 typedef struct _XkbSrvListInfo { int szPool; int nPool; char * pool; int maxRtrn; int nTotal; char * pattern[_XkbListNumComponents]; int nFound[_XkbListNumComponents]; } XkbSrvListInfoRec,*XkbSrvListInfoPtr; char * XkbGetRulesDflts( XkbRF_VarDefsPtr /* defs */ ); extern void XkbSetRulesUsed( XkbRF_VarDefsPtr /* defs */ ); extern Status XkbDDXList( DeviceIntPtr /* dev */, XkbSrvListInfoPtr /* listing */, ClientPtr /* client */ ); extern unsigned int XkbDDXLoadKeymapByNames( DeviceIntPtr /* keybd */, XkbComponentNamesPtr /* names */, unsigned int /* want */, unsigned int /* need */, XkbFileInfoPtr /* finfoRtrn */, char * /* keymapNameRtrn */, int /* keymapNameRtrnLen */ ); extern Bool XkbDDXNamesFromRules( DeviceIntPtr /* keybd */, char * /* rules */, XkbRF_VarDefsPtr /* defs */, XkbComponentNamesPtr /* names */ ); extern FILE *XkbDDXOpenConfigFile( char * /* mapName */, char * /* fileNameRtrn */, int /* fileNameRtrnLen */ ); extern Bool XkbDDXApplyConfig( XPointer /* cfg_in */, XkbSrvInfoPtr /* xkbi */ ); extern XPointer XkbDDXPreloadConfig( char ** /* rulesFileRtrn */, XkbRF_VarDefsPtr /* defs */, XkbComponentNamesPtr /* names */, DeviceIntPtr /* dev */ ); extern int _XkbStrCaseCmp( char * /* str1 */, char * /* str2 */ ); #endif /* XKBSRV_NEED_FILE_FUNCS */ _XFUNCPROTOEND #define XkbAtomGetString(d,s) NameForAtom(s) #endif /* _XKBSRV_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dgaproto.h0000644000175000017500000001570214443010026017464 00000000000000/* Copyright (c) 1995 Jon Tombs Copyright (c) 1995 XFree86 Inc. */ #ifndef _XF86DGAPROTO_H_ #define _XF86DGAPROTO_H_ #include #include #define XF86DGANAME "XFree86-DGA" #define XDGA_MAJOR_VERSION 2 /* current version numbers */ #define XDGA_MINOR_VERSION 0 typedef struct _XDGAQueryVersion { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_DGAQueryVersion */ CARD16 length; } xXDGAQueryVersionReq; #define sz_xXDGAQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of DGA protocol */ CARD16 minorVersion; /* minor version of DGA protocol */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXDGAQueryVersionReply; #define sz_xXDGAQueryVersionReply 32 typedef struct _XDGAQueryModes { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; } xXDGAQueryModesReq; #define sz_xXDGAQueryModesReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 number; /* number of modes available */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXDGAQueryModesReply; #define sz_xXDGAQueryModesReply 32 typedef struct _XDGASetMode { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD32 mode; /* mode number to init */ CARD32 pid; /* Pixmap descriptor */ } xXDGASetModeReq; #define sz_xXDGASetModeReq 16 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 offset; /* offset into framebuffer map */ CARD32 flags; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXDGASetModeReply; #define sz_xXDGASetModeReply 32 typedef struct { CARD8 byte_order; CARD8 depth; CARD16 num; CARD16 bpp; CARD16 name_size; CARD32 vsync_num; CARD32 vsync_den; CARD32 flags; CARD16 image_width; CARD16 image_height; CARD16 pixmap_width; CARD16 pixmap_height; CARD32 bytes_per_scanline; CARD32 red_mask; CARD32 green_mask; CARD32 blue_mask; CARD16 visual_class; CARD16 pad1; CARD16 viewport_width; CARD16 viewport_height; CARD16 viewport_xstep; CARD16 viewport_ystep; CARD16 viewport_xmax; CARD16 viewport_ymax; CARD32 viewport_flags; CARD32 reserved1; CARD32 reserved2; } xXDGAModeInfo; #define sz_xXDGAModeInfo 72 typedef struct _XDGAOpenFramebuffer { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; } xXDGAOpenFramebufferReq; #define sz_xXDGAOpenFramebufferReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; /* device name size if there is one */ CARD32 mem1; /* physical memory */ CARD32 mem2; /* spillover for _alpha_ */ CARD32 size; /* size of map in bytes */ CARD32 offset; /* optional offset into device */ CARD32 extra; /* extra info associated with the map */ CARD32 pad2; } xXDGAOpenFramebufferReply; #define sz_xXDGAOpenFramebufferReply 32 typedef struct _XDGACloseFramebuffer { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; } xXDGACloseFramebufferReq; #define sz_xXDGACloseFramebufferReq 8 typedef struct _XDGASetViewport { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD16 x; CARD16 y; CARD32 flags; } xXDGASetViewportReq; #define sz_xXDGASetViewportReq 16 typedef struct _XDGAInstallColormap { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD32 cmap; } xXDGAInstallColormapReq; #define sz_xXDGAInstallColormapReq 12 typedef struct _XDGASelectInput { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD32 mask; } xXDGASelectInputReq; #define sz_xXDGASelectInputReq 12 typedef struct _XDGAFillRectangle { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD16 x; CARD16 y; CARD16 width; CARD16 height; CARD32 color; } xXDGAFillRectangleReq; #define sz_xXDGAFillRectangleReq 20 typedef struct _XDGACopyArea { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD16 srcx; CARD16 srcy; CARD16 width; CARD16 height; CARD16 dstx; CARD16 dsty; } xXDGACopyAreaReq; #define sz_xXDGACopyAreaReq 20 typedef struct _XDGACopyTransparentArea { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD16 srcx; CARD16 srcy; CARD16 width; CARD16 height; CARD16 dstx; CARD16 dsty; CARD32 key; } xXDGACopyTransparentAreaReq; #define sz_xXDGACopyTransparentAreaReq 24 typedef struct _XDGAGetViewportStatus { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; } xXDGAGetViewportStatusReq; #define sz_xXDGAGetViewportStatusReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXDGAGetViewportStatusReply; #define sz_xXDGAGetViewportStatusReply 32 typedef struct _XDGASync { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; } xXDGASyncReq; #define sz_xXDGASyncReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXDGASyncReply; #define sz_xXDGASyncReply 32 typedef struct _XDGASetClientVersion { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD16 major; CARD16 minor; } xXDGASetClientVersionReq; #define sz_xXDGASetClientVersionReq 8 typedef struct { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD16 x; CARD16 y; CARD32 flags; } xXDGAChangePixmapModeReq; #define sz_xXDGAChangePixmapModeReq 16 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 x; CARD16 y; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXDGAChangePixmapModeReply; #define sz_xXDGAChangePixmapModeReply 32 typedef struct _XDGACreateColormap { CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD32 screen; CARD32 id; CARD32 mode; CARD8 alloc; CARD8 pad1; CARD16 pad2; } xXDGACreateColormapReq; #define sz_xXDGACreateColormapReq 20 typedef struct { union { struct { BYTE type; BYTE detail; CARD16 sequenceNumber; } u; struct { CARD32 pad0; CARD32 time; INT16 dx; INT16 dy; INT16 screen; CARD16 state; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } event; } u; } dgaEvent; #endif /* _XF86DGAPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/EVI.h0000644000175000017500000000303314443010026015546 00000000000000/************************************************************ Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _EVI_H_ #define _EVI_H_ #define XEVI_TRANSPARENCY_NONE 0 #define XEVI_TRANSPARENCY_PIXEL 1 #define XEVI_TRANSPARENCY_MASK 2 #define EVINAME "Extended-Visual-Information" #define XEVI_MAJOR_VERSION 1 /* current version numbers */ #define XEVI_MINOR_VERSION 0 #endif xorgproto-2023.2/include/X11/extensions/xf86bigfont.h0000644000175000017500000000063614443010026017275 00000000000000/* * Declarations for the BIGFONT extension. * * Copyright (c) 1999-2000 Bruno Haible * Copyright (c) 1999-2000 The XFree86 Project, Inc. */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _XF86BIGFONT_H_ #define _XF86BIGFONT_H_ #define X_XF86BigfontQueryVersion 0 #define X_XF86BigfontQueryFont 1 #define XF86BigfontNumberEvents 0 #define XF86BigfontNumberErrors 0 #endif /* _XF86BIGFONT_H_ */ xorgproto-2023.2/include/X11/extensions/dri2tokens.h0000644000175000017500000000464414443010026017220 00000000000000/* * Copyright © 2008 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft- * ware"), to deal in the Software without restriction, including without * limitation the rights to use, copy, modify, merge, publish, distribute, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, provided that the above copyright * notice(s) and this permission notice appear in all copies of the Soft- * ware and that both the above copyright notice(s) and this permission * notice appear in supporting documentation. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE- * QUENTIAL 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 PERFOR- * MANCE OF THIS SOFTWARE. * * Except as contained in this notice, the name of a copyright holder shall * not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization of * the copyright holder. * * Authors: * Kristian Høgsberg (krh@redhat.com) */ #ifndef _DRI2_TOKENS_H_ #define _DRI2_TOKENS_H_ #define DRI2BufferFrontLeft 0 #define DRI2BufferBackLeft 1 #define DRI2BufferFrontRight 2 #define DRI2BufferBackRight 3 #define DRI2BufferDepth 4 #define DRI2BufferStencil 5 #define DRI2BufferAccum 6 #define DRI2BufferFakeFrontLeft 7 #define DRI2BufferFakeFrontRight 8 #define DRI2BufferDepthStencil 9 #define DRI2BufferHiz 10 /* keep bits 16 and above for prime IDs */ #define DRI2DriverPrimeMask 7 /* 0 - 7 - allows for 6 devices*/ #define DRI2DriverPrimeShift 16 #define DRI2DriverPrimeId(x) (((x) >> DRI2DriverPrimeShift) & (DRI2DriverPrimeMask)) #define DRI2DriverDRI 0 #define DRI2DriverVDPAU 1 /* Event sub-types for the swap complete event */ #define DRI2_EXCHANGE_COMPLETE 0x1 #define DRI2_BLIT_COMPLETE 0x2 #define DRI2_FLIP_COMPLETE 0x3 #endif xorgproto-2023.2/include/X11/extensions/XKB.h0000644000175000017500000006706414443010026015565 00000000000000/************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _XKB_H_ #define _XKB_H_ /* * XKB request codes, used in: * - xkbReqType field of all requests * - requestMinor field of some events */ #define X_kbUseExtension 0 #define X_kbSelectEvents 1 #define X_kbBell 3 #define X_kbGetState 4 #define X_kbLatchLockState 5 #define X_kbGetControls 6 #define X_kbSetControls 7 #define X_kbGetMap 8 #define X_kbSetMap 9 #define X_kbGetCompatMap 10 #define X_kbSetCompatMap 11 #define X_kbGetIndicatorState 12 #define X_kbGetIndicatorMap 13 #define X_kbSetIndicatorMap 14 #define X_kbGetNamedIndicator 15 #define X_kbSetNamedIndicator 16 #define X_kbGetNames 17 #define X_kbSetNames 18 #define X_kbGetGeometry 19 #define X_kbSetGeometry 20 #define X_kbPerClientFlags 21 #define X_kbListComponents 22 #define X_kbGetKbdByName 23 #define X_kbGetDeviceInfo 24 #define X_kbSetDeviceInfo 25 #define X_kbSetDebuggingFlags 101 /* * In the X sense, XKB reports only one event. * The type field of all XKB events is XkbEventCode */ #define XkbEventCode 0 #define XkbNumberEvents (XkbEventCode+1) /* * XKB has a minor event code so it can use one X event code for * multiple purposes. * - reported in the xkbType field of all XKB events. * - XkbSelectEventDetails: Indicates the event for which event details * are being changed */ #define XkbNewKeyboardNotify 0 #define XkbMapNotify 1 #define XkbStateNotify 2 #define XkbControlsNotify 3 #define XkbIndicatorStateNotify 4 #define XkbIndicatorMapNotify 5 #define XkbNamesNotify 6 #define XkbCompatMapNotify 7 #define XkbBellNotify 8 #define XkbActionMessage 9 #define XkbAccessXNotify 10 #define XkbExtensionDeviceNotify 11 /* * Event Mask: * - XkbSelectEvents: Specifies event interest. */ #define XkbNewKeyboardNotifyMask (1L << 0) #define XkbMapNotifyMask (1L << 1) #define XkbStateNotifyMask (1L << 2) #define XkbControlsNotifyMask (1L << 3) #define XkbIndicatorStateNotifyMask (1L << 4) #define XkbIndicatorMapNotifyMask (1L << 5) #define XkbNamesNotifyMask (1L << 6) #define XkbCompatMapNotifyMask (1L << 7) #define XkbBellNotifyMask (1L << 8) #define XkbActionMessageMask (1L << 9) #define XkbAccessXNotifyMask (1L << 10) #define XkbExtensionDeviceNotifyMask (1L << 11) #define XkbAllEventsMask (0xFFF) /* * NewKeyboardNotify event details: */ #define XkbNKN_KeycodesMask (1L << 0) #define XkbNKN_GeometryMask (1L << 1) #define XkbNKN_DeviceIDMask (1L << 2) #define XkbAllNewKeyboardEventsMask (0x7) /* * AccessXNotify event types: * - The 'what' field of AccessXNotify events reports the * reason that the event was generated. */ #define XkbAXN_SKPress 0 #define XkbAXN_SKAccept 1 #define XkbAXN_SKReject 2 #define XkbAXN_SKRelease 3 #define XkbAXN_BKAccept 4 #define XkbAXN_BKReject 5 #define XkbAXN_AXKWarning 6 /* * AccessXNotify details: * - Used as an event detail mask to limit the conditions under which * AccessXNotify events are reported */ #define XkbAXN_SKPressMask (1L << 0) #define XkbAXN_SKAcceptMask (1L << 1) #define XkbAXN_SKRejectMask (1L << 2) #define XkbAXN_SKReleaseMask (1L << 3) #define XkbAXN_BKAcceptMask (1L << 4) #define XkbAXN_BKRejectMask (1L << 5) #define XkbAXN_AXKWarningMask (1L << 6) #define XkbAllAccessXEventsMask (0x7f) /* * Miscellaneous event details: * - event detail masks for assorted events that don't really * have any details. */ #define XkbAllStateEventsMask XkbAllStateComponentsMask #define XkbAllMapEventsMask XkbAllMapComponentsMask #define XkbAllControlEventsMask XkbAllControlsMask #define XkbAllIndicatorEventsMask XkbAllIndicatorsMask #define XkbAllNameEventsMask XkbAllNamesMask #define XkbAllCompatMapEventsMask XkbAllCompatMask #define XkbAllBellEventsMask (1L << 0) #define XkbAllActionMessagesMask (1L << 0) /* * XKB reports one error: BadKeyboard * A further reason for the error is encoded into to most significant * byte of the resourceID for the error: * XkbErr_BadDevice - the device in question was not found * XkbErr_BadClass - the device was found but it doesn't belong to * the appropriate class. * XkbErr_BadId - the device was found and belongs to the right * class, but not feedback with a matching id was * found. * The low byte of the resourceID for this error contains the device * id, class specifier or feedback id that failed. */ #define XkbKeyboard 0 #define XkbNumberErrors 1 #define XkbErr_BadDevice 0xff #define XkbErr_BadClass 0xfe #define XkbErr_BadId 0xfd /* * Keyboard Components Mask: * - Specifies the components that follow a GetKeyboardByNameReply */ #define XkbClientMapMask (1L << 0) #define XkbServerMapMask (1L << 1) #define XkbCompatMapMask (1L << 2) #define XkbIndicatorMapMask (1L << 3) #define XkbNamesMask (1L << 4) #define XkbGeometryMask (1L << 5) #define XkbControlsMask (1L << 6) #define XkbAllComponentsMask (0x7f) /* * State detail mask: * - The 'changed' field of StateNotify events reports which of * the keyboard state components have changed. * - Used as an event detail mask to limit the conditions under * which StateNotify events are reported. */ #define XkbModifierStateMask (1L << 0) #define XkbModifierBaseMask (1L << 1) #define XkbModifierLatchMask (1L << 2) #define XkbModifierLockMask (1L << 3) #define XkbGroupStateMask (1L << 4) #define XkbGroupBaseMask (1L << 5) #define XkbGroupLatchMask (1L << 6) #define XkbGroupLockMask (1L << 7) #define XkbCompatStateMask (1L << 8) #define XkbGrabModsMask (1L << 9) #define XkbCompatGrabModsMask (1L << 10) #define XkbLookupModsMask (1L << 11) #define XkbCompatLookupModsMask (1L << 12) #define XkbPointerButtonMask (1L << 13) #define XkbAllStateComponentsMask (0x3fff) /* * Controls detail masks: * The controls specified in XkbAllControlsMask: * - The 'changed' field of ControlsNotify events reports which of * the keyboard controls have changed. * - The 'changeControls' field of the SetControls request specifies * the controls for which values are to be changed. * - Used as an event detail mask to limit the conditions under * which ControlsNotify events are reported. * * The controls specified in the XkbAllBooleanCtrlsMask: * - The 'enabledControls' field of ControlsNotify events reports the * current status of the boolean controls. * - The 'enabledControlsChanges' field of ControlsNotify events reports * any boolean controls that have been turned on or off. * - The 'affectEnabledControls' and 'enabledControls' fields of the * kbSetControls request change the set of enabled controls. * - The 'accessXTimeoutMask' and 'accessXTimeoutValues' fields of * an XkbControlsRec specify the controls to be changed if the keyboard * times out and the values to which they should be changed. * - The 'autoCtrls' and 'autoCtrlsValues' fields of the PerClientFlags * request specifies the specify the controls to be reset when the * client exits and the values to which they should be reset. * - The 'ctrls' field of an indicator map specifies the controls * that drive the indicator. * - Specifies the boolean controls affected by the SetControls and * LockControls key actions. */ #define XkbRepeatKeysMask (1L << 0) #define XkbSlowKeysMask (1L << 1) #define XkbBounceKeysMask (1L << 2) #define XkbStickyKeysMask (1L << 3) #define XkbMouseKeysMask (1L << 4) #define XkbMouseKeysAccelMask (1L << 5) #define XkbAccessXKeysMask (1L << 6) #define XkbAccessXTimeoutMask (1L << 7) #define XkbAccessXFeedbackMask (1L << 8) #define XkbAudibleBellMask (1L << 9) #define XkbOverlay1Mask (1L << 10) #define XkbOverlay2Mask (1L << 11) #define XkbIgnoreGroupLockMask (1L << 12) #define XkbGroupsWrapMask (1L << 27) #define XkbInternalModsMask (1L << 28) #define XkbIgnoreLockModsMask (1L << 29) #define XkbPerKeyRepeatMask (1L << 30) #define XkbControlsEnabledMask (1L << 31) #define XkbAccessXOptionsMask (XkbStickyKeysMask|XkbAccessXFeedbackMask) #define XkbAllBooleanCtrlsMask (0x00001FFF) #define XkbAllControlsMask (0xF8001FFF) #define XkbAllControlEventsMask XkbAllControlsMask /* * AccessX Options Mask * - The 'accessXOptions' field of an XkbControlsRec specifies the * AccessX options that are currently in effect. * - The 'accessXTimeoutOptionsMask' and 'accessXTimeoutOptionsValues' * fields of an XkbControlsRec specify the Access X options to be * changed if the keyboard times out and the values to which they * should be changed. */ #define XkbAX_SKPressFBMask (1L << 0) #define XkbAX_SKAcceptFBMask (1L << 1) #define XkbAX_FeatureFBMask (1L << 2) #define XkbAX_SlowWarnFBMask (1L << 3) #define XkbAX_IndicatorFBMask (1L << 4) #define XkbAX_StickyKeysFBMask (1L << 5) #define XkbAX_TwoKeysMask (1L << 6) #define XkbAX_LatchToLockMask (1L << 7) #define XkbAX_SKReleaseFBMask (1L << 8) #define XkbAX_SKRejectFBMask (1L << 9) #define XkbAX_BKRejectFBMask (1L << 10) #define XkbAX_DumbBellFBMask (1L << 11) #define XkbAX_FBOptionsMask (0xF3F) #define XkbAX_SKOptionsMask (0x0C0) #define XkbAX_AllOptionsMask (0xFFF) /* * XkbUseCoreKbd is used to specify the core keyboard without having * to look up its X input extension identifier. * XkbUseCorePtr is used to specify the core pointer without having * to look up its X input extension identifier. * XkbDfltXIClass is used to specify "don't care" any place that the * XKB protocol is looking for an X Input Extension * device class. * XkbDfltXIId is used to specify "don't care" any place that the * XKB protocol is looking for an X Input Extension * feedback identifier. * XkbAllXIClasses is used to get information about all device indicators, * whether they're part of the indicator feedback class * or the keyboard feedback class. * XkbAllXIIds is used to get information about all device indicator * feedbacks without having to list them. * XkbXINone is used to indicate that no class or id has been specified. * XkbLegalXILedClass(c) True if 'c' specifies a legal class with LEDs * XkbLegalXIBellClass(c) True if 'c' specifies a legal class with bells * XkbExplicitXIDevice(d) True if 'd' explicitly specifies a device * XkbExplicitXIClass(c) True if 'c' explicitly specifies a device class * XkbExplicitXIId(c) True if 'i' explicitly specifies a device id * XkbSingleXIClass(c) True if 'c' specifies exactly one device class, * including the default. * XkbSingleXIId(i) True if 'i' specifies exactly one device * identifier, including the default. */ #define XkbUseCoreKbd 0x0100 #define XkbUseCorePtr 0x0200 #define XkbDfltXIClass 0x0300 #define XkbDfltXIId 0x0400 #define XkbAllXIClasses 0x0500 #define XkbAllXIIds 0x0600 #define XkbXINone 0xff00 #define XkbLegalXILedClass(c) (((c)==KbdFeedbackClass)||\ ((c)==LedFeedbackClass)||\ ((c)==XkbDfltXIClass)||\ ((c)==XkbAllXIClasses)) #define XkbLegalXIBellClass(c) (((c)==KbdFeedbackClass)||\ ((c)==BellFeedbackClass)||\ ((c)==XkbDfltXIClass)||\ ((c)==XkbAllXIClasses)) #define XkbExplicitXIDevice(c) (((c)&(~0xff))==0) #define XkbExplicitXIClass(c) (((c)&(~0xff))==0) #define XkbExplicitXIId(c) (((c)&(~0xff))==0) #define XkbSingleXIClass(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIClass)) #define XkbSingleXIId(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIId)) #define XkbNoModifier 0xff #define XkbNoShiftLevel 0xff #define XkbNoShape 0xff #define XkbNoIndicator 0xff #define XkbNoModifierMask 0 #define XkbAllModifiersMask 0xff #define XkbAllVirtualModsMask 0xffff #define XkbNumKbdGroups 4 #define XkbMaxKbdGroup (XkbNumKbdGroups-1) #define XkbMaxMouseKeysBtn 4 /* * Group Index and Mask: * - Indices into the kt_index array of a key type. * - Mask specifies types to be changed for XkbChangeTypesOfKey */ #define XkbGroup1Index 0 #define XkbGroup2Index 1 #define XkbGroup3Index 2 #define XkbGroup4Index 3 #define XkbAnyGroup 254 #define XkbAllGroups 255 #define XkbGroup1Mask (1<<0) #define XkbGroup2Mask (1<<1) #define XkbGroup3Mask (1<<2) #define XkbGroup4Mask (1<<3) #define XkbAnyGroupMask (1<<7) #define XkbAllGroupsMask (0xf) /* * BuildCoreState: Given a keyboard group and a modifier state, * construct the value to be reported an event. * GroupForCoreState: Given the state reported in an event, * determine the keyboard group. * IsLegalGroup: Returns TRUE if 'g' is a valid group index. */ #define XkbBuildCoreState(m,g) ((((g)&0x3)<<13)|((m)&0xff)) #define XkbGroupForCoreState(s) (((s)>>13)&0x3) #define XkbIsLegalGroup(g) (((g)>=0)&&((g)type>=Xkb_SASetMods)&&((a)->type<=XkbSA_LockMods)) #define XkbIsGroupAction(a) (((a)->type>=XkbSA_SetGroup)&&((a)->type<=XkbSA_LockGroup)) #define XkbIsPtrAction(a) (((a)->type>=XkbSA_MovePtr)&&((a)->type<=XkbSA_SetPtrDflt)) /* * Key Behavior Qualifier: * KB_Permanent indicates that the behavior describes an unalterable * characteristic of the keyboard, not an XKB software-simulation of * the listed behavior. * Key Behavior Types: * Specifies the behavior of the underlying key. */ #define XkbKB_Permanent 0x80 #define XkbKB_OpMask 0x7f #define XkbKB_Default 0x00 #define XkbKB_Lock 0x01 #define XkbKB_RadioGroup 0x02 #define XkbKB_Overlay1 0x03 #define XkbKB_Overlay2 0x04 #define XkbKB_RGAllowNone 0x80 /* * Various macros which describe the range of legal keycodes. */ #define XkbMinLegalKeyCode 8 #define XkbMaxLegalKeyCode 255 #define XkbMaxKeyCount (XkbMaxLegalKeyCode-XkbMinLegalKeyCode+1) #define XkbPerKeyBitArraySize ((XkbMaxLegalKeyCode+1)/8) /* Seems kinda silly to check that an unsigned char is <= 255... */ #define XkbIsLegalKeycode(k) ((k)>=XkbMinLegalKeyCode) /* * Assorted constants and limits. */ #define XkbNumModifiers 8 #define XkbNumVirtualMods 16 #define XkbNumIndicators 32 #define XkbAllIndicatorsMask (0xffffffff) #define XkbMaxRadioGroups 32 #define XkbAllRadioGroupsMask (0xffffffff) #define XkbMaxShiftLevel 63 #define XkbMaxSymsPerKey (XkbMaxShiftLevel*XkbNumKbdGroups) #define XkbRGMaxMembers 12 #define XkbActionMessageLength 6 #define XkbKeyNameLength 4 #define XkbMaxRedirectCount 8 #define XkbGeomPtsPerMM 10 #define XkbGeomMaxColors 32 #define XkbGeomMaxLabelColors 3 #define XkbGeomMaxPriority 255 /* * Key Type index and mask for the four standard key types. */ #define XkbOneLevelIndex 0 #define XkbTwoLevelIndex 1 #define XkbAlphabeticIndex 2 #define XkbKeypadIndex 3 #define XkbLastRequiredType XkbKeypadIndex #define XkbNumRequiredTypes (XkbLastRequiredType+1) #define XkbMaxKeyTypes 255 #define XkbOneLevelMask (1<<0) #define XkbTwoLevelMask (1<<1) #define XkbAlphabeticMask (1<<2) #define XkbKeypadMask (1<<3) #define XkbAllRequiredTypes (0xf) #define XkbShiftLevel(n) ((n)-1) #define XkbShiftLevelMask(n) (1<<((n)-1)) /* * Extension name and version information */ #define XkbName "XKEYBOARD" #define XkbMajorVersion 1 #define XkbMinorVersion 0 /* * Explicit map components: * - Used in the 'explicit' field of an XkbServerMap. Specifies * the keyboard components that should _not_ be updated automatically * in response to core protocol keyboard mapping requests. */ #define XkbExplicitKeyTypesMask (0x0f) #define XkbExplicitKeyType1Mask (1<<0) #define XkbExplicitKeyType2Mask (1<<1) #define XkbExplicitKeyType3Mask (1<<2) #define XkbExplicitKeyType4Mask (1<<3) #define XkbExplicitInterpretMask (1<<4) #define XkbExplicitAutoRepeatMask (1<<5) #define XkbExplicitBehaviorMask (1<<6) #define XkbExplicitVModMapMask (1<<7) #define XkbAllExplicitMask (0xff) /* * Map components masks: * Those in AllMapComponentsMask: * - Specifies the individual fields to be loaded or changed for the * GetMap and SetMap requests. * Those in ClientInfoMask: * - Specifies the components to be allocated by XkbAllocClientMap. * Those in ServerInfoMask: * - Specifies the components to be allocated by XkbAllocServerMap. */ #define XkbKeyTypesMask (1<<0) #define XkbKeySymsMask (1<<1) #define XkbModifierMapMask (1<<2) #define XkbExplicitComponentsMask (1<<3) #define XkbKeyActionsMask (1<<4) #define XkbKeyBehaviorsMask (1<<5) #define XkbVirtualModsMask (1<<6) #define XkbVirtualModMapMask (1<<7) #define XkbAllClientInfoMask (XkbKeyTypesMask|XkbKeySymsMask|XkbModifierMapMask) #define XkbAllServerInfoMask (XkbExplicitComponentsMask|XkbKeyActionsMask|XkbKeyBehaviorsMask|XkbVirtualModsMask|XkbVirtualModMapMask) #define XkbAllMapComponentsMask (XkbAllClientInfoMask|XkbAllServerInfoMask) /* * Symbol interpretations flags: * - Used in the flags field of a symbol interpretation */ #define XkbSI_AutoRepeat (1<<0) #define XkbSI_LockingKey (1<<1) /* * Symbol interpretations match specification: * - Used in the match field of a symbol interpretation to specify * the conditions under which an interpretation is used. */ #define XkbSI_LevelOneOnly (0x80) #define XkbSI_OpMask (0x7f) #define XkbSI_NoneOf (0) #define XkbSI_AnyOfOrNone (1) #define XkbSI_AnyOf (2) #define XkbSI_AllOf (3) #define XkbSI_Exactly (4) /* * Indicator map flags: * - Used in the flags field of an indicator map to indicate the * conditions under which and indicator can be changed and the * effects of changing the indicator. */ #define XkbIM_NoExplicit (1L << 7) #define XkbIM_NoAutomatic (1L << 6) #define XkbIM_LEDDrivesKB (1L << 5) /* * Indicator map component specifications: * - Used by the 'which_groups' and 'which_mods' fields of an indicator * map to specify which keyboard components should be used to drive * the indicator. */ #define XkbIM_UseBase (1L << 0) #define XkbIM_UseLatched (1L << 1) #define XkbIM_UseLocked (1L << 2) #define XkbIM_UseEffective (1L << 3) #define XkbIM_UseCompat (1L << 4) #define XkbIM_UseNone 0 #define XkbIM_UseAnyGroup (XkbIM_UseBase|XkbIM_UseLatched|XkbIM_UseLocked\ |XkbIM_UseEffective) #define XkbIM_UseAnyMods (XkbIM_UseAnyGroup|XkbIM_UseCompat) /* * Compatibility Map Components: * - Specifies the components to be allocated in XkbAllocCompatMap. */ #define XkbSymInterpMask (1<<0) #define XkbGroupCompatMask (1<<1) #define XkbAllCompatMask (0x3) /* * Names component mask: * - Specifies the names to be loaded or changed for the GetNames and * SetNames requests. * - Specifies the names that have changed in a NamesNotify event. * - Specifies the names components to be allocated by XkbAllocNames. */ #define XkbKeycodesNameMask (1<<0) #define XkbGeometryNameMask (1<<1) #define XkbSymbolsNameMask (1<<2) #define XkbPhysSymbolsNameMask (1<<3) #define XkbTypesNameMask (1<<4) #define XkbCompatNameMask (1<<5) #define XkbKeyTypeNamesMask (1<<6) #define XkbKTLevelNamesMask (1<<7) #define XkbIndicatorNamesMask (1<<8) #define XkbKeyNamesMask (1<<9) #define XkbKeyAliasesMask (1<<10) #define XkbVirtualModNamesMask (1<<11) #define XkbGroupNamesMask (1<<12) #define XkbRGNamesMask (1<<13) #define XkbComponentNamesMask (0x3f) #define XkbAllNamesMask (0x3fff) /* * GetByName components: * - Specifies desired or necessary components to GetKbdByName request. * - Reports the components that were found in a GetKbdByNameReply */ #define XkbGBN_TypesMask (1L << 0) #define XkbGBN_CompatMapMask (1L << 1) #define XkbGBN_ClientSymbolsMask (1L << 2) #define XkbGBN_ServerSymbolsMask (1L << 3) #define XkbGBN_SymbolsMask (XkbGBN_ClientSymbolsMask|XkbGBN_ServerSymbolsMask) #define XkbGBN_IndicatorMapMask (1L << 4) #define XkbGBN_KeyNamesMask (1L << 5) #define XkbGBN_GeometryMask (1L << 6) #define XkbGBN_OtherNamesMask (1L << 7) #define XkbGBN_AllComponentsMask (0xff) /* * ListComponents flags */ #define XkbLC_Hidden (1L << 0) #define XkbLC_Default (1L << 1) #define XkbLC_Partial (1L << 2) #define XkbLC_AlphanumericKeys (1L << 8) #define XkbLC_ModifierKeys (1L << 9) #define XkbLC_KeypadKeys (1L << 10) #define XkbLC_FunctionKeys (1L << 11) #define XkbLC_AlternateGroup (1L << 12) /* * X Input Extension Interactions * - Specifies the possible interactions between XKB and the X input * extension * - Used to request (XkbGetDeviceInfo) or change (XKbSetDeviceInfo) * XKB information about an extension device. * - Reports the list of supported optional features in the reply to * XkbGetDeviceInfo or in an XkbExtensionDeviceNotify event. * XkbXI_UnsupportedFeature is reported in XkbExtensionDeviceNotify * events to indicate an attempt to use an unsupported feature. */ #define XkbXI_KeyboardsMask (1L << 0) #define XkbXI_ButtonActionsMask (1L << 1) #define XkbXI_IndicatorNamesMask (1L << 2) #define XkbXI_IndicatorMapsMask (1L << 3) #define XkbXI_IndicatorStateMask (1L << 4) #define XkbXI_UnsupportedFeatureMask (1L << 15) #define XkbXI_AllFeaturesMask (0x001f) #define XkbXI_AllDeviceFeaturesMask (0x001e) #define XkbXI_IndicatorsMask (0x001c) #define XkbAllExtensionDeviceEventsMask (0x801f) /* * Per-Client Flags: * - Specifies flags to be changed by the PerClientFlags request. */ #define XkbPCF_DetectableAutoRepeatMask (1L << 0) #define XkbPCF_GrabsUseXKBStateMask (1L << 1) #define XkbPCF_AutoResetControlsMask (1L << 2) #define XkbPCF_LookupStateWhenGrabbed (1L << 3) #define XkbPCF_SendEventUsesXKBState (1L << 4) #define XkbPCF_AllFlagsMask (0x1F) /* * Debugging flags and controls */ #define XkbDF_DisableLocks (1<<0) #endif /* _XKB_H_ */ xorgproto-2023.2/include/X11/extensions/XIproto.h0000644000175000017500000012006214443010026016531 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1989 by Hewlett-Packard Company, Palo Alto, California. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HEWLETT-PACKARD 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. ********************************************************/ #ifndef _XIPROTO_H #define _XIPROTO_H #include #include /* make sure types have right sizes for protocol structures. */ #define Window CARD32 #define Time CARD32 #define KeyCode CARD8 #define Mask CARD32 #define Atom CARD32 #define Cursor CARD32 /********************************************************* * * number of events, errors, and extension name. * */ #define MORE_EVENTS 0x80 #define DEVICE_BITS 0x7F #define InputClassBits 0x3F /* bits in mode field for input classes */ #define ModeBitsShift 6 /* amount to shift the remaining bits */ #define numInputClasses 7 #define IEVENTS 17 /* does NOT include generic events */ #define IERRORS 5 #define IREQUESTS 39 #define CLIENT_REQ 1 typedef struct _XExtEventInfo { Mask mask; BYTE type; BYTE word; } XExtEventInfo; #ifndef _XITYPEDEF_POINTER typedef void *Pointer; #endif struct tmask { Mask mask; void *dev; }; /********************************************************* * * Event constants used by library. * */ #define XI_DeviceValuator 0 #define XI_DeviceKeyPress 1 #define XI_DeviceKeyRelease 2 #define XI_DeviceButtonPress 3 #define XI_DeviceButtonRelease 4 #define XI_DeviceMotionNotify 5 #define XI_DeviceFocusIn 6 #define XI_DeviceFocusOut 7 #define XI_ProximityIn 8 #define XI_ProximityOut 9 #define XI_DeviceStateNotify 10 #define XI_DeviceMappingNotify 11 #define XI_ChangeDeviceNotify 12 #define XI_DeviceKeystateNotify 13 #define XI_DeviceButtonstateNotify 14 #define XI_DevicePresenceNotify 15 #define XI_DevicePropertyNotify 16 /********************************************************* * * Protocol request constants * */ #define X_GetExtensionVersion 1 #define X_ListInputDevices 2 #define X_OpenDevice 3 #define X_CloseDevice 4 #define X_SetDeviceMode 5 #define X_SelectExtensionEvent 6 #define X_GetSelectedExtensionEvents 7 #define X_ChangeDeviceDontPropagateList 8 #define X_GetDeviceDontPropagateList 9 #define X_GetDeviceMotionEvents 10 #define X_ChangeKeyboardDevice 11 #define X_ChangePointerDevice 12 #define X_GrabDevice 13 #define X_UngrabDevice 14 #define X_GrabDeviceKey 15 #define X_UngrabDeviceKey 16 #define X_GrabDeviceButton 17 #define X_UngrabDeviceButton 18 #define X_AllowDeviceEvents 19 #define X_GetDeviceFocus 20 #define X_SetDeviceFocus 21 #define X_GetFeedbackControl 22 #define X_ChangeFeedbackControl 23 #define X_GetDeviceKeyMapping 24 #define X_ChangeDeviceKeyMapping 25 #define X_GetDeviceModifierMapping 26 #define X_SetDeviceModifierMapping 27 #define X_GetDeviceButtonMapping 28 #define X_SetDeviceButtonMapping 29 #define X_QueryDeviceState 30 #define X_SendExtensionEvent 31 #define X_DeviceBell 32 #define X_SetDeviceValuators 33 #define X_GetDeviceControl 34 #define X_ChangeDeviceControl 35 /* XI 1.5 */ #define X_ListDeviceProperties 36 #define X_ChangeDeviceProperty 37 #define X_DeleteDeviceProperty 38 #define X_GetDeviceProperty 39 /********************************************************* * * Protocol request and reply structures. * * GetExtensionVersion. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetExtensionVersion */ CARD16 length; CARD16 nbytes; CARD8 pad1, pad2; } xGetExtensionVersionReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetExtensionVersion */ CARD16 sequenceNumber; CARD32 length; CARD16 major_version; CARD16 minor_version; BOOL present; CARD8 pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } xGetExtensionVersionReply; /********************************************************* * * ListInputDevices. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_ListInputDevices */ CARD16 length; } xListInputDevicesReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_ListInputDevices */ CARD16 sequenceNumber; CARD32 length; CARD8 ndevices; CARD8 pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xListInputDevicesReply; typedef struct _xDeviceInfo *xDeviceInfoPtr; typedef struct _xAnyClassinfo *xAnyClassPtr; typedef struct _xAnyClassinfo { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; } xAnyClassInfo; typedef struct _xDeviceInfo { CARD32 type; CARD8 id; CARD8 num_classes; CARD8 use; /* IsXPointer | IsXKeyboard | IsXExtension... */ CARD8 attached; /* id of master dev (if IsXExtension..) */ } xDeviceInfo; typedef struct _xKeyInfo *xKeyInfoPtr; typedef struct _xKeyInfo { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; KeyCode min_keycode; KeyCode max_keycode; CARD16 num_keys; CARD8 pad1,pad2; } xKeyInfo; typedef struct _xButtonInfo *xButtonInfoPtr; typedef struct _xButtonInfo { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; CARD16 num_buttons; } xButtonInfo; typedef struct _xValuatorInfo *xValuatorInfoPtr; typedef struct _xValuatorInfo { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; CARD8 num_axes; CARD8 mode; CARD32 motion_buffer_size; } xValuatorInfo; typedef struct _xAxisInfo *xAxisInfoPtr; typedef struct _xAxisInfo { CARD32 resolution; CARD32 min_value; CARD32 max_value; } xAxisInfo; /********************************************************* * * OpenDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_OpenDevice */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xOpenDeviceReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_OpenDevice */ CARD16 sequenceNumber; CARD32 length; CARD8 num_classes; BYTE pad1, pad2, pad3; CARD32 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } xOpenDeviceReply; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 event_type_base; } xInputClassInfo; /********************************************************* * * CloseDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_CloseDevice */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xCloseDeviceReq; /********************************************************* * * SetDeviceMode. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_SetDeviceMode */ CARD16 length; CARD8 deviceid; CARD8 mode; BYTE pad1, pad2; } xSetDeviceModeReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_SetDeviceMode */ CARD16 sequenceNumber; CARD32 length; CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xSetDeviceModeReply; /********************************************************* * * SelectExtensionEvent. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_SelectExtensionEvent */ CARD16 length; Window window; CARD16 count; CARD16 pad00; } xSelectExtensionEventReq; /********************************************************* * * GetSelectedExtensionEvent. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_GetSelectedExtensionEvents */ CARD16 length; Window window; } xGetSelectedExtensionEventsReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* GetSelectedExtensionEvents */ CARD16 sequenceNumber; CARD32 length; CARD16 this_client_count; CARD16 all_clients_count; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xGetSelectedExtensionEventsReply; /********************************************************* * * ChangeDeviceDontPropagateList. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_ChangeDeviceDontPropagateList */ CARD16 length; Window window; CARD16 count; CARD8 mode; BYTE pad; } xChangeDeviceDontPropagateListReq; /********************************************************* * * GetDeviceDontPropagateList. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_GetDeviceDontPropagateList */ CARD16 length; Window window; } xGetDeviceDontPropagateListReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* GetDeviceDontPropagateList */ CARD16 sequenceNumber; CARD32 length; CARD16 count; CARD16 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xGetDeviceDontPropagateListReply; /********************************************************* * * GetDeviceMotionEvents. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetDeviceMotionEvents*/ CARD16 length; Time start; Time stop; CARD8 deviceid; BYTE pad1, pad2, pad3; } xGetDeviceMotionEventsReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceMotionEvents */ CARD16 sequenceNumber; CARD32 length; CARD32 nEvents; CARD8 axes; CARD8 mode; BYTE pad1, pad2; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } xGetDeviceMotionEventsReply; /********************************************************* * * ChangeKeyboardDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_ChangeKeyboardDevice */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xChangeKeyboardDeviceReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_ChangeKeyboardDevice*/ CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xChangeKeyboardDeviceReply; /********************************************************* * * ChangePointerDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_ChangePointerDevice */ CARD16 length; CARD8 xaxis; CARD8 yaxis; CARD8 deviceid; BYTE pad1; } xChangePointerDeviceReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_ChangePointerDevice */ CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xChangePointerDeviceReply; /********************************************************* * * GrabDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GrabDevice */ CARD16 length; Window grabWindow; Time time; CARD16 event_count; CARD8 this_device_mode; CARD8 other_devices_mode; BOOL ownerEvents; CARD8 deviceid; CARD16 pad01; } xGrabDeviceReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GrabDevice */ CARD16 sequenceNumber; CARD32 length; /* 0 */ CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xGrabDeviceReply; /********************************************************* * * UngrabDevice. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_UnGrabDevice */ CARD16 length; Time time; CARD8 deviceid; BYTE pad1, pad2, pad3; } xUngrabDeviceReq; /********************************************************* * * GrabDeviceKey. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GrabDeviceKey */ CARD16 length; Window grabWindow; CARD16 event_count; CARD16 modifiers; CARD8 modifier_device; CARD8 grabbed_device; CARD8 key; BYTE this_device_mode; BYTE other_devices_mode; BOOL ownerEvents; BYTE pad1, pad2; } xGrabDeviceKeyReq; /********************************************************* * * UngrabDeviceKey. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_UngrabDeviceKey */ CARD16 length; Window grabWindow; CARD16 modifiers; CARD8 modifier_device; CARD8 key; CARD8 grabbed_device; BYTE pad1, pad2, pad3; } xUngrabDeviceKeyReq; /********************************************************* * * GrabDeviceButton. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GrabDeviceButton */ CARD16 length; Window grabWindow; CARD8 grabbed_device; CARD8 modifier_device; CARD16 event_count; CARD16 modifiers; BYTE this_device_mode; BYTE other_devices_mode; CARD8 button; BOOL ownerEvents; BYTE pad1, pad2; } xGrabDeviceButtonReq; /********************************************************* * * UngrabDeviceButton. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_UngrabDeviceButton */ CARD16 length; Window grabWindow; CARD16 modifiers; CARD8 modifier_device; CARD8 button; CARD8 grabbed_device; BYTE pad1, pad2, pad3; } xUngrabDeviceButtonReq; /********************************************************* * * AllowDeviceEvents. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_AllowDeviceEvents */ CARD16 length; Time time; CARD8 mode; CARD8 deviceid; BYTE pad1, pad2; } xAllowDeviceEventsReq; /********************************************************* * * GetDeviceFocus. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetDeviceFocus */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xGetDeviceFocusReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceFocus */ CARD16 sequenceNumber; CARD32 length; CARD32 focus; Time time; CARD8 revertTo; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; } xGetDeviceFocusReply; /********************************************************* * * SetDeviceFocus. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_SetDeviceFocus */ CARD16 length; Window focus; Time time; CARD8 revertTo; CARD8 device; CARD16 pad01; } xSetDeviceFocusReq; /********************************************************* * * GetFeedbackControl. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_GetFeedbackControl */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xGetFeedbackControlReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetFeedbackControl */ CARD16 sequenceNumber; CARD32 length; CARD16 num_feedbacks; CARD16 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; CARD32 pad06; } xGetFeedbackControlReply; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class */ #else CARD8 class; /* feedback class */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ } xFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 id; CARD16 length; CARD16 pitch; CARD16 duration; CARD32 led_mask; CARD32 led_values; BOOL global_auto_repeat; CARD8 click; CARD8 percent; BYTE pad; BYTE auto_repeats[32]; } xKbdFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 id; CARD16 length; CARD8 pad1,pad2; CARD16 accelNum; CARD16 accelDenom; CARD16 threshold; } xPtrFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; CARD16 length; /* feedback length */ CARD32 resolution; INT32 min_value; INT32 max_value; } xIntegerFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; CARD16 length; /* feedback length */ CARD16 max_symbols; CARD16 num_syms_supported; } xStringFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; CARD16 length; /* feedback length */ CARD8 percent; BYTE pad1, pad2, pad3; CARD16 pitch; CARD16 duration; } xBellFeedbackState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; CARD16 length; /* feedback length */ CARD32 led_mask; CARD32 led_values; } xLedFeedbackState; /********************************************************* * * ChangeFeedbackControl. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_ChangeFeedbackControl */ CARD16 length; CARD32 mask; CARD8 deviceid; CARD8 feedbackid; BYTE pad1, pad2; } xChangeFeedbackControlReq; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ } xFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback length */ CARD16 length; /* feedback length */ KeyCode key; CARD8 auto_repeat_mode; INT8 click; INT8 percent; INT16 pitch; INT16 duration; CARD32 led_mask; CARD32 led_values; } xKbdFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ CARD8 pad1,pad2; INT16 num; INT16 denom; INT16 thresh; } xPtrFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ INT32 int_to_display; } xIntegerFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ CARD8 pad1,pad2; CARD16 num_keysyms; } xStringFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ INT8 percent; BYTE pad1, pad2, pad3; INT16 pitch; INT16 duration; } xBellFeedbackCtl; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; /* feedback class id */ #else CARD8 class; /* feedback class id */ #endif CARD8 id; /* feedback id */ CARD16 length; /* feedback length */ CARD32 led_mask; CARD32 led_values; } xLedFeedbackCtl; /********************************************************* * * GetDeviceKeyMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetDeviceKeyMapping */ CARD16 length; CARD8 deviceid; KeyCode firstKeyCode; CARD8 count; BYTE pad1; } xGetDeviceKeyMappingReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceKeyMapping */ CARD16 sequenceNumber; CARD32 length; CARD8 keySymsPerKeyCode; CARD8 pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetDeviceKeyMappingReply; /********************************************************* * * ChangeDeviceKeyMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_ChangeDeviceKeyMapping */ CARD16 length; CARD8 deviceid; KeyCode firstKeyCode; CARD8 keySymsPerKeyCode; CARD8 keyCodes; } xChangeDeviceKeyMappingReq; /********************************************************* * * GetDeviceModifierMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetDeviceModifierMapping */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xGetDeviceModifierMappingReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceModifierMapping */ CARD16 sequenceNumber; CARD32 length; CARD8 numKeyPerModifier; CARD8 pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGetDeviceModifierMappingReply; /********************************************************* * * SetDeviceModifierMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_SetDeviceModifierMapping */ CARD16 length; CARD8 deviceid; CARD8 numKeyPerModifier; CARD16 pad1; } xSetDeviceModifierMappingReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_SetDeviceModifierMapping */ CARD16 sequenceNumber; CARD32 length; CARD8 success; CARD8 pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xSetDeviceModifierMappingReply; /********************************************************* * * GetDeviceButtonMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_GetDeviceButtonMapping */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xGetDeviceButtonMappingReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceButtonMapping */ CARD16 sequenceNumber; CARD32 length; CARD8 nElts; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xGetDeviceButtonMappingReply; /********************************************************* * * SetDeviceButtonMapping. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* X_SetDeviceButtonMapping */ CARD16 length; CARD8 deviceid; CARD8 map_length; BYTE pad1, pad2; } xSetDeviceButtonMappingReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_SetDeviceButtonMapping */ CARD16 sequenceNumber; CARD32 length; CARD8 status; BYTE pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xSetDeviceButtonMappingReply; /********************************************************* * * QueryDeviceState. * */ typedef struct { CARD8 reqType; CARD8 ReqType; /* always X_QueryDeviceState */ CARD16 length; CARD8 deviceid; BYTE pad1, pad2, pad3; } xQueryDeviceStateReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_QueryDeviceState */ CARD16 sequenceNumber; CARD32 length; CARD8 num_classes; BYTE pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xQueryDeviceStateReply; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; CARD8 num_keys; BYTE pad1; CARD8 keys[32]; } xKeyState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; CARD8 num_buttons; BYTE pad1; CARD8 buttons[32]; } xButtonState; typedef struct { #if defined(__cplusplus) || defined(c_plusplus) CARD8 c_class; #else CARD8 class; #endif CARD8 length; CARD8 num_valuators; CARD8 mode; } xValuatorState; /********************************************************* * * SendExtensionEvent. * THIS REQUEST MUST BE KEPT A MULTIPLE OF 8 BYTES IN LENGTH! * MORE EVENTS MAY FOLLOW AND THEY MUST BE QUAD-ALIGNED! * */ typedef struct { CARD8 reqType; CARD8 ReqType; /* always X_SendExtensionEvent */ CARD16 length; Window destination; CARD8 deviceid; BOOL propagate; CARD16 count; CARD8 num_events; BYTE pad1,pad2,pad3; } xSendExtensionEventReq; /********************************************************* * * DeviceBell. * */ typedef struct { CARD8 reqType; CARD8 ReqType; /* always X_DeviceBell */ CARD16 length; CARD8 deviceid; CARD8 feedbackid; CARD8 feedbackclass; INT8 percent; } xDeviceBellReq; /********************************************************* * * SetDeviceValuators. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_SetDeviceValuators */ CARD16 length; CARD8 deviceid; CARD8 first_valuator; CARD8 num_valuators; BYTE pad1; } xSetDeviceValuatorsReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_SetDeviceValuators */ CARD16 sequenceNumber; CARD32 length; CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xSetDeviceValuatorsReply; /********************************************************* * * GetDeviceControl. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GetDeviceControl */ CARD16 length; CARD16 control; CARD8 deviceid; BYTE pad2; } xGetDeviceControlReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceControl */ CARD16 sequenceNumber; CARD32 length; CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xGetDeviceControlReply; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ } xDeviceState; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ CARD32 num_valuators; /* number of valuators */ } xDeviceResolutionState; typedef struct { CARD16 control; CARD16 length; INT32 min_x; INT32 max_x; INT32 min_y; INT32 max_y; CARD32 flip_x; CARD32 flip_y; CARD32 rotation; CARD32 button_threshold; } xDeviceAbsCalibState; typedef struct { CARD16 control; CARD16 length; CARD32 offset_x; CARD32 offset_y; CARD32 width; CARD32 height; CARD32 screen; CARD32 following; } xDeviceAbsAreaState; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ CARD8 status; CARD8 iscore; CARD16 pad1; } xDeviceCoreState; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ CARD8 enable; CARD8 pad0; CARD16 pad1; } xDeviceEnableState; /********************************************************* * * ChangeDeviceControl. * */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_ChangeDeviceControl */ CARD16 length; CARD16 control; CARD8 deviceid; BYTE pad0; } xChangeDeviceControlReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_ChangeDeviceControl */ CARD16 sequenceNumber; CARD32 length; CARD8 status; BYTE pad1, pad2, pad3; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; } xChangeDeviceControlReply; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ } xDeviceCtl; typedef struct { CARD16 control; /* control type */ CARD16 length; /* control length */ CARD8 first_valuator; /* first valuator to change */ CARD8 num_valuators; /* number of valuators to change*/ CARD8 pad1,pad2; } xDeviceResolutionCtl; typedef struct { CARD16 control; CARD16 length; INT32 min_x; INT32 max_x; INT32 min_y; INT32 max_y; CARD32 flip_x; CARD32 flip_y; CARD32 rotation; CARD32 button_threshold; } xDeviceAbsCalibCtl; typedef struct { CARD16 control; CARD16 length; CARD32 offset_x; CARD32 offset_y; INT32 width; INT32 height; INT32 screen; CARD32 following; } xDeviceAbsAreaCtl; typedef struct { CARD16 control; CARD16 length; CARD8 status; CARD8 pad0; CARD16 pad1; } xDeviceCoreCtl; typedef struct { CARD16 control; CARD16 length; CARD8 enable; CARD8 pad0; CARD16 pad1; } xDeviceEnableCtl; /* XI 1.5 */ /********************************************************* * * ListDeviceProperties. * */ typedef struct { CARD8 reqType; /* input extension major opcode */ CARD8 ReqType; /* always X_ListDeviceProperties */ CARD16 length; CARD8 deviceid; CARD8 pad0; CARD16 pad1; } xListDevicePropertiesReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_ListDeviceProperties */ CARD16 sequenceNumber; CARD32 length; CARD16 nAtoms; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xListDevicePropertiesReply; /********************************************************* * * ChangeDeviceProperty. * */ typedef struct { CARD8 reqType; /* input extension major opcode */ CARD8 ReqType; /* always X_ChangeDeviceProperty */ CARD16 length; Atom property; Atom type; CARD8 deviceid; CARD8 format; CARD8 mode; CARD8 pad; CARD32 nUnits; } xChangeDevicePropertyReq; /********************************************************* * * DeleteDeviceProperty. * */ typedef struct { CARD8 reqType; /* input extension major opcode */ CARD8 ReqType; /* always X_DeleteDeviceProperty */ CARD16 length; Atom property; CARD8 deviceid; CARD8 pad0; CARD16 pad1; } xDeleteDevicePropertyReq; /********************************************************* * * GetDeviceProperty. * */ typedef struct { CARD8 reqType; /* input extension major opcode */ CARD8 ReqType; /* always X_GetDeviceProperty */ CARD16 length; Atom property; Atom type; CARD32 longOffset; CARD32 longLength; CARD8 deviceid; #if defined(__cplusplus) || defined(c_plusplus) BOOL c_delete; #else BOOL delete; #endif CARD16 pad; } xGetDevicePropertyReq; typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GetDeviceProperty */ CARD16 sequenceNumber; CARD32 length; Atom propertyType; CARD32 bytesAfter; CARD32 nItems; CARD8 format; CARD8 deviceid; CARD16 pad1; CARD32 pad2; CARD32 pad3; } xGetDevicePropertyReply; /********************************************************** * * Input extension events. * * DeviceValuator * */ typedef struct { BYTE type; CARD8 deviceid; CARD16 sequenceNumber; KeyButMask device_state; CARD8 num_valuators; CARD8 first_valuator; INT32 valuator0; INT32 valuator1; INT32 valuator2; INT32 valuator3; INT32 valuator4; INT32 valuator5; } deviceValuator; /********************************************************** * * DeviceKeyButtonPointer. * * Used for: DeviceKeyPress, DeviceKeyRelease, * DeviceButtonPress, DeviceButtonRelease, * ProximityIn, ProximityOut * DeviceMotionNotify, * */ typedef struct { BYTE type; BYTE detail; CARD16 sequenceNumber; Time time; Window root; Window event; Window child; INT16 root_x; INT16 root_y; INT16 event_x; INT16 event_y; KeyButMask state; BOOL same_screen; CARD8 deviceid; } deviceKeyButtonPointer; /********************************************************** * * DeviceFocus. * */ typedef struct { BYTE type; BYTE detail; CARD16 sequenceNumber; Time time; Window window; BYTE mode; CARD8 deviceid; BYTE pad1, pad2; CARD32 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; } deviceFocus; /********************************************************** * * DeviceStateNotify. * * Note that the two high-order bits in the classes_reported * field are the proximity state (InProximity or OutOfProximity), * and the device mode (Absolute or Relative), respectively. * */ typedef struct { BYTE type; BYTE deviceid; CARD16 sequenceNumber; Time time; CARD8 num_keys; CARD8 num_buttons; CARD8 num_valuators; CARD8 classes_reported; CARD8 buttons[4]; CARD8 keys[4]; INT32 valuator0; INT32 valuator1; INT32 valuator2; } deviceStateNotify; /********************************************************** * * DeviceKeyStateNotify. * */ typedef struct { BYTE type; BYTE deviceid; CARD16 sequenceNumber; CARD8 keys[28]; } deviceKeyStateNotify; /********************************************************** * * DeviceButtonStateNotify. * */ typedef struct { BYTE type; BYTE deviceid; CARD16 sequenceNumber; CARD8 buttons[28]; } deviceButtonStateNotify; /********************************************************** * * DeviceMappingNotify. * Fields must be kept in sync with core mappingnotify event. * */ typedef struct { BYTE type; BYTE deviceid; CARD16 sequenceNumber; CARD8 request; KeyCode firstKeyCode; CARD8 count; BYTE pad1; Time time; CARD32 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } deviceMappingNotify; /********************************************************** * * ChangeDeviceNotify. * */ typedef struct { BYTE type; BYTE deviceid; CARD16 sequenceNumber; Time time; CARD8 request; BYTE pad1, pad2, pad3; CARD32 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } changeDeviceNotify; /********************************************************** * * devicePresenceNotify. * */ typedef struct { BYTE type; BYTE pad00; CARD16 sequenceNumber; Time time; BYTE devchange; /* Device{Added|Removed|Enabled|Disabled|ControlChanged} */ BYTE deviceid; CARD16 control; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; CARD32 pad06; } devicePresenceNotify; /********************************************************* * DevicePropertyNotifyEvent * * Sent whenever a device's property changes. * */ typedef struct { BYTE type; BYTE state; /* NewValue or Deleted */ CARD16 sequenceNumber; CARD32 time; Atom atom; /* affected property */ CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD16 pad5; CARD8 pad4; CARD8 deviceid; /* id of device */ } devicePropertyNotify; #undef Window #undef Time #undef KeyCode #undef Mask #undef Atom #undef Cursor #endif xorgproto-2023.2/include/X11/extensions/shapeconst.h0000644000175000017500000000352614443010026017301 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ #ifndef _SHAPECONST_H_ #define _SHAPECONST_H_ /* * Protocol requests constants and alignment values * These would really be in SHAPE's X.h and Xproto.h equivalents */ #define SHAPENAME "SHAPE" #define SHAPE_MAJOR_VERSION 1 /* current version numbers */ #define SHAPE_MINOR_VERSION 1 #define ShapeSet 0 #define ShapeUnion 1 #define ShapeIntersect 2 #define ShapeSubtract 3 #define ShapeInvert 4 #define ShapeBounding 0 #define ShapeClip 1 #define ShapeInput 2 #define ShapeNotifyMask (1L << 0) #define ShapeNotify 0 #define ShapeNumberEvents (ShapeNotify + 1) #endif /* _SHAPECONST_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dga1str.h0000644000175000017500000000027714443010026017213 00000000000000#warning "xf86dga1str.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/multibufproto.h0000644000175000017500000002063014443010026020040 00000000000000/* Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _MULTIBUFPROTO_H_ #define _MULTIBUFPROTO_H_ #include /* * Protocol requests constants and alignment values */ #define Window CARD32 #define Drawable CARD32 #define VisualID CARD32 #define Multibuffer CARD32 #define X_MbufGetBufferVersion 0 #define X_MbufCreateImageBuffers 1 #define X_MbufDestroyImageBuffers 2 #define X_MbufDisplayImageBuffers 3 #define X_MbufSetMBufferAttributes 4 #define X_MbufGetMBufferAttributes 5 #define X_MbufSetBufferAttributes 6 #define X_MbufGetBufferAttributes 7 #define X_MbufGetBufferInfo 8 #define X_MbufCreateStereoWindow 9 #define X_MbufClearImageBufferArea 10 typedef struct xMbufBufferInfo { CARD32 visualID; /* associated visual */ CARD16 maxBuffers; /* maximum supported buffers */ CARD8 depth; /* depth of visual (redundant) */ CARD8 unused; } xMbufBufferInfo; #define sz_xMbufBufferInfo 8 typedef struct { BYTE type; BYTE unused; CARD16 sequenceNumber; CARD32 buffer; /* affected buffer */ BYTE state; /* current status */ CARD8 unused1; CARD16 unused2; CARD32 unused3; CARD32 unused4; CARD32 unused5; CARD32 unused6; CARD32 unused7; } xMbufClobberNotifyEvent; typedef struct { BYTE type; BYTE unused; CARD16 sequenceNumber; CARD32 buffer; /* affected buffer */ CARD32 timeStamp; /* update time */ CARD32 unused1; CARD32 unused2; CARD32 unused3; CARD32 unused4; CARD32 unused5; CARD32 unused6; } xMbufUpdateNotifyEvent; typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufGetBufferVersion */ CARD16 length; } xMbufGetBufferVersionReq; #define sz_xMbufGetBufferVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD8 majorVersion; /* major version of Multi-Buffering protocol */ CARD8 minorVersion; /* minor version of Multi-Buffering protocol */ CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xMbufGetBufferVersionReply; #define sz_xMbufGetBufferVersionReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufCreateImageBuffers */ CARD16 length; CARD32 window; /* associated window */ CARD8 updateAction; /* action at update */ CARD8 updateHint; /* hint as to frequency of updates */ CARD16 unused; } xMbufCreateImageBuffersReq; /* followed by buffer ids */ #define sz_xMbufCreateImageBuffersReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 numberBuffer; /* number successfully allocated */ CARD16 unused1; CARD32 unused2; CARD32 unused3; CARD32 unused4; CARD32 unused5; CARD32 unused6; } xMbufCreateImageBuffersReply; #define sz_xMbufCreateImageBuffersReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufDestroyImageBuffers */ CARD16 length; CARD32 window; /* associated window */ } xMbufDestroyImageBuffersReq; #define sz_xMbufDestroyImageBuffersReq 8 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufDisplayImageBuffers */ CARD16 length; CARD16 minDelay; /* minimum time between last update and now */ CARD16 maxDelay; /* maximum time between last update and now */ } xMbufDisplayImageBuffersReq; /* followed by list of buffers */ #define sz_xMbufDisplayImageBuffersReq 8 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufSetMBufferAttributes */ CARD16 length; CARD32 window; /* associated window */ CARD32 valueMask; /* modified entries */ } xMbufSetMBufferAttributesReq; /* followed by values */ #define sz_xMbufSetMBufferAttributesReq 12 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufGetMBufferAttributes */ CARD16 length; CARD32 window; /* associated window */ } xMbufGetMBufferAttributesReq; #define sz_xMbufGetMBufferAttributesReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 displayedBuffer; /* currently visible buffer */ CARD8 updateAction; CARD8 updateHint; CARD8 windowMode; CARD8 unused0; CARD16 unused1; CARD32 unused2; CARD32 unused3; CARD32 unused4; CARD32 unused5; } xMbufGetMBufferAttributesReply; #define sz_xMbufGetMBufferAttributesReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufSetBufferAttributes */ CARD16 length; CARD32 buffer; CARD32 valueMask; } xMbufSetBufferAttributesReq; /* followed by values */ #define sz_xMbufSetBufferAttributesReq 12 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufGetBufferAttributes */ CARD16 length; CARD32 buffer; } xMbufGetBufferAttributesReq; #define sz_xMbufGetBufferAttributesReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 window; CARD32 eventMask; CARD16 bufferIndex; CARD8 side; CARD8 unused0; CARD32 unused1; CARD32 unused2; CARD32 unused3; } xMbufGetBufferAttributesReply; #define sz_xMbufGetBufferAttributesReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufGetBufferInfo */ CARD16 length; Drawable drawable; } xMbufGetBufferInfoReq; #define sz_xMbufGetBufferInfoReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 normalInfo; CARD16 stereoInfo; CARD32 unused1; CARD32 unused2; CARD32 unused3; CARD32 unused4; CARD32 unused5; } xMbufGetBufferInfoReply; /* followed by buffer infos */ #define sz_xMbufGetBufferInfoReply 32 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufCreateStereoWindow */ CARD16 length; CARD8 unused0; CARD8 unused1; CARD8 unused2; CARD8 depth; Window wid; Window parent; Multibuffer left; /* associated buffers */ Multibuffer right; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD16 borderWidth; #if defined(__cplusplus) || defined(c_plusplus) CARD16 c_class; #else CARD16 class; #endif VisualID visual; CARD32 mask; } xMbufCreateStereoWindowReq; /* followed by value list */ #define sz_xMbufCreateStereoWindowReq 44 typedef struct { CARD8 reqType; /* always codes->major_opcode */ CARD8 mbufReqType; /* always X_MbufClearImageBufferArea */ CARD16 length; Multibuffer buffer; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD8 unused0; CARD8 unused1; CARD8 unused2; BOOL exposures; } xMbufClearImageBufferAreaReq; #define sz_xMbufClearImageBufferAreaReq 20 #undef Window #undef Drawable #undef VisualID #undef Multibuffer #endif /* _MULTIBUFPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/XvMC.h0000644000175000017500000000704414443010026015746 00000000000000#ifndef _XVMC_H_ #define _XVMC_H_ #include #include #define XvMCName "XVideo-MotionCompensation" #define XvMCNumEvents 0 #define XvMCNumErrors 3 #define XvMCVersion 1 #define XvMCRevision 1 #define XvMCBadContext 0 #define XvMCBadSurface 1 #define XvMCBadSubpicture 2 /* Chroma formats */ #define XVMC_CHROMA_FORMAT_420 0x00000001 #define XVMC_CHROMA_FORMAT_422 0x00000002 #define XVMC_CHROMA_FORMAT_444 0x00000003 /* XvMCSurfaceInfo Flags */ #define XVMC_OVERLAID_SURFACE 0x00000001 #define XVMC_BACKEND_SUBPICTURE 0x00000002 #define XVMC_SUBPICTURE_INDEPENDENT_SCALING 0x00000004 #define XVMC_INTRA_UNSIGNED 0x00000008 /* Motion Compensation types */ #define XVMC_MOCOMP 0x00000000 #define XVMC_IDCT 0x00010000 #define XVMC_MPEG_1 0x00000001 #define XVMC_MPEG_2 0x00000002 #define XVMC_H263 0x00000003 #define XVMC_MPEG_4 0x00000004 #define XVMC_MB_TYPE_MOTION_FORWARD 0x02 #define XVMC_MB_TYPE_MOTION_BACKWARD 0x04 #define XVMC_MB_TYPE_PATTERN 0x08 #define XVMC_MB_TYPE_INTRA 0x10 #define XVMC_PREDICTION_FIELD 0x01 #define XVMC_PREDICTION_FRAME 0x02 #define XVMC_PREDICTION_DUAL_PRIME 0x03 #define XVMC_PREDICTION_16x8 0x02 #define XVMC_PREDICTION_4MV 0x04 #define XVMC_SELECT_FIRST_FORWARD 0x01 #define XVMC_SELECT_FIRST_BACKWARD 0x02 #define XVMC_SELECT_SECOND_FORWARD 0x04 #define XVMC_SELECT_SECOND_BACKWARD 0x08 #define XVMC_DCT_TYPE_FRAME 0x00 #define XVMC_DCT_TYPE_FIELD 0x01 #define XVMC_TOP_FIELD 0x00000001 #define XVMC_BOTTOM_FIELD 0x00000002 #define XVMC_FRAME_PICTURE (XVMC_TOP_FIELD | XVMC_BOTTOM_FIELD) #define XVMC_SECOND_FIELD 0x00000004 #define XVMC_DIRECT 0x00000001 #define XVMC_RENDERING 0x00000001 #define XVMC_DISPLAYING 0x00000002 typedef struct { int surface_type_id; int chroma_format; unsigned short max_width; unsigned short max_height; unsigned short subpicture_max_width; unsigned short subpicture_max_height; int mc_type; int flags; } XvMCSurfaceInfo; typedef struct { XID context_id; int surface_type_id; unsigned short width; unsigned short height; XvPortID port; int flags; void * privData; /* private to the library */ } XvMCContext; typedef struct { XID surface_id; XID context_id; int surface_type_id; unsigned short width; unsigned short height; void *privData; /* private to the library */ } XvMCSurface; typedef struct { XID subpicture_id; XID context_id; int xvimage_id; unsigned short width; unsigned short height; int num_palette_entries; int entry_bytes; char component_order[4]; void *privData; /* private to the library */ } XvMCSubpicture; typedef struct { unsigned int num_blocks; XID context_id; void *privData; short *blocks; } XvMCBlockArray; typedef struct { unsigned short x; unsigned short y; unsigned char macroblock_type; unsigned char motion_type; unsigned char motion_vertical_field_select; unsigned char dct_type; short PMV[2][2][2]; unsigned int index; unsigned short coded_block_pattern; unsigned short pad0; } XvMCMacroBlock; typedef struct { unsigned int num_blocks; XID context_id; void *privData; XvMCMacroBlock *macro_blocks; } XvMCMacroBlockArray; #endif xorgproto-2023.2/include/X11/extensions/shm.h0000644000175000017500000000315514443010026015717 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ #ifndef _SHM_H_ #define _SHM_H_ #define SHMNAME "MIT-SHM" #define SHM_MAJOR_VERSION 1 /* current version numbers */ #define SHM_MINOR_VERSION 2 #define ShmCompletion 0 #define ShmNumberEvents (ShmCompletion + 1) #define BadShmSeg 0 #define ShmNumberErrors (BadShmSeg + 1) #endif /* _SHM_H_ */ xorgproto-2023.2/include/X11/extensions/syncstr.h0000644000175000017500000001274514443010026016642 00000000000000/* Copyright 1991, 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /*********************************************************** Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts, and Olivetti Research Limited, Cambridge, England. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or Olivetti not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THEY 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. ******************************************************************/ #ifndef _SYNCSTR_H_ #define _SYNCSTR_H_ #include #ifdef _SYNC_SERVER #define CARD64 XSyncValue /* XXX temporary! need real 64 bit values for Alpha */ typedef struct _SyncCounter { ClientPtr client; /* Owning client. 0 for system counters */ XSyncCounter id; /* resource ID */ CARD64 value; /* counter value */ struct _SyncTriggerList *pTriglist; /* list of triggers */ Bool beingDestroyed; /* in process of going away */ struct _SysCounterInfo *pSysCounterInfo; /* NULL if not a system counter */ } SyncCounter; /* * The System Counter interface */ typedef enum { XSyncCounterNeverChanges, XSyncCounterNeverIncreases, XSyncCounterNeverDecreases, XSyncCounterUnrestricted } SyncCounterType; typedef struct _SysCounterInfo { char *name; CARD64 resolution; CARD64 bracket_greater; CARD64 bracket_less; SyncCounterType counterType; /* how can this counter change */ void (*QueryValue)( pointer /*pCounter*/, CARD64 * /*freshvalue*/ ); void (*BracketValues)( pointer /*pCounter*/, CARD64 * /*lessthan*/, CARD64 * /*greaterthan*/ ); } SysCounterInfo; typedef struct _SyncTrigger { SyncCounter *pCounter; CARD64 wait_value; /* wait value */ unsigned int value_type; /* Absolute or Relative */ unsigned int test_type; /* transition or Comparison type */ CARD64 test_value; /* trigger event threshold value */ Bool (*CheckTrigger)( struct _SyncTrigger * /*pTrigger*/, CARD64 /*newval*/ ); void (*TriggerFired)( struct _SyncTrigger * /*pTrigger*/ ); void (*CounterDestroyed)( struct _SyncTrigger * /*pTrigger*/ ); } SyncTrigger; typedef struct _SyncTriggerList { SyncTrigger *pTrigger; struct _SyncTriggerList *next; } SyncTriggerList; typedef struct _SyncAlarmClientList { ClientPtr client; XID delete_id; struct _SyncAlarmClientList *next; } SyncAlarmClientList; typedef struct _SyncAlarm { SyncTrigger trigger; ClientPtr client; XSyncAlarm alarm_id; CARD64 delta; int events; int state; SyncAlarmClientList *pEventClients; } SyncAlarm; typedef struct { ClientPtr client; CARD32 delete_id; int num_waitconditions; } SyncAwaitHeader; typedef struct { SyncTrigger trigger; CARD64 event_threshold; SyncAwaitHeader *pHeader; } SyncAwait; typedef union { SyncAwaitHeader header; SyncAwait await; } SyncAwaitUnion; extern pointer SyncCreateSystemCounter( char * /* name */, CARD64 /* initial_value */, CARD64 /* resolution */, SyncCounterType /* change characterization */, void (* /*QueryValue*/ ) ( pointer /* pCounter */, CARD64 * /* pValue_return */), /* XXX prototype */ void (* /*BracketValues*/) ( pointer /* pCounter */, CARD64 * /* pbracket_less */, CARD64 * /* pbracket_greater */) ); extern void SyncChangeCounter( SyncCounter * /* pCounter*/, CARD64 /* new_value */ ); extern void SyncDestroySystemCounter( pointer pCounter ); extern void InitServertime(void); #endif /* _SYNC_SERVER */ #endif /* _SYNCSTR_H_ */ xorgproto-2023.2/include/X11/extensions/presenttokens.h0000644000175000017500000000763114443010026020037 00000000000000/* * 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. */ #ifndef _PRESENT_TOKENS_H_ #define _PRESENT_TOKENS_H_ #define PRESENT_NAME "Present" #define PRESENT_MAJOR 1 #define PRESENT_MINOR 3 #define PresentNumberErrors 0 #define PresentNumberEvents 0 /* Requests */ #define X_PresentQueryVersion 0 #define X_PresentPixmap 1 #define X_PresentNotifyMSC 2 #define X_PresentSelectInput 3 #define X_PresentQueryCapabilities 4 #define PresentNumberRequests 5 /* Present operation options */ #define PresentOptionNone 0 #define PresentOptionAsync (1 << 0) #define PresentOptionCopy (1 << 1) #define PresentOptionUST (1 << 2) #define PresentOptionSuboptimal (1 << 3) #define PresentOptionAsyncMayTear (1 << 4) #define PresentAllOptions (PresentOptionAsync | \ PresentOptionCopy | \ PresentOptionUST | \ PresentOptionSuboptimal | \ PresentOptionAsyncMayTear) #define PresentAllAsyncOptions (PresentOptionAsync | PresentOptionAsyncMayTear) /* Present capabilities */ #define PresentCapabilityNone 0 #define PresentCapabilityAsync 1 #define PresentCapabilityFence 2 #define PresentCapabilityUST 4 #define PresentCapabilityAsyncMayTear 8 #define PresentAllCapabilities (PresentCapabilityAsync | \ PresentCapabilityFence | \ PresentCapabilityUST | \ PresentCapabilityAsyncMayTear) #define PresentAllAsyncCapabilities (PresentCapabilityAsync | PresentCapabilityAsyncMayTear) /* Events */ #define PresentConfigureNotify 0 #define PresentCompleteNotify 1 #define PresentIdleNotify 2 #if PRESENT_FUTURE_VERSION #define PresentRedirectNotify 3 #endif /* Event Masks */ #define PresentConfigureNotifyMask 1 #define PresentCompleteNotifyMask 2 #define PresentIdleNotifyMask 4 #if PRESENT_FUTURE_VERSION #define PresentRedirectNotifyMask 8 #endif #if PRESENT_FUTURE_VERSION #define PRESENT_REDIRECT_NOTIFY_MASK PresentRedirectNotifyMask #else #define PRESENT_REDIRECT_NOTIFY_MASK 0 #endif #define PresentAllEvents (PresentConfigureNotifyMask | \ PresentCompleteNotifyMask | \ PresentIdleNotifyMask | \ PRESENT_REDIRECT_NOTIFY_MASK) /* Complete Kinds */ #define PresentCompleteKindPixmap 0 #define PresentCompleteKindNotifyMSC 1 /* Complete Modes */ #define PresentCompleteModeCopy 0 #define PresentCompleteModeFlip 1 #define PresentCompleteModeSkip 2 #define PresentCompleteModeSuboptimalCopy 3 #endif xorgproto-2023.2/include/X11/extensions/presentproto.h0000644000175000017500000001244114443010026017672 00000000000000/* * 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. */ #ifndef _PRESENT_PROTO_H_ #define _PRESENT_PROTO_H_ #include #define Window CARD32 #define Pixmap CARD32 #define Region CARD32 #define XSyncFence CARD32 #define EventID CARD32 typedef struct { Window window; CARD32 serial; } xPresentNotify; #define sz_xPresentNotify 8 typedef struct { CARD8 reqType; CARD8 presentReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xPresentQueryVersionReq; #define sz_xPresentQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xPresentQueryVersionReply; #define sz_xPresentQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 presentReqType; CARD16 length; Window window; Pixmap pixmap; CARD32 serial; Region valid; Region update; INT16 x_off; INT16 y_off; CARD32 target_crtc; XSyncFence wait_fence; XSyncFence idle_fence; CARD32 options; CARD32 pad1; CARD64 target_msc; CARD64 divisor; CARD64 remainder; /* followed by a LISTofPRESENTNOTIFY */ } xPresentPixmapReq; #define sz_xPresentPixmapReq 72 typedef struct { CARD8 reqType; CARD8 presentReqType; CARD16 length; Window window; CARD32 serial; CARD32 pad0; CARD64 target_msc; CARD64 divisor; CARD64 remainder; } xPresentNotifyMSCReq; #define sz_xPresentNotifyMSCReq 40 typedef struct { CARD8 reqType; CARD8 presentReqType; CARD16 length; CARD32 eid; CARD32 window; CARD32 eventMask; } xPresentSelectInputReq; #define sz_xPresentSelectInputReq 16 typedef struct { CARD8 reqType; CARD8 presentReqType; CARD16 length; CARD32 target; } xPresentQueryCapabilitiesReq; #define sz_xPresentQueryCapabilitiesReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 capabilities; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xPresentQueryCapabilitiesReply; #define sz_xPresentQueryCapabilitiesReply 32 /* * Events * * All Present events are X Generic Events */ typedef struct { CARD8 type; CARD8 extension; CARD16 sequenceNumber; CARD32 length; CARD16 evtype; CARD16 pad2; CARD32 eid; CARD32 window; INT16 x; INT16 y; CARD16 width; CARD16 height; INT16 off_x; INT16 off_y; CARD16 pixmap_width; CARD16 pixmap_height; CARD32 pixmap_flags; } xPresentConfigureNotify; #define sz_xPresentConfigureNotify 40 typedef struct { CARD8 type; CARD8 extension; CARD16 sequenceNumber; CARD32 length; CARD16 evtype; CARD8 kind; CARD8 mode; CARD32 eid; Window window; CARD32 serial; CARD64 ust; CARD64 msc; } xPresentCompleteNotify; #define sz_xPresentCompleteNotify 40 typedef struct { CARD8 type; CARD8 extension; CARD16 sequenceNumber; CARD32 length; CARD16 evtype; CARD16 pad2; CARD32 eid; Window window; CARD32 serial; Pixmap pixmap; CARD32 idle_fence; } xPresentIdleNotify; #define sz_xPresentIdleNotify 32 #if PRESENT_FUTURE_VERSION typedef struct { CARD8 type; CARD8 extension; CARD16 sequenceNumber; CARD32 length; CARD16 evtype; CARD8 update_window; CARD8 pad1; CARD32 eid; Window event_window; Window window; Pixmap pixmap; CARD32 serial; /* 32-byte boundary */ Region valid_region; Region update_region; xRectangle valid_rect; xRectangle update_rect; INT16 x_off; INT16 y_off; CARD32 target_crtc; XSyncFence wait_fence; XSyncFence idle_fence; CARD32 options; CARD32 pad2; CARD64 target_msc; CARD64 divisor; CARD64 remainder; } xPresentRedirectNotify; #define sz_xPresentRedirectNotify 104 #endif #undef Window #undef Pixmap #undef Region #undef XSyncFence #undef EventID #endif xorgproto-2023.2/include/X11/extensions/mitmiscproto.h0000644000175000017500000000426514443010026017664 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */ #ifndef _MITMISCPROTO_H_ #define _MITMISCPROTO_H_ #include #define X_MITSetBugMode 0 #define X_MITGetBugMode 1 typedef struct _SetBugMode { CARD8 reqType; /* always MITReqCode */ CARD8 mitReqType; /* always X_MITSetBugMode */ CARD16 length; BOOL onOff; BYTE pad0; CARD16 pad1; } xMITSetBugModeReq; #define sz_xMITSetBugModeReq 8 typedef struct _GetBugMode { CARD8 reqType; /* always MITReqCode */ CARD8 mitReqType; /* always X_MITGetBugMode */ CARD16 length; } xMITGetBugModeReq; #define sz_xMITGetBugModeReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL onOff; CARD16 sequenceNumber; CARD32 length; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xMITGetBugModeReply; #define sz_xMITGetBugModeReply 32 #endif /* _MITMISCPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/shapestr.h0000644000175000017500000000037414443010026016761 00000000000000#ifndef _SHAPESTR_H_ #define _SHAPESTR_H_ #warning "shapestr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include #endif /* _SHAPESTR_H_ */ xorgproto-2023.2/include/X11/extensions/render.h0000644000175000017500000001542514443010026016412 00000000000000/* * Copyright © 2000 SuSE, Inc. * * 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 SuSE not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. SuSE makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * 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. * * Author: Keith Packard, SuSE, Inc. */ #ifndef _RENDER_H_ #define _RENDER_H_ #include typedef XID Glyph; typedef XID GlyphSet; typedef XID Picture; typedef XID PictFormat; #define RENDER_NAME "RENDER" #define RENDER_MAJOR 0 #define RENDER_MINOR 11 #define X_RenderQueryVersion 0 #define X_RenderQueryPictFormats 1 #define X_RenderQueryPictIndexValues 2 /* 0.7 */ #define X_RenderQueryDithers 3 #define X_RenderCreatePicture 4 #define X_RenderChangePicture 5 #define X_RenderSetPictureClipRectangles 6 #define X_RenderFreePicture 7 #define X_RenderComposite 8 #define X_RenderScale 9 #define X_RenderTrapezoids 10 #define X_RenderTriangles 11 #define X_RenderTriStrip 12 #define X_RenderTriFan 13 #define X_RenderColorTrapezoids 14 #define X_RenderColorTriangles 15 /* #define X_RenderTransform 16 */ #define X_RenderCreateGlyphSet 17 #define X_RenderReferenceGlyphSet 18 #define X_RenderFreeGlyphSet 19 #define X_RenderAddGlyphs 20 #define X_RenderAddGlyphsFromPicture 21 #define X_RenderFreeGlyphs 22 #define X_RenderCompositeGlyphs8 23 #define X_RenderCompositeGlyphs16 24 #define X_RenderCompositeGlyphs32 25 #define X_RenderFillRectangles 26 /* 0.5 */ #define X_RenderCreateCursor 27 /* 0.6 */ #define X_RenderSetPictureTransform 28 #define X_RenderQueryFilters 29 #define X_RenderSetPictureFilter 30 /* 0.8 */ #define X_RenderCreateAnimCursor 31 /* 0.9 */ #define X_RenderAddTraps 32 /* 0.10 */ #define X_RenderCreateSolidFill 33 #define X_RenderCreateLinearGradient 34 #define X_RenderCreateRadialGradient 35 #define X_RenderCreateConicalGradient 36 #define RenderNumberRequests (X_RenderCreateConicalGradient+1) #define BadPictFormat 0 #define BadPicture 1 #define BadPictOp 2 #define BadGlyphSet 3 #define BadGlyph 4 #define RenderNumberErrors (BadGlyph+1) #define PictTypeIndexed 0 #define PictTypeDirect 1 #define PictOpMinimum 0 #define PictOpClear 0 #define PictOpSrc 1 #define PictOpDst 2 #define PictOpOver 3 #define PictOpOverReverse 4 #define PictOpIn 5 #define PictOpInReverse 6 #define PictOpOut 7 #define PictOpOutReverse 8 #define PictOpAtop 9 #define PictOpAtopReverse 10 #define PictOpXor 11 #define PictOpAdd 12 #define PictOpSaturate 13 #define PictOpMaximum 13 /* * Operators only available in version 0.2 */ #define PictOpDisjointMinimum 0x10 #define PictOpDisjointClear 0x10 #define PictOpDisjointSrc 0x11 #define PictOpDisjointDst 0x12 #define PictOpDisjointOver 0x13 #define PictOpDisjointOverReverse 0x14 #define PictOpDisjointIn 0x15 #define PictOpDisjointInReverse 0x16 #define PictOpDisjointOut 0x17 #define PictOpDisjointOutReverse 0x18 #define PictOpDisjointAtop 0x19 #define PictOpDisjointAtopReverse 0x1a #define PictOpDisjointXor 0x1b #define PictOpDisjointMaximum 0x1b #define PictOpConjointMinimum 0x20 #define PictOpConjointClear 0x20 #define PictOpConjointSrc 0x21 #define PictOpConjointDst 0x22 #define PictOpConjointOver 0x23 #define PictOpConjointOverReverse 0x24 #define PictOpConjointIn 0x25 #define PictOpConjointInReverse 0x26 #define PictOpConjointOut 0x27 #define PictOpConjointOutReverse 0x28 #define PictOpConjointAtop 0x29 #define PictOpConjointAtopReverse 0x2a #define PictOpConjointXor 0x2b #define PictOpConjointMaximum 0x2b /* * Operators only available in version 0.11 */ #define PictOpBlendMinimum 0x30 #define PictOpMultiply 0x30 #define PictOpScreen 0x31 #define PictOpOverlay 0x32 #define PictOpDarken 0x33 #define PictOpLighten 0x34 #define PictOpColorDodge 0x35 #define PictOpColorBurn 0x36 #define PictOpHardLight 0x37 #define PictOpSoftLight 0x38 #define PictOpDifference 0x39 #define PictOpExclusion 0x3a #define PictOpHSLHue 0x3b #define PictOpHSLSaturation 0x3c #define PictOpHSLColor 0x3d #define PictOpHSLLuminosity 0x3e #define PictOpBlendMaximum 0x3e #define PolyEdgeSharp 0 #define PolyEdgeSmooth 1 #define PolyModePrecise 0 #define PolyModeImprecise 1 #define CPRepeat (1 << 0) #define CPAlphaMap (1 << 1) #define CPAlphaXOrigin (1 << 2) #define CPAlphaYOrigin (1 << 3) #define CPClipXOrigin (1 << 4) #define CPClipYOrigin (1 << 5) #define CPClipMask (1 << 6) #define CPGraphicsExposure (1 << 7) #define CPSubwindowMode (1 << 8) #define CPPolyEdge (1 << 9) #define CPPolyMode (1 << 10) #define CPDither (1 << 11) #define CPComponentAlpha (1 << 12) #define CPLastBit 12 /* Filters included in 0.6 */ #define FilterNearest "nearest" #define FilterBilinear "bilinear" /* Filters included in 0.10 */ #define FilterConvolution "convolution" #define FilterFast "fast" #define FilterGood "good" #define FilterBest "best" #define FilterAliasNone -1 /* Subpixel orders included in 0.6 */ #define SubPixelUnknown 0 #define SubPixelHorizontalRGB 1 #define SubPixelHorizontalBGR 2 #define SubPixelVerticalRGB 3 #define SubPixelVerticalBGR 4 #define SubPixelNone 5 /* Extended repeat attributes included in 0.10 */ #define RepeatNone 0 #define RepeatNormal 1 #define RepeatPad 2 #define RepeatReflect 3 #endif /* _RENDER_H_ */ xorgproto-2023.2/include/X11/extensions/xf86bigfproto.h0000644000175000017500000000476014443010026017642 00000000000000/* * Declarations of request structures for the BIGFONT extension. * * Copyright (c) 1999-2000 Bruno Haible * Copyright (c) 1999-2000 The XFree86 Project, Inc. */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _XF86BIGFPROTO_H_ #define _XF86BIGFPROTO_H_ #include #define XF86BIGFONTNAME "XFree86-Bigfont" #define XF86BIGFONT_MAJOR_VERSION 1 /* current version numbers */ #define XF86BIGFONT_MINOR_VERSION 1 typedef struct _XF86BigfontQueryVersion { CARD8 reqType; /* always XF86BigfontReqCode */ CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryVersion */ CARD16 length; } xXF86BigfontQueryVersionReq; #define sz_xXF86BigfontQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 capabilities; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of XFree86-Bigfont */ CARD16 minorVersion; /* minor version of XFree86-Bigfont */ CARD32 uid; CARD32 gid; CARD32 signature; CARD32 pad1; CARD32 pad2; } xXF86BigfontQueryVersionReply; #define sz_xXF86BigfontQueryVersionReply 32 /* Bit masks that can be set in the capabilities */ #define XF86Bigfont_CAP_LocalShm 1 typedef struct _XF86BigfontQueryFont { CARD8 reqType; /* always XF86BigfontReqCode */ CARD8 xf86bigfontReqType; /* always X_XF86BigfontQueryFont */ CARD16 length; CARD32 id; CARD32 flags; } xXF86BigfontQueryFontReq; #define sz_xXF86BigfontQueryFontReq 12 typedef struct { BYTE type; /* X_Reply */ CARD8 pad1; CARD16 sequenceNumber; CARD32 length; xCharInfo minBounds; #ifndef WORD64 CARD32 walign1; #endif xCharInfo maxBounds; #ifndef WORD64 CARD32 walign2; #endif CARD16 minCharOrByte2; CARD16 maxCharOrByte2; CARD16 defaultChar; CARD16 nFontProps; CARD8 drawDirection; CARD8 minByte1; CARD8 maxByte1; BOOL allCharsExist; INT16 fontAscent; INT16 fontDescent; CARD32 nCharInfos; CARD32 nUniqCharInfos; CARD32 shmid; CARD32 shmsegoffset; /* followed by nFontProps xFontProp structures */ /* and if nCharInfos > 0 && shmid == -1, followed by nUniqCharInfos xCharInfo structures and then by nCharInfos CARD16 indices (each >= 0, < nUniqCharInfos) and then, if nCharInfos is odd, one more CARD16 for padding. */ } xXF86BigfontQueryFontReply; #define sz_xXF86BigfontQueryFontReply 72 /* Bit masks that can be set in the flags */ #define XF86Bigfont_FLAGS_Shm 1 #endif /* _XF86BIGFPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dgaconst.h0000644000175000017500000000474514443010026017454 00000000000000/* Copyright (c) 1999 XFree86 Inc */ #ifndef _XF86DGACONST_H_ #define _XF86DGACONST_H_ #include #define X_XDGAQueryVersion 0 /* 1 through 9 are in xf86dga1.h */ /* 10 and 11 are reserved to avoid conflicts with rogue DGA extensions */ #define X_XDGAQueryModes 12 #define X_XDGASetMode 13 #define X_XDGASetViewport 14 #define X_XDGAInstallColormap 15 #define X_XDGASelectInput 16 #define X_XDGAFillRectangle 17 #define X_XDGACopyArea 18 #define X_XDGACopyTransparentArea 19 #define X_XDGAGetViewportStatus 20 #define X_XDGASync 21 #define X_XDGAOpenFramebuffer 22 #define X_XDGACloseFramebuffer 23 #define X_XDGASetClientVersion 24 #define X_XDGAChangePixmapMode 25 #define X_XDGACreateColormap 26 #define XDGAConcurrentAccess 0x00000001 #define XDGASolidFillRect 0x00000002 #define XDGABlitRect 0x00000004 #define XDGABlitTransRect 0x00000008 #define XDGAPixmap 0x00000010 #define XDGAInterlaced 0x00010000 #define XDGADoublescan 0x00020000 #define XDGAFlipImmediate 0x00000001 #define XDGAFlipRetrace 0x00000002 #define XDGANeedRoot 0x00000001 #define XF86DGANumberEvents 7 #define XDGAPixmapModeLarge 0 #define XDGAPixmapModeSmall 1 #define XF86DGAClientNotLocal 0 #define XF86DGANoDirectVideoMode 1 #define XF86DGAScreenNotActive 2 #define XF86DGADirectNotActivated 3 #define XF86DGAOperationNotSupported 4 #define XF86DGANumberErrors (XF86DGAOperationNotSupported + 1) typedef struct { int num; /* A unique identifier for the mode (num > 0) */ char *name; /* name of mode given in the XF86Config */ float verticalRefresh; int flags; /* DGA_CONCURRENT_ACCESS, etc... */ int imageWidth; /* linear accessible portion (pixels) */ int imageHeight; int pixmapWidth; /* Xlib accessible portion (pixels) */ int pixmapHeight; /* both fields ignored if no concurrent access */ int bytesPerScanline; int byteOrder; /* MSBFirst, LSBFirst */ int depth; int bitsPerPixel; unsigned long redMask; unsigned long greenMask; unsigned long blueMask; short visualClass; int viewportWidth; int viewportHeight; int xViewportStep; /* viewport position granularity */ int yViewportStep; int maxViewportX; /* max viewport origin */ int maxViewportY; int viewportFlags; /* types of page flipping possible */ int reserved1; int reserved2; } XDGAMode; typedef struct { XDGAMode mode; unsigned char *data; Pixmap pixmap; } XDGADevice; #endif /* _XF86DGACONST_H_ */ xorgproto-2023.2/include/X11/extensions/bigreqstr.h0000644000175000017500000000027314443010026017130 00000000000000#warning "bigreqstr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/evieproto.h0000644000175000017500000000764414443010026017153 00000000000000/************************************************************ Copyright (c) 2003, Oracle and/or its affiliates. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. ************************************************************/ #ifndef _XEVIEPROTO_H_ #define _XEVIEPROTO_H_ #define XEVIENAME "XEVIE" #define XEVIE_MAJOR_VERSION 1 #define XEVIE_MINOR_VERSION 0 #define X_XevieQueryVersion 0 #define X_XevieStart 1 #define X_XevieEnd 2 #define X_XevieSend 3 #define X_XevieSelectInput 4 #define XevieNumberErrors 0 typedef struct _XevieQueryVersion { CARD8 reqType; CARD8 xevieReqType; CARD16 length; CARD16 client_major_version; CARD16 client_minor_version; } xXevieQueryVersionReq; #define sz_xXevieQueryVersionReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequence_number; CARD32 length; CARD16 server_major_version; CARD16 server_minor_version; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXevieQueryVersionReply; #define sz_xXevieQueryVersionReply 32 typedef struct _XevieStart { CARD8 reqType; CARD8 xevieReqType; CARD16 length; CARD32 screen; } xXevieStartReq; #define sz_xXevieStartReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXevieStartReply; #define sz_xXevieStartReply 32 typedef struct _XevieEnd { CARD8 reqType; CARD8 xevieReqType; CARD16 length; CARD32 cmap; } xXevieEndReq; #define sz_xXevieEndReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXevieEndReply; #define sz_xXevieEndReply 32 typedef struct _XevieSend { CARD8 reqType; CARD8 xevieReqType; CARD16 length; xEvent event; CARD32 dataType; } xXevieSendReq; #define sz_xXevieSendReq 104 typedef struct { BYTE type; BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXevieSendReply; #define sz_xXevieSendReply 32 typedef struct _XevieSelectInput { CARD8 reqType; CARD8 xevieReqType; CARD16 length; CARD32 event_mask; } xXevieSelectInputReq; #define sz_xXevieSelectInputReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXevieSelectInputReply; #define sz_xXevieSelectInputReply 32 #endif /* } _XEVIEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/saverproto.h0000644000175000017500000001201414443010026017326 00000000000000/* Copyright (c) 1992 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. * * Author: Keith Packard, MIT X Consortium */ #ifndef _SAVERPROTO_H_ #define _SAVERPROTO_H_ #include #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define X_ScreenSaverQueryVersion 0 typedef struct _ScreenSaverQueryVersion { CARD8 reqType; /* always ScreenSaverReqCode */ CARD8 saverReqType; /* always X_ScreenSaverQueryVersion */ CARD16 length; CARD8 clientMajor; CARD8 clientMinor; CARD16 unused; } xScreenSaverQueryVersionReq; #define sz_xScreenSaverQueryVersionReq 8 typedef struct { CARD8 type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of protocol */ CARD16 minorVersion; /* minor version of protocol */ CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xScreenSaverQueryVersionReply; #define sz_xScreenSaverQueryVersionReply 32 #define X_ScreenSaverQueryInfo 1 typedef struct _ScreenSaverQueryInfo { CARD8 reqType; /* always ScreenSaverReqCode */ CARD8 saverReqType; /* always X_ScreenSaverQueryInfo */ CARD16 length; Drawable drawable; } xScreenSaverQueryInfoReq; #define sz_xScreenSaverQueryInfoReq 8 typedef struct { CARD8 type; /* X_Reply */ BYTE state; /* Off, On */ CARD16 sequenceNumber; CARD32 length; Window window; CARD32 tilOrSince; CARD32 idle; CARD32 eventMask; BYTE kind; /* Blanked, Internal, External */ CARD8 pad0; CARD16 pad1; CARD32 pad2; } xScreenSaverQueryInfoReply; #define sz_xScreenSaverQueryInfoReply 32 #define X_ScreenSaverSelectInput 2 typedef struct _ScreenSaverSelectInput { CARD8 reqType; /* always ScreenSaverReqCode */ CARD8 saverReqType; /* always X_ScreenSaverSelectInput */ CARD16 length; Drawable drawable; CARD32 eventMask; } xScreenSaverSelectInputReq; #define sz_xScreenSaverSelectInputReq 12 #define X_ScreenSaverSetAttributes 3 typedef struct _ScreenSaverSetAttributes { CARD8 reqType; /* always ScreenSaverReqCode */ CARD8 saverReqType; /* always X_ScreenSaverSetAttributes */ CARD16 length; Drawable drawable; INT16 x, y; CARD16 width, height, borderWidth; BYTE c_class; CARD8 depth; VisualID visualID; CARD32 mask; } xScreenSaverSetAttributesReq; #define sz_xScreenSaverSetAttributesReq 28 #define X_ScreenSaverUnsetAttributes 4 typedef struct _ScreenSaverUnsetAttributes { CARD8 reqType; /* always ScreenSaverReqCode */ CARD8 saverReqType; /* always X_ScreenSaverUnsetAttributes */ CARD16 length; Drawable drawable; } xScreenSaverUnsetAttributesReq; #define sz_xScreenSaverUnsetAttributesReq 8 #define X_ScreenSaverSuspend 5 typedef struct _ScreenSaverSuspend { CARD8 reqType; CARD8 saverReqType; CARD16 length; CARD32 suspend; /* a boolean, but using the wrong encoding */ } xScreenSaverSuspendReq; #define sz_xScreenSaverSuspendReq 8 typedef struct _ScreenSaverNotify { CARD8 type; /* always eventBase + ScreenSaverNotify */ BYTE state; /* off, on, cycle */ CARD16 sequenceNumber; Time timestamp; Window root; Window window; /* screen saver window */ BYTE kind; /* blanked, internal, external */ BYTE forced; CARD16 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xScreenSaverNotifyEvent; #define sz_xScreenSaverNotifyEvent 32 #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #endif /* _SAVERPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/XI2.h0000644000175000017500000002561714443010026015541 00000000000000/* * Copyright © 2009 Red Hat, Inc. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. * */ #ifndef _XI2_H_ #define _XI2_H_ #define XInput_2_0 7 /* DO NOT ADD TO THIS LIST. These are libXi-specific defines. See commit libXi-1.4.2-21-ge8531dd */ #define XI_2_Major 2 #define XI_2_Minor 4 /* Property event flags */ #define XIPropertyDeleted 0 #define XIPropertyCreated 1 #define XIPropertyModified 2 /* Property modes */ #define XIPropModeReplace 0 #define XIPropModePrepend 1 #define XIPropModeAppend 2 /* Special property type used for XIGetProperty */ #define XIAnyPropertyType 0L /* Enter/Leave and Focus In/Out modes */ #define XINotifyNormal 0 #define XINotifyGrab 1 #define XINotifyUngrab 2 #define XINotifyWhileGrabbed 3 #define XINotifyPassiveGrab 4 #define XINotifyPassiveUngrab 5 /* Enter/Leave and focus In/out detail */ #define XINotifyAncestor 0 #define XINotifyVirtual 1 #define XINotifyInferior 2 #define XINotifyNonlinear 3 #define XINotifyNonlinearVirtual 4 #define XINotifyPointer 5 #define XINotifyPointerRoot 6 #define XINotifyDetailNone 7 /* Grab modes */ #define XIGrabModeSync 0 #define XIGrabModeAsync 1 #define XIGrabModeTouch 2 /* Grab reply status codes */ #define XIGrabSuccess 0 #define XIAlreadyGrabbed 1 #define XIGrabInvalidTime 2 #define XIGrabNotViewable 3 #define XIGrabFrozen 4 /* Grab owner events values */ #define XIOwnerEvents True #define XINoOwnerEvents False /* Passive grab types */ #define XIGrabtypeButton 0 #define XIGrabtypeKeycode 1 #define XIGrabtypeEnter 2 #define XIGrabtypeFocusIn 3 #define XIGrabtypeTouchBegin 4 #define XIGrabtypeGesturePinchBegin 5 #define XIGrabtypeGestureSwipeBegin 6 /* Passive grab modifier */ #define XIAnyModifier (1U << 31) #define XIAnyButton 0 #define XIAnyKeycode 0 /* XIAllowEvents event-modes */ #define XIAsyncDevice 0 #define XISyncDevice 1 #define XIReplayDevice 2 #define XIAsyncPairedDevice 3 #define XIAsyncPair 4 #define XISyncPair 5 #define XIAcceptTouch 6 #define XIRejectTouch 7 /* DeviceChangedEvent change reasons */ #define XISlaveSwitch 1 #define XIDeviceChange 2 /* Hierarchy flags */ #define XIMasterAdded (1 << 0) #define XIMasterRemoved (1 << 1) #define XISlaveAdded (1 << 2) #define XISlaveRemoved (1 << 3) #define XISlaveAttached (1 << 4) #define XISlaveDetached (1 << 5) #define XIDeviceEnabled (1 << 6) #define XIDeviceDisabled (1 << 7) /* ChangeHierarchy constants */ #define XIAddMaster 1 #define XIRemoveMaster 2 #define XIAttachSlave 3 #define XIDetachSlave 4 #define XIAttachToMaster 1 #define XIFloating 2 /* Valuator modes */ #define XIModeRelative 0 #define XIModeAbsolute 1 /* Device types */ #define XIMasterPointer 1 #define XIMasterKeyboard 2 #define XISlavePointer 3 #define XISlaveKeyboard 4 #define XIFloatingSlave 5 /* Device classes: classes that are not identical to Xi 1.x classes must be * numbered starting from 8. */ #define XIKeyClass 0 #define XIButtonClass 1 #define XIValuatorClass 2 #define XIScrollClass 3 #define XITouchClass 8 #define XIGestureClass 9 /* Scroll class types */ #define XIScrollTypeVertical 1 #define XIScrollTypeHorizontal 2 /* Scroll class flags */ #define XIScrollFlagNoEmulation (1 << 0) #define XIScrollFlagPreferred (1 << 1) /* Device event flags (common) */ /* Device event flags (key events only) */ #define XIKeyRepeat (1 << 16) /* Device event flags (pointer events only) */ #define XIPointerEmulated (1 << 16) /* Device event flags (touch events only) */ #define XITouchPendingEnd (1 << 16) #define XITouchEmulatingPointer (1 << 17) /* Barrier event flags */ #define XIBarrierPointerReleased (1 << 0) #define XIBarrierDeviceIsGrabbed (1 << 1) /* Gesture pinch event flags */ #define XIGesturePinchEventCancelled (1 << 0) /* Gesture swipe event flags */ #define XIGestureSwipeEventCancelled (1 << 0) /* Touch modes */ #define XIDirectTouch 1 #define XIDependentTouch 2 /* XI2 event mask macros */ #define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7))) #define XIClearMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] &= ~(1 << ((event) & 7))) #define XIMaskIsSet(ptr, event) (((unsigned char*)(ptr))[(event)>>3] & (1 << ((event) & 7))) #define XIMaskLen(event) (((event) >> 3) + 1) /* Fake device ID's for event selection */ #define XIAllDevices 0 #define XIAllMasterDevices 1 /* Event types */ #define XI_DeviceChanged 1 #define XI_KeyPress 2 #define XI_KeyRelease 3 #define XI_ButtonPress 4 #define XI_ButtonRelease 5 #define XI_Motion 6 #define XI_Enter 7 #define XI_Leave 8 #define XI_FocusIn 9 #define XI_FocusOut 10 #define XI_HierarchyChanged 11 #define XI_PropertyEvent 12 #define XI_RawKeyPress 13 #define XI_RawKeyRelease 14 #define XI_RawButtonPress 15 #define XI_RawButtonRelease 16 #define XI_RawMotion 17 #define XI_TouchBegin 18 /* XI 2.2 */ #define XI_TouchUpdate 19 #define XI_TouchEnd 20 #define XI_TouchOwnership 21 #define XI_RawTouchBegin 22 #define XI_RawTouchUpdate 23 #define XI_RawTouchEnd 24 #define XI_BarrierHit 25 /* XI 2.3 */ #define XI_BarrierLeave 26 #define XI_GesturePinchBegin 27 /* XI 2.4 */ #define XI_GesturePinchUpdate 28 #define XI_GesturePinchEnd 29 #define XI_GestureSwipeBegin 30 #define XI_GestureSwipeUpdate 31 #define XI_GestureSwipeEnd 32 #define XI_LASTEVENT XI_GestureSwipeEnd /* NOTE: XI2LASTEVENT in xserver/include/inputstr.h must be the same value * as XI_LASTEVENT if the server is supposed to handle masks etc. for this * type of event. */ /* Event masks. * Note: the protocol spec defines a mask to be of (1 << type). Clients are * free to create masks by bitshifting instead of using these defines. */ #define XI_DeviceChangedMask (1 << XI_DeviceChanged) #define XI_KeyPressMask (1 << XI_KeyPress) #define XI_KeyReleaseMask (1 << XI_KeyRelease) #define XI_ButtonPressMask (1 << XI_ButtonPress) #define XI_ButtonReleaseMask (1 << XI_ButtonRelease) #define XI_MotionMask (1 << XI_Motion) #define XI_EnterMask (1 << XI_Enter) #define XI_LeaveMask (1 << XI_Leave) #define XI_FocusInMask (1 << XI_FocusIn) #define XI_FocusOutMask (1 << XI_FocusOut) #define XI_HierarchyChangedMask (1 << XI_HierarchyChanged) #define XI_PropertyEventMask (1 << XI_PropertyEvent) #define XI_RawKeyPressMask (1 << XI_RawKeyPress) #define XI_RawKeyReleaseMask (1 << XI_RawKeyRelease) #define XI_RawButtonPressMask (1 << XI_RawButtonPress) #define XI_RawButtonReleaseMask (1 << XI_RawButtonRelease) #define XI_RawMotionMask (1 << XI_RawMotion) #define XI_TouchBeginMask (1 << XI_TouchBegin) #define XI_TouchEndMask (1 << XI_TouchEnd) #define XI_TouchOwnershipChangedMask (1 << XI_TouchOwnership) #define XI_TouchUpdateMask (1 << XI_TouchUpdate) #define XI_RawTouchBeginMask (1 << XI_RawTouchBegin) #define XI_RawTouchEndMask (1 << XI_RawTouchEnd) #define XI_RawTouchUpdateMask (1 << XI_RawTouchUpdate) #define XI_BarrierHitMask (1 << XI_BarrierHit) #define XI_BarrierLeaveMask (1 << XI_BarrierLeave) #endif /* _XI2_H_ */ xorgproto-2023.2/include/X11/extensions/XKBproto.h0000644000175000017500000007076414443010026016652 00000000000000/************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _XKBPROTO_H_ #define _XKBPROTO_H_ #include #include #include #define Window CARD32 #define Atom CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define XkbPaddedSize(n) ((((unsigned int)(n)+3) >> 2) << 2) typedef struct _xkbUseExtension { CARD8 reqType; CARD8 xkbReqType; /* always X_KBUseExtension */ CARD16 length; CARD16 wantedMajor; CARD16 wantedMinor; } xkbUseExtensionReq; #define sz_xkbUseExtensionReq 8 typedef struct _xkbUseExtensionReply { BYTE type; /* X_Reply */ BOOL supported; CARD16 sequenceNumber; CARD32 length; CARD16 serverMajor; CARD16 serverMinor; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xkbUseExtensionReply; #define sz_xkbUseExtensionReply 32 typedef struct _xkbSelectEvents { CARD8 reqType; CARD8 xkbReqType; /* X_KBSelectEvents */ CARD16 length; CARD16 deviceSpec; CARD16 affectWhich; CARD16 clear; CARD16 selectAll; CARD16 affectMap; CARD16 map; } xkbSelectEventsReq; #define sz_xkbSelectEventsReq 16 typedef struct _xkbBell { CARD8 reqType; CARD8 xkbReqType; /* X_KBBell */ CARD16 length; CARD16 deviceSpec; CARD16 bellClass; CARD16 bellID; INT8 percent; BOOL forceSound; BOOL eventOnly; CARD8 pad1; INT16 pitch; INT16 duration; CARD16 pad2; Atom name; Window window; } xkbBellReq; #define sz_xkbBellReq 28 typedef struct _xkbGetState { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetState */ CARD16 length; CARD16 deviceSpec; CARD16 pad; } xkbGetStateReq; #define sz_xkbGetStateReq 8 typedef struct _xkbGetStateReply { BYTE type; BYTE deviceID; CARD16 sequenceNumber; CARD32 length; CARD8 mods; CARD8 baseMods; CARD8 latchedMods; CARD8 lockedMods; CARD8 group; CARD8 lockedGroup; INT16 baseGroup; INT16 latchedGroup; CARD8 compatState; CARD8 grabMods; CARD8 compatGrabMods; CARD8 lookupMods; CARD8 compatLookupMods; CARD8 pad1; CARD16 ptrBtnState; CARD16 pad2; CARD32 pad3; } xkbGetStateReply; #define sz_xkbGetStateReply 32 typedef struct _xkbLatchLockState { CARD8 reqType; CARD8 xkbReqType; /* always X_KBLatchLockState */ CARD16 length; CARD16 deviceSpec; CARD8 affectModLocks; CARD8 modLocks; BOOL lockGroup; CARD8 groupLock; CARD8 affectModLatches; CARD8 modLatches; CARD8 pad; BOOL latchGroup; INT16 groupLatch; } xkbLatchLockStateReq; #define sz_xkbLatchLockStateReq 16 typedef struct _xkbGetControls { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetControls */ CARD16 length; CARD16 deviceSpec; CARD16 pad; } xkbGetControlsReq; #define sz_xkbGetControlsReq 8 typedef struct _xkbGetControlsReply { BYTE type; /* X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD8 mkDfltBtn; CARD8 numGroups; CARD8 groupsWrap; CARD8 internalMods; CARD8 ignoreLockMods; CARD8 internalRealMods; CARD8 ignoreLockRealMods; CARD8 pad1; CARD16 internalVMods; CARD16 ignoreLockVMods; CARD16 repeatDelay; CARD16 repeatInterval; CARD16 slowKeysDelay; CARD16 debounceDelay; CARD16 mkDelay; CARD16 mkInterval; CARD16 mkTimeToMax; CARD16 mkMaxSpeed; INT16 mkCurve; CARD16 axOptions; CARD16 axTimeout; CARD16 axtOptsMask; CARD16 axtOptsValues; CARD16 pad2; CARD32 axtCtrlsMask; CARD32 axtCtrlsValues; CARD32 enabledCtrls; BYTE perKeyRepeat[XkbPerKeyBitArraySize]; } xkbGetControlsReply; #define sz_xkbGetControlsReply 92 typedef struct _xkbSetControls { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetControls */ CARD16 length; CARD16 deviceSpec; CARD8 affectInternalMods; CARD8 internalMods; CARD8 affectIgnoreLockMods; CARD8 ignoreLockMods; CARD16 affectInternalVMods; CARD16 internalVMods; CARD16 affectIgnoreLockVMods; CARD16 ignoreLockVMods; CARD8 mkDfltBtn; CARD8 groupsWrap; CARD16 axOptions; CARD16 pad1; CARD32 affectEnabledCtrls; CARD32 enabledCtrls; CARD32 changeCtrls; CARD16 repeatDelay; CARD16 repeatInterval; CARD16 slowKeysDelay; CARD16 debounceDelay; CARD16 mkDelay; CARD16 mkInterval; CARD16 mkTimeToMax; CARD16 mkMaxSpeed; INT16 mkCurve; CARD16 axTimeout; CARD32 axtCtrlsMask; CARD32 axtCtrlsValues; CARD16 axtOptsMask; CARD16 axtOptsValues; BYTE perKeyRepeat[XkbPerKeyBitArraySize]; } xkbSetControlsReq; #define sz_xkbSetControlsReq 100 typedef struct _xkbKTMapEntryWireDesc { BOOL active; CARD8 mask; CARD8 level; CARD8 realMods; CARD16 virtualMods; CARD16 pad; } xkbKTMapEntryWireDesc; #define sz_xkbKTMapEntryWireDesc 8 typedef struct _xkbKTSetMapEntryWireDesc { CARD8 level; CARD8 realMods; CARD16 virtualMods; } xkbKTSetMapEntryWireDesc; #define sz_xkbKTSetMapEntryWireDesc 4 typedef struct _xkbModsWireDesc { CARD8 mask; /* GetMap only */ CARD8 realMods; CARD16 virtualMods; } xkbModsWireDesc; #define sz_xkbModsWireDesc 4 typedef struct _xkbKeyTypeWireDesc { CARD8 mask; CARD8 realMods; CARD16 virtualMods; CARD8 numLevels; CARD8 nMapEntries; BOOL preserve; CARD8 pad; } xkbKeyTypeWireDesc; #define sz_xkbKeyTypeWireDesc 8 typedef struct _xkbSymMapWireDesc { CARD8 ktIndex[XkbNumKbdGroups]; CARD8 groupInfo; CARD8 width; CARD16 nSyms; } xkbSymMapWireDesc; #define sz_xkbSymMapWireDesc 8 typedef struct _xkbVModMapWireDesc { KeyCode key; CARD8 pad; CARD16 vmods; } xkbVModMapWireDesc; #define sz_xkbVModMapWireDesc 4 typedef struct _xkbBehaviorWireDesc { CARD8 key; CARD8 type; CARD8 data; CARD8 pad; } xkbBehaviorWireDesc; #define sz_xkbBehaviorWireDesc 4 typedef struct _xkbActionWireDesc { CARD8 type; CARD8 data[7]; } xkbActionWireDesc; #define sz_xkbActionWireDesc 8 typedef struct _xkbGetMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetMap */ CARD16 length; CARD16 deviceSpec; CARD16 full; CARD16 partial; CARD8 firstType; CARD8 nTypes; KeyCode firstKeySym; CARD8 nKeySyms; KeyCode firstKeyAct; CARD8 nKeyActs; KeyCode firstKeyBehavior; CARD8 nKeyBehaviors; CARD16 virtualMods; KeyCode firstKeyExplicit; CARD8 nKeyExplicit; KeyCode firstModMapKey; CARD8 nModMapKeys; KeyCode firstVModMapKey; CARD8 nVModMapKeys; CARD16 pad1; } xkbGetMapReq; #define sz_xkbGetMapReq 28 typedef struct _xkbGetMapReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD16 pad1; KeyCode minKeyCode; KeyCode maxKeyCode; CARD16 present; CARD8 firstType; CARD8 nTypes; CARD8 totalTypes; KeyCode firstKeySym; CARD16 totalSyms; CARD8 nKeySyms; KeyCode firstKeyAct; CARD16 totalActs; CARD8 nKeyActs; KeyCode firstKeyBehavior; CARD8 nKeyBehaviors; CARD8 totalKeyBehaviors; KeyCode firstKeyExplicit; CARD8 nKeyExplicit; CARD8 totalKeyExplicit; KeyCode firstModMapKey; CARD8 nModMapKeys; CARD8 totalModMapKeys; KeyCode firstVModMapKey; CARD8 nVModMapKeys; CARD8 totalVModMapKeys; CARD8 pad2; CARD16 virtualMods; } xkbGetMapReply; #define sz_xkbGetMapReply 40 #define XkbSetMapResizeTypes (1L<<0) #define XkbSetMapRecomputeActions (1L<<1) #define XkbSetMapAllFlags (0x3) typedef struct _xkbSetMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetMap */ CARD16 length; CARD16 deviceSpec; CARD16 present; CARD16 flags; KeyCode minKeyCode; KeyCode maxKeyCode; CARD8 firstType; CARD8 nTypes; KeyCode firstKeySym; CARD8 nKeySyms; CARD16 totalSyms; KeyCode firstKeyAct; CARD8 nKeyActs; CARD16 totalActs; KeyCode firstKeyBehavior; CARD8 nKeyBehaviors; CARD8 totalKeyBehaviors; KeyCode firstKeyExplicit; CARD8 nKeyExplicit; CARD8 totalKeyExplicit; KeyCode firstModMapKey; CARD8 nModMapKeys; CARD8 totalModMapKeys; KeyCode firstVModMapKey; CARD8 nVModMapKeys; CARD8 totalVModMapKeys; CARD16 virtualMods; } xkbSetMapReq; #define sz_xkbSetMapReq 36 typedef struct _xkbSymInterpretWireDesc { CARD32 sym; CARD8 mods; CARD8 match; CARD8 virtualMod; CARD8 flags; xkbActionWireDesc act; } xkbSymInterpretWireDesc; #define sz_xkbSymInterpretWireDesc 16 typedef struct _xkbGetCompatMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetCompatMap */ CARD16 length; CARD16 deviceSpec; CARD8 groups; BOOL getAllSI; CARD16 firstSI; CARD16 nSI; } xkbGetCompatMapReq; #define sz_xkbGetCompatMapReq 12 typedef struct _xkbGetCompatMapReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD8 groups; CARD8 pad1; CARD16 firstSI; CARD16 nSI; CARD16 nTotalSI; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xkbGetCompatMapReply; #define sz_xkbGetCompatMapReply 32 typedef struct _xkbSetCompatMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetCompatMap */ CARD16 length; CARD16 deviceSpec; CARD8 pad1; BOOL recomputeActions; BOOL truncateSI; CARD8 groups; CARD16 firstSI; CARD16 nSI; CARD16 pad2; } xkbSetCompatMapReq; #define sz_xkbSetCompatMapReq 16 typedef struct _xkbGetIndicatorState { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetIndicatorState */ CARD16 length; CARD16 deviceSpec; CARD16 pad1; } xkbGetIndicatorStateReq; #define sz_xkbGetIndicatorStateReq 8 typedef struct _xkbGetIndicatorStateReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD32 state; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xkbGetIndicatorStateReply; #define sz_xkbGetIndicatorStateReply 32 typedef struct _xkbGetIndicatorMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetIndicatorMap */ CARD16 length; CARD16 deviceSpec; CARD16 pad; CARD32 which; } xkbGetIndicatorMapReq; #define sz_xkbGetIndicatorMapReq 12 typedef struct _xkbGetIndicatorMapReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD32 which; CARD32 realIndicators; CARD8 nIndicators; CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xkbGetIndicatorMapReply; #define sz_xkbGetIndicatorMapReply 32 typedef struct _xkbIndicatorMapWireDesc { CARD8 flags; CARD8 whichGroups; CARD8 groups; CARD8 whichMods; CARD8 mods; CARD8 realMods; CARD16 virtualMods; CARD32 ctrls; } xkbIndicatorMapWireDesc; #define sz_xkbIndicatorMapWireDesc 12 typedef struct _xkbSetIndicatorMap { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetIndicatorMap */ CARD16 length; CARD16 deviceSpec; CARD16 pad1; CARD32 which; } xkbSetIndicatorMapReq; #define sz_xkbSetIndicatorMapReq 12 typedef struct _xkbGetNamedIndicator { CARD8 reqType; CARD8 xkbReqType; /* X_KBGetNamedIndicator */ CARD16 length; CARD16 deviceSpec; CARD16 ledClass; CARD16 ledID; CARD16 pad1; Atom indicator; } xkbGetNamedIndicatorReq; #define sz_xkbGetNamedIndicatorReq 16 typedef struct _xkbGetNamedIndicatorReply { BYTE type; BYTE deviceID; CARD16 sequenceNumber; CARD32 length; Atom indicator; BOOL found; BOOL on; BOOL realIndicator; CARD8 ndx; CARD8 flags; CARD8 whichGroups; CARD8 groups; CARD8 whichMods; CARD8 mods; CARD8 realMods; CARD16 virtualMods; CARD32 ctrls; BOOL supported; CARD8 pad1; CARD16 pad2; } xkbGetNamedIndicatorReply; #define sz_xkbGetNamedIndicatorReply 32 typedef struct _xkbSetNamedIndicator { CARD8 reqType; CARD8 xkbReqType; /* X_KBSetNamedIndicator */ CARD16 length; CARD16 deviceSpec; CARD16 ledClass; CARD16 ledID; CARD16 pad1; Atom indicator; BOOL setState; BOOL on; BOOL setMap; BOOL createMap; CARD8 pad2; CARD8 flags; CARD8 whichGroups; CARD8 groups; CARD8 whichMods; CARD8 realMods; CARD16 virtualMods; CARD32 ctrls; } xkbSetNamedIndicatorReq; #define sz_xkbSetNamedIndicatorReq 32 typedef struct _xkbGetNames { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetNames */ CARD16 length; CARD16 deviceSpec; CARD16 pad; CARD32 which; } xkbGetNamesReq; #define sz_xkbGetNamesReq 12 typedef struct _xkbGetNamesReply { BYTE type; BYTE deviceID; CARD16 sequenceNumber; CARD32 length; CARD32 which; KeyCode minKeyCode; KeyCode maxKeyCode; CARD8 nTypes; CARD8 groupNames; CARD16 virtualMods; KeyCode firstKey; CARD8 nKeys; CARD32 indicators; CARD8 nRadioGroups; CARD8 nKeyAliases; CARD16 nKTLevels; CARD32 pad3; } xkbGetNamesReply; #define sz_xkbGetNamesReply 32 typedef struct _xkbSetNames { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetNames */ CARD16 length; CARD16 deviceSpec; CARD16 virtualMods; CARD32 which; CARD8 firstType; CARD8 nTypes; CARD8 firstKTLevel; CARD8 nKTLevels; CARD32 indicators; CARD8 groupNames; CARD8 nRadioGroups; KeyCode firstKey; CARD8 nKeys; CARD8 nKeyAliases; CARD8 pad1; CARD16 totalKTLevelNames; } xkbSetNamesReq; #define sz_xkbSetNamesReq 28 typedef struct _xkbPointWireDesc { INT16 x; INT16 y; } xkbPointWireDesc; #define sz_xkbPointWireDesc 4 typedef struct _xkbOutlineWireDesc { CARD8 nPoints; CARD8 cornerRadius; CARD16 pad; } xkbOutlineWireDesc; #define sz_xkbOutlineWireDesc 4 typedef struct _xkbShapeWireDesc { Atom name; CARD8 nOutlines; CARD8 primaryNdx; CARD8 approxNdx; CARD8 pad; } xkbShapeWireDesc; #define sz_xkbShapeWireDesc 8 typedef struct _xkbSectionWireDesc { Atom name; INT16 top; INT16 left; CARD16 width; CARD16 height; INT16 angle; CARD8 priority; CARD8 nRows; CARD8 nDoodads; CARD8 nOverlays; CARD16 pad; } xkbSectionWireDesc; #define sz_xkbSectionWireDesc 20 typedef struct _xkbRowWireDesc { INT16 top; INT16 left; CARD8 nKeys; BOOL vertical; CARD16 pad; } xkbRowWireDesc; #define sz_xkbRowWireDesc 8 typedef struct _xkbKeyWireDesc { CARD8 name[XkbKeyNameLength] _X_NONSTRING; INT16 gap; CARD8 shapeNdx; CARD8 colorNdx; } xkbKeyWireDesc; #define sz_xkbKeyWireDesc 8 typedef struct _xkbOverlayWireDesc { Atom name; CARD8 nRows; CARD8 pad1; CARD16 pad2; } xkbOverlayWireDesc; #define sz_xkbOverlayWireDesc 8 typedef struct _xkbOverlayRowWireDesc { CARD8 rowUnder; CARD8 nKeys; CARD16 pad1; } xkbOverlayRowWireDesc; #define sz_xkbOverlayRowWireDesc 4 typedef struct _xkbOverlayKeyWireDesc { CARD8 over[XkbKeyNameLength] _X_NONSTRING; CARD8 under[XkbKeyNameLength] _X_NONSTRING; } xkbOverlayKeyWireDesc; #define sz_xkbOverlayKeyWireDesc 8 typedef struct _xkbShapeDoodadWireDesc { Atom name; CARD8 type; CARD8 priority; INT16 top; INT16 left; INT16 angle; CARD8 colorNdx; CARD8 shapeNdx; CARD16 pad1; CARD32 pad2; } xkbShapeDoodadWireDesc; #define sz_xkbShapeDoodadWireDesc 20 typedef struct _xkbTextDoodadWireDesc { Atom name; CARD8 type; CARD8 priority; INT16 top; INT16 left; INT16 angle; CARD16 width; CARD16 height; CARD8 colorNdx; CARD8 pad1; CARD16 pad2; } xkbTextDoodadWireDesc; #define sz_xkbTextDoodadWireDesc 20 typedef struct _xkbIndicatorDoodadWireDesc { Atom name; CARD8 type; CARD8 priority; INT16 top; INT16 left; INT16 angle; CARD8 shapeNdx; CARD8 onColorNdx; CARD8 offColorNdx; CARD8 pad1; CARD32 pad2; } xkbIndicatorDoodadWireDesc; #define sz_xkbIndicatorDoodadWireDesc 20 typedef struct _xkbLogoDoodadWireDesc { Atom name; CARD8 type; CARD8 priority; INT16 top; INT16 left; INT16 angle; CARD8 colorNdx; CARD8 shapeNdx; CARD16 pad1; CARD32 pad2; } xkbLogoDoodadWireDesc; #define sz_xkbLogoDoodadWireDesc 20 typedef struct _xkbAnyDoodadWireDesc { Atom name; CARD8 type; CARD8 priority; INT16 top; INT16 left; INT16 angle; CARD32 pad2; CARD32 pad3; } xkbAnyDoodadWireDesc; #define sz_xkbAnyDoodadWireDesc 20 typedef union _xkbDoodadWireDesc { xkbAnyDoodadWireDesc any; xkbShapeDoodadWireDesc shape; xkbTextDoodadWireDesc text; xkbIndicatorDoodadWireDesc indicator; xkbLogoDoodadWireDesc logo; } xkbDoodadWireDesc; #define sz_xkbDoodadWireDesc 20 typedef struct _xkbGetGeometry { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetGeometry */ CARD16 length; CARD16 deviceSpec; CARD16 pad; Atom name; } xkbGetGeometryReq; #define sz_xkbGetGeometryReq 12 typedef struct _xkbGetGeometryReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; Atom name; BOOL found; CARD8 pad; CARD16 widthMM; CARD16 heightMM; CARD16 nProperties; CARD16 nColors; CARD16 nShapes; CARD16 nSections; CARD16 nDoodads; CARD16 nKeyAliases; CARD8 baseColorNdx; CARD8 labelColorNdx; } xkbGetGeometryReply; #define sz_xkbGetGeometryReply 32 typedef struct _xkbSetGeometry { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetGeometry */ CARD16 length; CARD16 deviceSpec; CARD8 nShapes; CARD8 nSections; Atom name; CARD16 widthMM; CARD16 heightMM; CARD16 nProperties; CARD16 nColors; CARD16 nDoodads; CARD16 nKeyAliases; CARD8 baseColorNdx; CARD8 labelColorNdx; CARD16 pad; } xkbSetGeometryReq; #define sz_xkbSetGeometryReq 28 typedef struct _xkbPerClientFlags { CARD8 reqType; CARD8 xkbReqType;/* always X_KBPerClientFlags */ CARD16 length; CARD16 deviceSpec; CARD16 pad1; CARD32 change; CARD32 value; CARD32 ctrlsToChange; CARD32 autoCtrls; CARD32 autoCtrlValues; } xkbPerClientFlagsReq; #define sz_xkbPerClientFlagsReq 28 typedef struct _xkbPerClientFlagsReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD32 supported; CARD32 value; CARD32 autoCtrls; CARD32 autoCtrlValues; CARD32 pad1; CARD32 pad2; } xkbPerClientFlagsReply; #define sz_xkbPerClientFlagsReply 32 typedef struct _xkbListComponents { CARD8 reqType; CARD8 xkbReqType; /* always X_KBListComponents */ CARD16 length; CARD16 deviceSpec; CARD16 maxNames; } xkbListComponentsReq; #define sz_xkbListComponentsReq 8 typedef struct _xkbListComponentsReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD16 nKeymaps; CARD16 nKeycodes; CARD16 nTypes; CARD16 nCompatMaps; CARD16 nSymbols; CARD16 nGeometries; CARD16 extra; CARD16 pad1; CARD32 pad2; CARD32 pad3; } xkbListComponentsReply; #define sz_xkbListComponentsReply 32 typedef struct _xkbGetKbdByName { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetKbdByName */ CARD16 length; CARD16 deviceSpec; CARD16 need; /* combination of XkbGBN_* */ CARD16 want; /* combination of XkbGBN_* */ BOOL load; CARD8 pad; } xkbGetKbdByNameReq; #define sz_xkbGetKbdByNameReq 12 typedef struct _xkbGetKbdByNameReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; KeyCode minKeyCode; KeyCode maxKeyCode; BOOL loaded; BOOL newKeyboard; CARD16 found; /* combination of XkbGBN_* */ CARD16 reported; /* combination of XkbAllComponents */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xkbGetKbdByNameReply; #define sz_xkbGetKbdByNameReply 32 typedef struct _xkbDeviceLedsWireDesc { CARD16 ledClass; CARD16 ledID; CARD32 namesPresent; CARD32 mapsPresent; CARD32 physIndicators; CARD32 state; } xkbDeviceLedsWireDesc; #define sz_xkbDeviceLedsWireDesc 20 typedef struct _xkbGetDeviceInfo { CARD8 reqType; CARD8 xkbReqType; /* always X_KBGetDeviceInfo */ CARD16 length; CARD16 deviceSpec; CARD16 wanted; BOOL allBtns; CARD8 firstBtn; CARD8 nBtns; CARD8 pad; CARD16 ledClass; CARD16 ledID; } xkbGetDeviceInfoReq; #define sz_xkbGetDeviceInfoReq 16 typedef struct _xkbGetDeviceInfoReply { CARD8 type; /* always X_Reply */ CARD8 deviceID; CARD16 sequenceNumber; CARD32 length; CARD16 present; CARD16 supported; CARD16 unsupported; CARD16 nDeviceLedFBs; CARD8 firstBtnWanted; CARD8 nBtnsWanted; CARD8 firstBtnRtrn; CARD8 nBtnsRtrn; CARD8 totalBtns; BOOL hasOwnState; CARD16 dfltKbdFB; CARD16 dfltLedFB; CARD16 pad; Atom devType; } xkbGetDeviceInfoReply; #define sz_xkbGetDeviceInfoReply 32 typedef struct _xkbSetDeviceInfo { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetDeviceInfo */ CARD16 length; CARD16 deviceSpec; CARD8 firstBtn; CARD8 nBtns; CARD16 change; CARD16 nDeviceLedFBs; } xkbSetDeviceInfoReq; #define sz_xkbSetDeviceInfoReq 12 typedef struct _xkbSetDebuggingFlags { CARD8 reqType; CARD8 xkbReqType; /* always X_KBSetDebuggingFlags */ CARD16 length; CARD16 msgLength; CARD16 pad; CARD32 affectFlags; CARD32 flags; CARD32 affectCtrls; CARD32 ctrls; } xkbSetDebuggingFlagsReq; #define sz_xkbSetDebuggingFlagsReq 24 typedef struct _xkbSetDebuggingFlagsReply { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 currentFlags; CARD32 currentCtrls; CARD32 supportedFlags; CARD32 supportedCtrls; CARD32 pad1; CARD32 pad2; } xkbSetDebuggingFlagsReply; #define sz_xkbSetDebuggingFlagsReply 32 /* * X KEYBOARD EXTENSION EVENT STRUCTURES */ typedef struct _xkbAnyEvent { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xkbAnyEvent; #define sz_xkbAnyEvent 32 typedef struct _xkbNewKeyboardNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 oldDeviceID; KeyCode minKeyCode; KeyCode maxKeyCode; KeyCode oldMinKeyCode; KeyCode oldMaxKeyCode; CARD8 requestMajor; CARD8 requestMinor; CARD16 changed; CARD8 detail; CARD8 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xkbNewKeyboardNotify; #define sz_xkbNewKeyboardNotify 32 typedef struct _xkbMapNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 ptrBtnActions; CARD16 changed; KeyCode minKeyCode; KeyCode maxKeyCode; CARD8 firstType; CARD8 nTypes; KeyCode firstKeySym; CARD8 nKeySyms; KeyCode firstKeyAct; CARD8 nKeyActs; KeyCode firstKeyBehavior; CARD8 nKeyBehaviors; KeyCode firstKeyExplicit; CARD8 nKeyExplicit; KeyCode firstModMapKey; CARD8 nModMapKeys; KeyCode firstVModMapKey; CARD8 nVModMapKeys; CARD16 virtualMods; CARD16 pad1; } xkbMapNotify; #define sz_xkbMapNotify 32 typedef struct _xkbStateNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 mods; CARD8 baseMods; CARD8 latchedMods; CARD8 lockedMods; CARD8 group; INT16 baseGroup; INT16 latchedGroup; CARD8 lockedGroup; CARD8 compatState; CARD8 grabMods; CARD8 compatGrabMods; CARD8 lookupMods; CARD8 compatLookupMods; CARD16 ptrBtnState; CARD16 changed; KeyCode keycode; CARD8 eventType; CARD8 requestMajor; CARD8 requestMinor; } xkbStateNotify; #define sz_xkbStateNotify 32 typedef struct _xkbControlsNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 numGroups; CARD16 pad1; CARD32 changedControls; CARD32 enabledControls; CARD32 enabledControlChanges; KeyCode keycode; CARD8 eventType; CARD8 requestMajor; CARD8 requestMinor; CARD32 pad2; } xkbControlsNotify; #define sz_xkbControlsNotify 32 typedef struct _xkbIndicatorNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 pad1; CARD16 pad2; CARD32 state; CARD32 changed; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xkbIndicatorNotify; #define sz_xkbIndicatorNotify 32 typedef struct _xkbNamesNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 pad1; CARD16 changed; CARD8 firstType; CARD8 nTypes; CARD8 firstLevelName; CARD8 nLevelNames; CARD8 pad2; CARD8 nRadioGroups; CARD8 nAliases; CARD8 changedGroupNames; CARD16 changedVirtualMods; CARD8 firstKey; CARD8 nKeys; CARD32 changedIndicators; CARD32 pad3; } xkbNamesNotify; #define sz_xkbNamesNotify 32 typedef struct _xkbCompatMapNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 changedGroups; CARD16 firstSI; CARD16 nSI; CARD16 nTotalSI; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xkbCompatMapNotify; #define sz_xkbCompatMapNotify 32 typedef struct _xkbBellNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 bellClass; CARD8 bellID; CARD8 percent; CARD16 pitch; CARD16 duration; Atom name; Window window; BOOL eventOnly; CARD8 pad1; CARD16 pad2; CARD32 pad3; } xkbBellNotify; #define sz_xkbBellNotify 32 typedef struct _xkbActionMessage { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; KeyCode keycode; BOOL press; BOOL keyEventFollows; CARD8 mods; CARD8 group; CARD8 message[8]; CARD16 pad1; CARD32 pad2; CARD32 pad3; } xkbActionMessage; #define sz_xkbActionMessage 32 typedef struct _xkbAccessXNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; KeyCode keycode; CARD16 detail; CARD16 slowKeysDelay; CARD16 debounceDelay; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xkbAccessXNotify; #define sz_xkbAccessXNotify 32 typedef struct _xkbExtensionDeviceNotify { BYTE type; BYTE xkbType; CARD16 sequenceNumber; Time time; CARD8 deviceID; CARD8 pad1; CARD16 reason; CARD16 ledClass; CARD16 ledID; CARD32 ledsDefined; CARD32 ledState; CARD8 firstBtn; CARD8 nBtns; CARD16 supported; CARD16 unsupported; CARD16 pad3; } xkbExtensionDeviceNotify; #define sz_xkbExtensionDeviceNotify 32 typedef struct _xkbEvent { union { xkbAnyEvent any; xkbNewKeyboardNotify new_kbd; xkbMapNotify map; xkbStateNotify state; xkbControlsNotify ctrls; xkbIndicatorNotify indicators; xkbNamesNotify names; xkbCompatMapNotify compat; xkbBellNotify bell; xkbActionMessage message; xkbAccessXNotify accessx; xkbExtensionDeviceNotify device; } u; } xkbEvent; #define sz_xkbEvent 32 #undef Window #undef Atom #undef Time #undef KeyCode #undef KeySym #endif /* _XKBPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/panoramiXproto.h0000644000175000017500000001254114443010026020151 00000000000000/***************************************************************** Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts. 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. 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 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. ******************************************************************/ /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */ #ifndef _PANORAMIXPROTO_H_ #define _PANORAMIXPROTO_H_ #define PANORAMIX_MAJOR_VERSION 1 /* current version number */ #define PANORAMIX_MINOR_VERSION 1 #define PANORAMIX_PROTOCOL_NAME "XINERAMA" #define X_PanoramiXQueryVersion 0 #define X_PanoramiXGetState 1 #define X_PanoramiXGetScreenCount 2 #define X_PanoramiXGetScreenSize 3 #define X_XineramaIsActive 4 #define X_XineramaQueryScreens 5 typedef struct _PanoramiXQueryVersion { CARD8 reqType; /* always PanoramiXReqCode */ CARD8 panoramiXReqType; /* always X_PanoramiXQueryVersion */ CARD16 length; CARD8 clientMajor; CARD8 clientMinor; CARD16 unused; } xPanoramiXQueryVersionReq; #define sz_xPanoramiXQueryVersionReq 8 typedef struct { CARD8 type; /* must be X_Reply */ CARD8 pad1; /* unused */ CARD16 sequenceNumber; /* last sequence number */ CARD32 length; /* 0 */ CARD16 majorVersion; CARD16 minorVersion; CARD32 pad2; /* unused */ CARD32 pad3; /* unused */ CARD32 pad4; /* unused */ CARD32 pad5; /* unused */ CARD32 pad6; /* unused */ } xPanoramiXQueryVersionReply; #define sz_xPanoramiXQueryVersionReply 32 typedef struct _PanoramiXGetState { CARD8 reqType; /* always PanoramiXReqCode */ CARD8 panoramiXReqType; /* always X_PanoramiXGetState */ CARD16 length; CARD32 window; } xPanoramiXGetStateReq; #define sz_xPanoramiXGetStateReq 8 typedef struct { BYTE type; BYTE state; CARD16 sequenceNumber; CARD32 length; CARD32 window; CARD32 pad1; /* unused */ CARD32 pad2; /* unused */ CARD32 pad3; /* unused */ CARD32 pad4; /* unused */ CARD32 pad5; /* unused */ } xPanoramiXGetStateReply; #define sz_panoramiXGetStateReply 32 typedef struct _PanoramiXGetScreenCount { CARD8 reqType; /* always PanoramiXReqCode */ CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */ CARD16 length; CARD32 window; } xPanoramiXGetScreenCountReq; #define sz_xPanoramiXGetScreenCountReq 8 typedef struct { BYTE type; BYTE ScreenCount; CARD16 sequenceNumber; CARD32 length; CARD32 window; CARD32 pad1; /* unused */ CARD32 pad2; /* unused */ CARD32 pad3; /* unused */ CARD32 pad4; /* unused */ CARD32 pad5; /* unused */ } xPanoramiXGetScreenCountReply; #define sz_panoramiXGetScreenCountReply 32 typedef struct _PanoramiXGetScreenSize { CARD8 reqType; /* always PanoramiXReqCode */ CARD8 panoramiXReqType; /* always X_PanoramiXGetState */ CARD16 length; CARD32 window; CARD32 screen; } xPanoramiXGetScreenSizeReq; #define sz_xPanoramiXGetScreenSizeReq 12 typedef struct { BYTE type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 width; CARD32 height; CARD32 window; CARD32 screen; CARD32 pad2; /* unused */ CARD32 pad3; /* unused */ } xPanoramiXGetScreenSizeReply; #define sz_panoramiXGetScreenSizeReply 32 /************ Alternate protocol ******************/ typedef struct { CARD8 reqType; CARD8 panoramiXReqType; CARD16 length; } xXineramaIsActiveReq; #define sz_xXineramaIsActiveReq 4 typedef struct { BYTE type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 state; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXineramaIsActiveReply; #define sz_XineramaIsActiveReply 32 typedef struct { CARD8 reqType; CARD8 panoramiXReqType; CARD16 length; } xXineramaQueryScreensReq; #define sz_xXineramaQueryScreensReq 4 typedef struct { BYTE type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 number; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXineramaQueryScreensReply; #define sz_XineramaQueryScreensReply 32 typedef struct { INT16 x_org; INT16 y_org; CARD16 width; CARD16 height; } xXineramaScreenInfo; #define sz_XineramaScreenInfo 8 #endif xorgproto-2023.2/include/X11/extensions/xtraplibp.h0000644000175000017500000001423014443010026017131 00000000000000/* $XFree86$ */ #ifndef __XTRAPLIBP__ #define __XTRAPLIBP__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991, 1994 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This header file contains the function prototypes for client/toolkit * routines sorted by module (globally defined routines *only*). */ #include #include _XFUNCPROTOBEGIN /* XEConTxt.c */ XETC *XECreateTC (Display *dpy , CARD32 valuemask , XETCValues *value ); int XEChangeTC (XETC *tc , CARD32 mask , XETCValues *values ); void XEFreeTC (XETC *tc ); int XETrapSetMaxPacket (XETC *tc , Bool set_flag , CARD16 size ); int XETrapSetCommandKey (XETC *tc , Bool set_flag , KeySym cmd_key , Bool mod_flag ); int XETrapSetTimestamps (XETC *tc , Bool set_flag , Bool delta_flag ); int XETrapSetWinXY (XETC *tc , Bool set_flag ); int XETrapSetCursor (XETC *tc , Bool set_flag ); int XETrapSetXInput (XETC *tc , Bool set_flag ); int XETrapSetColorReplies (XETC *tc , Bool set_flag ); int XETrapSetGrabServer (XETC *tc , Bool set_flag ); int XETrapSetStatistics (XETC *tc , Bool set_flag ); int XETrapSetRequests (XETC *tc , Bool set_flag , ReqFlags requests ); int XETrapSetEvents (XETC *tc , Bool set_flag , EventFlags events ); Bool XESetCmdGateState (XETC *tc , CARD8 type, Bool *gate_closed , CARD8 *next_key , Bool *key_ignore ); /* XERqsts.c */ int XEFlushConfig (XETC *tc ); int XEResetRequest (XETC *tc ); int XEGetVersionRequest (XETC *tc , XETrapGetVersRep *ret ); int XEGetLastInpTimeRequest (XETC *tc , XETrapGetLastInpTimeRep *ret ); int XEGetAvailableRequest (XETC *tc , XETrapGetAvailRep *ret ); int XEStartTrapRequest (XETC *tc ); int XEStopTrapRequest (XETC *tc ); int XESimulateXEventRequest (XETC *tc , CARD8 type , CARD8 detail , CARD16 x , CARD16 y , CARD8 screen ); int XEGetCurrentRequest (XETC *tc , XETrapGetCurRep *ret ); int XEGetStatisticsRequest (XETC *tc , XETrapGetStatsRep *ret ); /* XECallBcks.c */ int XEAddRequestCB (XETC *tc , CARD8 req , void_function func , BYTE *data ); int XEAddRequestCBs (XETC *tc , ReqFlags req_flags , void_function func , BYTE *data ); int XEAddEventCB (XETC *tc , CARD8 evt , void_function func , BYTE *data ); int XEAddEventCBs (XETC *tc , EventFlags evt_flags , void_function func , BYTE *data ); /* The following seem to never be used. Perhaps they should be removed */ void XERemoveRequestCB (XETC *tc, CARD8 req); void XERemoveRequestCBs (XETC *tc, ReqFlags req_flags); void XERemoveAllRequestCBs (XETC *tc); void XERemoveEventCB (XETC *tc, CARD8 evt); void XERemoveEventCBs (XETC *tc, EventFlags evt_flags); void XERemoveAllEventCBs (XETC *tc); /* XEDsptch.c */ Boolean XETrapDispatchXLib (XETrapDataEvent *event , XETC *tc); /* XEWrappers.c */ Boolean XETrapDispatchEvent (XEvent *pevent , XETC *tc ); XtInputMask XETrapAppPending (XtAppContext app); void XETrapAppMainLoop (XtAppContext app , XETC *tc ); int XETrapAppWhileLoop (XtAppContext app , XETC *tc , Bool *done ); int XETrapWaitForSomething (XtAppContext app ); Boolean (*XETrapGetEventHandler(XETC *tc, CARD32 id))(XETrapDataEvent *event, XETC *tc); Boolean (*XETrapSetEventHandler(XETC *tc, CARD32 id, Boolean (*pfunc)(XETrapDataEvent *event, XETC *tc))) (XETrapDataEvent *event, XETC *tc); /* XEPrInfo.c */ void XEPrintRelease (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintTkRelease ( FILE *ofp, XETC *tc); void XEPrintPlatform (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintAvailFlags (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintAvailPktSz (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintStateFlags (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintMajOpcode (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintCurXY (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintTkFlags (FILE *ofp , XETC *tc ); void XEPrintLastTime (FILE *ofp , XETC *tc ); void XEPrintCfgFlags (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintRequests (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintEvents (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintCurPktSz (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintCmdKey (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintEvtStats (FILE *ofp , XETrapGetStatsRep *pstats , XETC *tc); void XEPrintReqStats (FILE *ofp , XETrapGetStatsRep *pstats , XETC *tc); void XEPrintAvail (FILE *ofp , XETrapGetAvailRep *pavail ); void XEPrintTkState (FILE *ofp , XETC *tc ); void XEPrintCurrent (FILE *ofp , XETrapGetCurRep *pcur ); void XEPrintStatistics (FILE *ofp , XETrapGetStatsRep *pstats, XETC *tc ); /* XEStrMap.c */ INT16 XEEventStringToID (char *string ); INT16 XERequestStringToID (char *string ); CARD32 XEPlatformStringToID (char *string ); char *XEEventIDToString (CARD8 id , XETC *tc); char *XERequestIDToExtString (register CARD8 id , XETC *tc); char *XERequestIDToString (CARD8 id , XETC *tc); char *XEPlatformIDToString (CARD32 id ); /* XETrapInit.c */ Bool XETrapQueryExtension (Display *dpy,INT32 *event_base_return, INT32 *error_base_return, INT32 *opcode_return); _XFUNCPROTOEND #endif /* __XTRAPLIBP__ */ xorgproto-2023.2/include/X11/extensions/ag.h0000644000175000017500000000325114443010026015514 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _AG_H_ #define _AG_H_ #define XAGNAME "XC-APPGROUP" #define XAG_MAJOR_VERSION 1 /* current version numbers */ #define XAG_MINOR_VERSION 0 #define XagWindowTypeX11 0 #define XagWindowTypeMacintosh 1 #define XagWindowTypeWin32 2 #define XagWindowTypeWin16 3 #define XagBadAppGroup 0 #define XagNumberErrors (XagBadAppGroup + 1) #define XagNsingleScreen 7 #define XagNdefaultRoot 1 #define XagNrootVisual 2 #define XagNdefaultColormap 3 #define XagNblackPixel 4 #define XagNwhitePixel 5 #define XagNappGroupLeader 6 #endif /* _AG_H_ */ xorgproto-2023.2/include/X11/extensions/composite.h0000644000175000017500000000604514443010026017133 00000000000000/* * Copyright (c) 2006, Oracle and/or its affiliates. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. */ /* * Copyright © 2003 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _COMPOSITE_H_ #define _COMPOSITE_H_ #include #define COMPOSITE_NAME "Composite" #define COMPOSITE_MAJOR 0 #define COMPOSITE_MINOR 4 #define CompositeRedirectAutomatic 0 #define CompositeRedirectManual 1 #define X_CompositeQueryVersion 0 #define X_CompositeRedirectWindow 1 #define X_CompositeRedirectSubwindows 2 #define X_CompositeUnredirectWindow 3 #define X_CompositeUnredirectSubwindows 4 #define X_CompositeCreateRegionFromBorderClip 5 #define X_CompositeNameWindowPixmap 6 #define X_CompositeGetOverlayWindow 7 #define X_CompositeReleaseOverlayWindow 8 #define CompositeNumberRequests (X_CompositeReleaseOverlayWindow + 1) #define CompositeNumberEvents 0 #endif /* _COMPOSITE_H_ */ xorgproto-2023.2/include/X11/extensions/EVIproto.h0000644000175000017500000000567614443010026016651 00000000000000/************************************************************ Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _EVIPROTO_H_ #define _EVIPROTO_H_ #include #define X_EVIQueryVersion 0 #define X_EVIGetVisualInfo 1 #define VisualID CARD32 typedef CARD32 VisualID32; #define sz_VisualID32 4 typedef struct _xExtendedVisualInfo { VisualID core_visual_id; INT8 screen; INT8 level; CARD8 transparency_type; CARD8 pad0; CARD32 transparency_value; CARD8 min_hw_colormaps; CARD8 max_hw_colormaps; CARD16 num_colormap_conflicts; } xExtendedVisualInfo; #define sz_xExtendedVisualInfo 16 typedef struct _XEVIQueryVersion { CARD8 reqType; /* always XEVIReqCode */ CARD8 xeviReqType; /* always X_EVIQueryVersion */ CARD16 length; } xEVIQueryVersionReq; #define sz_xEVIQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of EVI protocol */ CARD16 minorVersion; /* minor version of EVI protocol */ CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xEVIQueryVersionReply; #define sz_xEVIQueryVersionReply 32 typedef struct _XEVIGetVisualInfoReq { CARD8 reqType; /* always XEVIReqCode */ CARD8 xeviReqType; /* always X_EVIGetVisualInfo */ CARD16 length; CARD32 n_visual; } xEVIGetVisualInfoReq; #define sz_xEVIGetVisualInfoReq 8 typedef struct _XEVIGetVisualInfoReply { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 n_info; CARD32 n_conflicts; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xEVIGetVisualInfoReply; #define sz_xEVIGetVisualInfoReply 32 #undef VisualID #endif /* _EVIPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xcmiscstr.h0000644000175000017500000000027114443010026017143 00000000000000#warning "xcmiscstr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/XvMCproto.h0000644000175000017500000001057114443010026017031 00000000000000#ifndef _XVMCPROTO_H_ #define _XVMCPROTO_H_ #define xvmc_QueryVersion 0 #define xvmc_ListSurfaceTypes 1 #define xvmc_CreateContext 2 #define xvmc_DestroyContext 3 #define xvmc_CreateSurface 4 #define xvmc_DestroySurface 5 #define xvmc_CreateSubpicture 6 #define xvmc_DestroySubpicture 7 #define xvmc_ListSubpictureTypes 8 #define xvmc_GetDRInfo 9 #define xvmc_LastRequest xvmc_GetDRInfo #define xvmcNumRequest (xvmc_LastRequest + 1) typedef struct { CARD32 surface_type_id; CARD16 chroma_format; CARD16 pad0; CARD16 max_width; CARD16 max_height; CARD16 subpicture_max_width; CARD16 subpicture_max_height; CARD32 mc_type; CARD32 flags; } xvmcSurfaceInfo; #define sz_xvmcSurfaceInfo 24 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; } xvmcQueryVersionReq; #define sz_xvmcQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 major; CARD32 minor; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; } xvmcQueryVersionReply; #define sz_xvmcQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 port; } xvmcListSurfaceTypesReq; #define sz_xvmcListSurfaceTypesReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 num; CARD32 padl3; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; } xvmcListSurfaceTypesReply; #define sz_xvmcListSurfaceTypesReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 context_id; CARD32 port; CARD32 surface_type_id; CARD16 width; CARD16 height; CARD32 flags; } xvmcCreateContextReq; #define sz_xvmcCreateContextReq 24 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD16 width_actual; CARD16 height_actual; CARD32 flags_return; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; } xvmcCreateContextReply; #define sz_xvmcCreateContextReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 context_id; } xvmcDestroyContextReq; #define sz_xvmcDestroyContextReq 8 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 surface_id; CARD32 context_id; } xvmcCreateSurfaceReq; #define sz_xvmcCreateSurfaceReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 padl2; CARD32 padl3; CARD32 padl4; CARD32 padl5; CARD32 padl6; CARD32 padl7; } xvmcCreateSurfaceReply; #define sz_xvmcCreateSurfaceReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 surface_id; } xvmcDestroySurfaceReq; #define sz_xvmcDestroySurfaceReq 8 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 subpicture_id; CARD32 context_id; CARD32 xvimage_id; CARD16 width; CARD16 height; } xvmcCreateSubpictureReq; #define sz_xvmcCreateSubpictureReq 20 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD16 width_actual; CARD16 height_actual; CARD16 num_palette_entries; CARD16 entry_bytes; CARD8 component_order[4]; CARD32 padl5; CARD32 padl6; CARD32 padl7; } xvmcCreateSubpictureReply; #define sz_xvmcCreateSubpictureReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 subpicture_id; } xvmcDestroySubpictureReq; #define sz_xvmcDestroySubpictureReq 8 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 port; CARD32 surface_type_id; } xvmcListSubpictureTypesReq; #define sz_xvmcListSubpictureTypesReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 num; CARD32 padl2; CARD32 padl3; CARD32 padl4; CARD32 padl5; CARD32 padl6; } xvmcListSubpictureTypesReply; #define sz_xvmcListSubpictureTypesReply 32 typedef struct { CARD8 reqType; CARD8 xvmcReqType; CARD16 length; CARD32 port; CARD32 shmKey; CARD32 magic; } xvmcGetDRInfoReq; #define sz_xvmcGetDRInfoReq 16 typedef struct { BYTE type; /* X_Reply */ BYTE padb1; CARD16 sequenceNumber; CARD32 length; CARD32 major; CARD32 minor; CARD32 patchLevel; CARD32 nameLen; CARD32 busIDLen; CARD32 isLocal; } xvmcGetDRInfoReply; #define sz_xvmcGetDRInfoReply 32 #endif xorgproto-2023.2/include/X11/extensions/xwaylandproto.h0000644000175000017500000000377414443010026020052 00000000000000/* * Copyright © 2022 Red Hat, Inc. * * 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. */ #ifndef _XWAYLAND_PROTO_H_ #define _XWAYLAND_PROTO_H_ #include #define XWAYLAND_EXTENSION_NAME "XWAYLAND" #define XWAYLAND_EXTENSION_MAJOR 1 #define XWAYLAND_EXTENSION_MINOR 0 /* Request opcodes */ #define X_XwlQueryVersion 0 #define XwlNumberRequests 1 #define XwlNumberErrors 0 #define XwlNumberEvents 0 typedef struct { CARD8 reqType; CARD8 xwlReqType; CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xXwlQueryVersionReq; #define sz_xXwlQueryVersionReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXwlQueryVersionReply; #define sz_xXwlQueryVersionReply 32 #endif xorgproto-2023.2/include/X11/extensions/meson.build0000644000175000017500000000453414443010026017123 00000000000000install_headers( 'ag.h', 'agproto.h', 'applewmconst.h', 'applewmproto.h', 'bigreqsproto.h', 'bigreqstr.h', 'composite.h', 'compositeproto.h', 'cup.h', 'cupproto.h', 'damageproto.h', 'damagewire.h', 'dbe.h', 'dbeproto.h', 'dmx.h', 'dmxproto.h', 'dpmsconst.h', 'dpmsproto.h', 'dri2proto.h', 'dri2tokens.h', 'dri3proto.h', 'EVI.h', 'EVIproto.h', 'ge.h', 'geproto.h', 'lbx.h', 'lbxproto.h', 'mitmiscconst.h', 'mitmiscproto.h', 'multibufconst.h', 'multibufproto.h', 'panoramiXproto.h', 'presentproto.h', 'presenttokens.h', 'randr.h', 'randrproto.h', 'recordconst.h', 'recordproto.h', 'recordstr.h', 'render.h', 'renderproto.h', 'saver.h', 'saverproto.h', 'secur.h', 'securproto.h', 'shapeconst.h', 'shapeproto.h', 'shapestr.h', 'shm.h', 'shmproto.h', 'shmstr.h', 'syncconst.h', 'syncproto.h', 'syncstr.h', 'xcmiscproto.h', 'xcmiscstr.h', 'xf86bigfont.h', 'xf86bigfproto.h', 'xf86bigfstr.h', 'xf86dga1const.h', 'xf86dga1proto.h', 'xf86dga1str.h', 'xf86dgaconst.h', 'xf86dga.h', 'xf86dgaproto.h', 'xf86dgastr.h', 'xf86vm.h', 'xf86vmproto.h', 'xf86vmstr.h', 'xfixesproto.h', 'xfixeswire.h', 'XI2.h', 'XI2proto.h', 'XI.h', 'XIproto.h', 'XKB.h', 'XKBproto.h', 'XKBsrv.h', 'XKBstr.h', 'XResproto.h', 'xtestconst.h', 'xtestext1const.h', 'xtestext1proto.h', 'xtestproto.h', 'Xv.h', 'XvMC.h', 'XvMCproto.h', 'Xvproto.h', 'xwaylandproto.h', subdir : 'X11/extensions' ) if get_option('legacy') == true install_headers( 'evieproto.h', 'fontcache.h', 'fontcacheP.h', 'fontcachstr.h', 'lgewire.h', 'Print.h', 'Printstr.h', 'vldXvMC.h', 'windowswm.h', 'windowswmstr.h', 'xcalibrateproto.h', 'xcalibratewire.h', 'xtrapbits.h', 'xtrapddmi.h', 'xtrapdi.h', 'xtrapemacros.h', 'xtraplib.h', 'xtraplibp.h', 'xtrapproto.h', 'Xeviestr.h', 'xf86misc.h', 'xf86mscstr.h', 'xf86rush.h', 'xf86rushstr.h', 'XKBgeom.h', subdir : 'X11/extensions' ) endif xorgproto-2023.2/include/X11/extensions/xcmiscproto.h0000644000175000017500000000576114443010026017507 00000000000000/* Copyright 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _XCMISCPROTO_H_ #define _XCMISCPROTO_H_ #define X_XCMiscGetVersion 0 #define X_XCMiscGetXIDRange 1 #define X_XCMiscGetXIDList 2 #define XCMiscNumberEvents 0 #define XCMiscNumberErrors 0 #define XCMiscMajorVersion 1 #define XCMiscMinorVersion 1 #define XCMiscExtensionName "XC-MISC" typedef struct { CARD8 reqType; /* always XCMiscCode */ CARD8 miscReqType; /* always X_XCMiscGetVersion */ CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xXCMiscGetVersionReq; #define sz_xXCMiscGetVersionReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXCMiscGetVersionReply; #define sz_xXCMiscGetVersionReply 32 typedef struct { CARD8 reqType; /* always XCMiscCode */ CARD8 miscReqType; /* always X_XCMiscGetXIDRange */ CARD16 length; } xXCMiscGetXIDRangeReq; #define sz_xXCMiscGetXIDRangeReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 start_id; CARD32 count; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xXCMiscGetXIDRangeReply; #define sz_xXCMiscGetXIDRangeReply 32 typedef struct { CARD8 reqType; /* always XCMiscCode */ CARD8 miscReqType; /* always X_XCMiscGetXIDList */ CARD16 length; CARD32 count; /* number of IDs requested */ } xXCMiscGetXIDListReq; #define sz_xXCMiscGetXIDListReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 count; /* number of IDs requested */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXCMiscGetXIDListReply; #define sz_xXCMiscGetXIDListReply 32 #endif /* _XCMISCPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xfixeswire.h0000644000175000017500000001344414443010026017327 00000000000000/* * Copyright (c) 2006, Oracle and/or its affiliates. * Copyright 2010 Red Hat, Inc. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. */ /* * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * * 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _XFIXESWIRE_H_ #define _XFIXESWIRE_H_ #define XFIXES_NAME "XFIXES" #define XFIXES_MAJOR 6 #define XFIXES_MINOR 0 /*************** Version 1 ******************/ #define X_XFixesQueryVersion 0 #define X_XFixesChangeSaveSet 1 #define X_XFixesSelectSelectionInput 2 #define X_XFixesSelectCursorInput 3 #define X_XFixesGetCursorImage 4 /*************** Version 2 ******************/ #define X_XFixesCreateRegion 5 #define X_XFixesCreateRegionFromBitmap 6 #define X_XFixesCreateRegionFromWindow 7 #define X_XFixesCreateRegionFromGC 8 #define X_XFixesCreateRegionFromPicture 9 #define X_XFixesDestroyRegion 10 #define X_XFixesSetRegion 11 #define X_XFixesCopyRegion 12 #define X_XFixesUnionRegion 13 #define X_XFixesIntersectRegion 14 #define X_XFixesSubtractRegion 15 #define X_XFixesInvertRegion 16 #define X_XFixesTranslateRegion 17 #define X_XFixesRegionExtents 18 #define X_XFixesFetchRegion 19 #define X_XFixesSetGCClipRegion 20 #define X_XFixesSetWindowShapeRegion 21 #define X_XFixesSetPictureClipRegion 22 #define X_XFixesSetCursorName 23 #define X_XFixesGetCursorName 24 #define X_XFixesGetCursorImageAndName 25 #define X_XFixesChangeCursor 26 #define X_XFixesChangeCursorByName 27 /*************** Version 3 ******************/ #define X_XFixesExpandRegion 28 /*************** Version 4 ******************/ #define X_XFixesHideCursor 29 #define X_XFixesShowCursor 30 /*************** Version 5 ******************/ #define X_XFixesCreatePointerBarrier 31 #define X_XFixesDestroyPointerBarrier 32 /*************** Version 6 ******************/ #define X_XFixesSetClientDisconnectMode 33 #define X_XFixesGetClientDisconnectMode 34 #define XFixesNumberRequests (X_XFixesGetClientDisconnectMode+1) /* Selection events share one event number */ #define XFixesSelectionNotify 0 /* Within the selection, the 'subtype' field distinguishes */ #define XFixesSetSelectionOwnerNotify 0 #define XFixesSelectionWindowDestroyNotify 1 #define XFixesSelectionClientCloseNotify 2 #define XFixesSetSelectionOwnerNotifyMask (1L << 0) #define XFixesSelectionWindowDestroyNotifyMask (1L << 1) #define XFixesSelectionClientCloseNotifyMask (1L << 2) /* There's only one cursor event so far */ #define XFixesCursorNotify 1 #define XFixesDisplayCursorNotify 0 #define XFixesDisplayCursorNotifyMask (1L << 0) #define XFixesNumberEvents (2) /* errors */ #define BadRegion 0 #define BadBarrier 1 #define XFixesNumberErrors (BadBarrier+1) #define SaveSetNearest 0 #define SaveSetRoot 1 #define SaveSetMap 0 #define SaveSetUnmap 1 /*************** Version 2 ******************/ #define WindowRegionBounding 0 #define WindowRegionClip 1 /*************** Version 5 ******************/ #define BarrierPositiveX (1L << 0) #define BarrierPositiveY (1L << 1) #define BarrierNegativeX (1L << 2) #define BarrierNegativeY (1L << 3) /*************** Version 6 ******************/ /* The default server behaviour */ #define XFixesClientDisconnectFlagDefault 0 /* The server may disconnect this client to shut down */ #define XFixesClientDisconnectFlagTerminate (1L << 0) /*************** Version 6.1 ******************/ /* The server must terminate if this client exits */ #define XFixesClientDisconnectFlagForceTerminate (1L << 1) #endif /* _XFIXESWIRE_H_ */ xorgproto-2023.2/include/X11/extensions/xtrapddmi.h0000644000175000017500000000714114443010026017123 00000000000000/* $XFree86$ */ #ifndef __XTRAPDDMI__ #define __XTRAPDDMI__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This header file is used by the XTrap server extension only * (not used by clients or the XTrap Toolkit). Information * contained herein should *not* be visible to clients (xtrapdi.h * is used for this). The name is historical. */ #include #include #include "dix.h" #ifndef MIN # define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #ifndef MAX # define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif #define XETrapNumEvents 1L /* constants used for AddExtension */ /* Other constants used within the extension code */ #define XETrapMinRepSize 32L /* Minimum number of longs */ /* This structure will be globally declared to provide storage to hold * the various extension wide configuration information. Allocated on * a per-client basis. */ typedef struct { ClientPtr client; /* Multi-client support and error handling */ xXTrapGetCurReply cur; /* Struct of Miscellaneous state info */ xXTrapGetStatsReply *stats; /* Pointer to stat's, malloc'd if requested */ CARD32 last_input_time; /* last timestamp from input event */ CARD16 protocol; /* current communication protocol */ } XETrapEnv; #define XETrapSetHeaderEvent(phdr) ((phdr)->type = 0x1L) #define XETrapSetHeaderRequest(phdr) ((phdr)->type = 0x2L) #define XETrapSetHeaderSpecial(phdr) ((phdr)->type = 0x3L) #define XETrapSetHeaderCursor(phdr) ((phdr)->type = 0x4L) #define XETrapSetHeaderReply(phdr) ((phdr)->type = 0x5L) #ifndef vaxc #define globaldef #define globalref extern #endif /* Extension platform identifier (conditionally defined) */ #if ( defined (__osf__) && defined(__alpha) ) # define XETrapPlatform PF_DECOSF1 #endif #ifdef ultrix # define XETrapPlatform PF_DECUltrix #endif #ifdef vms #ifdef VAXELN # define XETrapPlatform PF_DECELN #else # define XETrapPlatform PF_DECVMS #endif #endif #ifdef VT1000 # define XETrapPlatform PF_DECVT1000 #endif #ifdef VXT # define XETrapPlatform PF_DECXTerm #endif #ifdef PC # define XETrapPlatform PF_IBMAT #endif #ifdef sun # define XETrapPlatform PF_SunSparc #endif #ifndef XETrapPlatform # define XETrapPlatform PF_Other #endif /* XETrapPlatform */ #endif /* __XTRAPDDMI__ */ xorgproto-2023.2/include/X11/extensions/xf86bigfstr.h0000644000175000017500000000027714443010026017306 00000000000000#warning "xf86bigfstr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/xf86vm.h0000644000175000017500000000407214443010026016265 00000000000000/* Copyright 1995 Kaleb S. KEITHLEY 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 Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Kaleb S. KEITHLEY shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Kaleb S. KEITHLEY */ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ #ifndef _XF86VM_H_ #define _XF86VM_H_ #include #define CLKFLAG_PROGRAMABLE 1 #ifdef XF86VIDMODE_EVENTS #define XF86VidModeNotify 0 #define XF86VidModeNumberEvents (XF86VidModeNotify + 1) #define XF86VidModeNotifyMask 0x00000001 #define XF86VidModeNonEvent 0 #define XF86VidModeModeChange 1 #else #define XF86VidModeNumberEvents 0 #endif #define XF86VidModeBadClock 0 #define XF86VidModeBadHTimings 1 #define XF86VidModeBadVTimings 2 #define XF86VidModeModeUnsuitable 3 #define XF86VidModeExtensionDisabled 4 #define XF86VidModeClientNotLocal 5 #define XF86VidModeZoomLocked 6 #define XF86VidModeNumberErrors (XF86VidModeZoomLocked + 1) #define XF86VM_READ_PERMISSION 1 #define XF86VM_WRITE_PERMISSION 2 #endif xorgproto-2023.2/include/X11/extensions/xtestext1const.h0000644000175000017500000001247714443010026020157 00000000000000/* * xtestext1.h * * X11 Input Synthesis Extension include file */ /* Copyright 1986, 1987, 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Hewlett-Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. */ #ifndef _XTESTEXT1CONST_H #define _XTESTEXT1CONST_H 1 #define XTestMAX_ACTION_LIST_SIZE 64 #define XTestACTIONS_SIZE 28 /* * used in the XTestPressButton and XTestPressKey functions */ #define XTestPRESS 1 << 0 #define XTestRELEASE 1 << 1 #define XTestSTROKE 1 << 2 /* * When doing a key or button stroke, the number of milliseconds * to delay between the press and the release of a key or button * in the XTestPressButton and XTestPressKey functions. */ #define XTestSTROKE_DELAY_TIME 10 /* * used in the XTestGetInput function */ #define XTestEXCLUSIVE 1 << 0 #define XTestPACKED_ACTIONS 1 << 1 #define XTestPACKED_MOTION 1 << 2 /* * used in the XTestFakeInput function */ #define XTestFAKE_ACK_NOT_NEEDED 0 #define XTestFAKE_ACK_REQUEST 1 /* * used in the XTest extension initialization routine */ #define XTestEXTENSION_NAME "XTestExtension1" #define XTestEVENT_COUNT 2 /* * This is the definition for the format of the header byte * in the input action structures. */ #define XTestACTION_TYPE_MASK 0x03 /* bits 0 and 1 */ #define XTestKEY_STATE_MASK 0x04 /* bit 2 (key action) */ #define XTestX_SIGN_BIT_MASK 0x04 /* bit 2 (motion action) */ #define XTestY_SIGN_BIT_MASK 0x08 /* bit 3 (motion action) */ #define XTestDEVICE_ID_MASK 0xf0 /* bits 4 through 7 */ #define XTestMAX_DEVICE_ID 0x0f #define XTestPackDeviceID(x) (((x) & XTestMAX_DEVICE_ID) << 4) #define XTestUnpackDeviceID(x) (((x) & XTestDEVICE_ID_MASK) >> 4) /* * These are the possible action types. */ #define XTestDELAY_ACTION 0 #define XTestKEY_ACTION 1 #define XTestMOTION_ACTION 2 #define XTestJUMP_ACTION 3 /* * These are the definitions for key/button motion input actions. */ #define XTestKEY_UP 0x04 #define XTestKEY_DOWN 0x00 /* * These are the definitions for pointer relative motion input * actions. * * The sign bits for the x and y relative motions are contained * in the header byte. The x and y relative motions are packed * into one byte to make things fit in 32 bits. If the relative * motion range is larger than +/-15, use the pointer jump action. */ #define XTestMOTION_MAX 15 #define XTestMOTION_MIN -15 #define XTestX_NEGATIVE 0x04 #define XTestY_NEGATIVE 0x08 #define XTestX_MOTION_MASK 0x0f #define XTestY_MOTION_MASK 0xf0 #define XTestPackXMotionValue(x) ((x) & XTestX_MOTION_MASK) #define XTestPackYMotionValue(x) (((x) << 4) & XTestY_MOTION_MASK) #define XTestUnpackXMotionValue(x) ((x) & XTestX_MOTION_MASK) #define XTestUnpackYMotionValue(x) (((x) & XTestY_MOTION_MASK) >> 4) /* * These are the definitions for a long delay input action. It is * used when more than XTestSHORT_DELAY_TIME milliseconds of delay * (approximately one minute) is needed. * * The device ID for a delay is always set to XTestDELAY_DEVICE_ID. * This guarantees that a header byte with a value of 0 is not * a valid header, so it can be used as a flag to indicate that * there are no more input actions in an XTestInputAction event. */ #define XTestSHORT_DELAY_TIME 0xffff #define XTestDELAY_DEVICE_ID 0x0f #endif /* _XTESTEXT1CONST_H */ xorgproto-2023.2/include/X11/extensions/xtrapproto.h0000644000175000017500000001747614443010026017365 00000000000000/* $XFree86: xc/include/extensions/xtrapproto.h,v 1.1 2001/11/02 23:29:26 dawes Exp $ */ #ifndef __XTRAPPROTO__ #define __XTRAPPROTO__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This header file contains the function prototypes for extension * routines sorted by module (globally defined routines *only*). */ #ifndef Bool # define Bool int #endif /* xtrapdi.c */ int XETrapDestroyEnv (pointer value , XID id ); void XETrapCloseDown ( ExtensionEntry *extEntry ); Bool XETrapRedirectDevices (void ); void DEC_XTRAPInit (void ); int XETrapCreateEnv (ClientPtr client ); int XETrapDispatch (ClientPtr client ); int sXETrapDispatch (ClientPtr client ); int XETrapReset (xXTrapReq *request , ClientPtr client ); int XETrapGetAvailable (xXTrapGetReq *request , ClientPtr client ); int XETrapGetCurrent (xXTrapReq *request , ClientPtr client ); int XETrapGetStatistics (xXTrapReq *request , ClientPtr client ); int XETrapConfig (xXTrapConfigReq *request , ClientPtr client ); int XETrapStartTrap (xXTrapReq *request , ClientPtr client ); int XETrapStopTrap (xXTrapReq *request , ClientPtr client ); int XETrapGetVersion (xXTrapGetReq *request , ClientPtr client ); int XETrapGetLastInpTime (xXTrapReq *request , ClientPtr client ); int XETrapRequestVector (ClientPtr client ); int XETrapKeyboard (xEvent *x_event , DevicePtr keybd , int count ); #ifndef VECTORED_EVENTS int XETrapPointer (xEvent *x_event , DevicePtr ptrdev , int count ); #else int XETrapEventVector (ClientPtr client , xEvent *x_event ); #endif void XETrapStampAndMail (xEvent *x_event ); void sReplyXTrapDispatch (ClientPtr client , int size , char *reply ); int XETrapWriteXLib (XETrapEnv *penv , BYTE *data , CARD32 nbytes ); /* xtrapddmi.c */ void XETrapPlatformSetup (void ); int XETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client ); /* xtrapdiswap.c */ int sXETrapReset (xXTrapReq *request , ClientPtr client ); int sXETrapGetAvailable (xXTrapGetReq *request , ClientPtr client ); int sXETrapConfig (xXTrapConfigReq *request , ClientPtr client ); int sXETrapStartTrap (xXTrapReq *request , ClientPtr client ); int sXETrapStopTrap (xXTrapReq *request , ClientPtr client ); int sXETrapGetCurrent (xXTrapReq *request , ClientPtr client ); int sXETrapGetStatistics (xXTrapReq *request , ClientPtr client ); int sXETrapSimulateXEvent (xXTrapInputReq *request , ClientPtr client ); int sXETrapGetVersion (xXTrapGetReq *request , ClientPtr client ); int sXETrapGetLastInpTime (xXTrapReq *request , ClientPtr client ); void sReplyXETrapGetAvail (ClientPtr client , int size , char *reply ); void sReplyXETrapGetVers (ClientPtr client , int size , char *reply ); void sReplyXETrapGetLITim (ClientPtr client , int size , char *reply ); void sReplyXETrapGetCur (ClientPtr client , int size , char *reply ); void sReplyXETrapGetStats (ClientPtr client , int size , char *reply ); void sXETrapHeader (XETrapHeader *hdr ); void XETSwSimpleReq (xReq *data ); void XETSwResourceReq (xResourceReq *data ); void XETSwCreateWindow (xCreateWindowReq *data , ClientPtr client ); void XETSwChangeWindowAttributes (xChangeWindowAttributesReq *data , ClientPtr client ); void XETSwReparentWindow (xReparentWindowReq *data ); void XETSwConfigureWindow (xConfigureWindowReq *data , ClientPtr client ); void XETSwInternAtom (xInternAtomReq *data ); void XETSwChangeProperty (xChangePropertyReq *data ); void XETSwDeleteProperty (xDeletePropertyReq *data ); void XETSwGetProperty (xGetPropertyReq *data ); void XETSwSetSelectionOwner (xSetSelectionOwnerReq *data ); void XETSwConvertSelection (xConvertSelectionReq *data ); void XETSwSendEvent (xSendEventReq *data ); void XETSwGrabPointer (xGrabPointerReq *data ); void XETSwGrabButton (xGrabButtonReq *data ); void XETSwUngrabButton (xUngrabButtonReq *data ); void XETSwChangeActivePointerGrab (xChangeActivePointerGrabReq *data ); void XETSwGrabKeyboard (xGrabKeyboardReq *data ); void XETSwGrabKey (xGrabKeyReq *data ); void XETSwUngrabKey (xUngrabKeyReq *data ); void XETSwGetMotionEvents (xGetMotionEventsReq *data ); void XETSwTranslateCoords (xTranslateCoordsReq *data ); void XETSwWarpPointer (xWarpPointerReq *data ); void XETSwSetInputFocus (xSetInputFocusReq *data ); void XETSwOpenFont (xOpenFontReq *data ); void XETSwListFonts (xListFontsReq *data ); void XETSwListFontsWithInfo (xListFontsWithInfoReq *data ); void XETSwSetFontPath (xSetFontPathReq *data ); void XETSwCreatePixmap (xCreatePixmapReq *data ); void XETSwCreateGC (xCreateGCReq *data , ClientPtr client ); void XETSwChangeGC (xChangeGCReq *data , ClientPtr client ); void XETSwCopyGC (xCopyGCReq *data ); void XETSwSetDashes (xSetDashesReq *data ); void XETSwSetClipRectangles (xSetClipRectanglesReq *data , ClientPtr client ); void XETSwClearToBackground (xClearAreaReq *data ); void XETSwCopyArea (xCopyAreaReq *data ); void XETSwCopyPlane (xCopyPlaneReq *data ); void XETSwPoly (xPolyPointReq *data , ClientPtr client ); void XETSwFillPoly (xFillPolyReq *data , ClientPtr client ); void XETSwPutImage (xPutImageReq *data ); void XETSwGetImage (xGetImageReq *data ); void XETSwPolyText (xPolyTextReq *data ); void XETSwImageText (xImageTextReq *data ); void XETSwCreateColormap (xCreateColormapReq *data ); void XETSwCopyColormapAndFree (xCopyColormapAndFreeReq *data ); void XETSwAllocColor (xAllocColorReq *data ); void XETSwAllocNamedColor (xAllocNamedColorReq *data ); void XETSwAllocColorCells (xAllocColorCellsReq *data ); void XETSwAllocColorPlanes (xAllocColorPlanesReq *data ); void XETSwFreeColors (xFreeColorsReq *data , ClientPtr client ); void XETSwStoreColors (xStoreColorsReq *data , ClientPtr client ); void XETSwStoreNamedColor (xStoreNamedColorReq *data ); void XETSwQueryColors (xQueryColorsReq *data , ClientPtr client ); void XETSwLookupColor (xLookupColorReq *data ); void XETSwCreateCursor (xCreateCursorReq *data ); void XETSwCreateGlyphCursor (xCreateGlyphCursorReq *data ); void XETSwRecolorCursor (xRecolorCursorReq *data ); void XETSwQueryBestSize (xQueryBestSizeReq *data ); void XETSwQueryExtension (xQueryExtensionReq *data ); void XETSwChangeKeyboardMapping (xChangeKeyboardMappingReq *data ); void XETSwChangeKeyboardControl (xChangeKeyboardControlReq *data , ClientPtr client ); void XETSwChangePointerControl (xChangePointerControlReq *data ); void XETSwSetScreenSaver (xSetScreenSaverReq *data ); void XETSwChangeHosts (xChangeHostsReq *data ); void XETSwRotateProperties (xRotatePropertiesReq *data , ClientPtr client ); void XETSwNoOperation (xReq *data ); #ifdef vms void SwapLongs (long *list , unsigned long count ); void SwapShorts (short *list , unsigned long count ); int SwapColorItem (xColorItem *pItem ); #endif /* vms */ #endif /* __XTRAPPROTO__ */ xorgproto-2023.2/include/X11/extensions/XKBgeom.h0000644000175000017500000003670014443010026016426 00000000000000/************************************************************ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. ********************************************************/ #ifndef _XKBGEOM_H_ #define _XKBGEOM_H_ #include #ifdef XKB_IN_SERVER #define XkbAddGeomKeyAlias SrvXkbAddGeomKeyAlias #define XkbAddGeomColor SrvXkbAddGeomColor #define XkbAddGeomDoodad SrvXkbAddGeomDoodad #define XkbAddGeomKey SrvXkbAddGeomKey #define XkbAddGeomOutline SrvXkbAddGeomOutline #define XkbAddGeomOverlay SrvXkbAddGeomOverlay #define XkbAddGeomOverlayRow SrvXkbAddGeomOverlayRow #define XkbAddGeomOverlayKey SrvXkbAddGeomOverlayKey #define XkbAddGeomProperty SrvXkbAddGeomProperty #define XkbAddGeomRow SrvXkbAddGeomRow #define XkbAddGeomSection SrvXkbAddGeomSection #define XkbAddGeomShape SrvXkbAddGeomShape #define XkbAllocGeomKeyAliases SrvXkbAllocGeomKeyAliases #define XkbAllocGeomColors SrvXkbAllocGeomColors #define XkbAllocGeomDoodads SrvXkbAllocGeomDoodads #define XkbAllocGeomKeys SrvXkbAllocGeomKeys #define XkbAllocGeomOutlines SrvXkbAllocGeomOutlines #define XkbAllocGeomPoints SrvXkbAllocGeomPoints #define XkbAllocGeomProps SrvXkbAllocGeomProps #define XkbAllocGeomRows SrvXkbAllocGeomRows #define XkbAllocGeomSectionDoodads SrvXkbAllocGeomSectionDoodads #define XkbAllocGeomSections SrvXkbAllocGeomSections #define XkbAllocGeomOverlays SrvXkbAllocGeomOverlays #define XkbAllocGeomOverlayRows SrvXkbAllocGeomOverlayRows #define XkbAllocGeomOverlayKeys SrvXkbAllocGeomOverlayKeys #define XkbAllocGeomShapes SrvXkbAllocGeomShapes #define XkbAllocGeometry SrvXkbAllocGeometry #define XkbFreeGeomKeyAliases SrvXkbFreeGeomKeyAliases #define XkbFreeGeomColors SrvXkbFreeGeomColors #define XkbFreeGeomDoodads SrvXkbFreeGeomDoodads #define XkbFreeGeomProperties SrvXkbFreeGeomProperties #define XkbFreeGeomOverlayKeys SrvXkbFreeGeomOverlayKeys #define XkbFreeGeomOverlayRows SrvXkbFreeGeomOverlayRows #define XkbFreeGeomOverlays SrvXkbFreeGeomOverlays #define XkbFreeGeomKeys SrvXkbFreeGeomKeys #define XkbFreeGeomRows SrvXkbFreeGeomRows #define XkbFreeGeomSections SrvXkbFreeGeomSections #define XkbFreeGeomPoints SrvXkbFreeGeomPoints #define XkbFreeGeomOutlines SrvXkbFreeGeomOutlines #define XkbFreeGeomShapes SrvXkbFreeGeomShapes #define XkbFreeGeometry SrvXkbFreeGeometry #endif typedef struct _XkbProperty { char *name; char *value; } XkbPropertyRec,*XkbPropertyPtr; typedef struct _XkbColor { unsigned int pixel; char * spec; } XkbColorRec,*XkbColorPtr; typedef struct _XkbPoint { short x; short y; } XkbPointRec, *XkbPointPtr; typedef struct _XkbBounds { short x1,y1; short x2,y2; } XkbBoundsRec, *XkbBoundsPtr; #define XkbBoundsWidth(b) (((b)->x2)-((b)->x1)) #define XkbBoundsHeight(b) (((b)->y2)-((b)->y1)) /* * In the following structs, this pattern is used for dynamically sized arrays: * foo is an array for which sz_foo entries are allocated & num_foo are used */ typedef struct _XkbOutline { unsigned short num_points; unsigned short sz_points; unsigned short corner_radius; XkbPointPtr points; } XkbOutlineRec, *XkbOutlinePtr; typedef struct _XkbShape { Atom name; unsigned short num_outlines; unsigned short sz_outlines; XkbOutlinePtr outlines; XkbOutlinePtr approx; XkbOutlinePtr primary; XkbBoundsRec bounds; } XkbShapeRec, *XkbShapePtr; #define XkbOutlineIndex(s,o) ((int)((o)-&(s)->outlines[0])) typedef struct _XkbShapeDoodad { Atom name; unsigned char type; unsigned char priority; short top; short left; short angle; unsigned short color_ndx; unsigned short shape_ndx; } XkbShapeDoodadRec, *XkbShapeDoodadPtr; #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) #define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx]) #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) #define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0]) typedef struct _XkbTextDoodad { Atom name; unsigned char type; unsigned char priority; short top; short left; short angle; short width; short height; unsigned short color_ndx; char * text; char * font; } XkbTextDoodadRec, *XkbTextDoodadPtr; #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) typedef struct _XkbIndicatorDoodad { Atom name; unsigned char type; unsigned char priority; short top; short left; short angle; unsigned short shape_ndx; unsigned short on_color_ndx; unsigned short off_color_ndx; } XkbIndicatorDoodadRec, *XkbIndicatorDoodadPtr; #define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx]) #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx]) #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx]) #define XkbSetIndicatorDoodadOnColor(g,d,c) \ ((d)->on_color_ndx= (c)-&(g)->colors[0]) #define XkbSetIndicatorDoodadOffColor(g,d,c) \ ((d)->off_color_ndx= (c)-&(g)->colors[0]) #define XkbSetIndicatorDoodadShape(g,d,s) \ ((d)->shape_ndx= (s)-&(g)->shapes[0]) typedef struct _XkbLogoDoodad { Atom name; unsigned char type; unsigned char priority; short top; short left; short angle; unsigned short color_ndx; unsigned short shape_ndx; char * logo_name; } XkbLogoDoodadRec, *XkbLogoDoodadPtr; #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) #define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx]) #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) #define XkbSetLogoDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0]) typedef struct _XkbAnyDoodad { Atom name; unsigned char type; unsigned char priority; short top; short left; short angle; } XkbAnyDoodadRec, *XkbAnyDoodadPtr; typedef union _XkbDoodad { XkbAnyDoodadRec any; XkbShapeDoodadRec shape; XkbTextDoodadRec text; XkbIndicatorDoodadRec indicator; XkbLogoDoodadRec logo; } XkbDoodadRec, *XkbDoodadPtr; #define XkbUnknownDoodad 0 #define XkbOutlineDoodad 1 #define XkbSolidDoodad 2 #define XkbTextDoodad 3 #define XkbIndicatorDoodad 4 #define XkbLogoDoodad 5 typedef struct _XkbKey { XkbKeyNameRec name; short gap; unsigned char shape_ndx; unsigned char color_ndx; } XkbKeyRec, *XkbKeyPtr; #define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx]) #define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx]) #define XkbSetKeyShape(g,k,s) ((k)->shape_ndx= (s)-&(g)->shapes[0]) #define XkbSetKeyColor(g,k,c) ((k)->color_ndx= (c)-&(g)->colors[0]) typedef struct _XkbRow { short top; short left; unsigned short num_keys; unsigned short sz_keys; int vertical; XkbKeyPtr keys; XkbBoundsRec bounds; } XkbRowRec, *XkbRowPtr; typedef struct _XkbSection { Atom name; unsigned char priority; short top; short left; unsigned short width; unsigned short height; short angle; unsigned short num_rows; unsigned short num_doodads; unsigned short num_overlays; unsigned short sz_rows; unsigned short sz_doodads; unsigned short sz_overlays; XkbRowPtr rows; XkbDoodadPtr doodads; XkbBoundsRec bounds; struct _XkbOverlay *overlays; } XkbSectionRec, *XkbSectionPtr; typedef struct _XkbOverlayKey { XkbKeyNameRec over; XkbKeyNameRec under; } XkbOverlayKeyRec,*XkbOverlayKeyPtr; typedef struct _XkbOverlayRow { unsigned short row_under; unsigned short num_keys; unsigned short sz_keys; XkbOverlayKeyPtr keys; } XkbOverlayRowRec,*XkbOverlayRowPtr; typedef struct _XkbOverlay { Atom name; XkbSectionPtr section_under; unsigned short num_rows; unsigned short sz_rows; XkbOverlayRowPtr rows; XkbBoundsPtr bounds; } XkbOverlayRec,*XkbOverlayPtr; typedef struct _XkbGeometry { Atom name; unsigned short width_mm; unsigned short height_mm; char * label_font; XkbColorPtr label_color; XkbColorPtr base_color; unsigned short sz_properties; unsigned short sz_colors; unsigned short sz_shapes; unsigned short sz_sections; unsigned short sz_doodads; unsigned short sz_key_aliases; unsigned short num_properties; unsigned short num_colors; unsigned short num_shapes; unsigned short num_sections; unsigned short num_doodads; unsigned short num_key_aliases; XkbPropertyPtr properties; XkbColorPtr colors; XkbShapePtr shapes; XkbSectionPtr sections; XkbDoodadPtr doodads; XkbKeyAliasPtr key_aliases; } XkbGeometryRec; #define XkbGeomColorIndex(g,c) ((int)((c)-&(g)->colors[0])) #define XkbGeomPropertiesMask (1<<0) #define XkbGeomColorsMask (1<<1) #define XkbGeomShapesMask (1<<2) #define XkbGeomSectionsMask (1<<3) #define XkbGeomDoodadsMask (1<<4) #define XkbGeomKeyAliasesMask (1<<5) #define XkbGeomAllMask (0x3f) typedef struct _XkbGeometrySizes { unsigned int which; unsigned short num_properties; unsigned short num_colors; unsigned short num_shapes; unsigned short num_sections; unsigned short num_doodads; unsigned short num_key_aliases; } XkbGeometrySizesRec,*XkbGeometrySizesPtr; _XFUNCPROTOBEGIN extern XkbPropertyPtr XkbAddGeomProperty( XkbGeometryPtr /* geom */, char * /* name */, char * /* value */ ); extern XkbKeyAliasPtr XkbAddGeomKeyAlias( XkbGeometryPtr /* geom */, char * /* alias */, char * /* real */ ); extern XkbColorPtr XkbAddGeomColor( XkbGeometryPtr /* geom */, char * /* spec */, unsigned int /* pixel */ ); extern XkbOutlinePtr XkbAddGeomOutline( XkbShapePtr /* shape */, int /* sz_points */ ); extern XkbShapePtr XkbAddGeomShape( XkbGeometryPtr /* geom */, Atom /* name */, int /* sz_outlines */ ); extern XkbKeyPtr XkbAddGeomKey( XkbRowPtr /* row */ ); extern XkbRowPtr XkbAddGeomRow( XkbSectionPtr /* section */, int /* sz_keys */ ); extern XkbSectionPtr XkbAddGeomSection( XkbGeometryPtr /* geom */, Atom /* name */, int /* sz_rows */, int /* sz_doodads */, int /* sz_overlays */ ); extern XkbOverlayPtr XkbAddGeomOverlay( XkbSectionPtr /* section */, Atom /* name */, int /* sz_rows */ ); extern XkbOverlayRowPtr XkbAddGeomOverlayRow( XkbOverlayPtr /* overlay */, int /* row_under */, int /* sz_keys */ ); extern XkbOverlayKeyPtr XkbAddGeomOverlayKey( XkbOverlayPtr /* overlay */, XkbOverlayRowPtr /* row */, char * /* over */, char * /* under */ ); extern XkbDoodadPtr XkbAddGeomDoodad( XkbGeometryPtr /* geom */, XkbSectionPtr /* section */, Atom /* name */ ); extern void XkbFreeGeomKeyAliases( XkbGeometryPtr /* geom */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomColors( XkbGeometryPtr /* geom */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomDoodads( XkbDoodadPtr /* doodads */, int /* nDoodads */, Bool /* freeAll */ ); extern void XkbFreeGeomProperties( XkbGeometryPtr /* geom */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomOverlayKeys( XkbOverlayRowPtr /* row */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomOverlayRows( XkbOverlayPtr /* overlay */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomOverlays( XkbSectionPtr /* section */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomKeys( XkbRowPtr /* row */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomRows( XkbSectionPtr /* section */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomSections( XkbGeometryPtr /* geom */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomPoints( XkbOutlinePtr /* outline */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomOutlines( XkbShapePtr /* shape */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeomShapes( XkbGeometryPtr /* geom */, int /* first */, int /* count */, Bool /* freeAll */ ); extern void XkbFreeGeometry( XkbGeometryPtr /* geom */, unsigned int /* which */, Bool /* freeMap */ ); extern Status XkbAllocGeomProps( XkbGeometryPtr /* geom */, int /* nProps */ ); extern Status XkbAllocGeomKeyAliases( XkbGeometryPtr /* geom */, int /* nAliases */ ); extern Status XkbAllocGeomColors( XkbGeometryPtr /* geom */, int /* nColors */ ); extern Status XkbAllocGeomShapes( XkbGeometryPtr /* geom */, int /* nShapes */ ); extern Status XkbAllocGeomSections( XkbGeometryPtr /* geom */, int /* nSections */ ); extern Status XkbAllocGeomOverlays( XkbSectionPtr /* section */, int /* num_needed */ ); extern Status XkbAllocGeomOverlayRows( XkbOverlayPtr /* overlay */, int /* num_needed */ ); extern Status XkbAllocGeomOverlayKeys( XkbOverlayRowPtr /* row */, int /* num_needed */ ); extern Status XkbAllocGeomDoodads( XkbGeometryPtr /* geom */, int /* nDoodads */ ); extern Status XkbAllocGeomSectionDoodads( XkbSectionPtr /* section */, int /* nDoodads */ ); extern Status XkbAllocGeomOutlines( XkbShapePtr /* shape */, int /* nOL */ ); extern Status XkbAllocGeomRows( XkbSectionPtr /* section */, int /* nRows */ ); extern Status XkbAllocGeomPoints( XkbOutlinePtr /* ol */, int /* nPts */ ); extern Status XkbAllocGeomKeys( XkbRowPtr /* row */, int /* nKeys */ ); extern Status XkbAllocGeometry( XkbDescPtr /* xkb */, XkbGeometrySizesPtr /* sizes */ ); extern Status XkbSetGeometry( Display * /* dpy */, unsigned /* deviceSpec */, XkbGeometryPtr /* geom */ ); extern Bool XkbComputeShapeTop( XkbShapePtr /* shape */, XkbBoundsPtr /* bounds */ ); extern Bool XkbComputeShapeBounds( XkbShapePtr /* shape */ ); extern Bool XkbComputeRowBounds( XkbGeometryPtr /* geom */, XkbSectionPtr /* section */, XkbRowPtr /* row */ ); extern Bool XkbComputeSectionBounds( XkbGeometryPtr /* geom */, XkbSectionPtr /* section */ ); extern char * XkbFindOverlayForKey( XkbGeometryPtr /* geom */, XkbSectionPtr /* wanted */, char * /* under */ ); extern Status XkbGetGeometry( Display * /* dpy */, XkbDescPtr /* xkb */ ); extern Status XkbGetNamedGeometry( Display * /* dpy */, XkbDescPtr /* xkb */, Atom /* name */ ); _XFUNCPROTOEND #endif /* _XKBSTR_H_ */ xorgproto-2023.2/include/X11/extensions/recordconst.h0000644000175000017500000000402014443010026017445 00000000000000/*************************************************************************** * Copyright 1995 Network Computing Devices * * 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 Network Computing Devices * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * * NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES 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. **************************************************************************/ #ifndef _RECORDCONST_H_ #define _RECORDCONST_H_ #define RECORD_NAME "RECORD" #define RECORD_MAJOR_VERSION 1 #define RECORD_MINOR_VERSION 13 #define RECORD_LOWEST_MAJOR_VERSION 1 #define RECORD_LOWEST_MINOR_VERSION 12 #define XRecordBadContext 0 /* Not a valid RC */ #define RecordNumErrors (XRecordBadContext + 1) #define RecordNumEvents 0L /* * Constants for arguments of various requests */ #define XRecordFromServerTime 0x01 #define XRecordFromClientTime 0x02 #define XRecordFromClientSequence 0x04 #define XRecordCurrentClients 1 #define XRecordFutureClients 2 #define XRecordAllClients 3 #define XRecordFromServer 0 #define XRecordFromClient 1 #define XRecordClientStarted 2 #define XRecordClientDied 3 #define XRecordStartOfData 4 #define XRecordEndOfData 5 #endif /* _RECORD_H_ */ xorgproto-2023.2/include/X11/extensions/applewmconst.h0000644000175000017500000000552414443010026017646 00000000000000/************************************************************************** Copyright (c) 2002 Apple Computer, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ #ifndef _APPLEWMCONST_H_ #define _APPLEWMCONST_H_ /* Events */ #define AppleWMControllerNotify 0 #define AppleWMActivationNotify 1 #define AppleWMPasteboardNotify 2 #define AppleWMNumberEvents 3 #define AppleWMControllerNotifyMask (1L << 0) #define AppleWMActivationNotifyMask (1L << 1) #define AppleWMPasteboardNotifyMask (1L << 2) /* "Kinds" of ControllerNotify events */ #define AppleWMMinimizeWindow 0 #define AppleWMZoomWindow 1 #define AppleWMCloseWindow 2 #define AppleWMBringAllToFront 3 #define AppleWMHideWindow 4 #define AppleWMHideAll 5 #define AppleWMShowAll 6 #define AppleWMWindowMenuItem 9 #define AppleWMWindowMenuNotify 10 #define AppleWMNextWindow 11 #define AppleWMPreviousWindow 12 /* "Kinds" of ActivationNotify events */ #define AppleWMIsActive 0 #define AppleWMIsInactive 1 #define AppleWMReloadPreferences 2 /* "Kinds" of PasteboardNotify events */ #define AppleWMCopyToPasteboard 0 /* Errors */ #define AppleWMClientNotLocal 0 #define AppleWMOperationNotSupported 1 #define AppleWMNumberErrors (AppleWMOperationNotSupported + 1) /* Window level ids */ #define AppleWMWindowLevelNormal 0 #define AppleWMWindowLevelFloating 1 #define AppleWMWindowLevelTornOff 2 #define AppleWMWindowLevelDock 3 #define AppleWMWindowLevelDesktop 4 #define AppleWMNumWindowLevels 5 /* Possible value for frame_rect argument to XAppleWMFrameGetRect() */ /* Use xp_frame_rect_enum from */ /* Window frame classes */ /* Use xp_frame_class_enum from */ /* Window frame attributes */ /* Use xp_frame_attr_enum from */ #endif /* _APPLEWMCONST_H_ */ xorgproto-2023.2/include/X11/extensions/ge.h0000644000175000017500000000336614443010026015527 00000000000000/* * Copyright © 2007-2008 Peter Hutterer * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. * * Authors: Peter Hutterer, University of South Australia, NICTA * */ #ifndef _GE_H_ #define _GE_H_ #define GE_NAME "Generic Event Extension" #define GE_MAJOR 1 #define GE_MINOR 0 /********************************************************* * * Requests * */ #define X_GEQueryVersion 0 #define GENumberRequests (X_GEQueryVersion + 1) /********************************************************* * * Events * */ #define GENumberEvents 0 /********************************************************* * * Errors * */ #define GENumberErrors 0 #endif /* _GE_H_ */ xorgproto-2023.2/include/X11/extensions/fontcache.h0000644000175000017500000000607414443010026017065 00000000000000/*- * Copyright (c) 1998-1999 Shunsuke Akiyama . * All rights reserved. * Copyright (c) 1998-1999 X-TrueType Server Project, All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * Id: fontcache.h,v 1.6 1999/01/31 12:41:32 akiyama Exp $ */ /* $XFree86: xc/include/extensions/fontcache.h,v 1.3 2001/08/01 00:44:35 tsi Exp $ */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _EXT_FONTCACHE_H_ #define _EXT_FONTCACHE_H_ #define X_FontCacheQueryVersion 0 #define X_FontCacheGetCacheSettings 1 #define X_FontCacheChangeCacheSettings 2 #define X_FontCacheGetCacheStatistics 3 #define FontCacheNumberEvents 0 #define FontCacheBadProtocol 0 #define FontCacheCannotAllocMemory 1 #define FontCacheNumberErrors (FontCacheCannotAllocMemory + 1) typedef struct { long himark; long lowmark; long balance; } FontCacheSettings, *FontCacheSettingsPtr; struct cacheinfo { long hits; long misshits; long purged; long usage; }; typedef struct { long purge_runs; long purge_stat; long balance; struct cacheinfo f; struct cacheinfo v; } FontCacheStatistics, *FontCacheStatisticsPtr; #ifndef _FONTCACHE_SERVER_ #include _XFUNCPROTOBEGIN Bool FontCacheQueryVersion( Display* /* dpy */, int* /* majorVersion */, int* /* minorVersion */ ); Bool FontCacheQueryExtension( Display* /* dpy */, int* /* event_base */, int* /* error_base */ ); Status FontCacheGetCacheSettings( Display* /* dpy */, FontCacheSettings* /* cache info */ ); Status FontCacheChangeCacheSettings( Display* /* dpy */, FontCacheSettings* /* cache info */ ); Status FontCacheGetCacheStatistics( Display* /* dpy */, FontCacheStatistics* /* cache statistics info */ ); _XFUNCPROTOEND #endif /* !_FONTCACHE_SERVER_ */ #endif /* _EXT_FONTCACHE_H_ */ xorgproto-2023.2/include/X11/extensions/shmproto.h0000644000175000017500000001363514443010026017007 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ #ifndef _SHMPROTO_H_ #define _SHMPROTO_H_ #include #define ShmSeg CARD32 #define Drawable CARD32 #define VisualID CARD32 #define GContext CARD32 #define Pixmap CARD32 #define X_ShmQueryVersion 0 #define X_ShmAttach 1 #define X_ShmDetach 2 #define X_ShmPutImage 3 #define X_ShmGetImage 4 #define X_ShmCreatePixmap 5 #define X_ShmAttachFd 6 #define X_ShmCreateSegment 7 typedef struct _ShmQueryVersion { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmQueryVersion */ CARD16 length; } xShmQueryVersionReq; #define sz_xShmQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL sharedPixmaps; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of SHM protocol */ CARD16 minorVersion; /* minor version of SHM protocol */ CARD16 uid; CARD16 gid; CARD8 pixmapFormat; CARD8 pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xShmQueryVersionReply; #define sz_xShmQueryVersionReply 32 typedef struct _ShmAttach { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmAttach */ CARD16 length; ShmSeg shmseg; CARD32 shmid; BOOL readOnly; BYTE pad0; CARD16 pad1; } xShmAttachReq; #define sz_xShmAttachReq 16 typedef struct _ShmDetach { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmDetach */ CARD16 length; ShmSeg shmseg; } xShmDetachReq; #define sz_xShmDetachReq 8 typedef struct _ShmPutImage { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmPutImage */ CARD16 length; Drawable drawable; GContext gc; CARD16 totalWidth; CARD16 totalHeight; CARD16 srcX; CARD16 srcY; CARD16 srcWidth; CARD16 srcHeight; INT16 dstX; INT16 dstY; CARD8 depth; CARD8 format; CARD8 sendEvent; CARD8 bpad; ShmSeg shmseg; CARD32 offset; } xShmPutImageReq; #define sz_xShmPutImageReq 40 typedef struct _ShmGetImage { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmGetImage */ CARD16 length; Drawable drawable; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD32 planeMask; CARD8 format; CARD8 pad0; CARD8 pad1; CARD8 pad2; ShmSeg shmseg; CARD32 offset; } xShmGetImageReq; #define sz_xShmGetImageReq 32 typedef struct _ShmGetImageReply { BYTE type; /* X_Reply */ CARD8 depth; CARD16 sequenceNumber; CARD32 length; VisualID visual; CARD32 size; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xShmGetImageReply; #define sz_xShmGetImageReply 32 typedef struct _ShmCreatePixmap { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmCreatePixmap */ CARD16 length; Pixmap pid; Drawable drawable; CARD16 width; CARD16 height; CARD8 depth; CARD8 pad0; CARD8 pad1; CARD8 pad2; ShmSeg shmseg; CARD32 offset; } xShmCreatePixmapReq; #define sz_xShmCreatePixmapReq 28 typedef struct _ShmCompletion { BYTE type; /* always eventBase + ShmCompletion */ BYTE bpad0; CARD16 sequenceNumber; Drawable drawable; CARD16 minorEvent; BYTE majorEvent; BYTE bpad1; ShmSeg shmseg; CARD32 offset; CARD32 pad0; CARD32 pad1; CARD32 pad2; } xShmCompletionEvent; #define sz_xShmCompletionEvent 32 /* Version 1.2 additions */ typedef struct _ShmAttachFd { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmAttachFd */ CARD16 length; ShmSeg shmseg; BOOL readOnly; BYTE pad0; CARD16 pad1; } xShmAttachFdReq; /* File descriptor is passed with this request */ #define sz_xShmAttachFdReq 12 typedef struct _ShmCreateSegment { CARD8 reqType; /* always ShmReqCode */ CARD8 shmReqType; /* always X_ShmAttachFd */ CARD16 length; ShmSeg shmseg; CARD32 size; BOOL readOnly; BYTE pad0; CARD16 pad1; } xShmCreateSegmentReq; #define sz_xShmCreateSegmentReq 16 typedef struct { CARD8 type; /* must be X_Reply */ CARD8 nfd; /* must be 1 */ CARD16 sequenceNumber; /* last sequence number */ CARD32 length; /* 0 */ CARD32 pad2; /* unused */ CARD32 pad3; /* unused */ CARD32 pad4; /* unused */ CARD32 pad5; /* unused */ CARD32 pad6; /* unused */ CARD32 pad7; /* unused */ } xShmCreateSegmentReply; /* File descriptor is passed with this reply */ #define sz_xShmCreateSegmentReply 32 #undef ShmSeg #undef Drawable #undef VisualID #undef GContext #undef Pixmap #endif /* _SHMPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/lbxproto.h0000644000175000017500000006031614443010026017003 00000000000000/* * Copyright 1992 Network Computing Devices * * 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 NCD. not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. NCD. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD. * 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. * */ #ifndef _LBXPROTO_H_ #define _LBXPROTO_H_ #include /* * NOTE: any changes or additions to the opcodes needs to be reflected * in the lbxCacheable array in Xserver/lbx/lbxmain.c */ #define X_LbxQueryVersion 0 #define X_LbxStartProxy 1 #define X_LbxStopProxy 2 #define X_LbxSwitch 3 #define X_LbxNewClient 4 #define X_LbxCloseClient 5 #define X_LbxModifySequence 6 #define X_LbxAllowMotion 7 #define X_LbxIncrementPixel 8 #define X_LbxDelta 9 #define X_LbxGetModifierMapping 10 #define X_LbxInvalidateTag 12 #define X_LbxPolyPoint 13 #define X_LbxPolyLine 14 #define X_LbxPolySegment 15 #define X_LbxPolyRectangle 16 #define X_LbxPolyArc 17 #define X_LbxFillPoly 18 #define X_LbxPolyFillRectangle 19 #define X_LbxPolyFillArc 20 #define X_LbxGetKeyboardMapping 21 #define X_LbxQueryFont 22 #define X_LbxChangeProperty 23 #define X_LbxGetProperty 24 #define X_LbxTagData 25 #define X_LbxCopyArea 26 #define X_LbxCopyPlane 27 #define X_LbxPolyText8 28 #define X_LbxPolyText16 29 #define X_LbxImageText8 30 #define X_LbxImageText16 31 #define X_LbxQueryExtension 32 #define X_LbxPutImage 33 #define X_LbxGetImage 34 #define X_LbxBeginLargeRequest 35 #define X_LbxLargeRequestData 36 #define X_LbxEndLargeRequest 37 #define X_LbxInternAtoms 38 #define X_LbxGetWinAttrAndGeom 39 #define X_LbxGrabCmap 40 #define X_LbxReleaseCmap 41 #define X_LbxAllocColor 42 #define X_LbxSync 43 /* * Redefine some basic types used by structures defined herein. This removes * any possibility on 64-bit architectures of one entity viewing communicated * data as 32-bit quantities and another entity viewing the same data as 64-bit * quantities. */ #define XID CARD32 #define Atom CARD32 #define Colormap CARD32 #define Drawable CARD32 #define VisualID CARD32 #define Window CARD32 typedef struct { BOOL success; /* TRUE */ BOOL changeType; CARD16 majorVersion, minorVersion; CARD16 length; /* 1/4 additional bytes in setup info */ CARD32 tag; } xLbxConnSetupPrefix; typedef struct _LbxQueryVersion { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxQueryVersion */ CARD16 length; } xLbxQueryVersionReq; #define sz_xLbxQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of LBX protocol */ CARD16 minorVersion; /* minor version of LBX protocol */ CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxQueryVersionReply; #define sz_xLbxQueryVersionReply 32 typedef struct _LbxStartProxy { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxStartProxy */ CARD16 length; } xLbxStartProxyReq; #define sz_xLbxStartProxyReq 4 typedef struct _LbxStopProxy { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxStopProxy */ CARD16 length; } xLbxStopProxyReq; #define sz_xLbxStopProxyReq 4 typedef struct _LbxSwitch { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxSwitch */ CARD16 length; CARD32 client; /* new client */ } xLbxSwitchReq; #define sz_xLbxSwitchReq 8 typedef struct _LbxNewClient { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxNewClient */ CARD16 length; CARD32 client; /* new client */ } xLbxNewClientReq; #define sz_xLbxNewClientReq 8 typedef struct _LbxCloseClient { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxCloseClient */ CARD16 length; CARD32 client; /* new client */ } xLbxCloseClientReq; #define sz_xLbxCloseClientReq 8 typedef struct _LbxModifySequence { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxModifySequence */ CARD16 length; CARD32 adjust; } xLbxModifySequenceReq; #define sz_xLbxModifySequenceReq 8 typedef struct _LbxAllowMotion { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxAllowMotion */ CARD16 length; CARD32 num; } xLbxAllowMotionReq; #define sz_xLbxAllowMotionReq 8 typedef struct { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGrabCmap */ CARD16 length; Colormap cmap; } xLbxGrabCmapReq; #define sz_xLbxGrabCmapReq 8 #define LBX_SMART_GRAB 0x80 #define LBX_AUTO_RELEASE 0x40 #define LBX_3CHANNELS 0x20 #define LBX_2BYTE_PIXELS 0x10 #define LBX_RGB_BITS_MASK 0x0f #define LBX_LIST_END 0 #define LBX_PIXEL_PRIVATE 1 #define LBX_PIXEL_SHARED 2 #define LBX_PIXEL_RANGE_PRIVATE 3 #define LBX_PIXEL_RANGE_SHARED 4 #define LBX_NEXT_CHANNEL 5 typedef struct { BYTE type; /* X_Reply */ CARD8 flags; CARD16 sequenceNumber; CARD32 length; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLbxGrabCmapReply; #define sz_xLbxGrabCmapReply 32 #define sz_xLbxGrabCmapReplyHdr 8 typedef struct { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxReleaseCmap */ CARD16 length; Colormap cmap; } xLbxReleaseCmapReq; #define sz_xLbxReleaseCmapReq 8 typedef struct { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxAllocColor */ CARD16 length; Colormap cmap; CARD32 pixel; CARD16 red, green, blue; CARD16 pad; } xLbxAllocColorReq; #define sz_xLbxAllocColorReq 20 typedef struct _LbxIncrementPixel { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxIncrementPixel */ CARD16 length; CARD32 cmap; CARD32 pixel; } xLbxIncrementPixelReq; #define sz_xLbxIncrementPixelReq 12 typedef struct _LbxDelta { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxDelta */ CARD16 length; CARD8 diffs; /* number of diffs */ CARD8 cindex; /* cache index */ /* list of diffs follows */ } xLbxDeltaReq; #define sz_xLbxDeltaReq 6 typedef struct _LbxGetModifierMapping { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGetModifierMapping */ CARD16 length; } xLbxGetModifierMappingReq; #define sz_xLbxGetModifierMappingReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 keyspermod; CARD16 sequenceNumber; CARD32 length; CARD32 tag; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxGetModifierMappingReply; #define sz_xLbxGetModifierMappingReply 32 typedef struct _LbxGetKeyboardMapping { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGetKeyboardMapping */ CARD16 length; KeyCode firstKeyCode; CARD8 count; CARD16 pad1; } xLbxGetKeyboardMappingReq; #define sz_xLbxGetKeyboardMappingReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 keysperkeycode; CARD16 sequenceNumber; CARD32 length; CARD32 tag; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxGetKeyboardMappingReply; #define sz_xLbxGetKeyboardMappingReply 32 typedef struct _LbxQueryFont { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxQueryFont */ CARD16 length; CARD32 fid; } xLbxQueryFontReq; #define sz_xLbxQueryFontReq 8 typedef struct _LbxInternAtoms { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxInternAtoms */ CARD16 length; CARD16 num; } xLbxInternAtomsReq; #define sz_xLbxInternAtomsReq 6 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 atomsStart; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxInternAtomsReply; #define sz_xLbxInternAtomsReply 32 #define sz_xLbxInternAtomsReplyHdr 8 typedef struct _LbxGetWinAttrAndGeom { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGetWinAttrAndGeom */ CARD16 length; CARD32 id; /* window id */ } xLbxGetWinAttrAndGeomReq; #define sz_xLbxGetWinAttrAndGeomReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 backingStore; CARD16 sequenceNumber; CARD32 length; /* NOT 0; this is an extra-large reply */ VisualID visualID; #if defined(__cplusplus) || defined(c_plusplus) CARD16 c_class; #else CARD16 class; #endif CARD8 bitGravity; CARD8 winGravity; CARD32 backingBitPlanes; CARD32 backingPixel; BOOL saveUnder; BOOL mapInstalled; CARD8 mapState; BOOL override; Colormap colormap; CARD32 allEventMasks; CARD32 yourEventMask; CARD16 doNotPropagateMask; CARD16 pad1; Window root; INT16 x, y; CARD16 width, height; CARD16 borderWidth; CARD8 depth; CARD8 pad2; } xLbxGetWinAttrAndGeomReply; #define sz_xLbxGetWinAttrAndGeomReply 60 typedef struct { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxSync */ CARD16 length; } xLbxSyncReq; #define sz_xLbxSyncReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xLbxSyncReply; #define sz_xLbxSyncReply 32 /* an LBX squished charinfo packs the data in a CARD32 as follows */ #define LBX_WIDTH_SHIFT 26 #define LBX_LEFT_SHIFT 20 #define LBX_RIGHT_SHIFT 13 #define LBX_ASCENT_SHIFT 7 #define LBX_DESCENT_SHIFT 0 #define LBX_WIDTH_BITS 6 #define LBX_LEFT_BITS 6 #define LBX_RIGHT_BITS 7 #define LBX_ASCENT_BITS 6 #define LBX_DESCENT_BITS 7 #define LBX_WIDTH_MASK 0xfc000000 #define LBX_LEFT_MASK 0x03f00000 #define LBX_RIGHT_MASK 0x000fe000 #define LBX_ASCENT_MASK 0x00001f80 #define LBX_DESCENT_MASK 0x0000007f #define LBX_MASK_BITS(val, n) ((unsigned int) ((val) & ((1 << (n)) - 1))) typedef struct { CARD32 metrics; } xLbxCharInfo; /* note that this is identical to xQueryFontReply except for missing * first 2 words */ typedef struct { xCharInfo minBounds; /* XXX do we need to leave this gunk? */ #ifndef WORD64 CARD32 walign1; #endif xCharInfo maxBounds; #ifndef WORD64 CARD32 walign2; #endif CARD16 minCharOrByte2, maxCharOrByte2; CARD16 defaultChar; CARD16 nFontProps; /* followed by this many xFontProp structures */ CARD8 drawDirection; CARD8 minByte1, maxByte1; BOOL allCharsExist; INT16 fontAscent, fontDescent; CARD32 nCharInfos; /* followed by this many xLbxCharInfo structures */ } xLbxFontInfo; typedef struct { BYTE type; /* X_Reply */ CARD8 compression; CARD16 sequenceNumber; CARD32 length; CARD32 tag; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; /* X_QueryFont sticks much of the data in the base reply packet, * but we hope that it won't be needed, (and it won't fit in 32 bytes * with the tag anyways) * * if any additional data is needed, its sent in a xLbxFontInfo */ } xLbxQueryFontReply; #define sz_xLbxQueryFontReply 32 typedef struct _LbxChangeProperty { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxChangeProperty */ CARD16 length; Window window; Atom property; Atom type; CARD8 format; CARD8 mode; BYTE pad[2]; CARD32 nUnits; } xLbxChangePropertyReq; #define sz_xLbxChangePropertyReq 24 typedef struct { BYTE type; /* X_Reply */ CARD8 pad; CARD16 sequenceNumber; CARD32 length; CARD32 tag; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxChangePropertyReply; #define sz_xLbxChangePropertyReply 32 typedef struct _LbxGetProperty { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGetProperty */ CARD16 length; Window window; Atom property; Atom type; CARD8 delete; BYTE pad[3]; CARD32 longOffset; CARD32 longLength; } xLbxGetPropertyReq; #define sz_xLbxGetPropertyReq 28 typedef struct { BYTE type; /* X_Reply */ CARD8 format; CARD16 sequenceNumber; CARD32 length; Atom propertyType; CARD32 bytesAfter; CARD32 nItems; CARD32 tag; CARD32 pad1; CARD32 pad2; } xLbxGetPropertyReply; #define sz_xLbxGetPropertyReply 32 typedef struct _LbxTagData { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxTagData */ CARD16 length; XID tag; CARD32 real_length; /* data */ } xLbxTagDataReq; #define sz_xLbxTagDataReq 12 typedef struct _LbxInvalidateTag { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxInvalidateTag */ CARD16 length; CARD32 tag; } xLbxInvalidateTagReq; #define sz_xLbxInvalidateTagReq 8 typedef struct _LbxPutImage { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxPutImage */ CARD16 length; CARD8 compressionMethod; CARD8 cacheEnts; CARD8 bitPacked; /* rest is variable */ } xLbxPutImageReq; #define sz_xLbxPutImageReq 7 typedef struct { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxGetImage */ CARD16 length; Drawable drawable; INT16 x, y; CARD16 width, height; CARD32 planeMask; CARD8 format; CARD8 pad1; CARD16 pad2; } xLbxGetImageReq; #define sz_xLbxGetImageReq 24 typedef struct { BYTE type; /* X_Reply */ CARD8 depth; CARD16 sequenceNumber; CARD32 lbxLength; CARD32 xLength; VisualID visual; CARD8 compressionMethod; CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLbxGetImageReply; #define sz_xLbxGetImageReply 32 /* Following used for LbxPolyPoint, LbxPolyLine, LbxPolySegment, LbxPolyRectangle, LbxPolyArc, LbxPolyFillRectangle and LbxPolyFillArc */ #define GFX_CACHE_SIZE 15 #define GFXdCacheEnt(e) ((e) & 0xf) #define GFXgCacheEnt(e) (((e) >> 4) & 0xf) #define GFXCacheEnts(d,g) (((d) & 0xf) | (((g) & 0xf) << 4)) #define GFXCacheNone 0xf typedef struct _LbxPolyPoint { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD8 cacheEnts; CARD8 padBytes; } xLbxPolyPointReq; #define sz_xLbxPolyPointReq 6 typedef xLbxPolyPointReq xLbxPolyLineReq; typedef xLbxPolyPointReq xLbxPolySegmentReq; typedef xLbxPolyPointReq xLbxPolyRectangleReq; typedef xLbxPolyPointReq xLbxPolyArcReq; typedef xLbxPolyPointReq xLbxPolyFillRectangleReq; typedef xLbxPolyPointReq xLbxPolyFillArcReq; #define sz_xLbxPolyLineReq sz_xLbxPolyPointReq #define sz_xLbxPolySegmentReq sz_xLbxPolyPointReq #define sz_xLbxPolyRectangleReq sz_xLbxPolyPointReq #define sz_xLbxPolyArcReq sz_xLbxPolyPointReq #define sz_xLbxPolyFillRectangleReq sz_xLbxPolyPointReq #define sz_xLbxPolyFillArc sz_xLbxPolyPointReq typedef struct _LbxFillPoly { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD8 cacheEnts; BYTE shape; CARD8 padBytes; } xLbxFillPolyReq; #define sz_xLbxFillPolyReq 7 typedef struct _LbxCopyArea { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD8 srcCache; /* source drawable */ CARD8 cacheEnts; /* dest drawable and gc */ /* followed by encoded src x, src y, dst x, dst y, width, height */ } xLbxCopyAreaReq; #define sz_xLbxCopyAreaReq 6 typedef struct _LbxCopyPlane { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD32 bitPlane; CARD8 srcCache; /* source drawable */ CARD8 cacheEnts; /* dest drawable and gc */ /* followed by encoded src x, src y, dst x, dst y, width, height */ } xLbxCopyPlaneReq; #define sz_xLbxCopyPlaneReq 10 typedef struct _LbxPolyText { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD8 cacheEnts; /* followed by encoded src x, src y coordinates and text elts */ } xLbxPolyTextReq; #define sz_xLbxPolyTextReq 5 typedef xLbxPolyTextReq xLbxPolyText8Req; typedef xLbxPolyTextReq xLbxPolyText16Req; #define sz_xLbxPolyTextReq 5 #define sz_xLbxPolyText8Req 5 #define sz_xLbxPolyText16Req 5 typedef struct _LbxImageText { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; CARD16 length; CARD8 cacheEnts; CARD8 nChars; /* followed by encoded src x, src y coordinates and string */ } xLbxImageTextReq; typedef xLbxImageTextReq xLbxImageText8Req; typedef xLbxImageTextReq xLbxImageText16Req; #define sz_xLbxImageTextReq 6 #define sz_xLbxImageText8Req 6 #define sz_xLbxImageText16Req 6 typedef struct { CARD8 offset; CARD8 diff; } xLbxDiffItem; #define sz_xLbxDiffItem 2 typedef struct { BYTE type; /* X_Reply */ CARD8 nOpts; CARD16 sequenceNumber; CARD32 length; CARD32 optDataStart; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxStartReply; #define sz_xLbxStartReply 32 #define sz_xLbxStartReplyHdr 8 typedef struct _LbxQueryExtension { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxQueryExtension */ CARD16 length; CARD32 nbytes; } xLbxQueryExtensionReq; #define sz_xLbxQueryExtensionReq 8 typedef struct _LbxQueryExtensionReply { BYTE type; /* X_Reply */ CARD8 numReqs; CARD16 sequenceNumber; CARD32 length; BOOL present; CARD8 major_opcode; CARD8 first_event; CARD8 first_error; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; /* reply & event generating requests */ } xLbxQueryExtensionReply; #define sz_xLbxQueryExtensionReply 32 typedef struct _LbxBeginLargeRequest { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxBeginLargeRequest */ CARD16 length; CARD32 largeReqLength; } xLbxBeginLargeRequestReq; #define sz_BeginLargeRequestReq 8 typedef struct _LbxLargeRequestData { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxLargeRequestData */ CARD16 length; /* followed by LISTofCARD8 data */ } xLbxLargeRequestDataReq; #define sz_LargeRequestDataReq 4 typedef struct _LbxEndLargeRequest { CARD8 reqType; /* always LbxReqCode */ CARD8 lbxReqType; /* always X_LbxEndLargeRequest */ CARD16 length; } xLbxEndLargeRequestReq; #define sz_EndLargeRequestReq 4 typedef struct _LbxSwitchEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxSwitchEvent */ CARD16 pad; CARD32 client; } xLbxSwitchEvent; #define sz_xLbxSwitchEvent 8 typedef struct _LbxCloseEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxCloseEvent */ CARD16 sequenceNumber; CARD32 client; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xLbxCloseEvent; #define sz_xLbxCloseEvent 32 typedef struct _LbxInvalidateTagEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxInvalidateTagEvent */ CARD16 sequenceNumber; CARD32 tag; CARD32 tagType; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLbxInvalidateTagEvent; #define sz_xLbxInvalidateTagEvent 32 typedef struct _LbxSendTagDataEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxSendTagDataEvent */ CARD16 sequenceNumber; CARD32 tag; CARD32 tagType; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLbxSendTagDataEvent; #define sz_xLbxSendTagDataEvent 32 typedef struct _LbxListenToOneEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxListenToOneEvent */ CARD16 sequenceNumber; CARD32 client; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xLbxListenToOneEvent; #define sz_xLbxListenToOneEvent 32 typedef struct _LbxListenToAllEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxListenToAllEvent */ CARD16 sequenceNumber; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xLbxListenToAllEvent; #define sz_xLbxListenToOneEvent 32 typedef struct _LbxReleaseCmapEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxReleaseCmapEvent */ CARD16 sequenceNumber; Colormap colormap; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xLbxReleaseCmapEvent; #define sz_xLbxReleaseCmapEvent 32 typedef struct _LbxFreeCellsEvent { BYTE type; /* always eventBase + LbxEvent */ BYTE lbxType; /* LbxFreeCellsEvent */ CARD16 sequenceNumber; Colormap colormap; CARD32 pixelStart; CARD32 pixelEnd; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xLbxFreeCellsEvent; #define sz_xLbxFreeCellsEvent 32 /* * squished X event sizes. If these change, be sure to update lbxquish.c * and unsquish.c appropriately * * lbxsz_* is the padded squished length * lbxupsz_* is the unpadded squished length */ #define lbxsz_KeyButtonEvent 32 #define lbxupsz_KeyButtonEvent 31 #define lbxsz_EnterLeaveEvent 32 #define lbxupsz_EnterLeaveEvent 32 #define lbxsz_FocusEvent 12 #define lbxupsz_FocusEvent 9 #define lbxsz_KeymapEvent 32 #define lbxupsz_KeymapEvent 32 #define lbxsz_ExposeEvent 20 #define lbxupsz_ExposeEvent 18 #define lbxsz_GfxExposeEvent 24 #define lbxupsz_GfxExposeEvent 21 #define lbxsz_NoExposeEvent 12 #define lbxupsz_NoExposeEvent 11 #define lbxsz_VisibilityEvent 12 #define lbxupsz_VisibilityEvent 9 #define lbxsz_CreateNotifyEvent 24 #define lbxupsz_CreateNotifyEvent 23 #define lbxsz_DestroyNotifyEvent 12 #define lbxupsz_DestroyNotifyEvent 12 #define lbxsz_UnmapNotifyEvent 16 #define lbxupsz_UnmapNotifyEvent 13 #define lbxsz_MapNotifyEvent 16 #define lbxupsz_MapNotifyEvent 13 #define lbxsz_MapRequestEvent 12 #define lbxupsz_MapRequestEvent 12 #define lbxsz_ReparentEvent 24 #define lbxupsz_ReparentEvent 21 #define lbxsz_ConfigureNotifyEvent 28 #define lbxupsz_ConfigureNotifyEvent 27 #define lbxsz_ConfigureRequestEvent 28 #define lbxupsz_ConfigureRequestEvent 28 #define lbxsz_GravityEvent 16 #define lbxupsz_GravityEvent 16 #define lbxsz_ResizeRequestEvent 12 #define lbxupsz_ResizeRequestEvent 12 #define lbxsz_CirculateEvent 20 #define lbxupsz_CirculateEvent 17 #define lbxsz_PropertyEvent 20 #define lbxupsz_PropertyEvent 17 #define lbxsz_SelectionClearEvent 16 #define lbxupsz_SelectionClearEvent 16 #define lbxsz_SelectionRequestEvent 28 #define lbxupsz_SelectionRequestEvent 28 #define lbxsz_SelectionNotifyEvent 24 #define lbxupsz_SelectionNotifyEvent 24 #define lbxsz_ColormapEvent 16 #define lbxupsz_ColormapEvent 14 #define lbxsz_MappingNotifyEvent 8 #define lbxupsz_MappingNotifyEvent 7 #define lbxsz_ClientMessageEvent 32 #define lbxupsz_ClientMessageEvent 32 #define lbxsz_UnknownEvent 32 #ifdef DEBUG #define DBG_SWITCH 0x00000001 #define DBG_CLOSE 0x00000002 #define DBG_IO 0x00000004 #define DBG_READ_REQ 0x00000008 #define DBG_LEN 0x00000010 #define DBG_BLOCK 0x00000020 #define DBG_CLIENT 0x00000040 #define DBG_DELTA 0x00000080 #endif /* * Cancel the previous redefinition of the basic types, thus restoring their * X.h definitions. */ #undef XID #undef Atom #undef Colormap #undef Drawable #undef VisualID #undef Window #endif /* _LBXPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/Xv.h0000644000175000017500000000572314443010026015530 00000000000000/*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or MIT not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #ifndef XV_H #define XV_H /* ** File: ** ** Xv.h --- Xv shared library and server header file ** ** Author: ** ** David Carver (Digital Workstation Engineering/Project Athena) ** ** Revisions: ** ** 05.15.91 Carver ** - version 2.0 upgrade ** ** 01.24.91 Carver ** - version 1.4 upgrade ** */ #include #define XvName "XVideo" #define XvVersion 2 #define XvRevision 2 /* Symbols */ typedef XID XvPortID; typedef XID XvEncodingID; #define XvNone 0 #define XvInput 0 #define XvOutput 1 #define XvInputMask (1< #include #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define RROutput CARD32 #define RRMode CARD32 #define RRCrtc CARD32 #define RRProvider CARD32 #define RRModeFlags CARD32 #define RRLease CARD32 #define Rotation CARD16 #define SizeID CARD16 #define SubpixelOrder CARD16 /* * data structures */ typedef struct { CARD16 widthInPixels; CARD16 heightInPixels; CARD16 widthInMillimeters; CARD16 heightInMillimeters; } xScreenSizes; #define sz_xScreenSizes 8 /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xRRQueryVersionReq; #define sz_xRRQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRQueryVersionReply; #define sz_xRRQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; } xRRGetScreenInfoReq; #define sz_xRRGetScreenInfoReq 8 /* * the xRRScreenInfoReply structure is followed by: * * the size information */ typedef struct { BYTE type; /* X_Reply */ BYTE setOfRotations; CARD16 sequenceNumber; CARD32 length; Window root; Time timestamp; Time configTimestamp; CARD16 nSizes; SizeID sizeID; Rotation rotation; CARD16 rate; CARD16 nrateEnts; CARD16 pad; } xRRGetScreenInfoReply; #define sz_xRRGetScreenInfoReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Drawable drawable; Time timestamp; Time configTimestamp; SizeID sizeID; Rotation rotation; } xRR1_0SetScreenConfigReq; #define sz_xRR1_0SetScreenConfigReq 20 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Drawable drawable; Time timestamp; Time configTimestamp; SizeID sizeID; Rotation rotation; CARD16 rate; CARD16 pad; } xRRSetScreenConfigReq; #define sz_xRRSetScreenConfigReq 24 typedef struct { BYTE type; /* X_Reply */ CARD8 status; CARD16 sequenceNumber; CARD32 length; Time newTimestamp; Time newConfigTimestamp; Window root; CARD16 subpixelOrder; CARD16 pad4; CARD32 pad5; CARD32 pad6; } xRRSetScreenConfigReply; #define sz_xRRSetScreenConfigReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; CARD16 enable; CARD16 pad2; } xRRSelectInputReq; #define sz_xRRSelectInputReq 12 /* * Additions for version 1.2 */ typedef struct _xRRModeInfo { RRMode id; CARD16 width; CARD16 height; CARD32 dotClock; CARD16 hSyncStart; CARD16 hSyncEnd; CARD16 hTotal; CARD16 hSkew; CARD16 vSyncStart; CARD16 vSyncEnd; CARD16 vTotal; CARD16 nameLength; RRModeFlags modeFlags; } xRRModeInfo; #define sz_xRRModeInfo 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; } xRRGetScreenSizeRangeReq; #define sz_xRRGetScreenSizeRangeReq 8 typedef struct { BYTE type; /* X_Reply */ CARD8 pad; CARD16 sequenceNumber; CARD32 length; CARD16 minWidth; CARD16 minHeight; CARD16 maxWidth; CARD16 maxHeight; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xRRGetScreenSizeRangeReply; #define sz_xRRGetScreenSizeRangeReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; CARD16 width; CARD16 height; CARD32 widthInMillimeters; CARD32 heightInMillimeters; } xRRSetScreenSizeReq; #define sz_xRRSetScreenSizeReq 20 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; } xRRGetScreenResourcesReq; #define sz_xRRGetScreenResourcesReq 8 typedef struct { BYTE type; CARD8 pad; CARD16 sequenceNumber; CARD32 length; Time timestamp; Time configTimestamp; CARD16 nCrtcs; CARD16 nOutputs; CARD16 nModes; CARD16 nbytesNames; CARD32 pad1; CARD32 pad2; } xRRGetScreenResourcesReply; #define sz_xRRGetScreenResourcesReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Time configTimestamp; } xRRGetOutputInfoReq; #define sz_xRRGetOutputInfoReq 12 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time timestamp; RRCrtc crtc; CARD32 mmWidth; CARD32 mmHeight; CARD8 connection; CARD8 subpixelOrder; CARD16 nCrtcs; CARD16 nModes; CARD16 nPreferred; CARD16 nClones; CARD16 nameLength; } xRRGetOutputInfoReply; #define sz_xRRGetOutputInfoReply 36 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; } xRRListOutputPropertiesReq; #define sz_xRRListOutputPropertiesReq 8 typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 nAtoms; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRListOutputPropertiesReply; #define sz_xRRListOutputPropertiesReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Atom property; } xRRQueryOutputPropertyReq; #define sz_xRRQueryOutputPropertyReq 12 typedef struct { BYTE type; BYTE pad0; CARD16 sequenceNumber; CARD32 length; BOOL pending; BOOL range; BOOL immutable; BYTE pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRQueryOutputPropertyReply; #define sz_xRRQueryOutputPropertyReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Atom property; BOOL pending; BOOL range; CARD16 pad; } xRRConfigureOutputPropertyReq; #define sz_xRRConfigureOutputPropertyReq 16 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Atom property; Atom type; CARD8 format; CARD8 mode; CARD16 pad; CARD32 nUnits; } xRRChangeOutputPropertyReq; #define sz_xRRChangeOutputPropertyReq 24 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Atom property; } xRRDeleteOutputPropertyReq; #define sz_xRRDeleteOutputPropertyReq 12 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; Atom property; Atom type; CARD32 longOffset; CARD32 longLength; #ifdef __cplusplus BOOL _delete; #else BOOL delete; #endif BOOL pending; CARD16 pad1; } xRRGetOutputPropertyReq; #define sz_xRRGetOutputPropertyReq 28 typedef struct { BYTE type; CARD8 format; CARD16 sequenceNumber; CARD32 length; Atom propertyType; CARD32 bytesAfter; CARD32 nItems; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xRRGetOutputPropertyReply; #define sz_xRRGetOutputPropertyReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; xRRModeInfo modeInfo; } xRRCreateModeReq; #define sz_xRRCreateModeReq 40 typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; RRMode mode; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRCreateModeReply; #define sz_xRRCreateModeReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRMode mode; } xRRDestroyModeReq; #define sz_xRRDestroyModeReq 8 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; RRMode mode; } xRRAddOutputModeReq; #define sz_xRRAddOutputModeReq 12 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RROutput output; RRMode mode; } xRRDeleteOutputModeReq; #define sz_xRRDeleteOutputModeReq 12 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; Time configTimestamp; } xRRGetCrtcInfoReq; #define sz_xRRGetCrtcInfoReq 12 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time timestamp; INT16 x; INT16 y; CARD16 width; CARD16 height; RRMode mode; Rotation rotation; Rotation rotations; CARD16 nOutput; CARD16 nPossibleOutput; } xRRGetCrtcInfoReply; #define sz_xRRGetCrtcInfoReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; Time timestamp; Time configTimestamp; INT16 x; INT16 y; RRMode mode; Rotation rotation; CARD16 pad; } xRRSetCrtcConfigReq; #define sz_xRRSetCrtcConfigReq 28 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time newTimestamp; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRSetCrtcConfigReply; #define sz_xRRSetCrtcConfigReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; } xRRGetCrtcGammaSizeReq; #define sz_xRRGetCrtcGammaSizeReq 8 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; CARD16 size; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRGetCrtcGammaSizeReply; #define sz_xRRGetCrtcGammaSizeReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; } xRRGetCrtcGammaReq; #define sz_xRRGetCrtcGammaReq 8 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; CARD16 size; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRGetCrtcGammaReply; #define sz_xRRGetCrtcGammaReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; CARD16 size; CARD16 pad1; } xRRSetCrtcGammaReq; #define sz_xRRSetCrtcGammaReq 12 /* * Additions for V1.3 */ typedef xRRGetScreenResourcesReq xRRGetScreenResourcesCurrentReq; #define sz_xRRGetScreenResourcesCurrentReq sz_xRRGetScreenResourcesReq typedef xRRGetScreenResourcesReply xRRGetScreenResourcesCurrentReply; #define sz_xRRGetScreenResourcesCurrentReply sz_xRRGetScreenResourcesReply typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; xRenderTransform transform; CARD16 nbytesFilter; /* number of bytes in filter name */ CARD16 pad; } xRRSetCrtcTransformReq; #define sz_xRRSetCrtcTransformReq 48 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; } xRRGetCrtcTransformReq; #define sz_xRRGetCrtcTransformReq 8 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; xRenderTransform pendingTransform; BYTE hasTransforms; CARD8 pad0; CARD16 pad1; xRenderTransform currentTransform; CARD32 pad2; CARD16 pendingNbytesFilter; /* number of bytes in filter name */ CARD16 pendingNparamsFilter; /* number of filter params */ CARD16 currentNbytesFilter; /* number of bytes in filter name */ CARD16 currentNparamsFilter; /* number of filter params */ } xRRGetCrtcTransformReply; #define sz_xRRGetCrtcTransformReply 96 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; RROutput output; } xRRSetOutputPrimaryReq; #define sz_xRRSetOutputPrimaryReq 12 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; } xRRGetOutputPrimaryReq; #define sz_xRRGetOutputPrimaryReq 8 typedef struct { BYTE type; CARD8 pad; CARD16 sequenceNumber; CARD32 length; RROutput output; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRGetOutputPrimaryReply; #define sz_xRRGetOutputPrimaryReply 32 /* * Additions for V1.4 */ typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; } xRRGetProvidersReq; #define sz_xRRGetProvidersReq 8 typedef struct { BYTE type; CARD8 pad; CARD16 sequenceNumber; CARD32 length; Time timestamp; CARD16 nProviders; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRGetProvidersReply; #define sz_xRRGetProvidersReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Time configTimestamp; } xRRGetProviderInfoReq; #define sz_xRRGetProviderInfoReq 12 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time timestamp; CARD32 capabilities; CARD16 nCrtcs; CARD16 nOutputs; CARD16 nAssociatedProviders; CARD16 nameLength; CARD32 pad1; CARD32 pad2; } xRRGetProviderInfoReply; #define sz_xRRGetProviderInfoReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; RRProvider source_provider; Time configTimestamp; } xRRSetProviderOutputSourceReq; #define sz_xRRSetProviderOutputSourceReq 16 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; RRProvider sink_provider; Time configTimestamp; } xRRSetProviderOffloadSinkReq; #define sz_xRRSetProviderOffloadSinkReq 16 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; } xRRListProviderPropertiesReq; #define sz_xRRListProviderPropertiesReq 8 typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 nAtoms; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRListProviderPropertiesReply; #define sz_xRRListProviderPropertiesReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Atom property; } xRRQueryProviderPropertyReq; #define sz_xRRQueryProviderPropertyReq 12 typedef struct { BYTE type; BYTE pad0; CARD16 sequenceNumber; CARD32 length; BOOL pending; BOOL range; BOOL immutable; BYTE pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRRQueryProviderPropertyReply; #define sz_xRRQueryProviderPropertyReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Atom property; BOOL pending; BOOL range; CARD16 pad; } xRRConfigureProviderPropertyReq; #define sz_xRRConfigureProviderPropertyReq 16 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Atom property; Atom type; CARD8 format; CARD8 mode; CARD16 pad; CARD32 nUnits; } xRRChangeProviderPropertyReq; #define sz_xRRChangeProviderPropertyReq 24 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Atom property; } xRRDeleteProviderPropertyReq; #define sz_xRRDeleteProviderPropertyReq 12 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRProvider provider; Atom property; Atom type; CARD32 longOffset; CARD32 longLength; #ifdef __cplusplus BOOL _delete; #else BOOL delete; #endif BOOL pending; CARD16 pad1; } xRRGetProviderPropertyReq; #define sz_xRRGetProviderPropertyReq 28 typedef struct { BYTE type; CARD8 format; CARD16 sequenceNumber; CARD32 length; Atom propertyType; CARD32 bytesAfter; CARD32 nItems; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xRRGetProviderPropertyReply; #define sz_xRRGetProviderPropertyReply 32 /* * Additions for V1.6 */ typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; RRLease lid; CARD16 nCrtcs; CARD16 nOutputs; } xRRCreateLeaseReq; #define sz_xRRCreateLeaseReq 16 typedef struct { BYTE type; CARD8 nfd; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xRRCreateLeaseReply; #define sz_xRRCreateLeaseReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRLease lid; BYTE terminate; CARD8 pad1; CARD16 pad2; } xRRFreeLeaseReq; #define sz_xRRFreeLeaseReq 12 /* * event */ typedef struct { CARD8 type; /* always evBase + ScreenChangeNotify */ CARD8 rotation; /* new rotation */ CARD16 sequenceNumber; Time timestamp; /* time screen was changed */ Time configTimestamp; /* time config data was changed */ Window root; /* root window */ Window window; /* window requesting notification */ SizeID sizeID; /* new size ID */ CARD16 subpixelOrder; /* subpixel order */ CARD16 widthInPixels; /* new size */ CARD16 heightInPixels; CARD16 widthInMillimeters; CARD16 heightInMillimeters; } xRRScreenChangeNotifyEvent; #define sz_xRRScreenChangeNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_CrtcChange */ CARD16 sequenceNumber; Time timestamp; /* time crtc was changed */ Window window; /* window requesting notification */ RRCrtc crtc; /* affected CRTC */ RRMode mode; /* current mode */ CARD16 rotation; /* rotation and reflection */ CARD16 pad1; /* unused */ INT16 x; /* new location */ INT16 y; CARD16 width; /* new size */ CARD16 height; } xRRCrtcChangeNotifyEvent; #define sz_xRRCrtcChangeNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_OutputChange */ CARD16 sequenceNumber; Time timestamp; /* time output was changed */ Time configTimestamp; /* time config was changed */ Window window; /* window requesting notification */ RROutput output; /* affected output */ RRCrtc crtc; /* current crtc */ RRMode mode; /* current mode */ CARD16 rotation; /* rotation and reflection */ CARD8 connection; /* connection status */ CARD8 subpixelOrder; /* subpixel order */ } xRROutputChangeNotifyEvent; #define sz_xRROutputChangeNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_OutputProperty */ CARD16 sequenceNumber; Window window; /* window requesting notification */ RROutput output; /* affected output */ Atom atom; /* property name */ Time timestamp; /* time crtc was changed */ CARD8 state; /* NewValue or Deleted */ CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; } xRROutputPropertyNotifyEvent; #define sz_xRROutputPropertyNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_ProviderChange */ CARD16 sequenceNumber; Time timestamp; /* time provider was changed */ Window window; /* window requesting notification */ RRProvider provider; /* affected provider */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xRRProviderChangeNotifyEvent; #define sz_xRRProviderChangeNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_ProviderProperty */ CARD16 sequenceNumber; Window window; /* window requesting notification */ RRProvider provider; /* affected provider */ Atom atom; /* property name */ Time timestamp; /* time provider was changed */ CARD8 state; /* NewValue or Deleted */ CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; } xRRProviderPropertyNotifyEvent; #define sz_xRRProviderPropertyNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_ResourceChange */ CARD16 sequenceNumber; Time timestamp; /* time resource was changed */ Window window; /* window requesting notification */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRResourceChangeNotifyEvent; #define sz_xRRResourceChangeNotifyEvent 32 typedef struct { CARD8 type; /* always evBase + RRNotify */ CARD8 subCode; /* RRNotify_Lease */ CARD16 sequenceNumber; Time timestamp; /* time resource was changed */ Window window; /* window requesting notification */ RRLease lease; CARD8 created; /* created/deleted */ CARD8 pad0; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xRRLeaseNotifyEvent; #define sz_xRRLeaseNotifyEvent 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; } xRRGetPanningReq; #define sz_xRRGetPanningReq 8 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time timestamp; CARD16 left; CARD16 top; CARD16 width; CARD16 height; CARD16 track_left; CARD16 track_top; CARD16 track_width; CARD16 track_height; INT16 border_left; INT16 border_top; INT16 border_right; INT16 border_bottom; } xRRGetPanningReply; #define sz_xRRGetPanningReply 36 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; RRCrtc crtc; Time timestamp; CARD16 left; CARD16 top; CARD16 width; CARD16 height; CARD16 track_left; CARD16 track_top; CARD16 track_width; CARD16 track_height; INT16 border_left; INT16 border_top; INT16 border_right; INT16 border_bottom; } xRRSetPanningReq; #define sz_xRRSetPanningReq 36 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time newTimestamp; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRRSetPanningReply; #define sz_xRRSetPanningReply 32 typedef struct { Atom name; BOOL primary; BOOL automatic; CARD16 noutput; INT16 x; INT16 y; CARD16 width; CARD16 height; CARD32 widthInMillimeters; CARD32 heightInMillimeters; } xRRMonitorInfo; #define sz_xRRMonitorInfo 24 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; BOOL get_active; CARD8 pad; CARD16 pad2; } xRRGetMonitorsReq; #define sz_xRRGetMonitorsReq 12 typedef struct { BYTE type; CARD8 status; CARD16 sequenceNumber; CARD32 length; Time timestamp; CARD32 nmonitors; CARD32 noutputs; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xRRGetMonitorsReply; #define sz_xRRGetMonitorsReply 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; xRRMonitorInfo monitor; } xRRSetMonitorReq; #define sz_xRRSetMonitorReq 32 typedef struct { CARD8 reqType; CARD8 randrReqType; CARD16 length; Window window; Atom name; } xRRDeleteMonitorReq; #define sz_xRRDeleteMonitorReq 12 #undef RRLease #undef RRModeFlags #undef RRCrtc #undef RRMode #undef RROutput #undef RRMode #undef RRCrtc #undef RRProvider #undef Drawable #undef Window #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef Time #undef KeyCode #undef KeySym #undef Rotation #undef SizeID #undef SubpixelOrder #endif /* _XRANDRP_H_ */ xorgproto-2023.2/include/X11/extensions/xcalibratewire.h0000644000175000017500000000316414443010026020135 00000000000000/* * Copyright © 2003 Philip Blundell * * 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 Philip Blundell not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Philip Blundell makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * PHILIP BLUNDELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL PHILIP BLUNDELL 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. */ #ifndef XCALIBRATEWIRE_H #define XCALIBRATEWIRE_H #define XCALIBRATE_MAJOR_VERSION 0 #define XCALIBRATE_MINOR_VERSION 1 #define XCALIBRATE_NAME "XCALIBRATE" #define X_XCalibrateQueryVersion 0 #define X_XCalibrateRawMode 1 #define X_XCalibrateScreenToCoord 2 #define XCalibrateNumberRequests (X_XCalibrateScreenToCoord + 1) #define X_XCalibrateRawTouchscreen 0 #define XCalibrateNumberEvents (X_XCalibrateRawTouchscreen + 1) #define XCalibrateNumberErrors 0 #endif xorgproto-2023.2/include/X11/extensions/renderproto.h0000644000175000017500000003164214443010026017475 00000000000000/* * Copyright © 2000 SuSE, Inc. * * 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 SuSE not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. SuSE makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE * 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. * * Author: Keith Packard, SuSE, Inc. */ #ifndef _XRENDERP_H_ #define _XRENDERP_H_ #include #include #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 #define Picture CARD32 #define PictFormat CARD32 #define Fixed INT32 #define Glyphset CARD32 /* * data structures */ typedef struct { CARD16 red; CARD16 redMask; CARD16 green; CARD16 greenMask; CARD16 blue; CARD16 blueMask; CARD16 alpha; CARD16 alphaMask; } xDirectFormat; #define sz_xDirectFormat 16 typedef struct { PictFormat id; CARD8 type; CARD8 depth; CARD16 pad1; xDirectFormat direct; Colormap colormap; } xPictFormInfo; #define sz_xPictFormInfo 28 typedef struct { VisualID visual; PictFormat format; } xPictVisual; #define sz_xPictVisual 8 typedef struct { CARD8 depth; CARD8 pad1; CARD16 nPictVisuals; CARD32 pad2; } xPictDepth; #define sz_xPictDepth 8 typedef struct { CARD32 nDepth; PictFormat fallback; } xPictScreen; #define sz_xPictScreen 8 typedef struct { CARD32 pixel; CARD16 red; CARD16 green; CARD16 blue; CARD16 alpha; } xIndexValue; #define sz_xIndexValue 12 typedef struct { CARD16 red; CARD16 green; CARD16 blue; CARD16 alpha; } xRenderColor; #define sz_xRenderColor 8 typedef struct { Fixed x; Fixed y; } xPointFixed; #define sz_xPointFixed 8 typedef struct { xPointFixed p1; xPointFixed p2; } xLineFixed; #define sz_xLineFixed 16 typedef struct { xPointFixed p1, p2, p3; } xTriangle; #define sz_xTriangle 24 typedef struct { Fixed top; Fixed bottom; xLineFixed left; xLineFixed right; } xTrapezoid; #define sz_xTrapezoid 40 typedef struct { CARD16 width; CARD16 height; INT16 x; INT16 y; INT16 xOff; INT16 yOff; } xGlyphInfo; #define sz_xGlyphInfo 12 typedef struct { CARD8 len; CARD8 pad1; CARD16 pad2; INT16 deltax; INT16 deltay; } xGlyphElt; #define sz_xGlyphElt 8 typedef struct { Fixed l, r, y; } xSpanFix; #define sz_xSpanFix 12 typedef struct { xSpanFix top, bot; } xTrap; #define sz_xTrap 24 /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xRenderQueryVersionReq; #define sz_xRenderQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRenderQueryVersionReply; #define sz_xRenderQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; } xRenderQueryPictFormatsReq; #define sz_xRenderQueryPictFormatsReq 4 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numFormats; CARD32 numScreens; CARD32 numDepths; CARD32 numVisuals; CARD32 numSubpixel; /* Version 0.6 */ CARD32 pad5; } xRenderQueryPictFormatsReply; #define sz_xRenderQueryPictFormatsReply 32 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; PictFormat format; } xRenderQueryPictIndexValuesReq; #define sz_xRenderQueryPictIndexValuesReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numIndexValues; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xRenderQueryPictIndexValuesReply; #define sz_xRenderQueryPictIndexValuesReply 32 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture pid; Drawable drawable; PictFormat format; CARD32 mask; } xRenderCreatePictureReq; #define sz_xRenderCreatePictureReq 20 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; CARD32 mask; } xRenderChangePictureReq; #define sz_xRenderChangePictureReq 12 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; INT16 xOrigin; INT16 yOrigin; } xRenderSetPictureClipRectanglesReq; #define sz_xRenderSetPictureClipRectanglesReq 12 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; } xRenderFreePictureReq; #define sz_xRenderFreePictureReq 8 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture mask; Picture dst; INT16 xSrc; INT16 ySrc; INT16 xMask; INT16 yMask; INT16 xDst; INT16 yDst; CARD16 width; CARD16 height; } xRenderCompositeReq; #define sz_xRenderCompositeReq 36 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture src; Picture dst; CARD32 colorScale; CARD32 alphaScale; INT16 xSrc; INT16 ySrc; INT16 xDst; INT16 yDst; CARD16 width; CARD16 height; } xRenderScaleReq; #define sz_xRenderScaleReq 32 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture dst; PictFormat maskFormat; INT16 xSrc; INT16 ySrc; } xRenderTrapezoidsReq; #define sz_xRenderTrapezoidsReq 24 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture dst; PictFormat maskFormat; INT16 xSrc; INT16 ySrc; } xRenderTrianglesReq; #define sz_xRenderTrianglesReq 24 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture dst; PictFormat maskFormat; INT16 xSrc; INT16 ySrc; } xRenderTriStripReq; #define sz_xRenderTriStripReq 24 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture dst; PictFormat maskFormat; INT16 xSrc; INT16 ySrc; } xRenderTriFanReq; #define sz_xRenderTriFanReq 24 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Glyphset gsid; PictFormat format; } xRenderCreateGlyphSetReq; #define sz_xRenderCreateGlyphSetReq 12 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Glyphset gsid; Glyphset existing; } xRenderReferenceGlyphSetReq; #define sz_xRenderReferenceGlyphSetReq 24 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Glyphset glyphset; } xRenderFreeGlyphSetReq; #define sz_xRenderFreeGlyphSetReq 8 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Glyphset glyphset; CARD32 nglyphs; } xRenderAddGlyphsReq; #define sz_xRenderAddGlyphsReq 12 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Glyphset glyphset; } xRenderFreeGlyphsReq; #define sz_xRenderFreeGlyphsReq 8 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture src; Picture dst; PictFormat maskFormat; Glyphset glyphset; INT16 xSrc; INT16 ySrc; } xRenderCompositeGlyphsReq, xRenderCompositeGlyphs8Req, xRenderCompositeGlyphs16Req, xRenderCompositeGlyphs32Req; #define sz_xRenderCompositeGlyphs8Req 28 #define sz_xRenderCompositeGlyphs16Req 28 #define sz_xRenderCompositeGlyphs32Req 28 /* 0.1 and higher */ typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; CARD8 op; CARD8 pad1; CARD16 pad2; Picture dst; xRenderColor color; } xRenderFillRectanglesReq; #define sz_xRenderFillRectanglesReq 20 /* 0.5 and higher */ typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Cursor cid; Picture src; CARD16 x; CARD16 y; } xRenderCreateCursorReq; #define sz_xRenderCreateCursorReq 16 /* 0.6 and higher */ /* * This can't use an array because 32-bit values may be in bitfields */ typedef struct { Fixed matrix11; Fixed matrix12; Fixed matrix13; Fixed matrix21; Fixed matrix22; Fixed matrix23; Fixed matrix31; Fixed matrix32; Fixed matrix33; } xRenderTransform; #define sz_xRenderTransform 36 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; xRenderTransform transform; } xRenderSetPictureTransformReq; #define sz_xRenderSetPictureTransformReq 44 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Drawable drawable; } xRenderQueryFiltersReq; #define sz_xRenderQueryFiltersReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numAliases; /* LISTofCARD16 */ CARD32 numFilters; /* LISTofSTRING8 */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xRenderQueryFiltersReply; #define sz_xRenderQueryFiltersReply 32 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; CARD16 nbytes; /* number of bytes in name */ CARD16 pad; } xRenderSetPictureFilterReq; #define sz_xRenderSetPictureFilterReq 12 /* 0.8 and higher */ typedef struct { Cursor cursor; CARD32 delay; } xAnimCursorElt; #define sz_xAnimCursorElt 8 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Cursor cid; } xRenderCreateAnimCursorReq; #define sz_xRenderCreateAnimCursorReq 8 /* 0.9 and higher */ typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture picture; INT16 xOff; INT16 yOff; } xRenderAddTrapsReq; #define sz_xRenderAddTrapsReq 12 /* 0.10 and higher */ typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture pid; xRenderColor color; } xRenderCreateSolidFillReq; #define sz_xRenderCreateSolidFillReq 16 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture pid; xPointFixed p1; xPointFixed p2; CARD32 nStops; } xRenderCreateLinearGradientReq; #define sz_xRenderCreateLinearGradientReq 28 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture pid; xPointFixed inner; xPointFixed outer; Fixed inner_radius; Fixed outer_radius; CARD32 nStops; } xRenderCreateRadialGradientReq; #define sz_xRenderCreateRadialGradientReq 36 typedef struct { CARD8 reqType; CARD8 renderReqType; CARD16 length; Picture pid; xPointFixed center; Fixed angle; /* in degrees */ CARD32 nStops; } xRenderCreateConicalGradientReq; #define sz_xRenderCreateConicalGradientReq 24 #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #undef Picture #undef PictFormat #undef Fixed #undef Glyphset #endif /* _XRENDERP_H_ */ xorgproto-2023.2/include/X11/extensions/multibufconst.h0000644000175000017500000000501714443010026020025 00000000000000/* Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _MULTIBUFCONST_H_ #define _MULTIBUFCONST_H_ #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering" #define MULTIBUFFER_MAJOR_VERSION 1 /* current version numbers */ #define MULTIBUFFER_MINOR_VERSION 1 /* has ClearImageBufferArea */ /* * update_action field */ #define MultibufferUpdateActionUndefined 0 #define MultibufferUpdateActionBackground 1 #define MultibufferUpdateActionUntouched 2 #define MultibufferUpdateActionCopied 3 /* * update_hint field */ #define MultibufferUpdateHintFrequent 0 #define MultibufferUpdateHintIntermittent 1 #define MultibufferUpdateHintStatic 2 /* * valuemask fields */ #define MultibufferWindowUpdateHint (1L << 0) #define MultibufferBufferEventMask (1L << 0) /* * mono vs. stereo and left vs. right */ #define MultibufferModeMono 0 #define MultibufferModeStereo 1 #define MultibufferSideMono 0 #define MultibufferSideLeft 1 #define MultibufferSideRight 2 /* * clobber state */ #define MultibufferUnclobbered 0 #define MultibufferPartiallyClobbered 1 #define MultibufferFullyClobbered 2 /* * event stuff */ #define MultibufferClobberNotifyMask 0x02000000 #define MultibufferUpdateNotifyMask 0x04000000 #define MultibufferClobberNotify 0 #define MultibufferUpdateNotify 1 #define MultibufferNumberEvents (MultibufferUpdateNotify + 1) #define MultibufferBadBuffer 0 #define MultibufferNumberErrors (MultibufferBadBuffer + 1) #endif /* _MULTIBUFCONST_H_ */ xorgproto-2023.2/include/X11/extensions/agproto.h0000644000175000017500000001161514443010026016603 00000000000000/* Copyright 1996, 1998, 2001 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _AGPROTO_H_ /* { */ #define _AGPROTO_H_ #include #define X_XagQueryVersion 0 #define X_XagCreate 1 #define X_XagDestroy 2 #define X_XagGetAttr 3 #define X_XagQuery 4 #define X_XagCreateAssoc 5 #define X_XagDestroyAssoc 6 #define XAppGroup CARD32 /* * Redefine some basic types used by structures defined herein. This allows * both the library and server to view communicated data as 32-bit entities, * thus preventing problems on 64-bit architectures where libXext sees this * data as 64 bits and the server sees it as 32 bits. */ #define Colormap CARD32 #define VisualID CARD32 #define Window CARD32 typedef struct _XagQueryVersion { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagQueryVersion */ CARD16 length; CARD16 client_major_version; CARD16 client_minor_version; } xXagQueryVersionReq; #define sz_xXagQueryVersionReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; CARD16 server_major_version; CARD16 server_minor_version; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXagQueryVersionReply; #define sz_xXagQueryVersionReply 32 /* Set AppGroup Attributes masks */ #define XagSingleScreenMask 1 << 0 #define XagDefaultRootMask 1 << XagNdefaultRoot #define XagRootVisualMask 1 << XagNrootVisual #define XagDefaultColormapMask 1 << XagNdefaultColormap #define XagBlackPixelMask 1 << XagNblackPixel #define XagWhitePixelMask 1 << XagNwhitePixel #define XagAppGroupLeaderMask 1 << XagNappGroupLeader typedef struct _XagCreate { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagCreate */ CARD16 length; XAppGroup app_group; CARD32 attrib_mask; /* LISTofVALUE follows */ } xXagCreateReq; #define sz_xXagCreateReq 12 typedef struct _XagDestroy { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagDestroy */ CARD16 length; XAppGroup app_group; } xXagDestroyReq; #define sz_xXagDestroyReq 8 typedef struct _XagGetAttr { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagGetAttr */ CARD16 length; XAppGroup app_group; } xXagGetAttrReq; #define sz_xXagGetAttrReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; Window default_root; VisualID root_visual; Colormap default_colormap; CARD32 black_pixel; CARD32 white_pixel; BOOL single_screen; BOOL app_group_leader; CARD16 pad2; } xXagGetAttrReply; #define sz_xXagGetAttrReply 32 typedef struct _XagQuery { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagQuery */ CARD16 length; CARD32 resource; } xXagQueryReq; #define sz_xXagQueryReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; XAppGroup app_group; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXagQueryReply; #define sz_xXagQueryReply 32 typedef struct _XagCreateAssoc { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagCreateAssoc */ CARD16 length; Window window; CARD16 window_type; CARD16 system_window_len; /* LISTofCARD8 follows */ } xXagCreateAssocReq; #define sz_xXagCreateAssocReq 12 typedef struct _XagDestroyAssoc { CARD8 reqType; /* always XagReqCode */ CARD8 xagReqType; /* always X_XagDestroyAssoc */ CARD16 length; Window window; } xXagDestroyAssocReq; #define sz_xXagDestroyAssocReq 8 #undef XAppGroup /* * Cancel the previous redefinition of the basic types, thus restoring their * X.h definitions. */ #undef Window #undef Colormap #undef VisualID #endif /* } _AGPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/dmx.h0000644000175000017500000000450514443010026015720 00000000000000/* * Copyright 2002-2004 Red Hat Inc., Durham, North Carolina. * * 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 on 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 (including the * next paragraph) 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 * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS * 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. */ /* * Authors: * Rickard E. (Rik) Faith * */ /** \file * This file describes the interface to the client-side libdmx.a * library. All DMX-aware client-side applications should include this * file. */ #ifndef _DMX_H_ #define _DMX_H_ /* These values must be larger than LastExtensionError. The values in dmxext.h and dmxproto.h *MUST* match. */ #define DmxBadXinerama 1001 #define DmxBadValue 1002 #define DmxBadReply 1003 #define DMXScreenWindowWidth (1L<<0) #define DMXScreenWindowHeight (1L<<1) #define DMXScreenWindowXoffset (1L<<2) #define DMXScreenWindowYoffset (1L<<3) #define DMXRootWindowWidth (1L<<4) #define DMXRootWindowHeight (1L<<5) #define DMXRootWindowXoffset (1L<<6) #define DMXRootWindowYoffset (1L<<7) #define DMXRootWindowXorigin (1L<<8) #define DMXRootWindowYorigin (1L<<9) #define DMXDesktopWidth (1L<<0) #define DMXDesktopHeight (1L<<1) #define DMXDesktopShiftX (1L<<2) #define DMXDesktopShiftY (1L<<3) #define DMXInputType (1L<<0) #define DMXInputPhysicalScreen (1L<<1) #define DMXInputSendsCore (1L<<2) #endif xorgproto-2023.2/include/X11/extensions/dmxproto.h0000644000175000017500000003203714443010026017005 00000000000000/* * Copyright 2002-2004 Red Hat Inc., Durham, North Carolina. * * 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 on 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 (including the * next paragraph) 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 * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS * 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. */ /* * Authors: * Rickard E. (Rik) Faith * */ /** \file * This file describes the structures necessary to implement the wire * protocol for the DMX protocol extension. It should be included only * in files that implement the client-side (or server-side) part of the * protocol (i.e., client-side applications should \b not include this * file). */ #ifndef _DMXSTR_H_ #define _DMXSTR_H_ #define DMX_EXTENSION_NAME "DMX" #define DMX_EXTENSION_MAJOR 2 #define DMX_EXTENSION_MINOR 2 #define DMX_EXTENSION_PATCH 20040604 /* These values must be larger than LastExtensionError. The values in dmxext.h and dmxproto.h *MUST* match. */ #define DMX_BAD_XINERAMA 1001 #define DMX_BAD_VALUE 1002 #define X_DMXQueryVersion 0 #define X_DMXGetScreenCount 1 #define X_DMXGetScreenInformationDEPRECATED 2 #define X_DMXGetWindowAttributes 3 #define X_DMXGetInputCount 4 #define X_DMXGetInputAttributes 5 #define X_DMXForceWindowCreationDEPRECATED 6 #define X_DMXReconfigureScreenDEPRECATED 7 #define X_DMXSync 8 #define X_DMXForceWindowCreation 9 #define X_DMXGetScreenAttributes 10 #define X_DMXChangeScreensAttributes 11 #define X_DMXAddScreen 12 #define X_DMXRemoveScreen 13 #define X_DMXGetDesktopAttributes 14 #define X_DMXChangeDesktopAttributes 15 #define X_DMXAddInput 16 #define X_DMXRemoveInput 17 /** Wire-level description of DMXQueryVersion protocol request. */ typedef struct { CARD8 reqType; /* dmxcode */ CARD8 dmxReqType; /* X_DMXQueryVersion */ CARD16 length; } xDMXQueryVersionReq; #define sz_xDMXQueryVersionReq 4 /** Wire-level description of DMXQueryVersion protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 ununsed; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 patchVersion; CARD32 pad0; CARD32 pad1; CARD32 pad2; } xDMXQueryVersionReply; #define sz_xDMXQueryVersionReply 32 /** Wire-level description of DMXSync protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXSync */ CARD16 length; } xDMXSyncReq; #define sz_xDMXSyncReq 4 /** Wire-level description of DMXSync protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXSyncReply; #define sz_xDMXSyncReply 32 /** Wire-level description of DMXForceWindowCreation protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXForceWindowCreation */ CARD16 length; CARD32 window; } xDMXForceWindowCreationReq; #define sz_xDMXForceWindowCreationReq 8 /** Wire-level description of DMXForceWindowCreation protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXForceWindowCreationReply; #define sz_xDMXForceWindowCreationReply 32 /** Wire-level description of DMXGetScreenCount protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetScreenCount */ CARD16 length; } xDMXGetScreenCountReq; #define sz_xDMXGetScreenCountReq 4 /** Wire-level description of DMXGetScreenCount protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 screenCount; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXGetScreenCountReply; #define sz_xDMXGetScreenCountReply 32 /** Wire-level description of DMXGetScreenAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetScreenAttributes */ CARD16 length; CARD32 physicalScreen; } xDMXGetScreenAttributesReq; #define sz_xDMXGetScreenAttributesReq 8 /** Wire-level description of DMXGetScreenAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 displayNameLength; CARD32 logicalScreen; CARD16 screenWindowWidth; CARD16 screenWindowHeight; INT16 screenWindowXoffset; INT16 screenWindowYoffset; CARD16 rootWindowWidth; CARD16 rootWindowHeight; INT16 rootWindowXoffset; INT16 rootWindowYoffset; INT16 rootWindowXorigin; INT16 rootWindowYorigin; } xDMXGetScreenAttributesReply; #define sz_xDMXGetScreenAttributesReply 36 /** Wire-level description of DMXChangeScreensAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXChangeScreensAttributes */ CARD16 length; CARD32 screenCount; CARD32 maskCount; } xDMXChangeScreensAttributesReq; #define sz_xDMXChangeScreensAttributesReq 12 /** Wire-level description of DMXChangeScreensAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 errorScreen; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xDMXChangeScreensAttributesReply; #define sz_xDMXChangeScreensAttributesReply 32 /** Wire-level description of DMXAddScreen protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXAddScreen */ CARD16 length; CARD32 displayNameLength; CARD32 physicalScreen; CARD32 valueMask; } xDMXAddScreenReq; #define sz_xDMXAddScreenReq 16 /** Wire-level description of DMXAddScreen protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 physicalScreen; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xDMXAddScreenReply; #define sz_xDMXAddScreenReply 32 /** Wire-level description of DMXRemoveScreen protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXRemoveScreen */ CARD16 length; CARD32 physicalScreen; } xDMXRemoveScreenReq; #define sz_xDMXRemoveScreenReq 8 /** Wire-level description of DMXRemoveScreen protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXRemoveScreenReply; #define sz_xDMXRemoveScreenReply 32 /** Wire-level description of DMXGetWindowAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetWindowAttributes */ CARD16 length; CARD32 window; } xDMXGetWindowAttributesReq; #define sz_xDMXGetWindowAttributesReq 8 /** Wire-level description of DMXGetWindowAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 screenCount; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXGetWindowAttributesReply; #define sz_xDMXGetWindowAttributesReply 32 /** Wire-level description of DMXGetDesktopAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetDesktopAttributes */ CARD16 length; } xDMXGetDesktopAttributesReq; #define sz_xDMXGetDesktopAttributesReq 4 /** Wire-level description of DMXGetDesktopAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; INT16 width; INT16 height; INT16 shiftX; INT16 shiftY; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xDMXGetDesktopAttributesReply; #define sz_xDMXGetDesktopAttributesReply 32 /** Wire-level description of DMXChangeDesktopAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXChangeDesktopAttributes */ CARD16 length; CARD32 valueMask; } xDMXChangeDesktopAttributesReq; #define sz_xDMXChangeDesktopAttributesReq 8 /** Wire-level description of DMXChangeDesktopAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXChangeDesktopAttributesReply; #define sz_xDMXChangeDesktopAttributesReply 32 /** Wire-level description of DMXGetInputCount protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetInputCount */ CARD16 length; } xDMXGetInputCountReq; #define sz_xDMXGetInputCountReq 4 /** Wire-level description of DMXGetInputCount protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 inputCount; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXGetInputCountReply; #define sz_xDMXGetInputCountReply 32 /** Wire-level description of DMXGetInputAttributes protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXGetInputAttributes */ CARD16 length; CARD32 deviceId; } xDMXGetInputAttributesReq; #define sz_xDMXGetInputAttributesReq 8 /** Wire-level description of DMXGetInputAttributes protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 inputType; CARD32 physicalScreen; CARD32 physicalId; CARD32 nameLength; BOOL isCore; BOOL sendsCore; BOOL detached; CARD8 pad0; CARD32 pad1; } xDMXGetInputAttributesReply; #define sz_xDMXGetInputAttributesReply 32 /** Wire-level description of DMXAddInput protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXAddInput */ CARD16 length; CARD32 displayNameLength; CARD32 valueMask; } xDMXAddInputReq; #define sz_xDMXAddInputReq 12 /** Wire-level description of DMXAddInput protocol reply. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 physicalId; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; } xDMXAddInputReply; #define sz_xDMXAddInputReply 32 /** Wire-level description of DMXRemoveInput protocol request. */ typedef struct { CARD8 reqType; /* DMXCode */ CARD8 dmxReqType; /* X_DMXRemoveInput */ CARD16 length; CARD32 physicalId; } xDMXRemoveInputReq; #define sz_xDMXRemoveInputReq 8 /** Wire-level description of DMXRemoveInput protocol reply. */ typedef struct { BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 status; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xDMXRemoveInputReply; #define sz_xDMXRemoveInputReply 32 #endif xorgproto-2023.2/include/X11/extensions/dpmsconst.h0000644000175000017500000000336214443010026017142 00000000000000/***************************************************************** Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 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. 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 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. ******************************************************************/ #ifndef _DPMSCONST_H #define _DPMSCONST_H 1 #define DPMSMajorVersion 1 #define DPMSMinorVersion 2 #define DPMSExtensionName "DPMS" #define DPMSModeOn 0 #define DPMSModeStandby 1 #define DPMSModeSuspend 2 #define DPMSModeOff 3 #define DPMSInfoNotifyMask (1L << 0) #define DPMSInfoNotify 0 #endif /* !_DPMSCONST_H */ xorgproto-2023.2/include/X11/extensions/Print.h0000644000175000017500000003656214443010026016234 00000000000000/* $Xorg: Print.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */ /****************************************************************************** ****************************************************************************** ** ** File: Print.h ** ** Description: Definitions needed by the server, library, and ** clients. Subportion restricted to library and ** clients. ** ** Server, Library, Client portion has: ** o All sz_* defines ** o Revision and Name defines ** o Common defines and constants (e.g. Keywords, Masks) ** o Extension version structure ** ** Library and client subportion has: ** o Convenience Macros ** o Client side data structures ** o Client side event structures (non wire) ** o Library function prototypes ** o some private stuff denoted with _whatever ** ** Printstr.h for server and library, but NOT clients. ** ****************************************************************************** ** ** (c) Copyright 1996 Hewlett-Packard Company ** (c) Copyright 1996 International Business Machines Corp. ** (c) Copyright 1996, Oracle and/or its affiliates. ** (c) Copyright 1996 Novell, Inc. ** (c) Copyright 1996 Digital Equipment Corp. ** (c) Copyright 1996 Fujitsu Limited ** (c) Copyright 1996 Hitachi, Ltd. ** ** 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 ** COPYRIGHT HOLDERS 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 copyright holders shall ** not be used in advertising or otherwise to promote the sale, use or other ** dealings in this Software without prior written authorization from said ** copyright holders. ** ****************************************************************************** *****************************************************************************/ /* $XFree86: xc/include/extensions/Print.h,v 1.4 2000/01/25 18:37:31 dawes Exp $ */ #ifndef _XpPrint_H_ #define _XpPrint_H_ #ifndef _XP_PRINT_SERVER_ #include #include #include #endif /* _XP_PRINT_SERVER_ */ #include _XFUNCPROTOBEGIN /****************************************************************************** * * Definitions used by the server, library and client. */ /******************************************************************** * * Naming and versioning information. */ #define XP_PRINTNAME "XpExtension" /* * Add a define below for each major extension release. */ #define XP_DONT_CHECK 0 #define XP_INITIAL_RELEASE 1 /* * For each single entry above, create one major/minor pair. */ #define XP_PROTO_MAJOR 1 #define XP_PROTO_MINOR 0 /* * Identify current version. */ #define XP_MAJOR_VERSION XP_PROTO_MAJOR #define XP_MINOR_VERSION XP_PROTO_MINOR /* * Misc version defines. */ #define XP_ABSENT 0 /* Prior to XP Print support */ #define XP_PRESENT 1 /* With XP Print support */ /******************************************************************** * * Xp Print Error codes. */ #define XP_ERRORS 3 /* number of error types */ #define XPBadContext 0 /* Print Context invalid or missing */ #define XPBadSequence 1 /* Illegal sequence of XP operations */ #define XPBadResourceID 2 /* X-resource not valid */ /******************************************************************** * * Xp Print Event masks and codes. * */ #define XP_EVENTS 2 /* number of event types */ #define XPNoEventMask 0 /* not an event - just a null mask */ #define XPPrintMask (1L<<0) #define XPAttributeMask (1L<<1) #define XPPrintNotify 0 /* contains "detail" - see below */ #define XPAttributeNotify 1 /* contains "detail" - see below */ #define XPStartJobNotify 0 /* value for "detail" in XPPrintNotify*/ #define XPEndJobNotify 1 #define XPStartDocNotify 2 #define XPEndDocNotify 3 #define XPStartPageNotify 4 #define XPEndPageNotify 5 /******************************************************************** * * Xp Print Attribute Object codes (subset of ISO DPA 10175). The * Xp Server can get and set any of the values, while the Xp Library * may only be able to set a subset of the attribute objects. * * note: the codes are also used as "detail" for XPAttributeNotify * * note: XPPageAttr is not defined in ISO DPA 10175. It is unique * to Xp, and its attributes are a proper subset of XPDocAttr. */ typedef unsigned char XPAttributes; /* type of Xp*Attr codes */ #define XP_ATTRIBUTES 5 /* those attrs currently supported */ #define XPJobAttr 1 /* get/set */ #define XPDocAttr 2 /* get/set */ #define XPPageAttr 3 /* get/set - subset of XPDocAttr */ #define XPPrinterAttr 4 /* get only (library) */ #define XPServerAttr 5 /* get only (library), no context needed */ /* * note: ISO DPA 10175 defines a number of "attribute objects", of * which POSIX 1387.4 and the SI Xp will only support a * subset. */ #define XPMediumAttr 6 /* DPA-Object Medium */ #define XPFontAttr 7 /* DPA-Object Font */ #define XPResAttr 8 /* DPA-Object Resource */ #define XPTransAttr 9 /* DPA-Object Transfer method */ #define XPDelAttr 10 /* DPA-Object Delivery method */ #define XPAuxSPkg 11 /* DPA-Object Auxiliary sheet package */ #define XPAuxS 12 /* DPA-Object Auxiliary sheet */ #define XPFinishAttr 13 /* DPA-Object Finishing */ #define XPOutputAttr 14 /* DPA-Object Output method */ #define XPImpAttr 15 /* DPA-Object Imposition */ #define XPSchedAttr 16 /* DPA-Object Scheduler */ #define XPIntJobAttr 17 /* DPA-Object Initial value job */ #define XPIntDocAttr 18 /* DPA-Object Initial value document */ #define XPResConAttr 19 /* DPA-Object Resource context */ /* * Replacement rules for XpSetAttributes */ typedef unsigned char XPAttrReplacement; #define XPAttrReplace 1 #define XPAttrMerge 2 /* * Return codes for XpGetDocumentData */ typedef unsigned char XPGetDocStatus; #define XPGetDocFinished 0 /* normal termination */ #define XPGetDocSecondConsumer 1 /* setup error */ #define XPGetDocError 2 /* runtime error, see generated error */ /* * Save data types for XpStartJob. */ typedef unsigned char XPSaveData; #define XPSpool 1 /* Job data sent to spooler */ #define XPGetData 2 /* Job data via XpGetDocumentData */ /* * Document types for XpStartDoc. */ typedef unsigned char XPDocumentType; #define XPDocNormal 1 /* Doc data handled by Xserver */ #define XPDocRaw 2 /* Doc data passed through Xserver */ /******************************************************************** * * Xp Print Property Names */ #ifndef _XP_PRINT_SERVER_ /****************************************************************************** * * Definitions used by the library and clients only. */ /******************************************************************* * * General API defines and such. */ /* * Print Context for XpInitContext and related calls. */ typedef XID XPContext; /* * Struct for XpGetPrinterList. */ typedef struct { char *name; /* name */ char *desc; /* localized description */ } XPPrinterRec, *XPPrinterList; /* * Typedefs for XpGetDocumentData */ typedef void (*XPSaveProc)( Display *display, XPContext context, unsigned char *data, unsigned int data_len, XPointer client_data); typedef void (*XPFinishProc)( Display *display, XPContext context, XPGetDocStatus status, XPointer client_data); /* * Typedefs for XpSetLocaleHinter and XpGetLocaleHinter */ typedef char * (*XPHinterProc)(void); #if 0 /******************************************************************* * * Extension version structures. * **** this structure is now defined locally in the one file that uses it **** in order to avoid clashes with its definition in XI.h */ typedef struct { int present; short major_version; short minor_version; } XExtensionVersion; #endif /******************************************************************** * * Event structs for clients. * * note: these events are relative to a print context, and * not to a window as in core X. */ typedef struct { int type; /* base + XPPrintNotify */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if from a SendEvent request */ Display *display; /* Display the event was read from */ XPContext context; /* print context where operation was requested */ Bool cancel; /* was detailed event canceled */ int detail; /* XPStartJobNotify, XPEndJobNotify, XPStartDocNotify, XPEndDocNotify, XPStartPageNotify, XPEndPageNotify */ } XPPrintEvent; typedef struct { int type; /* base + XPAttributeNotify */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if from a SendEvent request */ Display *display; /* Display the event was read from */ XPContext context; /* print context where operation was requested */ int detail; /* XPJobAttr, XPDocAttr, XPPageAttr, XPPrinterAttr, XPSpoolerAttr, XPMediumAttr, XPServerAttr */ } XPAttributeEvent; typedef struct { int type; /* base + XPDataReadyNotify */ unsigned long serial; /* # of last request processed by server */ Bool send_event; /* true if from a SendEvent request */ Display *display; /* Display the event was read from */ XPContext context; /* print context where operation was requested */ unsigned long available; /* bytes available for retrieval */ } XPDataReadyEvent; /********************************************************** * * Function prototypes for library side. */ extern XPContext XpCreateContext ( Display *display, char *printer_name ); extern void XpSetContext ( Display *display, XPContext print_context ); extern XPContext XpGetContext ( Display *display ); extern void XpDestroyContext ( Display *display, XPContext print_context ); extern Screen *XpGetScreenOfContext ( Display *display, XPContext print_context ); extern Status XpGetPageDimensions ( Display *display, XPContext print_context, unsigned short *width, /* return value */ unsigned short *height, /* return value */ XRectangle *reproducible_area /* return value */ ); extern void XpStartJob ( Display *display, XPSaveData save_data ); extern void XpEndJob ( Display *display ); extern void XpCancelJob ( Display *display, Bool discard ); extern void XpStartDoc ( Display *display, XPDocumentType type ); extern void XpEndDoc ( Display *display ); extern void XpCancelDoc ( Display *display, Bool discard ); extern void XpPutDocumentData ( Display *display, Drawable drawable, unsigned char *data, int data_len, char *doc_fmt, char *options ); extern Status XpGetDocumentData ( Display *display, XPContext context, XPSaveProc save_proc, XPFinishProc finish_proc, XPointer client_data ); extern void XpStartPage ( Display *display, Window window ); extern void XpEndPage ( Display *display ); extern void XpCancelPage ( Display *display, Bool discard ); extern void XpSelectInput ( Display *display, XPContext print_context, unsigned long event_mask ); extern unsigned long XpInputSelected ( Display *display, XPContext print_context, unsigned long *all_events_mask ); extern Bool XpSetImageResolution ( Display *display, XPContext print_context, int image_res, int *prev_res ); extern int XpGetImageResolution ( Display *display, XPContext print_context ); extern char *XpGetAttributes ( Display *display, XPContext print_context, XPAttributes type ); extern void XpSetAttributes ( Display *display, XPContext print_context, XPAttributes type, char *pool, XPAttrReplacement replacement_rule ); extern char *XpGetOneAttribute ( Display *display, XPContext print_context, XPAttributes type, char *attribute_name ); extern XPPrinterList XpGetPrinterList ( Display *display, char *printer_name, int *list_count /* return value */ ); extern void XpFreePrinterList ( XPPrinterList printer_list ); extern void XpRehashPrinterList ( Display *display ); extern Status XpQueryVersion ( Display *display, short *major_version, /* return value */ short *minor_version /* return value */ ); extern Bool XpQueryExtension ( Display *display, int *event_base_return, /* return value */ int *error_base_return /* return value */ ); extern Screen **XpQueryScreens ( Display *display, int *list_count /* return value */ ); extern Status XpGetPdmStartParams ( Display *print_display, Window print_window, XPContext print_context, Display *video_display, Window video_window, Display **selection_display, /* return value */ Atom *selection, /* return value */ Atom *type, /* return value */ int *format, /* return value */ unsigned char **data, /* return value */ int *nelements /* return value */ ); extern Status XpGetAuthParams ( Display *print_display, Display *video_display, Display **selection_display, /* return value */ Atom *selection, /* return value */ Atom *target /* return value */ ); extern Status XpSendAuth ( Display *display, Window window ); extern Status XpSendOneTicket ( Display *display, Window window, Xauth *ticket, Bool more ); extern void XpSetLocaleHinter ( XPHinterProc hinter_proc, char *hinter_desc ); extern char *XpGetLocaleHinter ( XPHinterProc *hinter_proc ); extern char *XpGetLocaleNetString(void); extern char *XpNotifyPdm ( Display *print_display, Window print_window, XPContext print_context, Display *video_display, Window video_window, Bool auth_flag ); #endif /* _XP_PRINT_SERVER_ */ _XFUNCPROTOEND #endif /* _XpPrint_H_ */ xorgproto-2023.2/include/X11/extensions/vldXvMC.h0000644000175000017500000001245614443010026016457 00000000000000/***************************************************************************** * VLD XvMC Nonstandard extension API. * * Copyright (c) 2004 The Unichrome Project. 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 * AUTHOR(S) OR COPYRIGHT HOLDER(S) 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. * * Author: Thomas Hellström, 2004. */ #ifndef _VLDXVMC_H #define _VLDXVMC_H #include #include /* * New "Motion compensation type". */ #define XVMC_VLD 0x0020000 /* * Below Flags to be passed in the XvMCMpegControl structure 'flag' field. */ #define XVMC_PROGRESSIVE_SEQUENCE 0x00000010 /* * Zig-Zag Scan / Alternative Scan. */ #define XVMC_ZIG_ZAG_SCAN 0x00000000 #define XVMC_ALTERNATE_SCAN 0x00000100 /* * Frame DCT and frame prediction are used. / * Field prediction */ #define XVMC_PRED_DCT_FRAME 0x00000040 #define XVMC_PRED_DCT_FIELD 0x00000000 /* * Top / Bottom field first */ #define XVMC_TOP_FIELD_FIRST 0x00000080 #define XVMC_BOTTOM_FIELD_FIRST 0x00000000 /* * Motion vectors coded in intra macroblocks */ #define XVMC_CONCEALMENT_MOTION_VECTORS 0x00000200 /* * Which of two mappings between quantiser_scale_code * and quantiser_scale shall apply. */ #define XVMC_Q_SCALE_TYPE 0x00000400 /* * Intra VLC Format: Bit = 0, Bit = 1 * Intra blocks B-14 B-15 * Non-intra blocks B-14 B-14 */ #define XVMC_INTRA_VLC_FORMAT 0x00000800 /* * Also XVMC_SECOND_FIELD should be set in flags if active. */ #define XVMC_I_PICTURE 1 #define XVMC_P_PICTURE 2 #define XVMC_B_PICTURE 3 typedef struct _XvMCMpegControl{ unsigned BVMV_range, /* Backward vertical motion vector range */ BHMV_range, /* Backward horizontal motion vector range */ FVMV_range, /* Forward vertical motion vector range */ FHMV_range, /* Forward horizontal motion vector range */ picture_structure, /* XVMC_TOP_FIELD, XVMC_BOTTOM_FIELD, * XVMC_FRAME_PICTURE */ intra_dc_precision, /* 0x00 - 0x03 corresponds to 8 to 11 bits prec. */ picture_coding_type,/* XVMC_X_PICTURE */ mpeg_coding, /* XVMC_MPEG_2 */ flags; /* See above */ }XvMCMpegControl; /* * The following function is called BEFORE starting sending slices to the * lib. It grabs the decoder hardware and prepares it for coming slices. * The function XvMCSyncSurface will release the hardware for other contexts * in addition to it's current functionality. */ extern Status XvMCBeginSurface(Display *display, XvMCContext *context, XvMCSurface *target_surface, XvMCSurface *past_surface, XvMCSurface *future_surface, const XvMCMpegControl *control); /* * The quantizer matrix structure. This should be filled in by the user and * uploaded whenever a change is needed. The lib initializes with * default matrices and will automatically load the hardware with new matrices * on decoder context switches. To load data, set the corresponding load flag * to true and fill in the values. The VIA MPEG2 engine only uses the * intra_quantiser_matrix and the non_intra_quantiser_matrix. */ typedef struct _XvMCQMatrix { int load_intra_quantiser_matrix; int load_non_intra_quantiser_matrix; int load_chroma_intra_quantiser_matrix; int load_chroma_non_intra_quantiser_matrix; unsigned char intra_quantiser_matrix[64]; unsigned char non_intra_quantiser_matrix[64]; unsigned char chroma_intra_quantiser_matrix[64]; unsigned char chroma_non_intra_quantiser_matrix[64]; } XvMCQMatrix; /* * Upload a XvMCQMatrix structure to the clientlib. * The hardware will start using it the next XvMCBeginSurface. */ extern Status XvMCLoadQMatrix(Display *display, XvMCContext *context, const XvMCQMatrix *qmx); /* * Put a slice to the decoder. The hardware will start processing it * immediately. */ extern Status XvMCPutSlice(Display *display,XvMCContext *context, char *slice, int nBytes); /* * Put a slice without the slice start code to the decoder. * The hardware will start processing it * immediately. This function is for client optimization. * XvMCPutSlice(display,context,slice,nBytes) is equivalent to * XvMCPutSlice2(display,context,slice+4,nBytes-4,slice[3]); */ extern Status XvMCPutSlice2(Display *display,XvMCContext *context, char *slice, int nBytes, int sliceCode); #endif xorgproto-2023.2/include/X11/extensions/securproto.h0000644000175000017500000000615114443010026017334 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _SECURPROTO_H #define _SECURPROTO_H #include #define X_SecurityQueryVersion 0 #define X_SecurityGenerateAuthorization 1 #define X_SecurityRevokeAuthorization 2 typedef struct { CARD8 reqType; CARD8 securityReqType; CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xSecurityQueryVersionReq; #define sz_xSecurityQueryVersionReq 8 typedef struct { CARD8 type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xSecurityQueryVersionReply; #define sz_xSecurityQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 securityReqType; CARD16 length; CARD16 nbytesAuthProto; CARD16 nbytesAuthData; CARD32 valueMask; /* auth protocol name padded to 4 bytes */ /* auth protocol data padded to 4 bytes */ /* list of CARD32 values, if any */ } xSecurityGenerateAuthorizationReq; #define sz_xSecurityGenerateAuthorizationReq 12 typedef struct { CARD8 type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 authId; CARD16 dataLength; CARD16 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xSecurityGenerateAuthorizationReply; #define sz_xSecurityGenerateAuthorizationReply 32 typedef struct { CARD8 reqType; CARD8 securityReqType; CARD16 length; CARD32 authId; } xSecurityRevokeAuthorizationReq; #define sz_xSecurityRevokeAuthorizationReq 8 typedef struct _xSecurityAuthorizationRevokedEvent { BYTE type; BYTE detail; CARD16 sequenceNumber; CARD32 authId; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xSecurityAuthorizationRevokedEvent; #define sz_xSecurityAuthorizationRevokedEvent 32 #endif /* _SECURPROTO_H */ xorgproto-2023.2/include/X11/extensions/xf86rushstr.h0000644000175000017500000001050614443010026017354 00000000000000/* $XFree86: xc/include/extensions/xf86rushstr.h,v 1.4 2000/02/29 03:09:02 dawes Exp $ */ /* Copyright (c) 1998 Daryll Strauss */ #ifndef _XF86RUSHSTR_H_ #define _XF86RUSHSTR_H_ #include #define XF86RUSHNAME "XFree86-Rush" #define XF86RUSH_MAJOR_VERSION 1 /* current version numbers */ #define XF86RUSH_MINOR_VERSION 1 typedef struct _XF86RushQueryVersion { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushQueryVersion */ CARD16 length; } xXF86RushQueryVersionReq; #define sz_xXF86RushQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of Rush protocol */ CARD16 minorVersion; /* minor version of Rush protocol */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86RushQueryVersionReply; #define sz_xXF86RushQueryVersionReply 32 typedef struct _XF86RushLockPixmap { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushLockPixmap */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 pixmap; } xXF86RushLockPixmapReq; #define sz_xXF86RushLockPixmapReq 12 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 addr; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86RushLockPixmapReply; #define sz_xXF86RushLockPixmapReply 32 typedef struct _XF86RushUnlockPixmap { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushUnlockPixmap */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 pixmap; } xXF86RushUnlockPixmapReq; #define sz_xXF86RushUnlockPixmapReq 12 typedef struct _XF86RushUnlockAllPixmaps { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushUnlockAllPixmaps */ CARD16 length; } xXF86RushUnlockAllPixmapsReq; #define sz_xXF86RushUnlockAllPixmapsReq 4 typedef struct _XF86RushSetCopyMode { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushSetCopyMode */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 CopyMode; } xXF86RushSetCopyModeReq; #define sz_xXF86RushSetCopyModeReq 12 typedef struct _XF86RushSetPixelStride { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushSetCopyMode */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 PixelStride; } xXF86RushSetPixelStrideReq; #define sz_xXF86RushSetPixelStrideReq 12 typedef struct { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushOverlayPixmap */ CARD16 length; XvPortID port; Drawable drawable; GContext gc; Pixmap pixmap; CARD32 id; INT16 src_x; INT16 src_y; CARD16 src_w; CARD16 src_h; INT16 drw_x; INT16 drw_y; CARD16 drw_w; CARD16 drw_h; } xXF86RushOverlayPixmapReq; #define sz_xXF86RushOverlayPixmapReq 40 typedef struct _XF86RushStatusRegOffset { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushStatusRegOffset */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86RushStatusRegOffsetReq; #define sz_xXF86RushStatusRegOffsetReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 offset; /* Offset of Rush status reg in mem */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86RushStatusRegOffsetReply; #define sz_xXF86RushStatusRegOffsetReply 32 typedef struct _XF86RushAT3DEnableRegs { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushAT3DEnableRegs */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86RushAT3DEnableRegsReq; #define sz_xXF86RushAT3DEnableRegsReq 8 typedef struct _XF86RushAT3DDisableRegs { CARD8 reqType; /* always RushReqCode */ CARD8 rushReqType; /* always X_RushAT3DDisableRegs */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86RushAT3DDisableRegsReq; #define sz_xXF86RushAT3DDisableRegsReq 8 #endif /* _XF86RUSHSTR_H_ */ xorgproto-2023.2/include/X11/extensions/XI.h0000644000175000017500000002313714443010026015452 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1989 by Hewlett-Packard Company, Palo Alto, California. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HEWLETT-PACKARD 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. ********************************************************/ /* Definitions used by the server, library and client */ #ifndef _XI_H_ #define _XI_H_ #define sz_xGetExtensionVersionReq 8 #define sz_xGetExtensionVersionReply 32 #define sz_xListInputDevicesReq 4 #define sz_xListInputDevicesReply 32 #define sz_xOpenDeviceReq 8 #define sz_xOpenDeviceReply 32 #define sz_xCloseDeviceReq 8 #define sz_xSetDeviceModeReq 8 #define sz_xSetDeviceModeReply 32 #define sz_xSelectExtensionEventReq 12 #define sz_xGetSelectedExtensionEventsReq 8 #define sz_xGetSelectedExtensionEventsReply 32 #define sz_xChangeDeviceDontPropagateListReq 12 #define sz_xGetDeviceDontPropagateListReq 8 #define sz_xGetDeviceDontPropagateListReply 32 #define sz_xGetDeviceMotionEventsReq 16 #define sz_xGetDeviceMotionEventsReply 32 #define sz_xChangeKeyboardDeviceReq 8 #define sz_xChangeKeyboardDeviceReply 32 #define sz_xChangePointerDeviceReq 8 #define sz_xChangePointerDeviceReply 32 #define sz_xGrabDeviceReq 20 #define sz_xGrabDeviceReply 32 #define sz_xUngrabDeviceReq 12 #define sz_xGrabDeviceKeyReq 20 #define sz_xGrabDeviceKeyReply 32 #define sz_xUngrabDeviceKeyReq 16 #define sz_xGrabDeviceButtonReq 20 #define sz_xGrabDeviceButtonReply 32 #define sz_xUngrabDeviceButtonReq 16 #define sz_xAllowDeviceEventsReq 12 #define sz_xGetDeviceFocusReq 8 #define sz_xGetDeviceFocusReply 32 #define sz_xSetDeviceFocusReq 16 #define sz_xGetFeedbackControlReq 8 #define sz_xGetFeedbackControlReply 32 #define sz_xChangeFeedbackControlReq 12 #define sz_xGetDeviceKeyMappingReq 8 #define sz_xGetDeviceKeyMappingReply 32 #define sz_xChangeDeviceKeyMappingReq 8 #define sz_xGetDeviceModifierMappingReq 8 #define sz_xSetDeviceModifierMappingReq 8 #define sz_xSetDeviceModifierMappingReply 32 #define sz_xGetDeviceButtonMappingReq 8 #define sz_xGetDeviceButtonMappingReply 32 #define sz_xSetDeviceButtonMappingReq 8 #define sz_xSetDeviceButtonMappingReply 32 #define sz_xQueryDeviceStateReq 8 #define sz_xQueryDeviceStateReply 32 #define sz_xSendExtensionEventReq 16 #define sz_xDeviceBellReq 8 #define sz_xSetDeviceValuatorsReq 8 #define sz_xSetDeviceValuatorsReply 32 #define sz_xGetDeviceControlReq 8 #define sz_xGetDeviceControlReply 32 #define sz_xChangeDeviceControlReq 8 #define sz_xChangeDeviceControlReply 32 #define sz_xListDevicePropertiesReq 8 #define sz_xListDevicePropertiesReply 32 #define sz_xChangeDevicePropertyReq 20 #define sz_xDeleteDevicePropertyReq 12 #define sz_xGetDevicePropertyReq 24 #define sz_xGetDevicePropertyReply 32 #define INAME "XInputExtension" #define XI_KEYBOARD "KEYBOARD" #define XI_MOUSE "MOUSE" #define XI_TABLET "TABLET" #define XI_TOUCHSCREEN "TOUCHSCREEN" #define XI_TOUCHPAD "TOUCHPAD" #define XI_BARCODE "BARCODE" #define XI_BUTTONBOX "BUTTONBOX" #define XI_KNOB_BOX "KNOB_BOX" #define XI_ONE_KNOB "ONE_KNOB" #define XI_NINE_KNOB "NINE_KNOB" #define XI_TRACKBALL "TRACKBALL" #define XI_QUADRATURE "QUADRATURE" #define XI_ID_MODULE "ID_MODULE" #define XI_SPACEBALL "SPACEBALL" #define XI_DATAGLOVE "DATAGLOVE" #define XI_EYETRACKER "EYETRACKER" #define XI_CURSORKEYS "CURSORKEYS" #define XI_FOOTMOUSE "FOOTMOUSE" #define XI_JOYSTICK "JOYSTICK" /* Indices into the versions[] array (XExtInt.c). Used as a index to * retrieve the minimum version of XI from _XiCheckExtInit */ #define Dont_Check 0 #define XInput_Initial_Release 1 #define XInput_Add_XDeviceBell 2 #define XInput_Add_XSetDeviceValuators 3 #define XInput_Add_XChangeDeviceControl 4 #define XInput_Add_DevicePresenceNotify 5 #define XInput_Add_DeviceProperties 6 /* DO NOT ADD TO HERE -> XI2 */ #define XI_Absent 0 #define XI_Present 1 #define XI_Initial_Release_Major 1 #define XI_Initial_Release_Minor 0 #define XI_Add_XDeviceBell_Major 1 #define XI_Add_XDeviceBell_Minor 1 #define XI_Add_XSetDeviceValuators_Major 1 #define XI_Add_XSetDeviceValuators_Minor 2 #define XI_Add_XChangeDeviceControl_Major 1 #define XI_Add_XChangeDeviceControl_Minor 3 #define XI_Add_DevicePresenceNotify_Major 1 #define XI_Add_DevicePresenceNotify_Minor 4 #define XI_Add_DeviceProperties_Major 1 #define XI_Add_DeviceProperties_Minor 5 #define DEVICE_RESOLUTION 1 #define DEVICE_ABS_CALIB 2 #define DEVICE_CORE 3 #define DEVICE_ENABLE 4 #define DEVICE_ABS_AREA 5 #define NoSuchExtension 1 #define COUNT 0 #define CREATE 1 #define NewPointer 0 #define NewKeyboard 1 #define XPOINTER 0 #define XKEYBOARD 1 #define UseXKeyboard 0xFF #define IsXPointer 0 #define IsXKeyboard 1 #define IsXExtensionDevice 2 #define IsXExtensionKeyboard 3 #define IsXExtensionPointer 4 #define AsyncThisDevice 0 #define SyncThisDevice 1 #define ReplayThisDevice 2 #define AsyncOtherDevices 3 #define AsyncAll 4 #define SyncAll 5 #define FollowKeyboard 3 #ifndef RevertToFollowKeyboard #define RevertToFollowKeyboard 3 #endif #define DvAccelNum (1L << 0) #define DvAccelDenom (1L << 1) #define DvThreshold (1L << 2) #define DvKeyClickPercent (1L<<0) #define DvPercent (1L<<1) #define DvPitch (1L<<2) #define DvDuration (1L<<3) #define DvLed (1L<<4) #define DvLedMode (1L<<5) #define DvKey (1L<<6) #define DvAutoRepeatMode (1L<<7) #define DvString (1L << 0) #define DvInteger (1L << 0) #define DeviceMode (1L << 0) #define Relative 0 #define Absolute 1 #define ProximityState (1L << 1) #define InProximity (0L << 1) #define OutOfProximity (1L << 1) #define AddToList 0 #define DeleteFromList 1 #define KeyClass 0 #define ButtonClass 1 #define ValuatorClass 2 #define FeedbackClass 3 #define ProximityClass 4 #define FocusClass 5 #define OtherClass 6 #define AttachClass 7 #define KbdFeedbackClass 0 #define PtrFeedbackClass 1 #define StringFeedbackClass 2 #define IntegerFeedbackClass 3 #define LedFeedbackClass 4 #define BellFeedbackClass 5 #define _devicePointerMotionHint 0 #define _deviceButton1Motion 1 #define _deviceButton2Motion 2 #define _deviceButton3Motion 3 #define _deviceButton4Motion 4 #define _deviceButton5Motion 5 #define _deviceButtonMotion 6 #define _deviceButtonGrab 7 #define _deviceOwnerGrabButton 8 #define _noExtensionEvent 9 #define _devicePresence 0 #define _deviceEnter 0 #define _deviceLeave 1 /* Device presence notify states */ #define DeviceAdded 0 #define DeviceRemoved 1 #define DeviceEnabled 2 #define DeviceDisabled 3 #define DeviceUnrecoverable 4 #define DeviceControlChanged 5 /* XI Errors */ #define XI_BadDevice 0 #define XI_BadEvent 1 #define XI_BadMode 2 #define XI_DeviceBusy 3 #define XI_BadClass 4 /* * Make XEventClass be a CARD32 for 64 bit servers. Don't affect client * definition of XEventClass since that would be a library interface change. * See the top of X.h for more _XSERVER64 magic. * * But, don't actually use the CARD32 type. We can't get it defined here * without polluting the namespace. */ #ifdef _XSERVER64 typedef unsigned int XEventClass; #else typedef unsigned long XEventClass; #endif /******************************************************************* * * Extension version structure. * */ typedef struct { int present; short major_version; short minor_version; } XExtensionVersion; #endif /* _XI_H_ */ xorgproto-2023.2/include/X11/extensions/randr.h0000644000175000017500000001537514443010026016245 00000000000000/* * Copyright © 2000 Compaq Computer Corporation * Copyright © 2002 Hewlett Packard Company * Copyright © 2006 Intel Corporation * Copyright © 2008 Red Hat, Inc. * * 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. * * Author: Jim Gettys, HP Labs, Hewlett-Packard, Inc. * Keith Packard, Intel Corporation */ #ifndef _RANDR_H_ #define _RANDR_H_ typedef unsigned short Rotation; typedef unsigned short SizeID; typedef unsigned short SubpixelOrder; typedef unsigned short Connection; typedef unsigned short XRandrRotation; typedef unsigned short XRandrSizeID; typedef unsigned short XRandrSubpixelOrder; typedef unsigned long XRandrModeFlags; #define RANDR_NAME "RANDR" #define RANDR_MAJOR 1 #define RANDR_MINOR 6 #define RRNumberErrors 5 #define RRNumberEvents 2 #define RRNumberRequests 47 #define X_RRQueryVersion 0 /* we skip 1 to make old clients fail pretty immediately */ #define X_RROldGetScreenInfo 1 #define X_RR1_0SetScreenConfig 2 /* V1.0 apps share the same set screen config request id */ #define X_RRSetScreenConfig 2 #define X_RROldScreenChangeSelectInput 3 /* 3 used to be ScreenChangeSelectInput; deprecated */ #define X_RRSelectInput 4 #define X_RRGetScreenInfo 5 /* V1.2 additions */ #define X_RRGetScreenSizeRange 6 #define X_RRSetScreenSize 7 #define X_RRGetScreenResources 8 #define X_RRGetOutputInfo 9 #define X_RRListOutputProperties 10 #define X_RRQueryOutputProperty 11 #define X_RRConfigureOutputProperty 12 #define X_RRChangeOutputProperty 13 #define X_RRDeleteOutputProperty 14 #define X_RRGetOutputProperty 15 #define X_RRCreateMode 16 #define X_RRDestroyMode 17 #define X_RRAddOutputMode 18 #define X_RRDeleteOutputMode 19 #define X_RRGetCrtcInfo 20 #define X_RRSetCrtcConfig 21 #define X_RRGetCrtcGammaSize 22 #define X_RRGetCrtcGamma 23 #define X_RRSetCrtcGamma 24 /* V1.3 additions */ #define X_RRGetScreenResourcesCurrent 25 #define X_RRSetCrtcTransform 26 #define X_RRGetCrtcTransform 27 #define X_RRGetPanning 28 #define X_RRSetPanning 29 #define X_RRSetOutputPrimary 30 #define X_RRGetOutputPrimary 31 #define RRTransformUnit (1L << 0) #define RRTransformScaleUp (1L << 1) #define RRTransformScaleDown (1L << 2) #define RRTransformProjective (1L << 3) /* v1.4 */ #define X_RRGetProviders 32 #define X_RRGetProviderInfo 33 #define X_RRSetProviderOffloadSink 34 #define X_RRSetProviderOutputSource 35 #define X_RRListProviderProperties 36 #define X_RRQueryProviderProperty 37 #define X_RRConfigureProviderProperty 38 #define X_RRChangeProviderProperty 39 #define X_RRDeleteProviderProperty 40 #define X_RRGetProviderProperty 41 /* v1.5 */ #define X_RRGetMonitors 42 #define X_RRSetMonitor 43 #define X_RRDeleteMonitor 44 /* v1.6 */ #define X_RRCreateLease 45 #define X_RRFreeLease 46 /* Event selection bits */ #define RRScreenChangeNotifyMask (1L << 0) /* V1.2 additions */ #define RRCrtcChangeNotifyMask (1L << 1) #define RROutputChangeNotifyMask (1L << 2) #define RROutputPropertyNotifyMask (1L << 3) /* V1.4 additions */ #define RRProviderChangeNotifyMask (1L << 4) #define RRProviderPropertyNotifyMask (1L << 5) #define RRResourceChangeNotifyMask (1L << 6) /* V1.6 additions */ #define RRLeaseNotifyMask (1L << 7) /* Event codes */ #define RRScreenChangeNotify 0 /* V1.2 additions */ #define RRNotify 1 /* RRNotify Subcodes */ #define RRNotify_CrtcChange 0 #define RRNotify_OutputChange 1 #define RRNotify_OutputProperty 2 #define RRNotify_ProviderChange 3 #define RRNotify_ProviderProperty 4 #define RRNotify_ResourceChange 5 /* V1.6 additions */ #define RRNotify_Lease 6 /* used in the rotation field; rotation and reflection in 0.1 proto. */ #define RR_Rotate_0 1 #define RR_Rotate_90 2 #define RR_Rotate_180 4 #define RR_Rotate_270 8 /* new in 1.0 protocol, to allow reflection of screen */ #define RR_Reflect_X 16 #define RR_Reflect_Y 32 #define RRSetConfigSuccess 0 #define RRSetConfigInvalidConfigTime 1 #define RRSetConfigInvalidTime 2 #define RRSetConfigFailed 3 /* new in 1.2 protocol */ #define RR_HSyncPositive 0x00000001 #define RR_HSyncNegative 0x00000002 #define RR_VSyncPositive 0x00000004 #define RR_VSyncNegative 0x00000008 #define RR_Interlace 0x00000010 #define RR_DoubleScan 0x00000020 #define RR_CSync 0x00000040 #define RR_CSyncPositive 0x00000080 #define RR_CSyncNegative 0x00000100 #define RR_HSkewPresent 0x00000200 #define RR_BCast 0x00000400 #define RR_PixelMultiplex 0x00000800 #define RR_DoubleClock 0x00001000 #define RR_ClockDivideBy2 0x00002000 #define RR_Connected 0 #define RR_Disconnected 1 #define RR_UnknownConnection 2 #define BadRROutput 0 #define BadRRCrtc 1 #define BadRRMode 2 #define BadRRProvider 3 #define BadRRLease 4 /* Conventional RandR output properties */ #define RR_PROPERTY_BACKLIGHT "Backlight" #define RR_PROPERTY_RANDR_EDID "EDID" #define RR_PROPERTY_SIGNAL_FORMAT "SignalFormat" #define RR_PROPERTY_SIGNAL_PROPERTIES "SignalProperties" #define RR_PROPERTY_CONNECTOR_TYPE "ConnectorType" #define RR_PROPERTY_CONNECTOR_NUMBER "ConnectorNumber" #define RR_PROPERTY_COMPATIBILITY_LIST "CompatibilityList" #define RR_PROPERTY_CLONE_LIST "CloneList" #define RR_PROPERTY_BORDER "Border" #define RR_PROPERTY_BORDER_DIMENSIONS "BorderDimensions" #define RR_PROPERTY_GUID "GUID" #define RR_PROPERTY_RANDR_TILE "TILE" #define RR_PROPERTY_NON_DESKTOP "non-desktop" /* roles this device can carry out */ #define RR_Capability_None 0 #define RR_Capability_SourceOutput 1 #define RR_Capability_SinkOutput 2 #define RR_Capability_SourceOffload 4 #define RR_Capability_SinkOffload 8 #endif /* _RANDR_H_ */ xorgproto-2023.2/include/X11/extensions/mitmiscconst.h0000644000175000017500000000274514443010026017650 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */ #ifndef _MITMISCCONST_H_ #define _MITMISCCONST_H_ #define MITMiscNumberEvents 0 #define MITMiscNumberErrors 0 #define MITMISCNAME "MIT-SUNDRY-NONSTANDARD" #endif xorgproto-2023.2/include/X11/extensions/recordstr.h0000644000175000017500000000040214443010026017127 00000000000000#warning "recordstr.h is obsolete and may be removed in the future." #warning "include for the library interfaces." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/lgewire.h0000644000175000017500000000637414443010026016574 00000000000000/************************************************************ Copyright (c) 2004, Sun Microsystems, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* * lge.h - Looking Glass Extension Definitions */ #ifndef _LGEWIRE_H #define _LGEWIRE_H #include "X11/Xfuncproto.h" #define LGE_NAME "LGE" /* Current interface version numbers */ #define LGE_MAJOR_VERSION 5 #define LGE_MINOR_VERSION 0 /* Display Server is alive */ #define X_LgeQueryVersion 0 #define X_LgeRegisterClient 1 #define X_LgeRegisterScreen 2 #define X_LgeControlLgMode 3 #define X_LgeSendEvent 4 /* Arguments to XLgeRegisterClient */ #define LGE_CLIENT_GENERIC 0 #define LGE_CLIENT_PICKER 1 #define LGE_CLIENT_EVENT_DELIVERER 2 typedef struct { CARD8 reqType; CARD8 lgeReqType; CARD16 length; } xLgeQueryVersionReq; #define sz_xLgeQueryVersionReq sizeof(xLgeQueryVersionReq) typedef struct { /* Always X_Reply */ BYTE type; CARD8 unused; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 implementation; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xLgeQueryVersionReply; #define sz_xLgeQueryVersionReply sizeof(xLgeQueryVersionReply) typedef struct { CARD8 reqType; CARD8 lgeReqType; CARD16 length; CARD8 clientType; BOOL sendEventDirect; CARD16 pad2; } xLgeRegisterClientReq; #define sz_xLgeRegisterClientReq sizeof(xLgeRegisterClientReq) typedef struct { CARD8 reqType; CARD8 lgeReqType; CARD16 length; /* The pseudo-root window of the screen */ Window prw; } xLgeRegisterScreenReq; #define sz_xLgeRegisterScreenReq sizeof(xLgeRegisterScreenReq) typedef struct { CARD8 reqType; CARD8 lgeReqType; CARD16 length; BOOL enable; CARD8 pad1; CARD16 pad2; } xLgeControlLgModeReq; #define sz_xLgeControlLgModeReq sizeof(xLgeControlLgModeReq) typedef struct { CARD8 reqType; CARD8 lgeReqType; CARD16 length; xEvent event; } xLgeSendEventReq; #define sz_xLgeSendEventReq sizeof(xLgeSendEventReq) #endif /* LGEWIRE_H */ xorgproto-2023.2/include/X11/extensions/cup.h0000644000175000017500000000251114443010026015712 00000000000000/* Copyright 1987, 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _CUP_H_ #define _CUP_H_ #define XCUPNAME "TOG-CUP" #define XCUP_MAJOR_VERSION 1 /* current version numbers */ #define XCUP_MINOR_VERSION 0 #define XcupNumberErrors 0 #endif /* _CUP_H_ */ xorgproto-2023.2/include/X11/extensions/xtestconst.h0000644000175000017500000000256014443010026017345 00000000000000/* Copyright 1992, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _XTEST_CONST_H_ #define _XTEST_CONST_H_ #define XTestNumberEvents 0 #define XTestNumberErrors 0 #define XTestCurrentCursor ((Cursor)1) #define XTestMajorVersion 2 #define XTestMinorVersion 2 #define XTestExtensionName "XTEST" #endif xorgproto-2023.2/include/X11/extensions/dbe.h0000644000175000017500000000415714443010026015665 00000000000000/****************************************************************************** * * Copyright (c) 1994, 1995 Hewlett-Packard Company * * 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 HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Except as contained in this notice, the name of the Hewlett-Packard * Company 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 Hewlett-Packard Company. * * Header file for Xlib-related DBE * *****************************************************************************/ #ifndef DBE_H #define DBE_H /* Values for swap_action field of XdbeSwapInfo structure */ #define XdbeUndefined 0 #define XdbeBackground 1 #define XdbeUntouched 2 #define XdbeCopied 3 /* Errors */ #define XdbeBadBuffer 0 #define DBE_PROTOCOL_NAME "DOUBLE-BUFFER" /* Current version numbers */ #define DBE_MAJOR_VERSION 1 #define DBE_MINOR_VERSION 0 /* Used when adding extension; also used in Xdbe macros */ #define DbeNumberEvents 0 #define DbeBadBuffer 0 #define DbeNumberErrors (DbeBadBuffer + 1) #endif /* DBE_H */ xorgproto-2023.2/include/X11/extensions/xf86dga1const.h0000644000175000017500000000164314443010026017527 00000000000000/* Copyright (c) 1995 Jon Tombs Copyright (c) 1995 XFree86 Inc */ /************************************************************************ THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE ************************************************************************/ #ifndef _XF86DGA1CONST_H_ #define _XF86DGA1CONST_H_ #define X_XF86DGAQueryVersion 0 #define X_XF86DGAGetVideoLL 1 #define X_XF86DGADirectVideo 2 #define X_XF86DGAGetViewPortSize 3 #define X_XF86DGASetViewPort 4 #define X_XF86DGAGetVidPage 5 #define X_XF86DGASetVidPage 6 #define X_XF86DGAInstallColormap 7 #define X_XF86DGAQueryDirectVideo 8 #define X_XF86DGAViewPortChanged 9 #define XF86DGADirectPresent 0x0001 #define XF86DGADirectGraphics 0x0002 #define XF86DGADirectMouse 0x0004 #define XF86DGADirectKeyb 0x0008 #define XF86DGAHasColormap 0x0100 #define XF86DGADirectColormap 0x0200 #endif /* _XF86DGA1CONST_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dgastr.h0000644000175000017500000000027414443010026017127 00000000000000#warning "xf86dgastr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/extensions/applewmproto.h0000644000175000017500000001764214443010026017667 00000000000000/************************************************************************** Copyright (c) 2002 Apple Computer, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ #ifndef _APPLEWMPROTO_H_ #define _APPLEWMPROTO_H_ #include #include #include #define APPLEWMNAME "Apple-WM" #define APPLE_WM_MAJOR_VERSION 1 /* current version numbers */ #define APPLE_WM_MINOR_VERSION 3 #define APPLE_WM_PATCH_VERSION 0 #define X_AppleWMQueryVersion 0 #define X_AppleWMFrameGetRect 1 #define X_AppleWMFrameHitTest 2 #define X_AppleWMFrameDraw 3 #define X_AppleWMDisableUpdate 4 #define X_AppleWMReenableUpdate 5 #define X_AppleWMSelectInput 6 #define X_AppleWMSetWindowMenuCheck 7 #define X_AppleWMSetFrontProcess 8 #define X_AppleWMSetWindowLevel 9 #define X_AppleWMSetCanQuit 10 #define X_AppleWMSetWindowMenu 11 #define X_AppleWMSendPSN 12 #define X_AppleWMAttachTransient 13 /* For the purpose of the structure definitions in this file, we must redefine the following types in terms of Xmd.h's types, which may include bit fields. All of these are #undef'd at the end of this file, restoring the definitions in X.h. */ #define Window CARD32 #define Drawable CARD32 #define Font CARD32 #define Pixmap CARD32 #define Cursor CARD32 #define Colormap CARD32 #define GContext CARD32 #define Atom CARD32 #define VisualID CARD32 #define Time CARD32 #define KeyCode CARD8 #define KeySym CARD32 typedef struct _AppleWMQueryVersion { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMQueryVersion */ CARD16 length; } xAppleWMQueryVersionReq; #define sz_xAppleWMQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of WM protocol */ CARD16 minorVersion; /* minor version of WM protocol */ CARD32 patchVersion; /* patch version of WM protocol */ CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xAppleWMQueryVersionReply; #define sz_xAppleWMQueryVersionReply 32 typedef struct _AppleWMDisableUpdate { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMDisableUpdate */ CARD16 length; CARD32 screen; } xAppleWMDisableUpdateReq; #define sz_xAppleWMDisableUpdateReq 8 typedef struct _AppleWMReenableUpdate { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMReenableUpdate */ CARD16 length; CARD32 screen; } xAppleWMReenableUpdateReq; #define sz_xAppleWMReenableUpdateReq 8 typedef struct _AppleWMSelectInput { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSelectInput */ CARD16 length; CARD32 mask; } xAppleWMSelectInputReq; #define sz_xAppleWMSelectInputReq 8 typedef struct _AppleWMNotify { BYTE type; /* always eventBase + event type */ BYTE kind; CARD16 sequenceNumber; Time time; /* time of change */ CARD16 pad1; CARD32 arg; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xAppleWMNotifyEvent; #define sz_xAppleWMNotifyEvent 32 typedef struct _AppleWMSetWindowMenu { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSetWindowMenu */ CARD16 length; CARD16 nitems; CARD16 pad1; } xAppleWMSetWindowMenuReq; #define sz_xAppleWMSetWindowMenuReq 8 typedef struct _AppleWMSetWindowMenuCheck { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSetWindowMenuCheck */ CARD16 length; CARD32 index; } xAppleWMSetWindowMenuCheckReq; #define sz_xAppleWMSetWindowMenuCheckReq 8 typedef struct _AppleWMSetFrontProcess { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSetFrontProcess */ CARD16 length; } xAppleWMSetFrontProcessReq; #define sz_xAppleWMSetFrontProcessReq 4 typedef struct _AppleWMSetWindowLevel { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSetWindowLevel */ CARD16 length; CARD32 window; CARD32 level; } xAppleWMSetWindowLevelReq; #define sz_xAppleWMSetWindowLevelReq 12 typedef struct _AppleWMSendPSN { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSendPSN */ CARD16 length; CARD32 psn_hi; CARD32 psn_lo; } xAppleWMSendPSNReq; #define sz_xAppleWMSendPSNReq 12 typedef struct _AppleWMAttachTransient { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMAttachTransient */ CARD16 length; CARD32 child; CARD32 parent; } xAppleWMAttachTransientReq; #define sz_xAppleWMAttachTransientReq 12 typedef struct _AppleWMSetCanQuit { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMSetCanQuit */ CARD16 length; CARD32 state; } xAppleWMSetCanQuitReq; #define sz_xAppleWMSetCanQuitReq 8 typedef struct _AppleWMFrameGetRect { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMFrameGetRect */ CARD16 length; CARD16 frame_class; CARD16 frame_rect; CARD16 ix; CARD16 iy; CARD16 iw; CARD16 ih; CARD16 ox; CARD16 oy; CARD16 ow; CARD16 oh; } xAppleWMFrameGetRectReq; #define sz_xAppleWMFrameGetRectReq 24 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 x; CARD16 y; CARD16 w; CARD16 h; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xAppleWMFrameGetRectReply; #define sz_xAppleWMFrameGetRectReply 32 typedef struct _AppleWMFrameHitTest { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMFrameHitTest */ CARD16 length; CARD16 frame_class; CARD16 pad1; CARD16 px; CARD16 py; CARD16 ix; CARD16 iy; CARD16 iw; CARD16 ih; CARD16 ox; CARD16 oy; CARD16 ow; CARD16 oh; } xAppleWMFrameHitTestReq; #define sz_xAppleWMFrameHitTestReq 28 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 ret; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xAppleWMFrameHitTestReply; #define sz_xAppleWMFrameHitTestReply 32 typedef struct _AppleWMFrameDraw { CARD8 reqType; /* always WMReqCode */ CARD8 wmReqType; /* always X_AppleWMFrameDraw */ CARD16 length; CARD32 screen; CARD32 window; CARD16 frame_class; CARD16 frame_attr; CARD16 ix; CARD16 iy; CARD16 iw; CARD16 ih; CARD16 ox; CARD16 oy; CARD16 ow; CARD16 oh; CARD32 title_length; } xAppleWMFrameDrawReq; #define sz_xAppleWMFrameDrawReq 36 /* restore these definitions back to the typedefs in X.h */ #undef Window #undef Drawable #undef Font #undef Pixmap #undef Cursor #undef Colormap #undef GContext #undef Atom #undef VisualID #undef Time #undef KeyCode #undef KeySym #endif /* _APPLEWMPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/XResproto.h0000644000175000017500000001206014443010026017070 00000000000000/* Copyright (c) 2002 XFree86 Inc */ #ifndef _XRESPROTO_H #define _XRESPROTO_H #define XRES_MAJOR_VERSION 1 #define XRES_MINOR_VERSION 2 #define XRES_NAME "X-Resource" /* v1.0 */ #define X_XResQueryVersion 0 #define X_XResQueryClients 1 #define X_XResQueryClientResources 2 #define X_XResQueryClientPixmapBytes 3 /* Version 1.1 has been accidentally released from the version */ /* control and while it doesn't have differences to version 1.0, the */ /* next version is labeled 1.2 in order to remove the risk of confusion. */ /* v1.2 */ #define X_XResQueryClientIds 4 #define X_XResQueryResourceBytes 5 typedef struct { CARD32 resource_base; CARD32 resource_mask; } xXResClient; #define sz_xXResClient 8 typedef struct { CARD32 resource_type; CARD32 count; } xXResType; #define sz_xXResType 8 /* XResQueryVersion */ typedef struct _XResQueryVersion { CARD8 reqType; CARD8 XResReqType; CARD16 length; CARD8 client_major; CARD8 client_minor; CARD16 unused; } xXResQueryVersionReq; #define sz_xXResQueryVersionReq 8 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD16 server_major; CARD16 server_minor; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXResQueryVersionReply; #define sz_xXResQueryVersionReply 32 /* XResQueryClients */ typedef struct _XResQueryClients { CARD8 reqType; CARD8 XResReqType; CARD16 length; } xXResQueryClientsReq; #define sz_xXResQueryClientsReq 4 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 num_clients; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXResQueryClientsReply; #define sz_xXResQueryClientsReply 32 /* XResQueryClientResources */ typedef struct _XResQueryClientResources { CARD8 reqType; CARD8 XResReqType; CARD16 length; CARD32 xid; } xXResQueryClientResourcesReq; #define sz_xXResQueryClientResourcesReq 8 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 num_types; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXResQueryClientResourcesReply; #define sz_xXResQueryClientResourcesReply 32 /* XResQueryClientPixmapBytes */ typedef struct _XResQueryClientPixmapBytes { CARD8 reqType; CARD8 XResReqType; CARD16 length; CARD32 xid; } xXResQueryClientPixmapBytesReq; #define sz_xXResQueryClientPixmapBytesReq 8 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 bytes; CARD32 bytes_overflow; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXResQueryClientPixmapBytesReply; #define sz_xXResQueryClientPixmapBytesReply 32 /* v1.2 XResQueryClientIds */ #define X_XResClientXIDMask 0x01 #define X_XResLocalClientPIDMask 0x02 typedef struct _XResClientIdSpec { CARD32 client; CARD32 mask; } xXResClientIdSpec; #define sz_xXResClientIdSpec 8 typedef struct _XResClientIdValue { xXResClientIdSpec spec; CARD32 length; // followed by length CARD32s } xXResClientIdValue; #define sz_xResClientIdValue (sz_xXResClientIdSpec + 4) typedef struct _XResQueryClientIds { CARD8 reqType; CARD8 XResReqType; CARD16 length; CARD32 numSpecs; // followed by numSpecs times XResClientIdSpec } xXResQueryClientIdsReq; #define sz_xXResQueryClientIdsReq 8 typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numIds; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; // followed by numIds times XResClientIdValue } xXResQueryClientIdsReply; #define sz_xXResQueryClientIdsReply 32 /* v1.2 XResQueryResourceBytes */ typedef struct _XResResourceIdSpec { CARD32 resource; CARD32 type; } xXResResourceIdSpec; #define sz_xXResResourceIdSpec 8 typedef struct _XResQueryResourceBytes { CARD8 reqType; CARD8 XResReqType; CARD16 length; CARD32 client; CARD32 numSpecs; // followed by numSpecs times XResResourceIdSpec } xXResQueryResourceBytesReq; #define sz_xXResQueryResourceBytesReq 12 typedef struct _XResResourceSizeSpec { xXResResourceIdSpec spec; CARD32 bytes; CARD32 refCount; CARD32 useCount; } xXResResourceSizeSpec; #define sz_xXResResourceSizeSpec (sz_xXResResourceIdSpec + 12) typedef struct _XResResourceSizeValue { xXResResourceSizeSpec size; CARD32 numCrossReferences; // followed by numCrossReferences times XResResourceSizeSpec } xXResResourceSizeValue; #define sz_xXResResourceSizeValue (sz_xXResResourceSizeSpec + 4) typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD32 length; CARD32 numSizes; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; // followed by numSizes times XResResourceSizeValue } xXResQueryResourceBytesReply; #define sz_xXResQueryResourceBytesReply 32 #endif /* _XRESPROTO_H */ xorgproto-2023.2/include/X11/extensions/xcalibrateproto.h0000644000175000017500000000567414443010026020342 00000000000000/* * Copyright © 2003 Philip Blundell * * 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 Philip Blundell not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Philip Blundell makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * PHILIP BLUNDELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL PHILIP BLUNDELL 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. */ #ifndef XCALIBRATEPROTO_H #define XCALIBRATEPROTO_H /* * requests and replies */ typedef struct { CARD8 reqType; CARD8 xCalibrateReqType; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xXCalibrateQueryVersionReq; #define sz_xXCalibrateQueryVersionReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXCalibrateQueryVersionReply; #define sz_xXCalibrateQueryVersionReply 32 typedef struct { CARD8 reqType; CARD8 xCalibrateReqType; CARD16 length; CARD16 on; CARD16 pad; } xXCalibrateRawModeReq; #define sz_xXCalibrateRawModeReq 8 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 status; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXCalibrateRawModeReply; #define sz_xXCalibrateRawModeReply 32 typedef struct { CARD8 reqType; CARD8 xCalibrateReqType; CARD16 length; CARD32 x; CARD32 y; } xXCalibrateScreenToCoordReq; #define sz_xXCalibrateScreenToCoordReq 12 typedef struct { BYTE type; /* X_Reply */ BYTE pad1; CARD16 sequenceNumber; CARD32 x; CARD32 y; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXCalibrateScreenToCoordReply; #define sz_xXCalibrateScreenToCoordReply 32 /* Events */ typedef struct { CARD8 type; CARD8 pad1; CARD16 sequenceNumber; CARD16 x; CARD16 y; CARD16 pressure; CARD16 pad2; } xXCalibrateRawTouchscreenEvent; #define sz_xXCalibrateRawTouchscreenEvent 12 #endif xorgproto-2023.2/include/X11/extensions/xf86rush.h0000644000175000017500000000436214443010026016626 00000000000000/* $XFree86: xc/include/extensions/xf86rush.h,v 1.4 2000/02/29 03:09:00 dawes Exp $ */ /* Copyright (c) 1998 Daryll Strauss */ #ifndef _XF86RUSH_H_ #define _XF86RUSH_H_ #include #include #define X_XF86RushQueryVersion 0 #define X_XF86RushLockPixmap 1 #define X_XF86RushUnlockPixmap 2 #define X_XF86RushUnlockAllPixmaps 3 #define X_XF86RushGetCopyMode 4 #define X_XF86RushSetCopyMode 5 #define X_XF86RushGetPixelStride 6 #define X_XF86RushSetPixelStride 7 #define X_XF86RushOverlayPixmap 8 #define X_XF86RushStatusRegOffset 9 #define X_XF86RushAT3DEnableRegs 10 #define X_XF86RushAT3DDisableRegs 11 #define XF86RushNumberEvents 0 #define XF86RushClientNotLocal 0 #define XF86RushNumberErrors (XF86RushClientNotLocal + 1) #ifndef _XF86RUSH_SERVER_ _XFUNCPROTOBEGIN Bool XF86RushQueryVersion( Display* /* dpy */, int* /* majorVersion */, int* /* minorVersion */ ); Bool XF86RushQueryExtension( Display* /* dpy */, int* /* event_base */, int* /* error_base */ ); Bool XF86RushLockPixmap( Display * /* dpy */, int /* screen */, Pixmap /* Pixmap */, void ** /* Return address */ ); Bool XF86RushUnlockPixmap( Display * /* dpy */, int /* screen */, Pixmap /* Pixmap */ ); Bool XF86RushUnlockAllPixmaps( Display * /* dpy */ ); Bool XF86RushSetCopyMode( Display * /* dpy */, int /* screen */, int /* copy mode */ ); Bool XF86RushSetPixelStride( Display * /* dpy */, int /* screen */, int /* pixel stride */ ); Bool XF86RushOverlayPixmap( Display * /* dpy */, XvPortID /* port */, Drawable /* d */, GC /* gc */, Pixmap /* pixmap */, int /* src_x */, int /* src_y */, unsigned int /* src_w */, unsigned int /* src_h */, int /* dest_x */, int /* dest_y */, unsigned int /* dest_w */, unsigned int /* dest_h */, unsigned int /* id */ ); int XF86RushStatusRegOffset( Display * /* dpy */, int /* screen */ ); Bool XF86RushAT3DEnableRegs( Display * /* dpy */, int /* screen */ ); Bool XF86RushAT3DDisableRegs( Display * /* dpy */, int /* screen */ ); _XFUNCPROTOEND #endif /* _XF86RUSH_SERVER_ */ #endif /* _XF86RUSH_H_ */ xorgproto-2023.2/include/X11/extensions/xtraplib.h0000644000175000017500000001175114443010026016756 00000000000000/* $XFree86$ */ #ifndef __XTRAPLIB__ #define __XTRAPLIB__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991, 1994 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This header file describes all the structures/constants required * for interfacing with the client toolkit *except* the common * client/extension definitions in xtrapdi.h. Namely, *no* extension- * only information or client/extension information can be found here. */ #ifdef SMT #define NEED_EVENTS #define NEED_REPLIES #endif #include #include #include #include typedef struct _XETC XETC; typedef int (*int_function)(XETC *tc, XETrapDatum *pdatum, BYTE *userp); typedef void (*void_function)(XETC *tc, XETrapDatum *pdatum, BYTE *userp); typedef struct /* Callback structure */ { void_function func; BYTE *data; } XETrapCB; /* Data structure for setting trap context */ typedef struct { CARD8 tc_flags[2L]; /* Toolkit-side specific flags */ XETrapCfg v; /* XTrap configuration values */ XETrapCB *req_cb; /* Pointer to Request Callbacks */ XETrapCB *evt_cb; /* Pointer to Event Callbacks (starting at 2) */ CARD32 last_time; /* Last (delta) timestamp */ } XETCValues; /* bits 0 thru 6 are formerly "families" (now obsolete) */ #define XETCDeltaTimes 7 #define XETCTrapActive 8 /* bits 9 thru 15 are reserved for future expansion */ /* Values bit masks (used when determining what's dirty */ #define TCStatistics (1L<<0L) #define TCRequests (1L<<1L) #define TCEvents (1L<<2L) #define TCMaxPacket (1L<<3L) #define TCCmdKey (1L<<4L) #define TCTimeStamps (1L<<5L) #define TCWinXY (1L<<6L) #define TCXInput (1L<<7L) #define TCReqCBs (1L<<8L) #define TCEvtCBs (1L<<9L) #define TCCursor (1L<<10L) #define TCColorReplies (1L<<11L) #define TCGrabServer (1L<<12L) /* This is the representation we use in the library code for XLib transport */ typedef struct { int type; unsigned long serial; Bool synthetic; Display *display; int detail; unsigned long idx; unsigned char data[sz_EventData]; } XETrapDataEvent; /* Trap Context structure for maintaining XTrap State for client */ struct _XETC { struct _XETC *next; /* Ptr to next linked-listed TC */ Display *dpy; /* Display ptr of current TC */ INT32 eventBase /*B32*/; /* First event value */ INT32 errorBase /*B32*/; /* First error value */ INT32 extOpcode /*B32*/; /* Major opcode of the extension */ BYTE *xbuff; /* Pointer to buffer for XLib Communications */ CARD16 xmax_size /*B16*/; /* Max Size of a request */ XExtData *ext_data; /* hook for extension to hang data */ /* * The following are initialized with the client-side version number * However, when either a GetAvailable or GetVersion reply is received, * these values are updated with the *oldest* version numbers. */ CARD16 release /*B16*/; /* The extension release number */ CARD16 version /*B16*/; /* The xtrap extension version number */ CARD16 revision /*B16*/; /* The xtrap extension revision number */ CARD16 protocol /*B16*/; /* The xtrap extension protocol number */ unsigned dirty /*B32*/; /* cache dirty bits */ XETCValues values; /* shadow structure of values */ Boolean (*eventFunc[XETrapNumberEvents])(XETrapDataEvent *event, struct _XETC *tc); }; #endif /* __XTRAPLIB__ */ xorgproto-2023.2/include/X11/extensions/fontcacheP.h0000644000175000017500000000360214443010026017177 00000000000000/*- * Copyright (c) 1998-1999 Shunsuke Akiyama . * All rights reserved. * Copyright (c) 1998-1999 X-TrueType Server Project, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * Id: fontcacheP.h,v 1.6 1999/01/31 12:43:53 akiyama Exp $ */ /* $XFree86: xc/include/extensions/fontcacheP.h,v 1.4 2000/03/01 01:04:21 dawes Exp $ */ #ifndef _FONTCACHEP_H_ #define _FONTCACHEP_H_ #include int FontCacheChangeSettings(FontCacheSettingsPtr /* cinfo */); void FontCacheGetSettings(FontCacheSettingsPtr /* cinfo */); void FontCacheGetStatistics(FontCacheStatisticsPtr /* cstats */); #endif /* _FONTCACHEP_H_ */ xorgproto-2023.2/include/X11/extensions/xtestext1proto.h0000644000175000017500000001715614443010026020173 00000000000000/* * xtestext1.h * * X11 Input Synthesis Extension include file */ /* Copyright 1986, 1987, 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Hewlett-Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. */ #ifndef _XTESTEXT1PROTO_H #define _XTESTEXT1PROTO_H 1 #include /* * the typedefs for CARD8, CARD16, and CARD32 are defined in Xmd.h */ /* * XTest request type values * * used in the XTest extension protocol requests */ #define X_TestFakeInput 1 #define X_TestGetInput 2 #define X_TestStopInput 3 #define X_TestReset 4 #define X_TestQueryInputSize 5 /* * This defines the maximum size of a list of input actions * to be sent to the server. It should always be a multiple of * 4 so that the entire xTestFakeInputReq structure size is a * multiple of 4. */ typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 XTestReqType; /* always X_TestFakeInput */ CARD16 length; /* 2 + XTestMAX_ACTION_LIST_SIZE/4 */ CARD32 ack; CARD8 action_list[XTestMAX_ACTION_LIST_SIZE]; } xTestFakeInputReq; #define sz_xTestFakeInputReq (XTestMAX_ACTION_LIST_SIZE + 8) typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 XTestReqType; /* always X_TestGetInput */ CARD16 length; /* 2 */ CARD32 mode; } xTestGetInputReq; #define sz_xTestGetInputReq 8 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 XTestReqType; /* always X_TestStopInput */ CARD16 length; /* 1 */ } xTestStopInputReq; #define sz_xTestStopInputReq 4 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 XTestReqType; /* always X_TestReset */ CARD16 length; /* 1 */ } xTestResetReq; #define sz_xTestResetReq 4 typedef struct { CARD8 reqType; /* always XTestReqCode */ CARD8 XTestReqType; /* always X_TestQueryInputSize */ CARD16 length; /* 1 */ } xTestQueryInputSizeReq; #define sz_xTestQueryInputSizeReq 4 /* * This is the definition of the reply for the xTestQueryInputSize * request. It should remain the same minimum size as other replies * (32 bytes). */ typedef struct { CARD8 type; /* always X_Reply */ CARD8 pad1; CARD16 sequenceNumber; CARD32 length; /* always 0 */ CARD32 size_return; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xTestQueryInputSizeReply; /* * This is the definition for the input action wire event structure. * This event is sent to the client when the server has one or * more user input actions to report to the client. It must * remain the same size as all other wire events (32 bytes). */ typedef struct { CARD8 type; /* always XTestInputActionType */ CARD8 pad00; CARD16 sequenceNumber; CARD8 actions[XTestACTIONS_SIZE]; } xTestInputActionEvent; /* * This is the definition for the xTestFakeAck wire event structure. * This event is sent to the client when the server has completely * processed its input action buffer, and is ready for more. * It must remain the same size as all other wire events (32 bytes). */ typedef struct { CARD8 type; /* always XTestFakeAckType */ CARD8 pad00; CARD16 sequenceNumber; CARD32 pad02; CARD32 pad03; CARD32 pad04; CARD32 pad05; CARD32 pad06; CARD32 pad07; CARD32 pad08; } xTestFakeAckEvent; /* * These are the definitions for key/button motion input actions. */ typedef struct { CARD8 header; /* which device, key up/down */ CARD8 keycode; /* which key/button to move */ CARD16 delay_time; /* how long to delay (in ms) */ } XTestKeyInfo; /* * This is the definition for pointer jump input actions. */ typedef struct { CARD8 header; /* which pointer */ CARD8 pad1; /* unused padding byte */ CARD16 jumpx; /* x coord to jump to */ CARD16 jumpy; /* y coord to jump to */ CARD16 delay_time; /* how long to delay (in ms) */ } XTestJumpInfo; /* * These are the definitions for pointer relative motion input * actions. * * The sign bits for the x and y relative motions are contained * in the header byte. The x and y relative motions are packed * into one byte to make things fit in 32 bits. If the relative * motion range is larger than +/-15, use the pointer jump action. */ typedef struct { CARD8 header; /* which pointer */ CARD8 motion_data; /* x,y relative motion */ CARD16 delay_time; /* how long to delay (in ms) */ } XTestMotionInfo; /* * These are the definitions for a long delay input action. It is * used when more than XTestSHORT_DELAY_TIME milliseconds of delay * (approximately one minute) is needed. * * The device ID for a delay is always set to XTestDELAY_DEVICE_ID. * This guarantees that a header byte with a value of 0 is not * a valid header, so it can be used as a flag to indicate that * there are no more input actions in an XTestInputAction event. */ typedef struct { CARD8 header; /* always XTestDELAY_DEVICE_ID */ CARD8 pad1; /* unused padding byte */ CARD16 pad2; /* unused padding word */ CARD32 delay_time; /* how long to delay (in ms) */ } XTestDelayInfo; #endif /* _XTESTEXT1PROTO_H */ xorgproto-2023.2/include/X11/extensions/saver.h0000644000175000017500000000355414443010026016253 00000000000000/* Copyright (c) 1992 X Consortium 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 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium 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 X Consortium. * * Author: Keith Packard, MIT X Consortium */ #ifndef _SAVER_H_ #define _SAVER_H_ #define ScreenSaverName "MIT-SCREEN-SAVER" #define ScreenSaverPropertyName "_MIT_SCREEN_SAVER_ID" #define ScreenSaverNotifyMask 0x00000001 #define ScreenSaverCycleMask 0x00000002 #define ScreenSaverMajorVersion 1 #define ScreenSaverMinorVersion 1 #define ScreenSaverOff 0 #define ScreenSaverOn 1 #define ScreenSaverCycle 2 #define ScreenSaverDisabled 3 #define ScreenSaverBlanked 0 #define ScreenSaverInternal 1 #define ScreenSaverExternal 2 #define ScreenSaverNotify 0 #define ScreenSaverNumberEvents 1 #endif /* _SAVER_H_ */ xorgproto-2023.2/include/X11/extensions/cupproto.h0000644000175000017500000000577114443010026017011 00000000000000/* Copyright 1987, 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _XCUPPROTO_H_ /* { */ #define _XCUPPROTO_H_ #include #define X_XcupQueryVersion 0 #define X_XcupGetReservedColormapEntries 1 #define X_XcupStoreColors 2 typedef struct _XcupQueryVersion { CARD8 reqType; /* always XcupReqCode */ CARD8 xcupReqType; /* always X_XcupQueryVersion */ CARD16 length; CARD16 client_major_version; CARD16 client_minor_version; } xXcupQueryVersionReq; #define sz_xXcupQueryVersionReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; CARD16 server_major_version; CARD16 server_minor_version; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXcupQueryVersionReply; #define sz_xXcupQueryVersionReply 32 typedef struct _XcupGetReservedColormapEntries { CARD8 reqType; /* always XcupReqCode */ CARD8 xcupReqType; /* always X_XcupGetReservedColormapEntries */ CARD16 length; CARD32 screen; } xXcupGetReservedColormapEntriesReq; #define sz_xXcupGetReservedColormapEntriesReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXcupGetReservedColormapEntriesReply; #define sz_xXcupGetReservedColormapEntriesReply 32 typedef struct _XcupStoreColors { CARD8 reqType; /* always XcupReqCode */ CARD8 xcupReqType; /* always X_XcupStoreColors */ CARD16 length; CARD32 cmap; } xXcupStoreColorsReq; #define sz_xXcupStoreColorsReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequence_number; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXcupStoreColorsReply; #define sz_xXcupStoreColorsReply 32 #endif /* } _XCUPPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/bigreqsproto.h0000644000175000017500000000356514443010026017655 00000000000000/* Copyright 1992, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _BIGREQSPROTO_H_ #define _BIGREQSPROTO_H_ #define X_BigReqEnable 0 #define XBigReqNumberEvents 0 #define XBigReqNumberErrors 0 #define XBigReqExtensionName "BIG-REQUESTS" typedef struct { CARD8 reqType; /* always XBigReqCode */ CARD8 brReqType; /* always X_BigReqEnable */ CARD16 length; } xBigReqEnableReq; #define sz_xBigReqEnableReq 4 typedef struct { BYTE type; /* X_Reply */ CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 max_request_size; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xBigReqEnableReply; #define sz_xBigReqEnableReply 32 typedef struct { CARD8 reqType; CARD8 data; CARD16 zero; CARD32 length; } xBigReq; #endif /* _BIGREQSPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/lbx.h0000644000175000017500000000427414443010026015720 00000000000000/* * Copyright 1992 Network Computing Devices * * 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 NCD. not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. NCD. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD. * 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. * */ #ifndef _LBX_H_ #define _LBX_H_ #define LBXNAME "LBX" #define LBX_MAJOR_VERSION 1 #define LBX_MINOR_VERSION 0 #define LbxNumberReqs 44 #define LbxEvent 0 #define LbxQuickMotionDeltaEvent 1 #define LbxNumberEvents 2 /* This is always the master client */ #define LbxMasterClientIndex 0 /* LbxEvent lbxType sub-fields */ #define LbxSwitchEvent 0 #define LbxCloseEvent 1 #define LbxDeltaEvent 2 #define LbxInvalidateTagEvent 3 #define LbxSendTagDataEvent 4 #define LbxListenToOne 5 #define LbxListenToAll 6 #define LbxMotionDeltaEvent 7 #define LbxReleaseCmapEvent 8 #define LbxFreeCellsEvent 9 /* * Lbx image compression methods * * No compression is always assigned the value of 0. * * The rest of the compression method opcodes are assigned dynamically * at option negotiation time. */ #define LbxImageCompressNone 0 #define BadLbxClient 0 #define LbxNumberErrors (BadLbxClient + 1) /* tagged data types */ #define LbxTagTypeModmap 1 #define LbxTagTypeKeymap 2 #define LbxTagTypeProperty 3 #define LbxTagTypeFont 4 #define LbxTagTypeConnInfo 5 #endif xorgproto-2023.2/include/X11/extensions/shmstr.h0000644000175000017500000000411314443010026016443 00000000000000/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ********************************************************/ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */ #ifndef _SHMSTR_H_ #define _SHMSTR_H_ #include #ifdef _XSHM_SERVER_ #define XSHM_PUT_IMAGE_ARGS \ DrawablePtr /* dst */, \ GCPtr /* pGC */, \ int /* depth */, \ unsigned int /* format */, \ int /* w */, \ int /* h */, \ int /* sx */, \ int /* sy */, \ int /* sw */, \ int /* sh */, \ int /* dx */, \ int /* dy */, \ char * /* data */ #define XSHM_CREATE_PIXMAP_ARGS \ ScreenPtr /* pScreen */, \ int /* width */, \ int /* height */, \ int /* depth */, \ char * /* addr */ typedef struct _ShmFuncs { PixmapPtr (* CreatePixmap)(XSHM_CREATE_PIXMAP_ARGS); void (* PutImage)(XSHM_PUT_IMAGE_ARGS); } ShmFuncs, *ShmFuncsPtr; #endif #endif /* _SHMSTR_H_ */ xorgproto-2023.2/include/X11/extensions/geproto.h0000644000175000017500000000445714443010026016615 00000000000000/* * Copyright © 2007-2008 Peter Hutterer * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. * * Authors: Peter Hutterer, University of South Australia, NICTA * */ #ifndef _GEPROTO_H_ #define _GEPROTO_H_ #include #include #include /********************************************************* * * Protocol request constants * */ #define X_GEGetExtensionVersion 1 /********************************************************* * * XGE protocol requests/replies * */ /* generic request */ typedef struct { CARD8 reqType; CARD8 ReqType; CARD16 length; } xGEReq; /* QueryVersion */ typedef struct { CARD8 reqType; /* input extension major code */ CARD8 ReqType; /* always X_GEQueryVersion */ CARD16 length; CARD16 majorVersion; CARD16 minorVersion; } xGEQueryVersionReq; #define sz_xGEQueryVersionReq 8 typedef struct { CARD8 repType; /* X_Reply */ CARD8 RepType; /* always X_GEQueryVersion */ CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; CARD16 minorVersion; CARD32 pad00; CARD32 pad01; CARD32 pad02; CARD32 pad03; CARD32 pad04; } xGEQueryVersionReply; #define sz_xGEQueryVersionReply 32 #endif /* _GEPROTO_H_ */ xorgproto-2023.2/include/X11/extensions/xtrapdi.h0000644000175000017500000004572314443010026016612 00000000000000/* $XFree86$ */ #ifndef __XTRAPDI__ #define __XTRAPDI__ /***************************************************************************** Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1994 by Digital Equipment Corp., Maynard, MA Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. *****************************************************************************/ /* * * CONTRIBUTORS: * * Dick Annicchiarico * Robert Chesler * Dan Coutu * Gene Durso * Marc Evans * Alan Jamison * Mark Henry * Ken Miller * * DESCRIPTION: * This header file defines the common structures/constants * between the XTrap extension and clients. All protocol * definitions between XTrap extension/clients can be found * here. */ #define NEED_REPLIES #define NEED_EVENTS #include #include #ifdef SMT #define NEED_EVENTS #define NEED_REPLIES #endif #include #include #define XTrapExtName "DEC-XTRAP" /* Current Release, Version, and Revision of the XTrap Extension */ #define XETrapRelease 3L #define XETrapVersion 4L #ifndef XETrapRevision /* Changed from the Makefile by users */ # define XETrapRevision 0L #endif /* XETrapRevision */ #define XETrapProtocol 32L #ifndef SIZEOF # ifdef __STDC__ # define SIZEOF(x) sz_##x # else # define SIZEOF(x) sz_/**/x # endif /* if ANSI C compiler else not */ #endif #ifndef sz_CARD32 #define sz_CARD32 4L #endif #ifndef sz_CARD8 #define sz_CARD8 1L #endif #ifndef True # define True 1L # define False 0L #endif /* This is used as flags to indicate desired request traps * Note: This has been padded to a CARD32 to keep structure aligned */ #define XETrapMaxRequest (((SIZEOF(CARD32)+((256L-1L) / \ (BitsInByte*SIZEOF(CARD8))))/SIZEOF(CARD32))*SIZEOF(CARD32)) typedef CARD8 ReqFlags[XETrapMaxRequest]; /* This is used as flags to indicate desired event traps * Until events become *fully vectored*, we'll have to fake it * by defining an array of 5 events (KeyPress, KeyRelease, * ButtonPress, ButtonRelease, and MotionNotify. The extra 2 * are required as the event types start with "2" (errors and * replies are 0 & 1). The event type is the index into the * bits. * Note: This has been padded to a longword to keep structure aligned */ #ifndef VECTORED_EVENTS #define XETrapCoreEvents (2L+5L) #else #define XETrapCoreEvents 128L #endif #define XETrapMaxEvent (((SIZEOF(CARD32)+((XETrapCoreEvents-1L) / \ (BitsInByte*SIZEOF(CARD8))))/SIZEOF(CARD32))*SIZEOF(CARD32)) typedef CARD8 EventFlags[XETrapMaxEvent]; /* This structure is used in a request to specify the types of * configuration information that should be changed or updated. */ typedef struct { CARD8 valid[4L]; /* Bits TRUE indicates data field is used */ CARD8 data[4L]; /* Bits looked at if corresponding valid bit set */ ReqFlags req; /* Bits correspond to core requests */ EventFlags event; /* Bits correspond to core events */ } XETrapFlags; /* Bit definitions for the above XETrapFlags structure. */ #define XETrapTimestamp 0L /* hdr timestamps desired */ #define XETrapCmd 1L /* command key specified */ #define XETrapCmdKeyMod 2L /* cmd key is a modifier */ #define XETrapRequest 3L /* output requests array */ #define XETrapEvent 4L /* future output events array */ #define XETrapMaxPacket 5L /* Maximum packet length set */ #define XETrapTransOut 6L /* obsolete */ #define XETrapStatistics 7L /* collect counts on requests */ #define XETrapWinXY 8L /* Fill in Window (X,Y) in hdr */ #define XETrapTransIn 9L /* obsolete */ #define XETrapCursor 10L /* Trap cursor state changes */ #define XETrapXInput 11L /* Use XInput extension */ #define XETrapVectorEvents 12L /* Use Vectored Events (128) */ #define XETrapColorReplies 13L /* Return replies with Color Req's */ #define XETrapGrabServer 14L /* Disables client GrabServers */ typedef struct /* used by XEConfigRequest */ { XETrapFlags flags; /* Flags to specify what should be chg'd */ CARD16 max_pkt_size; /* Maximum number of bytes in a packet */ CARD8 cmd_key; /* Keyboard command_key (KeyCode) */ /* * cmd_key is intentionally *not* defined KeyCode since it's definition is * ambiguous (int in Intrinsic.h and unsigned char in X.h. */ CARD8 pad[1L]; /* pad out to a quadword */ } XETrapCfg; /* These structures are used within the Xtrap request structure for * the various types of xtrap request */ #ifndef _XINPUT /* (see the definition of XEvent as a reference) */ typedef struct /* used by XESimulateXEventRequest for synthesizing core evts */ { CARD8 type; /* (must be first) as in XEvent */ CARD8 detail; /* Detail keycode/button as in XEvent */ CARD8 screen; /* screen number (0 to n) */ CARD8 pad; /* pad to longword */ INT16 x; /* X & Y coord as in XEvent */ INT16 y; } XETrapInputReq; #endif /* These are constants that refer to the extension request vector table. * A request will use these values as minor opcodes. */ #define XETrap_Reset 0L /* set to steady state */ #define XETrap_GetAvailable 1L /* get available funct from ext */ #define XETrap_Config 2L /* configure extension */ #define XETrap_StartTrap 3L /* use Trapping */ #define XETrap_StopTrap 4L /* stop using Trapping */ #define XETrap_GetCurrent 5L /* get current info from ext */ #define XETrap_GetStatistics 6L /* get count statistics from ext */ #ifndef _XINPUT #define XETrap_SimulateXEvent 7L /* async input simulation */ #endif #define XETrap_GetVersion 8L /* Get (Just) Version */ #define XETrap_GetLastInpTime 9L /* Get Timestamp of last client input */ /* The following are formats of a request to the XTRAP * extension. The data-less XTrap requests all use xXTrapReq */ typedef struct { CARD8 reqType; CARD8 minor_opcode; CARD16 length; CARD32 pad; /* Maintain quadword alignment */ } xXTrapReq; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapReq (sizeof(xXTrapReq)) /* For retrieving version/available info (passes lib-side protocol number) */ typedef struct { CARD8 reqType; CARD8 minor_opcode; CARD16 length; CARD16 protocol; /* The xtrap extension protocol number */ CARD16 pad; /* Maintain quadword alignment */ } xXTrapGetReq; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapGetReq (sizeof(xXTrapGetReq)) typedef struct { CARD8 reqType; CARD8 minor_opcode; CARD16 length; /* * The following is done so that structure padding wont be * a problem. The request structure contains a shadow for * the XETrapCfg structure. Since the XETrapCfg also has a * substructure (XETrapFlags) this structure is also shadowed. * * The following are a shadow of the XETrapFlags * structure. */ CARD8 config_flags_valid[4L]; CARD8 config_flags_data[4L]; ReqFlags config_flags_req; EventFlags config_flags_event; /* End Shadow (XETrapFlags)*/ CARD16 config_max_pkt_size; /* Max number of bytes in a packet */ CARD8 config_cmd_key; /* Keyboard command_key (KeyCode) */ /* * cmd_key is intentionally *not* defined KeyCode since it's definition is * ambiguous (int in Intrinsic.h and unsigned char in X.h. */ CARD8 config_pad[1L]; /* pad out to a quadword */ /* End Shadow (XETrapCfg) */ CARD32 pad; /* Maintain quadword alignment */ } xXTrapConfigReq; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapConfigReq (sizeof(xXTrapConfigReq)) #ifndef _XINPUT typedef struct { CARD8 reqType; CARD8 minor_opcode; CARD16 length; CARD32 pad; /* Maintain quadword alignment */ XETrapInputReq input; } xXTrapInputReq; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapInputReq (sizeof(xXTrapInputReq)) #endif /* The following structures are used by the server extension to send * information and replies to the client. */ /* header for all X replies */ typedef struct { CARD8 type; CARD8 detail; CARD16 sequenceNumber; CARD32 length; } XETrapRepHdr; /* Structure of Get Available Functionality reply */ typedef struct { CARD32 pf_ident; /* Contains constant identifying the platform */ CARD16 xtrap_release; /* The xtrap extension release number */ CARD16 xtrap_version; /* The xtrap extension version number */ CARD16 xtrap_revision; /* The xtrap extension revision number */ CARD16 max_pkt_size; /* Maximum number of bytes in a packet */ CARD8 valid[4]; /* What specific configuration flags are valid */ CARD32 major_opcode; /* The major opcode identifying xtrap */ CARD32 event_base; /* The event value we start at */ CARD32 pad0; /* obsolete field */ CARD16 pad1, pad2, pad3; /* obsolete field */ CARD16 xtrap_protocol; /* The xtrap extension protocol number */ INT16 cur_x; /* Current X & Y coord for relative motion */ INT16 cur_y; } XETrapGetAvailRep; typedef struct { CARD16 xtrap_release; /* The xtrap extension release number */ CARD16 xtrap_version; /* The xtrap extension version number */ CARD16 xtrap_revision; /* The xtrap extension revision number */ CARD16 xtrap_protocol; /* The xtrap extension protocol number */ } XETrapGetVersRep; typedef struct { CARD32 last_time; /* Timestamp of last input time */ } XETrapGetLastInpTimeRep; /* Structure of Get Current Configuration Information reply */ typedef struct { CARD8 state_flags[2]; /* Miscellaneous flags, see below #define's */ CARD16 pad0; /* Assure quadword alignment */ XETrapCfg config; /* Current Config information */ CARD32 pad1; } XETrapGetCurRep; /* Mask definitions for the above flags. */ #define XETrapTrapActive 0L /* If sending/receiving between client/ext */ /* Structure of Get Statistics Information reply */ typedef struct { CARD32 requests[256L]; /* Array containing request counts if trapped */ CARD32 events[XETrapCoreEvents]; /* Array containing event stats */ #ifndef VECTORED_EVENTS CARD32 pad; /* Pad out to a quadword */ #endif } XETrapGetStatsRep; #define PF_Other 0L /* server not one of the below */ #define PF_Apollo 10L /* server on Apollo system */ #define PF_ATT 20L /* server on AT&T system */ #define PF_Cray1 30L /* server on Cray 1 system */ #define PF_Cray2 31L /* server on Cray 2 system */ #define PF_DECUltrix 40L /* server on DEC ULTRIX system */ #define PF_DECVMS 41L /* server on DEC VMS system */ #define PF_DECVT1000 42L /* server on DEC-VT1000-terminal */ #define PF_DECXTerm 43L /* server on DEC-X-terminal */ #define PF_DECELN 44L /* server on DEC VAXELN X terminal */ #define PF_DECOSF1 45L /* server on DEC's OSF/1 system */ #define PF_HP9000s800 50L /* server on HP 9000/800 system */ #define PF_HP9000s300 51L /* server on HP 9000/300 system */ #define PF_IBMAT 60L /* server on IBM/AT system */ #define PF_IBMRT 61L /* server on IBM/RT system */ #define PF_IBMPS2 62L /* server on IBM/PS2 system */ #define PF_IBMRS 63L /* server on IBM/RS system */ #define PF_MacII 70L /* server on Mac II system */ #define PF_Pegasus 80L /* server on Tektronix Pegasus system */ #define PF_SGI 90L /* server on Silicon Graphcis system */ #define PF_Sony 100L /* server on Sony system */ #define PF_Sun3 110L /* server on Sun 3 system */ #define PF_Sun386i 111L /* server on Sun 386i system */ #define PF_SunSparc 112L /* server on Sun Sparc system */ /* reply sent back by XETrapGetAvailable request */ typedef struct { XETrapRepHdr hdr; XETrapGetAvailRep data; } xXTrapGetAvailReply; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapGetAvailReply sizeof(xXTrapGetAvailReply) /* reply sent back by XETrapGetVersion request */ typedef struct { XETrapRepHdr hdr; XETrapGetVersRep data; CARD32 pad0; /* pad out to 32 bytes */ CARD32 pad1; CARD32 pad2; CARD32 pad3; } xXTrapGetVersReply; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapGetVersReply sizeof(xXTrapGetVersReply) /* reply sent back by XETrapGetLastInpTime request */ typedef struct { XETrapRepHdr hdr; /* * The following is a shadow of the XETrapGetLastInpTimeRep * structure. This is done to avoid structure padding. */ CARD32 data_last_time; /* Timestamp of last input time */ CARD32 pad0; /* pad out to 32 bytes */ CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xXTrapGetLITimReply; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapGetLITimReply sizeof(xXTrapGetLITimReply) /* reply sent back by XETrapGetCurrent request */ typedef struct { XETrapRepHdr hdr; /* * The following is a shadow of the XETrapGetCurRep * structure. This is done to avoid structure padding. * Since the XETrapGetCurRep structure contains a sub-structure * (XETrapCfg) there is a shadow for that as well.*/ CARD8 data_state_flags[2]; /* Misc flags, see below #define's */ CARD16 data_pad0; /* Assure quadword alignment */ /* XETrapCfg Shadow Starts */ CARD8 data_config_flags_valid[4L]; CARD8 data_config_flags_data[4L]; ReqFlags data_config_flags_req; EventFlags data_config_flags_event; CARD16 data_config_max_pkt_size; /* Max num of bytes in a pkt */ CARD8 data_config_cmd_key; /* Keyboard cmd_key (KeyCode) */ /* * cmd_key is intentionally *not* defined KeyCode since it's definition is * ambiguous (int in Intrinsic.h and unsigned char in X.h. */ CARD8 data_config_pad[1L]; /* pad out to a quadword */ /* End Shadow (XETrapCfg) */ CARD32 pad1; } xXTrapGetCurReply; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_xXTrapGetCurReply sizeof(xXTrapGetCurReply) /* reply sent back by XETrapGetStatistics request */ /* Note: * The following does *not* use the standard XETrapRepHdr, but instead * one which is padded out to 32-bytes. This is because Cray's have a problem * reading arrays of CARD32s without using the _Read32 macro (see XERqsts.c). * This requires that none of the data be in the _Reply area. */ typedef struct { CARD8 type; CARD8 detail; CARD16 sequenceNumber; CARD32 length; CARD32 pad0; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; XETrapGetStatsRep data; } xXTrapGetStatsReply; #define sz_xXTrapGetStatsReply 1088 typedef struct /* the XTrap Output header (for output from ext to client) */ { /* this must be quadword aligned for portability */ CARD32 count; /* Length including this header */ CARD32 timestamp; /* timestamp if desired */ CARD8 type; /* event id, request id, special id */ CARD8 screen; /* screen number (0 to n) */ INT16 win_x; /* X coord of drawable, if any */ INT16 win_y; /* X coord of drawable, if any */ CARD16 client; /* to distinguish requests */ } XETrapHeader; /* the following works because all fields are defined as bit (Bnn) fields */ #define sz_XETrapHeader sizeof(XETrapHeader) #define XETrapHeaderIsEvent(phdr) (XETrapGetHeaderType(phdr) == 0x1L) #define XETrapHeaderIsRequest(phdr) (XETrapGetHeaderType(phdr) == 0x2L) #define XETrapHeaderIsSpecial(phdr) (XETrapGetHeaderType(phdr) == 0x3L) #define XETrapHeaderIsCursor(phdr) (XETrapGetHeaderType(phdr) == 0x4L) #define XETrapHeaderIsReply(phdr) (XETrapGetHeaderType(phdr) == 0x5L) /* Define a structure used for reading/writing datum of type XTrap */ typedef struct { XETrapHeader hdr; union { xEvent event; xResourceReq req; xGenericReply reply; /* special? */ } u; } XETrapDatum; /* this doesn't get picked up for VMS server builds (different Xproto.h) */ #ifndef sz_xEvent #define sz_xEvent 32 #endif /* Minimum size of a packet from the server extension */ #define XETrapMinPktSize (SIZEOF(XETrapHeader) + SIZEOF(xEvent)) /* Constants used with the XLIB transport */ #define XETrapDataStart 0L /* Used in the detail field */ #define XETrapDataContinued 1L /* Used in the detail field */ #define XETrapDataLast 2L /* Used in the detail field */ #define XETrapData 0L /* Used in the type field */ #define XETrapNumberEvents 1L /* This is the representation on the wire(see also XLib.h) */ #define sz_EventData 24L /* 32 bytes - type, detail, seq, index */ typedef struct { CARD8 type; CARD8 detail; CARD16 sequenceNumber; CARD32 idx; CARD8 data[sz_EventData]; } xETrapDataEvent; /* Error message indexes added to X for extension */ #define BadIO 2L /* Can't read/write */ #define BadStatistics 4L /* Stat's not avail. */ #define BadDevices 5L /* Devices not vectored */ #define BadScreen 7L /* Can't send event to given screen */ #define BadSwapReq 8L /* Can't send swapped extension requests */ #define XETrapNumErrors (BadSwapReq + 1) #define XEKeyIsClear 0 #define XEKeyIsEcho 1 #define XEKeyIsOther 2 #endif /* __XTRAPDI__ */ xorgproto-2023.2/include/X11/extensions/xf86misc.h0000644000175000017500000000747514443010026016610 00000000000000/* $XFree86: xc/include/extensions/xf86misc.h,v 3.16 2002/11/20 04:04:56 dawes Exp $ */ /* * Copyright (c) 1995, 1996 The XFree86 Project, Inc */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _XF86MISC_H_ #define _XF86MISC_H_ #include #define X_XF86MiscQueryVersion 0 #ifdef _XF86MISC_SAVER_COMPAT_ #define X_XF86MiscGetSaver 1 #define X_XF86MiscSetSaver 2 #endif #define X_XF86MiscGetMouseSettings 3 #define X_XF86MiscGetKbdSettings 4 #define X_XF86MiscSetMouseSettings 5 #define X_XF86MiscSetKbdSettings 6 #define X_XF86MiscSetGrabKeysState 7 #define X_XF86MiscSetClientVersion 8 #define X_XF86MiscGetFilePaths 9 #define X_XF86MiscPassMessage 10 #define XF86MiscNumberEvents 0 #define XF86MiscBadMouseProtocol 0 #define XF86MiscBadMouseBaudRate 1 #define XF86MiscBadMouseFlags 2 #define XF86MiscBadMouseCombo 3 #define XF86MiscBadKbdType 4 #define XF86MiscModInDevDisabled 5 #define XF86MiscModInDevClientNotLocal 6 #define XF86MiscNoModule 7 #define XF86MiscNumberErrors (XF86MiscNoModule + 1) /* Never renumber these */ #define MTYPE_MICROSOFT 0 #define MTYPE_MOUSESYS 1 #define MTYPE_MMSERIES 2 #define MTYPE_LOGITECH 3 #define MTYPE_BUSMOUSE 4 #define MTYPE_LOGIMAN 5 #define MTYPE_PS_2 6 #define MTYPE_MMHIT 7 #define MTYPE_GLIDEPOINT 8 #define MTYPE_IMSERIAL 9 #define MTYPE_THINKING 10 #define MTYPE_IMPS2 11 #define MTYPE_THINKINGPS2 12 #define MTYPE_MMANPLUSPS2 13 #define MTYPE_GLIDEPOINTPS2 14 #define MTYPE_NETPS2 15 #define MTYPE_NETSCROLLPS2 16 #define MTYPE_SYSMOUSE 17 #define MTYPE_AUTOMOUSE 18 #define MTYPE_ACECAD 19 #define MTYPE_EXPPS2 20 #define MTYPE_XQUEUE 127 #define MTYPE_OSMOUSE 126 #define MTYPE_UNKNOWN 125 #define KTYPE_UNKNOWN 0 #define KTYPE_84KEY 1 #define KTYPE_101KEY 2 #define KTYPE_OTHER 3 #define KTYPE_XQUEUE 4 #define MF_CLEAR_DTR 1 #define MF_CLEAR_RTS 2 #define MF_REOPEN 128 #ifndef _XF86MISC_SERVER_ /* return values for XF86MiscSetGrabKeysState */ #define MiscExtGrabStateSuccess 0 /* No errors */ #define MiscExtGrabStateLocked 1 /* A client already requested that * grabs cannot be removed/killed */ #define MiscExtGrabStateAlready 2 /* Request for enabling/disabling * grab removal/kill already done */ _XFUNCPROTOBEGIN typedef struct { char* device; int type; int baudrate; int samplerate; int resolution; int buttons; Bool emulate3buttons; int emulate3timeout; Bool chordmiddle; int flags; } XF86MiscMouseSettings; typedef struct { int type; int rate; int delay; Bool servnumlock; } XF86MiscKbdSettings; typedef struct { char* configfile; char* modulepath; char* logfile; } XF86MiscFilePaths; Bool XF86MiscQueryVersion( Display* /* dpy */, int* /* majorVersion */, int* /* minorVersion */ ); Bool XF86MiscQueryExtension( Display* /* dpy */, int* /* event_base */, int* /* error_base */ ); Bool XF86MiscSetClientVersion( Display *dpy /* dpy */ ); Status XF86MiscGetMouseSettings( Display* /* dpy */, XF86MiscMouseSettings* /* mouse info */ ); Status XF86MiscGetKbdSettings( Display* /* dpy */, XF86MiscKbdSettings* /* keyboard info */ ); Status XF86MiscSetMouseSettings( Display* /* dpy */, XF86MiscMouseSettings* /* mouse info */ ); Status XF86MiscSetKbdSettings( Display* /* dpy */, XF86MiscKbdSettings* /* keyboard info */ ); int XF86MiscSetGrabKeysState( Display* /* dpy */, Bool /* enabled */ ); Status XF86MiscGetFilePaths( Display* /* dpy */, XF86MiscFilePaths* /* file paths/locations */ ); Status XF86MiscPassMessage( Display* /* dpy */, int /* screen */, const char* /* message name/type */, const char* /* message contents/value */, char ** /* returned message */ ); _XFUNCPROTOEND #endif #endif xorgproto-2023.2/include/X11/extensions/fontcachstr.h0000644000175000017500000001020214443010026017435 00000000000000/*- * Copyright (c) 1998-1999 Shunsuke Akiyama . * All rights reserved. * Copyright (c) 1998-1999 X-TrueType Server Project, All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * Id: fontcachstr.h,v 1.7 1999/01/31 14:58:40 akiyama Exp $ */ /* $XFree86$ */ /* THIS IS NOT AN X CONSORTIUM STANDARD */ #ifndef _FONTCACHESTR_H_ #define _FONTCACHESTR_H_ #include #define FONTCACHENAME "FontCache" #define FONTCACHE_MAJOR_VERSION 0 /* current version numbers */ #define FONTCACHE_MINOR_VERSION 1 typedef struct _FontCacheQueryVersion { CARD8 reqType; /* always FontCacheReqCode */ CARD8 fontcacheReqType; /* always X_FontCacheQueryVersion */ CARD16 length; } xFontCacheQueryVersionReq; #define sz_xFontCacheQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of Font-Cache */ CARD16 minorVersion; /* minor version of Font-Cache */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xFontCacheQueryVersionReply; #define sz_xFontCacheQueryVersionReply 32 typedef struct _FontCacheGetCacheSettings { CARD8 reqType; /* always FontCacheReqCode */ CARD8 fontcacheReqType; /* always X_FontCacheGetCacheSettings */ CARD16 length; } xFontCacheGetCacheSettingsReq; #define sz_xFontCacheGetCacheSettingsReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 himark; CARD32 lowmark; CARD32 balance; CARD32 reserve0; CARD32 reserve1; CARD32 reserve2; } xFontCacheGetCacheSettingsReply; #define sz_xFontCacheGetCacheSettingsReply 32 typedef struct _FontCacheChangeCacheSettings { CARD8 reqType; /* always FontCacheReqCode */ CARD8 fontcacheReqType; /* always X_FontCacheChangeCacheSettings */ CARD16 length; CARD32 himark; CARD32 lowmark; CARD32 balance; CARD32 reserve0; CARD32 reserve1; CARD32 reserve2; CARD32 reserve3; } xFontCacheChangeCacheSettingsReq; #define sz_xFontCacheChangeCacheSettingsReq 32 typedef struct _FontCacheGetCacheStatistics { CARD8 reqType; /* always FontCacheReqCode */ CARD8 fontcacheReqType; /* always X_FontCacheGetCacheStatistics */ CARD16 length; } xFontCacheGetCacheStatisticsReq; #define sz_xFontCacheGetCacheStatisticsReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 purge_runs; CARD32 purge_stat; CARD32 balance; CARD32 reserve0; CARD32 f_hits; CARD32 f_misshits; CARD32 f_purged; CARD32 f_usage; CARD32 f_reserve0; CARD32 v_hits; CARD32 v_misshits; CARD32 v_purged; CARD32 v_usage; CARD32 v_reserve0; } xFontCacheGetCacheStatisticsReply; #define sz_xFontCacheGetCacheStatisticsReply 64 #endif /* _FONTCACHESTR_H_ */ xorgproto-2023.2/include/X11/extensions/xf86dga1proto.h0000644000175000017500000001063214443010026017542 00000000000000/* Copyright (c) 1995 Jon Tombs Copyright (c) 1995 XFree86 Inc. */ #ifndef _XF86DGAPROTO1_H_ #define _XF86DGAPROTO1_H_ #include typedef struct _XF86DGAQueryVersion { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_DGAQueryVersion */ CARD16 length; } xXF86DGAQueryVersionReq; #define sz_xXF86DGAQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of DGA protocol */ CARD16 minorVersion; /* minor version of DGA protocol */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DGAQueryVersionReply; #define sz_xXF86DGAQueryVersionReply 32 typedef struct _XF86DGAGetVideoLL { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGAGetVideoLL */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86DGAGetVideoLLReq; #define sz_xXF86DGAGetVideoLLReq 8 typedef struct _XF86DGAInstallColormap{ CARD8 reqType; CARD8 dgaReqType; CARD16 length; CARD16 screen; CARD16 pad2; CARD32 id; /* colormap. */ } xXF86DGAInstallColormapReq; #define sz_xXF86DGAInstallColormapReq 12 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 offset; CARD32 width; CARD32 bank_size; CARD32 ram_size; CARD32 pad4; CARD32 pad5; } xXF86DGAGetVideoLLReply; #define sz_xXF86DGAGetVideoLLReply 32 typedef struct _XF86DGADirectVideo { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGADirectVideo */ CARD16 length; CARD16 screen; CARD16 enable; } xXF86DGADirectVideoReq; #define sz_xXF86DGADirectVideoReq 8 typedef struct _XF86DGAGetViewPortSize { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGAGetViewPort */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86DGAGetViewPortSizeReq; #define sz_xXF86DGAGetViewPortSizeReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 width; CARD32 height; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86DGAGetViewPortSizeReply; #define sz_xXF86DGAGetViewPortSizeReply 32 typedef struct _XF86DGASetViewPort { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGASetViewPort */ CARD16 length; CARD16 screen; CARD16 pad; CARD32 x; CARD32 y; } xXF86DGASetViewPortReq; #define sz_xXF86DGASetViewPortReq 16 typedef struct _XF86DGAGetVidPage { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGAGetVidPage */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86DGAGetVidPageReq; #define sz_xXF86DGAGetVidPageReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 vpage; CARD32 pad; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86DGAGetVidPageReply; #define sz_xXF86DGAGetVidPageReply 32 typedef struct _XF86DGASetVidPage { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_XF86DGASetVidPage */ CARD16 length; CARD16 screen; CARD16 vpage; } xXF86DGASetVidPageReq; #define sz_xXF86DGASetVidPageReq 8 typedef struct _XF86DGAQueryDirectVideo { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_DGAQueryVersion */ CARD16 length; CARD16 screen; CARD16 pad; } xXF86DGAQueryDirectVideoReq; #define sz_xXF86DGAQueryDirectVideoReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 flags; CARD32 pad; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86DGAQueryDirectVideoReply; #define sz_xXF86DGAQueryDirectVideoReply 32 typedef struct _XF86DGAViewPortChanged { CARD8 reqType; /* always DGAReqCode */ CARD8 dgaReqType; /* always X_DGAQueryVersion */ CARD16 length; CARD16 screen; CARD16 n; } xXF86DGAViewPortChangedReq; #define sz_xXF86DGAViewPortChangedReq 8 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 result; CARD32 pad; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; } xXF86DGAViewPortChangedReply; #define sz_xXF86DGAViewPortChangedReply 32 #endif /* _XF86DGAPROTO1_H_ */ xorgproto-2023.2/include/X11/extensions/syncconst.h0000644000175000017500000001513414443010026017153 00000000000000/* Copyright 1991, 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /*********************************************************** Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts, and Olivetti Research Limited, Cambridge, England. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or Olivetti not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THEY 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. ******************************************************************/ #ifndef _SYNCCONST_H_ #define _SYNCCONST_H_ #define SYNC_NAME "SYNC" #define SYNC_MAJOR_VERSION 3 #define SYNC_MINOR_VERSION 1 #define XSyncCounterNotify 0 #define XSyncAlarmNotify 1 #define XSyncAlarmNotifyMask (1L << XSyncAlarmNotify) #define XSyncNumberEvents 2L #define XSyncBadCounter 0L #define XSyncBadAlarm 1L #define XSyncBadFence 2L #define XSyncNumberErrors (XSyncBadFence + 1) /* * Flags for Alarm Attributes */ #define XSyncCACounter (1L<<0) #define XSyncCAValueType (1L<<1) #define XSyncCAValue (1L<<2) #define XSyncCATestType (1L<<3) #define XSyncCADelta (1L<<4) #define XSyncCAEvents (1L<<5) /* The _XSync macros below are for library internal use only. They exist * so that if we have to make a fix, we can change it in this one place * and have both the macro and function variants inherit the fix. */ #define _XSyncIntToValue(pv, i) ((pv)->hi=((i<0)?~0:0),(pv)->lo=(i)) #define _XSyncIntsToValue(pv, l, h) ((pv)->lo = (l), (pv)->hi = (h)) #define _XSyncValueGreaterThan(a, b)\ ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>(b).lo)) #define _XSyncValueLessThan(a, b)\ ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<(b).lo)) #define _XSyncValueGreaterOrEqual(a, b)\ ((a).hi>(b).hi || ((a).hi==(b).hi && (a).lo>=(b).lo)) #define _XSyncValueLessOrEqual(a, b)\ ((a).hi<(b).hi || ((a).hi==(b).hi && (a).lo<=(b).lo)) #define _XSyncValueEqual(a, b) ((a).lo==(b).lo && (a).hi==(b).hi) #define _XSyncValueIsNegative(v) (((v).hi & 0x80000000) ? 1 : 0) #define _XSyncValueIsZero(a) ((a).lo==0 && (a).hi==0) #define _XSyncValueIsPositive(v) (((v).hi & 0x80000000) ? 0 : 1) #define _XSyncValueLow32(v) ((v).lo) #define _XSyncValueHigh32(v) ((v).hi) #define _XSyncValueAdd(presult,a,b,poverflow) {\ int t = (a).lo;\ Bool signa = XSyncValueIsNegative(a);\ Bool signb = XSyncValueIsNegative(b);\ ((presult)->lo = (a).lo + (b).lo);\ ((presult)->hi = (a).hi + (b).hi);\ if (t>(presult)->lo) (presult)->hi++;\ *poverflow = ((signa == signb) && !(signa == XSyncValueIsNegative(*presult)));\ } #define _XSyncValueSubtract(presult,a,b,poverflow) {\ int t = (a).lo;\ Bool signa = XSyncValueIsNegative(a);\ Bool signb = XSyncValueIsNegative(b);\ ((presult)->lo = (a).lo - (b).lo);\ ((presult)->hi = (a).hi - (b).hi);\ if (t<(presult)->lo) (presult)->hi--;\ *poverflow = ((signa == signb) && !(signa == XSyncValueIsNegative(*presult)));\ } #define _XSyncMaxValue(pv) ((pv)->hi = 0x7fffffff, (pv)->lo = 0xffffffff) #define _XSyncMinValue(pv) ((pv)->hi = 0x80000000, (pv)->lo = 0) /* * These are the publicly usable macros. If you want the function version * of one of these, just #undef the macro to uncover the function. * (This is the same convention that the ANSI C library uses.) */ #define XSyncIntToValue(pv, i) _XSyncIntToValue(pv, i) #define XSyncIntsToValue(pv, l, h) _XSyncIntsToValue(pv, l, h) #define XSyncValueGreaterThan(a, b) _XSyncValueGreaterThan(a, b) #define XSyncValueLessThan(a, b) _XSyncValueLessThan(a, b) #define XSyncValueGreaterOrEqual(a, b) _XSyncValueGreaterOrEqual(a, b) #define XSyncValueLessOrEqual(a, b) _XSyncValueLessOrEqual(a, b) #define XSyncValueEqual(a, b) _XSyncValueEqual(a, b) #define XSyncValueIsNegative(v) _XSyncValueIsNegative(v) #define XSyncValueIsZero(a) _XSyncValueIsZero(a) #define XSyncValueIsPositive(v) _XSyncValueIsPositive(v) #define XSyncValueLow32(v) _XSyncValueLow32(v) #define XSyncValueHigh32(v) _XSyncValueHigh32(v) #define XSyncValueAdd(presult,a,b,poverflow) _XSyncValueAdd(presult,a,b,poverflow) #define XSyncValueSubtract(presult,a,b,poverflow) _XSyncValueSubtract(presult,a,b,poverflow) #define XSyncMaxValue(pv) _XSyncMaxValue(pv) #define XSyncMinValue(pv) _XSyncMinValue(pv) /* * Constants for the value_type argument of various requests */ typedef enum { XSyncAbsolute, XSyncRelative } XSyncValueType; /* * Alarm Test types */ typedef enum { XSyncPositiveTransition, XSyncNegativeTransition, XSyncPositiveComparison, XSyncNegativeComparison } XSyncTestType; /* * Alarm state constants */ typedef enum { XSyncAlarmActive, XSyncAlarmInactive, XSyncAlarmDestroyed } XSyncAlarmState; typedef XID XSyncCounter; typedef XID XSyncAlarm; typedef XID XSyncFence; typedef struct _XSyncValue { int hi; unsigned int lo; } XSyncValue; #endif /* _SYNCCONST_H_ */ xorgproto-2023.2/include/X11/extensions/XI2proto.h0000644000175000017500000011701314443010026016615 00000000000000/* * Copyright © 2009 Red Hat, Inc. * * 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 (including the next * paragraph) 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 OR COPYRIGHT HOLDERS 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. * */ /* Conventions for this file: * Names: * structs: always typedef'd, prefixed with xXI, CamelCase * struct members: lower_case_with_underscores * Exceptions: reqType, ReqType, repType, RepType, sequenceNumber are * named as such for historical reasons. * request opcodes: X_XIRequestName as CamelCase * defines: defines used in client applications must go in XI2.h * defines used only in protocol handling: XISOMENAME * * Data types: unless there is a historical name for a datatype (e.g. * Window), use stdint types specifying the size of the datatype. * historical data type names must be defined and undefined at the top and * end of the file. * * General: * spaces, not tabs. * structs specific to a request or reply added before the request * definition. structs used in more than one request, reply or event * appended to the common structs section before the definition of the * first request. * members of structs vertically aligned on column 16 if datatypes permit. * otherwise aligned on next available 8n column. */ /** * Protocol definitions for the XI2 protocol. * This file should not be included by clients that merely use XI2, but do not * need the wire protocol. Such clients should include XI2.h, or the matching * header from the library. * */ #ifndef _XI2PROTO_H_ #define _XI2PROTO_H_ #include #include #include #include /* make sure types have right sizes for protocol structures. */ #define Window uint32_t #define Time uint32_t #define Atom uint32_t #define Cursor uint32_t #define Barrier uint32_t /** * XI2 Request opcodes */ #define X_XIQueryPointer 40 #define X_XIWarpPointer 41 #define X_XIChangeCursor 42 #define X_XIChangeHierarchy 43 #define X_XISetClientPointer 44 #define X_XIGetClientPointer 45 #define X_XISelectEvents 46 #define X_XIQueryVersion 47 #define X_XIQueryDevice 48 #define X_XISetFocus 49 #define X_XIGetFocus 50 #define X_XIGrabDevice 51 #define X_XIUngrabDevice 52 #define X_XIAllowEvents 53 #define X_XIPassiveGrabDevice 54 #define X_XIPassiveUngrabDevice 55 #define X_XIListProperties 56 #define X_XIChangeProperty 57 #define X_XIDeleteProperty 58 #define X_XIGetProperty 59 #define X_XIGetSelectedEvents 60 #define X_XIBarrierReleasePointer 61 /** Number of XI requests */ #define XI2REQUESTS (X_XIBarrierReleasePointer - X_XIQueryPointer + 1) /** Number of XI2 events */ #define XI2EVENTS (XI_LASTEVENT + 1) /************************************************************************************* * * * COMMON STRUCTS * * * *************************************************************************************/ /** Fixed point 16.16 */ typedef int32_t FP1616; /** Fixed point 32.32 */ typedef struct { int32_t integral; uint32_t frac; } FP3232; /** * Struct to describe a device. * * For a MasterPointer or a MasterKeyboard, 'attachment' specifies the * paired master device. * For a SlaveKeyboard or SlavePointer, 'attachment' specifies the master * device this device is attached to. * For a FloatingSlave, 'attachment' is undefined. */ typedef struct { uint16_t deviceid; uint16_t use; /**< ::XIMasterPointer, ::XIMasterKeyboard, ::XISlavePointer, ::XISlaveKeyboard, ::XIFloatingSlave */ uint16_t attachment; /**< Current attachment or pairing.*/ uint16_t num_classes; /**< Number of classes following this struct. */ uint16_t name_len; /**< Length of name in bytes. */ uint8_t enabled; /**< TRUE if device is enabled. */ uint8_t pad; } xXIDeviceInfo; /** * Default template for a device class. * A device class is equivalent to a device's capabilities. Multiple classes * are supported per device. */ typedef struct { uint16_t type; /**< One of *class */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint16_t pad; } xXIAnyInfo; /** * Denotes button capability on a device. * Struct is followed by a button bit-mask (padded to four byte chunks) and * then num_buttons * Atom that names the buttons in the device-native setup * (i.e. ignoring button mappings). */ typedef struct { uint16_t type; /**< Always ButtonClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint16_t num_buttons; /**< Number of buttons provided */ } xXIButtonInfo; /** * Denotes key capability on a device. * Struct is followed by num_keys * CARD32 that lists the keycodes available * on the device. */ typedef struct { uint16_t type; /**< Always KeyClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint16_t num_keycodes; /**< Number of keys provided */ } xXIKeyInfo; /** * Denotes an valuator capability on a device. * One XIValuatorInfo describes exactly one valuator (axis) on the device. */ typedef struct { uint16_t type; /**< Always ValuatorClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint16_t number; /**< Valuator number */ Atom label; /**< Axis label */ FP3232 min; /**< Min value */ FP3232 max; /**< Max value */ FP3232 value; /**< Last published value */ uint32_t resolution; /**< Resolutions in units/m */ uint8_t mode; /**< ModeRelative or ModeAbsolute */ uint8_t pad1; uint16_t pad2; } xXIValuatorInfo; /*** * Denotes a scroll valuator on a device. * One XIScrollInfo describes exactly one scroll valuator that must have a * XIValuatorInfo struct. */ typedef struct { uint16_t type; /**< Always ValuatorClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint16_t number; /**< Valuator number */ uint16_t scroll_type; /**< ::XIScrollTypeVertical, ::XIScrollTypeHorizontal */ uint16_t pad0; uint32_t flags; /**< ::XIScrollFlagEmulate, ::XIScrollFlagPreferred */ FP3232 increment; /**< Increment for one unit of scrolling */ } xXIScrollInfo; /** * Denotes multitouch capability on a device. */ typedef struct { uint16_t type; /**< Always TouchClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint8_t mode; /**< DirectTouch or DependentTouch */ uint8_t num_touches; /**< Maximum number of touches (0==unlimited) */ } xXITouchInfo; /** * Denotes touchpad gesture capability on a device. */ typedef struct { uint16_t type; /**< Always GestureClass */ uint16_t length; /**< Length in 4 byte units */ uint16_t sourceid; /**< source device for this class */ uint8_t num_touches; /**< Maximum number of touches gesture supports (0==unlimited) */ uint8_t pad0; } xXIGestureInfo; /** * Used to select for events on a given window. * Struct is followed by (mask_len * CARD8), with each bit set representing * the event mask for the given type. A mask bit represents an event type if * (mask == (1 << type)). */ typedef struct { uint16_t deviceid; /**< Device id to select for */ uint16_t mask_len; /**< Length of mask in 4 byte units */ } xXIEventMask; /** * XKB modifier information. * The effective modifier is a binary mask of base, latched, and locked * modifiers. */ typedef struct { uint32_t base_mods; /**< Logically pressed modifiers */ uint32_t latched_mods; /**< Logically latched modifiers */ uint32_t locked_mods; /**< Logically locked modifiers */ uint32_t effective_mods; /**< Effective modifiers */ } xXIModifierInfo; /** * XKB group information. * The effective group is the mathematical sum of base, latched, and locked * group after group wrapping is taken into account. */ typedef struct { uint8_t base_group; /**< Logically "pressed" group */ uint8_t latched_group; /**< Logically latched group */ uint8_t locked_group; /**< Logically locked group */ uint8_t effective_group; /**< Effective group */ } xXIGroupInfo; /************************************************************************************* * * * REQUESTS * * * *************************************************************************************/ /** * Query the server for the supported X Input extension version. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIQueryVersion */ uint16_t length; /**< Length in 4 byte units */ uint16_t major_version; uint16_t minor_version; } xXIQueryVersionReq; #define sz_xXIQueryVersionReq 8 typedef struct { uint8_t repType; /**< ::X_Reply */ uint8_t RepType; /**< Always ::X_XIQueryVersion */ uint16_t sequenceNumber; uint32_t length; uint16_t major_version; uint16_t minor_version; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIQueryVersionReply; #define sz_xXIQueryVersionReply 32 /** * Query the server for information about a specific device or all input * devices. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIQueryDevice */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; uint16_t pad; } xXIQueryDeviceReq; #define sz_xXIQueryDeviceReq 8 typedef struct { uint8_t repType; /**< ::X_Reply */ uint8_t RepType; /**< Always ::X_XIQueryDevice */ uint16_t sequenceNumber; uint32_t length; uint16_t num_devices; uint16_t pad0; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIQueryDeviceReply; #define sz_xXIQueryDeviceReply 32 /** * Select for events on a given window. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XISelectEvents */ uint16_t length; /**< Length in 4 byte units */ Window win; uint16_t num_masks; uint16_t pad; } xXISelectEventsReq; #define sz_xXISelectEventsReq 12 /** * Query for selected events on a given window. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIGetSelectedEvents */ uint16_t length; /**< Length in 4 byte units */ Window win; } xXIGetSelectedEventsReq; #define sz_xXIGetSelectedEventsReq 8 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIGetSelectedEvents */ uint16_t sequenceNumber; uint32_t length; uint16_t num_masks; /**< Number of xXIEventMask structs trailing the reply */ uint16_t pad0; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIGetSelectedEventsReply; #define sz_xXIGetSelectedEventsReply 32 /** * Query the given device's screen/window coordinates. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIQueryPointer */ uint16_t length; /**< Length in 4 byte units */ Window win; uint16_t deviceid; uint16_t pad1; } xXIQueryPointerReq; #define sz_xXIQueryPointerReq 12 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIQueryPointer */ uint16_t sequenceNumber; uint32_t length; Window root; Window child; FP1616 root_x; FP1616 root_y; FP1616 win_x; FP1616 win_y; uint8_t same_screen; uint8_t pad0; uint16_t buttons_len; xXIModifierInfo mods; xXIGroupInfo group; } xXIQueryPointerReply; #define sz_xXIQueryPointerReply 56 /** * Warp the given device's pointer to the specified position. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIWarpPointer */ uint16_t length; /**< Length in 4 byte units */ Window src_win; Window dst_win; FP1616 src_x; FP1616 src_y; uint16_t src_width; uint16_t src_height; FP1616 dst_x; FP1616 dst_y; uint16_t deviceid; uint16_t pad1; } xXIWarpPointerReq; #define sz_xXIWarpPointerReq 36 /** * Change the given device's sprite to the given cursor. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIChangeCursor */ uint16_t length; /**< Length in 4 byte units */ Window win; Cursor cursor; uint16_t deviceid; uint16_t pad1; } xXIChangeCursorReq; #define sz_xXIChangeCursorReq 16 /** * Modify the device hierarchy. */ typedef struct { uint8_t reqType; /**< Input extension major code */ uint8_t ReqType; /**< Always ::X_XIChangeHierarchy */ uint16_t length; /**< Length in 4 byte units */ uint8_t num_changes; uint8_t pad0; uint16_t pad1; } xXIChangeHierarchyReq; #define sz_xXIChangeHierarchyReq 8 /** * Generic header for any hierarchy change. */ typedef struct { uint16_t type; uint16_t length; /**< Length in 4 byte units */ } xXIAnyHierarchyChangeInfo; /** * Create a new master device. * Name of new master follows struct (4-byte padded) */ typedef struct { uint16_t type; /**< Always ::XIAddMaster */ uint16_t length; /**< 2 + (namelen + padding)/4 */ uint16_t name_len; uint8_t send_core; uint8_t enable; } xXIAddMasterInfo; /** * Delete a master device. Will automatically delete the master device paired * with the given master device. */ typedef struct { uint16_t type; /**< Always ::XIRemoveMaster */ uint16_t length; /**< 3 */ uint16_t deviceid; uint8_t return_mode; /**< ::XIAttachToMaster, ::XIFloating */ uint8_t pad; uint16_t return_pointer; /**< Pointer to attach slave ptr devices to */ uint16_t return_keyboard; /**< keyboard to attach slave keybd devices to*/ } xXIRemoveMasterInfo; /** * Attach an SD to a new device. * NewMaster has to be of same type (pointer->pointer, keyboard->keyboard); */ typedef struct { uint16_t type; /**< Always ::XIAttachSlave */ uint16_t length; /**< 2 */ uint16_t deviceid; uint16_t new_master; /**< id of new master device */ } xXIAttachSlaveInfo; /** * Detach an SD from its current master device. */ typedef struct { uint16_t type; /**< Always ::XIDetachSlave */ uint16_t length; /**< 2 */ uint16_t deviceid; uint16_t pad; } xXIDetachSlaveInfo; /** * Set the window/client's ClientPointer. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XISetClientPointer */ uint16_t length; /**< Length in 4 byte units */ Window win; uint16_t deviceid; uint16_t pad1; } xXISetClientPointerReq; #define sz_xXISetClientPointerReq 12 /** * Query the given window/client's ClientPointer setting. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_GetClientPointer */ uint16_t length; /**< Length in 4 byte units */ Window win; } xXIGetClientPointerReq; #define sz_xXIGetClientPointerReq 8 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_GetClientPointer */ uint16_t sequenceNumber; uint32_t length; BOOL set; /**< client pointer is set? */ uint8_t pad0; uint16_t deviceid; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIGetClientPointerReply; #define sz_xXIGetClientPointerReply 32 /** * Set the input focus to the specified window. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XISetFocus */ uint16_t length; /**< Length in 4 byte units */ Window focus; Time time; uint16_t deviceid; uint16_t pad0; } xXISetFocusReq; #define sz_xXISetFocusReq 16 /** * Query the current input focus. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIGetDeviceFocus */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; uint16_t pad0; } xXIGetFocusReq; #define sz_xXIGetFocusReq 8 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIGetFocus */ uint16_t sequenceNumber; uint32_t length; Window focus; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIGetFocusReply; #define sz_xXIGetFocusReply 32 /** * Grab the given device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIGrabDevice */ uint16_t length; /**< Length in 4 byte units */ Window grab_window; Time time; Cursor cursor; uint16_t deviceid; uint8_t grab_mode; uint8_t paired_device_mode; uint8_t owner_events; uint8_t pad; uint16_t mask_len; } xXIGrabDeviceReq; #define sz_xXIGrabDeviceReq 24 /** * Return codes from a XIPassiveGrabDevice request. */ typedef struct { uint32_t modifiers; /**< Modifier state */ uint8_t status; /**< Grab status code */ uint8_t pad0; uint16_t pad1; } xXIGrabModifierInfo; typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIGrabDevice */ uint16_t sequenceNumber; uint32_t length; uint8_t status; uint8_t pad0; uint16_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; uint32_t pad6; } xXIGrabDeviceReply; #define sz_xXIGrabDeviceReply 32 /** * Ungrab the specified device. * */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIUngrabDevice */ uint16_t length; /**< Length in 4 byte units */ Time time; uint16_t deviceid; uint16_t pad; } xXIUngrabDeviceReq; #define sz_xXIUngrabDeviceReq 12 /** * Allow or replay events on the specified grabbed device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIAllowEvents */ uint16_t length; /**< Length in 4 byte units */ Time time; uint16_t deviceid; uint8_t mode; uint8_t pad; } xXIAllowEventsReq; #define sz_xXIAllowEventsReq 12 /** * Allow or replay events on the specified grabbed device. * Since XI 2.2 */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIAllowEvents */ uint16_t length; /**< Length in 4 byte units */ Time time; uint16_t deviceid; uint8_t mode; uint8_t pad; uint32_t touchid; /**< Since XI 2.2 */ Window grab_window; /**< Since XI 2.2 */ } xXI2_2AllowEventsReq; #define sz_xXI2_2AllowEventsReq 20 /** * Passively grab the device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIPassiveGrabDevice */ uint16_t length; /**< Length in 4 byte units */ Time time; Window grab_window; Cursor cursor; uint32_t detail; uint16_t deviceid; uint16_t num_modifiers; uint16_t mask_len; uint8_t grab_type; uint8_t grab_mode; uint8_t paired_device_mode; uint8_t owner_events; uint16_t pad1; } xXIPassiveGrabDeviceReq; #define sz_xXIPassiveGrabDeviceReq 32 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIPassiveGrabDevice */ uint16_t sequenceNumber; uint32_t length; uint16_t num_modifiers; uint16_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; uint32_t pad6; } xXIPassiveGrabDeviceReply; #define sz_xXIPassiveGrabDeviceReply 32 /** * Delete a passive grab for the given device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIPassiveUngrabDevice */ uint16_t length; /**< Length in 4 byte units */ Window grab_window; uint32_t detail; uint16_t deviceid; uint16_t num_modifiers; uint8_t grab_type; uint8_t pad0; uint16_t pad1; } xXIPassiveUngrabDeviceReq; #define sz_xXIPassiveUngrabDeviceReq 20 /** * List all device properties on the specified device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIListProperties */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; uint16_t pad; } xXIListPropertiesReq; #define sz_xXIListPropertiesReq 8 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always ::X_XIListProperties */ uint16_t sequenceNumber; uint32_t length; uint16_t num_properties; uint16_t pad0; uint32_t pad1; uint32_t pad2; uint32_t pad3; uint32_t pad4; uint32_t pad5; } xXIListPropertiesReply; #define sz_xXIListPropertiesReply 32 /** * Change a property on the specified device. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always ::X_XIChangeProperty */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; uint8_t mode; uint8_t format; Atom property; Atom type; uint32_t num_items; } xXIChangePropertyReq; #define sz_xXIChangePropertyReq 20 /** * Delete the specified property. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always X_XIDeleteProperty */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; uint16_t pad0; Atom property; } xXIDeletePropertyReq; #define sz_xXIDeletePropertyReq 12 /** * Query the specified property's values. */ typedef struct { uint8_t reqType; uint8_t ReqType; /**< Always X_XIGetProperty */ uint16_t length; /**< Length in 4 byte units */ uint16_t deviceid; #if defined(__cplusplus) || defined(c_plusplus) uint8_t c_delete; #else uint8_t delete; #endif uint8_t pad0; Atom property; Atom type; uint32_t offset; uint32_t len; } xXIGetPropertyReq; #define sz_xXIGetPropertyReq 24 typedef struct { uint8_t repType; /**< Input extension major opcode */ uint8_t RepType; /**< Always X_XIGetProperty */ uint16_t sequenceNumber; uint32_t length; Atom type; uint32_t bytes_after; uint32_t num_items; uint8_t format; uint8_t pad0; uint16_t pad1; uint32_t pad2; uint32_t pad3; } xXIGetPropertyReply; #define sz_xXIGetPropertyReply 32 typedef struct { uint16_t deviceid; uint16_t pad; Barrier barrier; uint32_t eventid; } xXIBarrierReleasePointerInfo; typedef struct { uint8_t reqType; /**< Input extension major opcode */ uint8_t ReqType; /**< Always X_XIBarrierReleasePointer */ uint16_t length; uint32_t num_barriers; /* array of xXIBarrierReleasePointerInfo */ } xXIBarrierReleasePointerReq; #define sz_xXIBarrierReleasePointerReq 8 /************************************************************************************* * * * EVENTS * * * *************************************************************************************/ /** * Generic XI2 event header. All XI2 events use the same header. */ typedef struct { uint8_t type; uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; uint16_t evtype; uint16_t deviceid; Time time; } xXIGenericDeviceEvent; /** * Device hierarchy information. */ typedef struct { uint16_t deviceid; uint16_t attachment; /**< ID of master or paired device */ uint8_t use; /**< ::XIMasterKeyboard, ::XIMasterPointer, ::XISlaveKeyboard, ::XISlavePointer, ::XIFloatingSlave */ BOOL enabled; /**< TRUE if the device is enabled */ uint16_t pad; uint32_t flags; /**< ::XIMasterAdded, ::XIMasterRemoved, ::XISlaveAttached, ::XISlaveDetached, ::XISlaveAdded, ::XISlaveRemoved, ::XIDeviceEnabled, ::XIDeviceDisabled */ } xXIHierarchyInfo; /** * The device hierarchy has been modified. This event includes the device * hierarchy after the modification has been applied. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte units */ uint16_t evtype; /**< ::XI_Hierarchy */ uint16_t deviceid; Time time; uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted, ::XISlaveAttached, ::XISlaveDetached, ::XISlaveAdded, ::XISlaveRemoved, ::XIDeviceEnabled, ::XIDeviceDisabled */ uint16_t num_info; uint16_t pad0; uint32_t pad1; uint32_t pad2; } xXIHierarchyEvent; /** * A device has changed capabilities. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte units */ uint16_t evtype; /**< XI_DeviceChanged */ uint16_t deviceid; /**< Device that has changed */ Time time; uint16_t num_classes; /**< Number of classes that have changed */ uint16_t sourceid; /**< Source of the new classes */ uint8_t reason; /**< ::XISlaveSwitch, ::XIDeviceChange */ uint8_t pad0; uint16_t pad1; uint32_t pad2; uint32_t pad3; } xXIDeviceChangedEvent; /** * The owner of a touch stream has passed on ownership to another client. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte units */ uint16_t evtype; /**< XI_TouchOwnership */ uint16_t deviceid; /**< Device that has changed */ Time time; uint32_t touchid; Window root; Window event; Window child; /* └──────── 32 byte boundary ────────┘ */ uint16_t sourceid; uint16_t pad0; uint32_t flags; uint32_t pad1; uint32_t pad2; } xXITouchOwnershipEvent; /** * Default input event for pointer, keyboard or touch input. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte uints */ uint16_t evtype; uint16_t deviceid; Time time; uint32_t detail; /**< Keycode or button */ Window root; Window event; Window child; /* └──────── 32 byte boundary ────────┘ */ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */ FP1616 root_y; FP1616 event_x; /**< Always screen coords, 16.16 fixed point */ FP1616 event_y; uint16_t buttons_len; /**< Len of button flags in 4 b units */ uint16_t valuators_len; /**< Len of val. flags in 4 b units */ uint16_t sourceid; /**< The source device */ uint16_t pad0; uint32_t flags; /**< ::XIKeyRepeat */ xXIModifierInfo mods; xXIGroupInfo group; } xXIDeviceEvent; /** * Sent when an input event is generated. RawEvents include valuator * information in both device-specific data (i.e. unaccelerated) and * processed data (i.e. accelerated, if applicable). */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte uints */ uint16_t evtype; /**< ::XI_RawEvent */ uint16_t deviceid; Time time; uint32_t detail; uint16_t sourceid; /**< The source device (XI 2.1) */ uint16_t valuators_len; /**< Length of trailing valuator mask in 4 byte units */ uint32_t flags; /**< ::XIKeyRepeat */ uint32_t pad2; } xXIRawEvent; /** * Note that the layout of root, event, child, root_x, root_y, event_x, * event_y must be identical to the xXIDeviceEvent. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte uints */ uint16_t evtype; /**< ::XI_Enter */ uint16_t deviceid; Time time; uint16_t sourceid; uint8_t mode; uint8_t detail; Window root; Window event; Window child; /* └──────── 32 byte boundary ────────┘ */ FP1616 root_x; FP1616 root_y; FP1616 event_x; FP1616 event_y; BOOL same_screen; BOOL focus; uint16_t buttons_len; /**< Length of trailing button mask in 4 byte units */ xXIModifierInfo mods; xXIGroupInfo group; } xXIEnterEvent; typedef xXIEnterEvent xXILeaveEvent; typedef xXIEnterEvent xXIFocusInEvent; typedef xXIEnterEvent xXIFocusOutEvent; /** * Sent when a device property is created, modified or deleted. Does not * include property data, the client is required to query the data. */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte units */ uint16_t evtype; /**< ::XI_PropertyEvent */ uint16_t deviceid; Time time; Atom property; uint8_t what; /**< ::XIPropertyDeleted, ::XIPropertyCreated, ::XIPropertyMotified */ uint8_t pad0; uint16_t pad1; uint32_t pad2; uint32_t pad3; } xXIPropertyEvent; typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte units */ uint16_t evtype; /**< ::XI_BarrierHit or ::XI_BarrierLeave */ uint16_t deviceid; Time time; uint32_t eventid; Window root; Window event; Barrier barrier; /* └──────── 32 byte boundary ────────┘ */ uint32_t dtime; uint32_t flags; /**< ::XIBarrierPointerReleased ::XIBarrierDeviceIsGrabbed */ uint16_t sourceid; int16_t pad; FP1616 root_x; FP1616 root_y; FP3232 dx; FP3232 dy; } xXIBarrierEvent; typedef xXIBarrierEvent xXIBarrierHitEvent; typedef xXIBarrierEvent xXIBarrierPointerReleasedEvent; typedef xXIBarrierEvent xXIBarrierLeaveEvent; /** * Event for touchpad gesture pinch input events */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte uints */ uint16_t evtype; uint16_t deviceid; Time time; uint32_t detail; /**< The number of touches in the gesture */ Window root; Window event; Window child; /* └──────── 32 byte boundary ────────┘ */ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */ FP1616 root_y; FP1616 event_x; /**< Always screen coords, 16.16 fixed point */ FP1616 event_y; FP1616 delta_x; FP1616 delta_y; FP1616 delta_unaccel_x; FP1616 delta_unaccel_y; FP1616 scale; FP1616 delta_angle; uint16_t sourceid; /**< The source device */ uint16_t pad0; xXIModifierInfo mods; xXIGroupInfo group; uint32_t flags; /**< ::XIGesturePinchEventCancelled */ } xXIGesturePinchEvent; /** * Event for touchpad gesture swipe input events */ typedef struct { uint8_t type; /**< Always GenericEvent */ uint8_t extension; /**< XI extension offset */ uint16_t sequenceNumber; uint32_t length; /**< Length in 4 byte uints */ uint16_t evtype; uint16_t deviceid; Time time; uint32_t detail; /**< The number of touches in the gesture */ Window root; Window event; Window child; /* └──────── 32 byte boundary ────────┘ */ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */ FP1616 root_y; FP1616 event_x; /**< Always screen coords, 16.16 fixed point */ FP1616 event_y; FP1616 delta_x; FP1616 delta_y; FP1616 delta_unaccel_x; FP1616 delta_unaccel_y; uint16_t sourceid; /**< The source device */ uint16_t pad0; xXIModifierInfo mods; xXIGroupInfo group; uint32_t flags; /**< ::XIGestureSwipeEventCancelled */ } xXIGestureSwipeEvent; #undef Window #undef Time #undef Atom #undef Cursor #undef Barrier #endif /* _XI2PROTO_H_ */ xorgproto-2023.2/include/X11/extensions/damagewire.h0000644000175000017500000000354514443010026017240 00000000000000/* * Copyright © 2003 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 Keith Packard not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Keith Packard makes no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL KEITH PACKARD 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. */ #ifndef _DAMAGEWIRE_H_ #define _DAMAGEWIRE_H_ #define DAMAGE_NAME "DAMAGE" #define DAMAGE_MAJOR 1 #define DAMAGE_MINOR 1 /************* Version 1 ****************/ /* Constants */ #define XDamageReportRawRectangles 0 #define XDamageReportDeltaRectangles 1 #define XDamageReportBoundingBox 2 #define XDamageReportNonEmpty 3 /* Requests */ #define X_DamageQueryVersion 0 #define X_DamageCreate 1 #define X_DamageDestroy 2 #define X_DamageSubtract 3 #define X_DamageAdd 4 #define XDamageNumberRequests (X_DamageAdd + 1) /* Events */ #define XDamageNotify 0 #define XDamageNumberEvents (XDamageNotify + 1) /* Errors */ #define BadDamage 0 #define XDamageNumberErrors (BadDamage + 1) #endif /* _DAMAGEWIRE_H_ */ xorgproto-2023.2/include/X11/Xmd.h0000644000175000017500000001216414443010026013461 00000000000000/*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #ifndef XMD_H # define XMD_H 1 /* * Xmd.h: MACHINE DEPENDENT DECLARATIONS. */ /* * Special per-machine configuration flags. */ # if defined(__sun) && defined(__SVR4) # include /* Solaris: defines _LP64 if necessary */ # endif #if defined(__SIZEOF_LONG__) # if __SIZEOF_LONG__ == 8 # define LONG64 /* 32/64-bit architecture */ # endif # elif defined (_LP64) || defined(__LP64__) || \ defined(__alpha) || defined(__alpha__) || \ defined(__ia64__) || defined(ia64) || \ defined(__sparc64__) || \ defined(__s390x__) || \ defined(__amd64__) || defined(amd64) || \ defined(__powerpc64__) # if !defined(__ILP32__) /* amd64-x32 is 32bit */ # define LONG64 /* 32/64-bit architecture */ # endif /* !__ILP32__ */ # endif /* * Definition of macro used to set constants for size of network structures; * machines with preprocessors that can't handle all of the sz_ symbols * can define this macro to be sizeof(x) if and only if their compiler doesn't * pad out structures (esp. the xTextElt structure which contains only two * one-byte fields). Network structures should always define sz_symbols. * * The sz_ prefix is used instead of something more descriptive so that the * symbols are no more than 32 characters long (which causes problems for some * compilers and preprocessors). * * The extra indirection is to get macro arguments to expand correctly before * the concatenation, rather than afterward. */ # define _SIZEOF(x) sz_##x # define SIZEOF(x) _SIZEOF(x) /* * Bitfield suffixes for the protocol structure elements, if you * need them. Note that bitfields are not guaranteed to be signed * (or even unsigned) according to ANSI C. */ # define B32 /* bitfield not needed on architectures with native 32-bit type */ # define B16 /* bitfield not needed on architectures with native 16-bit type */ # ifdef LONG64 typedef long INT64; typedef int INT32; # else typedef long INT32; # endif typedef short INT16; typedef signed char INT8; # ifdef LONG64 typedef unsigned long CARD64; typedef unsigned int CARD32; # else typedef unsigned long long CARD64; typedef unsigned long CARD32; # endif typedef unsigned short CARD16; typedef unsigned char CARD8; typedef CARD32 BITS32; typedef CARD16 BITS16; typedef CARD8 BYTE; typedef CARD8 BOOL; /* * was definitions for sign-extending bitfields on architectures without * native types smaller than 64-bit, now just backwards compatibility */ # define cvtINT8toInt(val) (val) # define cvtINT16toInt(val) (val) # define cvtINT32toInt(val) (val) # define cvtINT8toShort(val) (val) # define cvtINT16toShort(val) (val) # define cvtINT32toShort(val) (val) # define cvtINT8toLong(val) (val) # define cvtINT16toLong(val) (val) # define cvtINT32toLong(val) (val) /* * this version should leave result of type (t *), but that should only be * used when not in MUSTCOPY */ # define NEXTPTR(p,t) (((t *)(p)) + 1) #endif /* XMD_H */ xorgproto-2023.2/include/X11/Xosdefs.h0000644000175000017500000000605314443010026014344 00000000000000/* * O/S-dependent (mis)feature macro definitions * Copyright 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _XOSDEFS_H_ # define _XOSDEFS_H_ /* * X_NOT_POSIX means does not have POSIX header files. Lack of this * symbol does NOT mean that the POSIX environment is the default. * You may still have to define _POSIX_SOURCE to get it. */ # ifdef _SCO_DS # ifndef __SCO__ # define __SCO__ # endif # endif # ifdef __i386__ # ifdef SYSV # if !defined(__SCO__) && \ !defined(__UNIXWARE__) && !defined(__sun) # if !defined(_POSIX_SOURCE) # define X_NOT_POSIX # endif # endif # endif # endif # ifdef __sun /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4 * This check allows non-Imake configured programs to build correctly. */ # if defined(__SVR4) && !defined(SVR4) # define SVR4 1 # endif # ifdef SVR4 /* define this to whatever it needs to be */ # define X_POSIX_C_SOURCE 199300L # endif # endif # ifdef WIN32 # ifndef _POSIX_ # define X_NOT_POSIX # endif # endif # ifdef __APPLE__ # define NULL_NOT_ZERO /* Defining any of these will sanitize the namespace to JUST want is defined by * that particular standard. If that happens, we don't get some expected * prototypes, typedefs, etc (like fd_mask). We can define _DARWIN_C_SOURCE to * loosen our belts a tad. */ # if defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) # ifndef _DARWIN_C_SOURCE # define _DARWIN_C_SOURCE # endif # endif # endif # ifdef __GNU__ # ifndef PATH_MAX # define PATH_MAX 4096 # endif # ifndef MAXPATHLEN # define MAXPATHLEN 4096 # endif # endif # if defined(__SCO__) || defined(__UNIXWARE__) # ifndef PATH_MAX # define PATH_MAX 1024 # endif # ifndef MAXPATHLEN # define MAXPATHLEN 1024 # endif # endif # if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \ || defined(__APPLE__) || defined(__DragonFly__) # ifndef CSRG_BASED # define CSRG_BASED # endif # endif #endif /* _XOSDEFS_H_ */ xorgproto-2023.2/include/X11/X.h0000644000175000017500000004725114443010026013145 00000000000000/* Definitions for the X window system likely to be used by applications */ #ifndef X_H #define X_H /*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #define X_PROTOCOL 11 /* current protocol version */ #define X_PROTOCOL_REVISION 0 /* current minor version */ /* Resources */ /* * _XSERVER64 must ONLY be defined when compiling X server sources on * systems where unsigned long is not 32 bits, must NOT be used in * client or library code. */ #ifndef _XSERVER64 # ifndef _XTYPEDEF_XID # define _XTYPEDEF_XID typedef unsigned long XID; # endif # ifndef _XTYPEDEF_MASK # define _XTYPEDEF_MASK typedef unsigned long Mask; # endif # ifndef _XTYPEDEF_ATOM # define _XTYPEDEF_ATOM typedef unsigned long Atom; /* Also in Xdefs.h */ # endif typedef unsigned long VisualID; typedef unsigned long Time; #else # include # ifndef _XTYPEDEF_XID # define _XTYPEDEF_XID typedef CARD32 XID; # endif # ifndef _XTYPEDEF_MASK # define _XTYPEDEF_MASK typedef CARD32 Mask; # endif # ifndef _XTYPEDEF_ATOM # define _XTYPEDEF_ATOM typedef CARD32 Atom; # endif typedef CARD32 VisualID; typedef CARD32 Time; #endif typedef XID Window; typedef XID Drawable; #ifndef _XTYPEDEF_FONT # define _XTYPEDEF_FONT typedef XID Font; #endif typedef XID Pixmap; typedef XID Cursor; typedef XID Colormap; typedef XID GContext; typedef XID KeySym; typedef unsigned char KeyCode; /***************************************************************** * RESERVED RESOURCE AND CONSTANT DEFINITIONS *****************************************************************/ #ifndef None #define None 0L /* universal null resource or null atom */ #endif #define ParentRelative 1L /* background pixmap in CreateWindow and ChangeWindowAttributes */ #define CopyFromParent 0L /* border pixmap in CreateWindow and ChangeWindowAttributes special VisualID and special window class passed to CreateWindow */ #define PointerWindow 0L /* destination window in SendEvent */ #define InputFocus 1L /* destination window in SendEvent */ #define PointerRoot 1L /* focus window in SetInputFocus */ #define AnyPropertyType 0L /* special Atom, passed to GetProperty */ #define AnyKey 0L /* special Key Code, passed to GrabKey */ #define AnyButton 0L /* special Button Code, passed to GrabButton */ #define AllTemporary 0L /* special Resource ID passed to KillClient */ #define CurrentTime 0L /* special Time */ #define NoSymbol 0L /* special KeySym */ /***************************************************************** * EVENT DEFINITIONS *****************************************************************/ /* Input Event Masks. Used as event-mask window attribute and as arguments to Grab requests. Not to be confused with event names. */ #define NoEventMask 0L #define KeyPressMask (1L<<0) #define KeyReleaseMask (1L<<1) #define ButtonPressMask (1L<<2) #define ButtonReleaseMask (1L<<3) #define EnterWindowMask (1L<<4) #define LeaveWindowMask (1L<<5) #define PointerMotionMask (1L<<6) #define PointerMotionHintMask (1L<<7) #define Button1MotionMask (1L<<8) #define Button2MotionMask (1L<<9) #define Button3MotionMask (1L<<10) #define Button4MotionMask (1L<<11) #define Button5MotionMask (1L<<12) #define ButtonMotionMask (1L<<13) #define KeymapStateMask (1L<<14) #define ExposureMask (1L<<15) #define VisibilityChangeMask (1L<<16) #define StructureNotifyMask (1L<<17) #define ResizeRedirectMask (1L<<18) #define SubstructureNotifyMask (1L<<19) #define SubstructureRedirectMask (1L<<20) #define FocusChangeMask (1L<<21) #define PropertyChangeMask (1L<<22) #define ColormapChangeMask (1L<<23) #define OwnerGrabButtonMask (1L<<24) /* Event names. Used in "type" field in XEvent structures. Not to be confused with event masks above. They start from 2 because 0 and 1 are reserved in the protocol for errors and replies. */ #define KeyPress 2 #define KeyRelease 3 #define ButtonPress 4 #define ButtonRelease 5 #define MotionNotify 6 #define EnterNotify 7 #define LeaveNotify 8 #define FocusIn 9 #define FocusOut 10 #define KeymapNotify 11 #define Expose 12 #define GraphicsExpose 13 #define NoExpose 14 #define VisibilityNotify 15 #define CreateNotify 16 #define DestroyNotify 17 #define UnmapNotify 18 #define MapNotify 19 #define MapRequest 20 #define ReparentNotify 21 #define ConfigureNotify 22 #define ConfigureRequest 23 #define GravityNotify 24 #define ResizeRequest 25 #define CirculateNotify 26 #define CirculateRequest 27 #define PropertyNotify 28 #define SelectionClear 29 #define SelectionRequest 30 #define SelectionNotify 31 #define ColormapNotify 32 #define ClientMessage 33 #define MappingNotify 34 #define GenericEvent 35 #define LASTEvent 36 /* must be bigger than any event # */ /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer, state in various key-, mouse-, and button-related events. */ #define ShiftMask (1<<0) #define LockMask (1<<1) #define ControlMask (1<<2) #define Mod1Mask (1<<3) #define Mod2Mask (1<<4) #define Mod3Mask (1<<5) #define Mod4Mask (1<<6) #define Mod5Mask (1<<7) /* modifier names. Used to build a SetModifierMapping request or to read a GetModifierMapping request. These correspond to the masks defined above. */ #define ShiftMapIndex 0 #define LockMapIndex 1 #define ControlMapIndex 2 #define Mod1MapIndex 3 #define Mod2MapIndex 4 #define Mod3MapIndex 5 #define Mod4MapIndex 6 #define Mod5MapIndex 7 /* button masks. Used in same manner as Key masks above. Not to be confused with button names below. */ #define Button1Mask (1<<8) #define Button2Mask (1<<9) #define Button3Mask (1<<10) #define Button4Mask (1<<11) #define Button5Mask (1<<12) #define AnyModifier (1<<15) /* used in GrabButton, GrabKey */ /* button names. Used as arguments to GrabButton and as detail in ButtonPress and ButtonRelease events. Not to be confused with button masks above. Note that 0 is already defined above as "AnyButton". */ #define Button1 1 #define Button2 2 #define Button3 3 #define Button4 4 #define Button5 5 /* Notify modes */ #define NotifyNormal 0 #define NotifyGrab 1 #define NotifyUngrab 2 #define NotifyWhileGrabbed 3 #define NotifyHint 1 /* for MotionNotify events */ /* Notify detail */ #define NotifyAncestor 0 #define NotifyVirtual 1 #define NotifyInferior 2 #define NotifyNonlinear 3 #define NotifyNonlinearVirtual 4 #define NotifyPointer 5 #define NotifyPointerRoot 6 #define NotifyDetailNone 7 /* Visibility notify */ #define VisibilityUnobscured 0 #define VisibilityPartiallyObscured 1 #define VisibilityFullyObscured 2 /* Circulation request */ #define PlaceOnTop 0 #define PlaceOnBottom 1 /* protocol families */ #define FamilyInternet 0 /* IPv4 */ #define FamilyDECnet 1 #define FamilyChaos 2 #define FamilyInternet6 6 /* IPv6 */ /* authentication families not tied to a specific protocol */ #define FamilyServerInterpreted 5 /* Property notification */ #define PropertyNewValue 0 #define PropertyDelete 1 /* Color Map notification */ #define ColormapUninstalled 0 #define ColormapInstalled 1 /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */ #define GrabModeSync 0 #define GrabModeAsync 1 /* GrabPointer, GrabKeyboard reply status */ #define GrabSuccess 0 #define AlreadyGrabbed 1 #define GrabInvalidTime 2 #define GrabNotViewable 3 #define GrabFrozen 4 /* AllowEvents modes */ #define AsyncPointer 0 #define SyncPointer 1 #define ReplayPointer 2 #define AsyncKeyboard 3 #define SyncKeyboard 4 #define ReplayKeyboard 5 #define AsyncBoth 6 #define SyncBoth 7 /* Used in SetInputFocus, GetInputFocus */ #define RevertToNone (int)None #define RevertToPointerRoot (int)PointerRoot #define RevertToParent 2 /***************************************************************** * ERROR CODES *****************************************************************/ #define Success 0 /* everything's okay */ #define BadRequest 1 /* bad request code */ #define BadValue 2 /* int parameter out of range */ #define BadWindow 3 /* parameter not a Window */ #define BadPixmap 4 /* parameter not a Pixmap */ #define BadAtom 5 /* parameter not an Atom */ #define BadCursor 6 /* parameter not a Cursor */ #define BadFont 7 /* parameter not a Font */ #define BadMatch 8 /* parameter mismatch */ #define BadDrawable 9 /* parameter not a Pixmap or Window */ #define BadAccess 10 /* depending on context: - key/button already grabbed - attempt to free an illegal cmap entry - attempt to store into a read-only color map entry. - attempt to modify the access control list from other than the local host. */ #define BadAlloc 11 /* insufficient resources */ #define BadColor 12 /* no such colormap */ #define BadGC 13 /* parameter not a GC */ #define BadIDChoice 14 /* choice not in range or already used */ #define BadName 15 /* font or color name doesn't exist */ #define BadLength 16 /* Request length incorrect */ #define BadImplementation 17 /* server is defective */ #define FirstExtensionError 128 #define LastExtensionError 255 /***************************************************************** * WINDOW DEFINITIONS *****************************************************************/ /* Window classes used by CreateWindow */ /* Note that CopyFromParent is already defined as 0 above */ #define InputOutput 1 #define InputOnly 2 /* Window attributes for CreateWindow and ChangeWindowAttributes */ #define CWBackPixmap (1L<<0) #define CWBackPixel (1L<<1) #define CWBorderPixmap (1L<<2) #define CWBorderPixel (1L<<3) #define CWBitGravity (1L<<4) #define CWWinGravity (1L<<5) #define CWBackingStore (1L<<6) #define CWBackingPlanes (1L<<7) #define CWBackingPixel (1L<<8) #define CWOverrideRedirect (1L<<9) #define CWSaveUnder (1L<<10) #define CWEventMask (1L<<11) #define CWDontPropagate (1L<<12) #define CWColormap (1L<<13) #define CWCursor (1L<<14) /* ConfigureWindow structure */ #define CWX (1<<0) #define CWY (1<<1) #define CWWidth (1<<2) #define CWHeight (1<<3) #define CWBorderWidth (1<<4) #define CWSibling (1<<5) #define CWStackMode (1<<6) /* Bit Gravity */ #define ForgetGravity 0 #define NorthWestGravity 1 #define NorthGravity 2 #define NorthEastGravity 3 #define WestGravity 4 #define CenterGravity 5 #define EastGravity 6 #define SouthWestGravity 7 #define SouthGravity 8 #define SouthEastGravity 9 #define StaticGravity 10 /* Window gravity + bit gravity above */ #define UnmapGravity 0 /* Used in CreateWindow for backing-store hint */ #define NotUseful 0 #define WhenMapped 1 #define Always 2 /* Used in GetWindowAttributes reply */ #define IsUnmapped 0 #define IsUnviewable 1 #define IsViewable 2 /* Used in ChangeSaveSet */ #define SetModeInsert 0 #define SetModeDelete 1 /* Used in ChangeCloseDownMode */ #define DestroyAll 0 #define RetainPermanent 1 #define RetainTemporary 2 /* Window stacking method (in configureWindow) */ #define Above 0 #define Below 1 #define TopIf 2 #define BottomIf 3 #define Opposite 4 /* Circulation direction */ #define RaiseLowest 0 #define LowerHighest 1 /* Property modes */ #define PropModeReplace 0 #define PropModePrepend 1 #define PropModeAppend 2 /***************************************************************** * GRAPHICS DEFINITIONS *****************************************************************/ /* graphics functions, as in GC.alu */ #define GXclear 0x0 /* 0 */ #define GXand 0x1 /* src AND dst */ #define GXandReverse 0x2 /* src AND NOT dst */ #define GXcopy 0x3 /* src */ #define GXandInverted 0x4 /* NOT src AND dst */ #define GXnoop 0x5 /* dst */ #define GXxor 0x6 /* src XOR dst */ #define GXor 0x7 /* src OR dst */ #define GXnor 0x8 /* NOT src AND NOT dst */ #define GXequiv 0x9 /* NOT src XOR dst */ #define GXinvert 0xa /* NOT dst */ #define GXorReverse 0xb /* src OR NOT dst */ #define GXcopyInverted 0xc /* NOT src */ #define GXorInverted 0xd /* NOT src OR dst */ #define GXnand 0xe /* NOT src OR NOT dst */ #define GXset 0xf /* 1 */ /* LineStyle */ #define LineSolid 0 #define LineOnOffDash 1 #define LineDoubleDash 2 /* capStyle */ #define CapNotLast 0 #define CapButt 1 #define CapRound 2 #define CapProjecting 3 /* joinStyle */ #define JoinMiter 0 #define JoinRound 1 #define JoinBevel 2 /* fillStyle */ #define FillSolid 0 #define FillTiled 1 #define FillStippled 2 #define FillOpaqueStippled 3 /* fillRule */ #define EvenOddRule 0 #define WindingRule 1 /* subwindow mode */ #define ClipByChildren 0 #define IncludeInferiors 1 /* SetClipRectangles ordering */ #define Unsorted 0 #define YSorted 1 #define YXSorted 2 #define YXBanded 3 /* CoordinateMode for drawing routines */ #define CoordModeOrigin 0 /* relative to the origin */ #define CoordModePrevious 1 /* relative to previous point */ /* Polygon shapes */ #define Complex 0 /* paths may intersect */ #define Nonconvex 1 /* no paths intersect, but not convex */ #define Convex 2 /* wholly convex */ /* Arc modes for PolyFillArc */ #define ArcChord 0 /* join endpoints of arc */ #define ArcPieSlice 1 /* join endpoints to center of arc */ /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into GC.stateChanges */ #define GCFunction (1L<<0) #define GCPlaneMask (1L<<1) #define GCForeground (1L<<2) #define GCBackground (1L<<3) #define GCLineWidth (1L<<4) #define GCLineStyle (1L<<5) #define GCCapStyle (1L<<6) #define GCJoinStyle (1L<<7) #define GCFillStyle (1L<<8) #define GCFillRule (1L<<9) #define GCTile (1L<<10) #define GCStipple (1L<<11) #define GCTileStipXOrigin (1L<<12) #define GCTileStipYOrigin (1L<<13) #define GCFont (1L<<14) #define GCSubwindowMode (1L<<15) #define GCGraphicsExposures (1L<<16) #define GCClipXOrigin (1L<<17) #define GCClipYOrigin (1L<<18) #define GCClipMask (1L<<19) #define GCDashOffset (1L<<20) #define GCDashList (1L<<21) #define GCArcMode (1L<<22) #define GCLastBit 22 /***************************************************************** * FONTS *****************************************************************/ /* used in QueryFont -- draw direction */ #define FontLeftToRight 0 #define FontRightToLeft 1 #define FontChange 255 /***************************************************************** * IMAGING *****************************************************************/ /* ImageFormat -- PutImage, GetImage */ #define XYBitmap 0 /* depth 1, XYFormat */ #define XYPixmap 1 /* depth == drawable depth */ #define ZPixmap 2 /* depth == drawable depth */ /***************************************************************** * COLOR MAP STUFF *****************************************************************/ /* For CreateColormap */ #define AllocNone 0 /* create map with no entries */ #define AllocAll 1 /* allocate entire map writeable */ /* Flags used in StoreNamedColor, StoreColors */ #define DoRed (1<<0) #define DoGreen (1<<1) #define DoBlue (1<<2) /***************************************************************** * CURSOR STUFF *****************************************************************/ /* QueryBestSize Class */ #define CursorShape 0 /* largest size that can be displayed */ #define TileShape 1 /* size tiled fastest */ #define StippleShape 2 /* size stippled fastest */ /***************************************************************** * KEYBOARD/POINTER STUFF *****************************************************************/ #define AutoRepeatModeOff 0 #define AutoRepeatModeOn 1 #define AutoRepeatModeDefault 2 #define LedModeOff 0 #define LedModeOn 1 /* masks for ChangeKeyboardControl */ #define KBKeyClickPercent (1L<<0) #define KBBellPercent (1L<<1) #define KBBellPitch (1L<<2) #define KBBellDuration (1L<<3) #define KBLed (1L<<4) #define KBLedMode (1L<<5) #define KBKey (1L<<6) #define KBAutoRepeatMode (1L<<7) #define MappingSuccess 0 #define MappingBusy 1 #define MappingFailed 2 #define MappingModifier 0 #define MappingKeyboard 1 #define MappingPointer 2 /***************************************************************** * SCREEN SAVER STUFF *****************************************************************/ #define DontPreferBlanking 0 #define PreferBlanking 1 #define DefaultBlanking 2 #define DisableScreenSaver 0 #define DisableScreenInterval 0 #define DontAllowExposures 0 #define AllowExposures 1 #define DefaultExposures 2 /* for ForceScreenSaver */ #define ScreenSaverReset 0 #define ScreenSaverActive 1 /***************************************************************** * HOSTS AND CONNECTIONS *****************************************************************/ /* for ChangeHosts */ #define HostInsert 0 #define HostDelete 1 /* for ChangeAccessControl */ #define EnableAccess 1 #define DisableAccess 0 /* Display classes used in opening the connection * Note that the statically allocated ones are even numbered and the * dynamically changeable ones are odd numbered */ #define StaticGray 0 #define GrayScale 1 #define StaticColor 2 #define PseudoColor 3 #define TrueColor 4 #define DirectColor 5 /* Byte order used in imageByteOrder and bitmapBitOrder */ #define LSBFirst 0 #define MSBFirst 1 #endif /* X_H */ xorgproto-2023.2/include/X11/Xwindows.h0000644000175000017500000000645314443010026014557 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL- ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * This header file has the sole purpose of allowing the inclusion of * windows.h without getting any name conflicts with X headers code, by * renaming or disabling the conflicting definitions from windows.h */ /* * Mingw.org versions of the Windows API headers actually avoid * making the conflicting definitions if XFree86Server is defined, so we * need to remember if that was defined and undefine it during including * windows.h (so the conflicting definitions get wrapped correctly), and * then redefine it afterwards. (This was never the correct thing to * do as it's no help at all to X11 clients which also need to use the * Win32 API) */ #undef _XFree86Server #ifdef XFree86Server # define _XFree86Server # undef XFree86Server #endif /* * There doesn't seem to be a good way to wrap the min/max macros from * windows.h, so we simply avoid defining them completely, allowing any * pre-existing definition to stand. * */ #define NOMINMAX /* * mingw-w64 headers define BOOL as a typedef, protecting against macros * mingw.org headers define BOOL in terms of WINBOOL * ... so try to come up with something which works with both :-) */ #define _NO_BOOL_TYPEDEF #define BOOL WINBOOL #define INT32 wINT32 #ifdef __x86_64__ #define INT64 wINT64 #define LONG64 wLONG64 #endif #undef Status #define Status wStatus #define ATOM wATOM #define BYTE wBYTE #define FreeResource wFreeResource #pragma push_macro ("ControlMask") #undef ControlMask #include #undef NOMINMAX #undef Status #define Status int #undef BYTE #undef BOOL #undef INT32 #undef INT64 #undef LONG64 #undef ATOM #undef FreeResource #pragma pop_macro ("ControlMask") #undef CreateWindowA /* * Older version of this header used to name the windows API bool type wBOOL, * rather than more standard name WINBOOL */ #define wBOOL WINBOOL #ifdef RESOURCE_H # undef RT_FONT # undef RT_CURSOR # define RT_FONT ((RESTYPE)4) # define RT_CURSOR ((RESTYPE)5) #endif #ifndef __CYGWIN__ #define sleep(x) Sleep((x) * 1000) #endif #if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024) # undef PATH_MAX # define PATH_MAX 1024 #endif #ifdef _XFree86Server # define XFree86Server # undef _XFree86Server #endif xorgproto-2023.2/include/X11/Xatom.h0000644000175000017500000000472614443010026014026 00000000000000#ifndef XATOM_H #define XATOM_H 1 /* THIS IS A GENERATED FILE * * Do not change! Changing this file implies a protocol change! */ #define XA_PRIMARY ((Atom) 1) #define XA_SECONDARY ((Atom) 2) #define XA_ARC ((Atom) 3) #define XA_ATOM ((Atom) 4) #define XA_BITMAP ((Atom) 5) #define XA_CARDINAL ((Atom) 6) #define XA_COLORMAP ((Atom) 7) #define XA_CURSOR ((Atom) 8) #define XA_CUT_BUFFER0 ((Atom) 9) #define XA_CUT_BUFFER1 ((Atom) 10) #define XA_CUT_BUFFER2 ((Atom) 11) #define XA_CUT_BUFFER3 ((Atom) 12) #define XA_CUT_BUFFER4 ((Atom) 13) #define XA_CUT_BUFFER5 ((Atom) 14) #define XA_CUT_BUFFER6 ((Atom) 15) #define XA_CUT_BUFFER7 ((Atom) 16) #define XA_DRAWABLE ((Atom) 17) #define XA_FONT ((Atom) 18) #define XA_INTEGER ((Atom) 19) #define XA_PIXMAP ((Atom) 20) #define XA_POINT ((Atom) 21) #define XA_RECTANGLE ((Atom) 22) #define XA_RESOURCE_MANAGER ((Atom) 23) #define XA_RGB_COLOR_MAP ((Atom) 24) #define XA_RGB_BEST_MAP ((Atom) 25) #define XA_RGB_BLUE_MAP ((Atom) 26) #define XA_RGB_DEFAULT_MAP ((Atom) 27) #define XA_RGB_GRAY_MAP ((Atom) 28) #define XA_RGB_GREEN_MAP ((Atom) 29) #define XA_RGB_RED_MAP ((Atom) 30) #define XA_STRING ((Atom) 31) #define XA_VISUALID ((Atom) 32) #define XA_WINDOW ((Atom) 33) #define XA_WM_COMMAND ((Atom) 34) #define XA_WM_HINTS ((Atom) 35) #define XA_WM_CLIENT_MACHINE ((Atom) 36) #define XA_WM_ICON_NAME ((Atom) 37) #define XA_WM_ICON_SIZE ((Atom) 38) #define XA_WM_NAME ((Atom) 39) #define XA_WM_NORMAL_HINTS ((Atom) 40) #define XA_WM_SIZE_HINTS ((Atom) 41) #define XA_WM_ZOOM_HINTS ((Atom) 42) #define XA_MIN_SPACE ((Atom) 43) #define XA_NORM_SPACE ((Atom) 44) #define XA_MAX_SPACE ((Atom) 45) #define XA_END_SPACE ((Atom) 46) #define XA_SUPERSCRIPT_X ((Atom) 47) #define XA_SUPERSCRIPT_Y ((Atom) 48) #define XA_SUBSCRIPT_X ((Atom) 49) #define XA_SUBSCRIPT_Y ((Atom) 50) #define XA_UNDERLINE_POSITION ((Atom) 51) #define XA_UNDERLINE_THICKNESS ((Atom) 52) #define XA_STRIKEOUT_ASCENT ((Atom) 53) #define XA_STRIKEOUT_DESCENT ((Atom) 54) #define XA_ITALIC_ANGLE ((Atom) 55) #define XA_X_HEIGHT ((Atom) 56) #define XA_QUAD_WIDTH ((Atom) 57) #define XA_WEIGHT ((Atom) 58) #define XA_POINT_SIZE ((Atom) 59) #define XA_RESOLUTION ((Atom) 60) #define XA_COPYRIGHT ((Atom) 61) #define XA_NOTICE ((Atom) 62) #define XA_FONT_NAME ((Atom) 63) #define XA_FAMILY_NAME ((Atom) 64) #define XA_FULL_NAME ((Atom) 65) #define XA_CAP_HEIGHT ((Atom) 66) #define XA_WM_CLASS ((Atom) 67) #define XA_WM_TRANSIENT_FOR ((Atom) 68) #define XA_LAST_PREDEFINED ((Atom) 68) #endif /* XATOM_H */ xorgproto-2023.2/include/X11/Xfuncproto.h0000644000175000017500000001637414443010026015107 00000000000000/* * Copyright 1989, 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * */ /* Definitions to make function prototypes manageable */ #ifndef _XFUNCPROTO_H_ #define _XFUNCPROTO_H_ #ifndef NeedFunctionPrototypes #define NeedFunctionPrototypes 1 #endif /* NeedFunctionPrototypes */ #ifndef NeedVarargsPrototypes #define NeedVarargsPrototypes 1 #endif /* NeedVarargsPrototypes */ #if NeedFunctionPrototypes #ifndef NeedNestedPrototypes #define NeedNestedPrototypes 1 #endif /* NeedNestedPrototypes */ #ifndef _Xconst #define _Xconst const #endif /* _Xconst */ /* Function prototype configuration (see configure for more info) */ #if !defined(NARROWPROTO) && \ (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) #define NARROWPROTO #endif #ifndef FUNCPROTO #define FUNCPROTO 15 #endif #ifndef NeedWidePrototypes #ifdef NARROWPROTO #define NeedWidePrototypes 0 #else #define NeedWidePrototypes 1 /* default to make interropt. easier */ #endif #endif /* NeedWidePrototypes */ #endif /* NeedFunctionPrototypes */ #ifndef _XFUNCPROTOBEGIN #if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */ #define _XFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */ #define _XFUNCPROTOEND } #else #define _XFUNCPROTOBEGIN #define _XFUNCPROTOEND #endif #endif /* _XFUNCPROTOBEGIN */ /* http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute */ #ifndef __has_attribute # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ #endif #ifndef __has_feature # define __has_feature(x) 0 /* Compatibility with non-clang compilers. */ #endif #ifndef __has_extension # define __has_extension(x) 0 /* Compatibility with non-clang compilers. */ #endif /* Added in X11R6.9, so available in any version of modular xproto */ #if __has_attribute(__sentinel__) || (defined(__GNUC__) && (__GNUC__ >= 4)) # define _X_SENTINEL(x) __attribute__ ((__sentinel__(x))) #else # define _X_SENTINEL(x) #endif /* GNUC >= 4 */ /* Added in X11R6.9, so available in any version of modular xproto */ #if (__has_attribute(visibility) || (defined(__GNUC__) && (__GNUC__ >= 4))) \ && !defined(__CYGWIN__) && !defined(__MINGW32__) # define _X_EXPORT __attribute__((visibility("default"))) # define _X_HIDDEN __attribute__((visibility("hidden"))) # define _X_INTERNAL __attribute__((visibility("internal"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) # define _X_EXPORT __global # define _X_HIDDEN __hidden # define _X_INTERNAL __hidden #else /* not gcc >= 4 and not Sun Studio >= 8 */ # define _X_EXPORT # define _X_HIDDEN # define _X_INTERNAL #endif /* GNUC >= 4 */ /* Branch prediction hints for individual conditionals */ /* requires xproto >= 7.0.9 */ #if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) # define _X_LIKELY(x) __builtin_expect(!!(x), 1) # define _X_UNLIKELY(x) __builtin_expect(!!(x), 0) #else /* not gcc >= 3.3 */ # define _X_LIKELY(x) (x) # define _X_UNLIKELY(x) (x) #endif /* Bulk branch prediction hints via marking error path functions as "cold" */ /* requires xproto >= 7.0.25 */ #if __has_attribute(__cold__) || \ (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403)) /* 4.3+ */ # define _X_COLD __attribute__((__cold__)) #else # define _X_COLD /* nothing */ #endif /* Added in X11R6.9, so available in any version of modular xproto */ #if __has_attribute(deprecated) \ || (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)) \ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5130)) # define _X_DEPRECATED __attribute__((deprecated)) #else /* not gcc >= 3.1 */ # define _X_DEPRECATED #endif /* requires xproto >= 7.0.30 */ #if __has_extension(attribute_deprecated_with_message) || \ (defined(__GNUC__) && ((__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)))) # define _X_DEPRECATED_MSG(_msg) __attribute__((deprecated(_msg))) #else # define _X_DEPRECATED_MSG(_msg) _X_DEPRECATED #endif /* requires xproto >= 7.0.17 */ #if __has_attribute(noreturn) \ || (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)) \ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) # define _X_NORETURN __attribute((noreturn)) #else # define _X_NORETURN #endif /* GNUC */ /* Added in X11R6.9, so available in any version of modular xproto */ #if __has_attribute(__format__) \ || defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 203) # define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y))) #else /* not gcc >= 2.3 */ # define _X_ATTRIBUTE_PRINTF(x,y) #endif /* requires xproto >= 7.0.22 */ #if __has_attribute(__unused__) \ || defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205) #define _X_UNUSED __attribute__((__unused__)) #else #define _X_UNUSED /* */ #endif /* C99 keyword "inline" or equivalent extensions in pre-C99 compilers */ /* requires xproto >= 7.0.9 (introduced in 7.0.8 but didn't support all compilers until 7.0.9) */ #if defined(inline) /* assume autoconf set it correctly */ || \ (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */ || \ (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)) # define _X_INLINE inline #elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */ # define _X_INLINE __inline__ #else # define _X_INLINE #endif /* C99 keyword "restrict" or equivalent extensions in pre-C99 compilers */ /* requires xproto >= 7.0.21 */ #ifndef _X_RESTRICT_KYWD # if defined(restrict) /* assume autoconf set it correctly */ || \ (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ \ && !defined(__cplusplus)) /* Workaround g++ issue on Solaris */ # define _X_RESTRICT_KYWD restrict # elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */ # define _X_RESTRICT_KYWD __restrict__ # else # define _X_RESTRICT_KYWD # endif #endif /* requires xproto >= 7.0.30 */ #if __has_attribute(no_sanitize_thread) # define _X_NOTSAN __attribute__((no_sanitize_thread)) #else # define _X_NOTSAN #endif /* Mark a char array/pointer as not containing a NUL-terminated string */ /* requires xproto >= 7.0.33 */ #if __has_attribute(nonstring) # define _X_NONSTRING __attribute__((nonstring)) #else # define _X_NONSTRING #endif #endif /* _XFUNCPROTO_H_ */ xorgproto-2023.2/include/X11/keysym.h0000644000175000017500000000532114443010026014247 00000000000000/*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ /* default keysyms */ #define XK_MISCELLANY #define XK_XKB_KEYS #define XK_LATIN1 #define XK_LATIN2 #define XK_LATIN3 #define XK_LATIN4 #define XK_LATIN8 #define XK_LATIN9 #define XK_CAUCASUS #define XK_GREEK #define XK_KATAKANA #define XK_ARABIC #define XK_CYRILLIC #define XK_HEBREW #define XK_THAI #define XK_KOREAN #define XK_ARMENIAN #define XK_GEORGIAN #define XK_VIETNAMESE #define XK_CURRENCY #define XK_MATHEMATICAL #define XK_BRAILLE #define XK_SINHALA #include xorgproto-2023.2/include/X11/XWDFile.h0000644000175000017500000000744014443010026014174 00000000000000/* Copyright 1985, 1986, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * XWDFile.h MIT Project Athena, X Window system window raster * image dumper, dump file format header file. * * Author: Tony Della Fera, DEC * 27-Jun-85 * * Modifier: William F. Wyatt, SAO * 18-Nov-86 - version 6 for saving/restoring color maps */ #ifndef XWDFILE_H #define XWDFILE_H #include #define XWD_FILE_VERSION 7 #define sz_XWDheader 100 #define sz_XWDColor 12 typedef CARD32 xwdval; /* for old broken programs */ /* Values in the file are most significant byte first. */ typedef struct _xwd_file_header { /* header_size = SIZEOF(XWDheader) + length of null-terminated * window name. */ CARD32 header_size; CARD32 file_version; /* = XWD_FILE_VERSION above */ CARD32 pixmap_format; /* ZPixmap or XYPixmap */ CARD32 pixmap_depth; /* Pixmap depth */ CARD32 pixmap_width; /* Pixmap width */ CARD32 pixmap_height; /* Pixmap height */ CARD32 xoffset; /* Bitmap x offset, normally 0 */ CARD32 byte_order; /* of image data: MSBFirst, LSBFirst */ /* bitmap_unit applies to bitmaps (depth 1 format XY) only. * It is the number of bits that each scanline is padded to. */ CARD32 bitmap_unit; CARD32 bitmap_bit_order; /* bitmaps only: MSBFirst, LSBFirst */ /* bitmap_pad applies to pixmaps (non-bitmaps) only. * It is the number of bits that each scanline is padded to. */ CARD32 bitmap_pad; CARD32 bits_per_pixel; /* Bits per pixel */ /* bytes_per_line is pixmap_width padded to bitmap_unit (bitmaps) * or bitmap_pad (pixmaps). It is the delta (in bytes) to get * to the same x position on an adjacent row. */ CARD32 bytes_per_line; CARD32 visual_class; /* Class of colormap */ CARD32 red_mask; /* Z red mask */ CARD32 green_mask; /* Z green mask */ CARD32 blue_mask; /* Z blue mask */ CARD32 bits_per_rgb; /* Log2 of distinct color values */ CARD32 colormap_entries; /* Number of entries in colormap; not used? */ CARD32 ncolors; /* Number of XWDColor structures */ CARD32 window_width; /* Window width */ CARD32 window_height; /* Window height */ CARD32 window_x; /* Window upper left X coordinate */ CARD32 window_y; /* Window upper left Y coordinate */ CARD32 window_bdrwidth; /* Window border width */ } XWDFileHeader; /* Null-terminated window name follows the above structure. */ /* Next comes XWDColor structures, at offset XWDFileHeader.header_size in * the file. XWDFileHeader.ncolors tells how many XWDColor structures * there are. */ typedef struct { CARD32 pixel; CARD16 red; CARD16 green; CARD16 blue; CARD8 flags; CARD8 pad; } XWDColor; /* Last comes the image data in the format described by XWDFileHeader. */ #endif /* XWDFILE_H */ xorgproto-2023.2/include/X11/Xfuncs.h0000644000175000017500000000432014443010026014172 00000000000000/* * Copyright 1990, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * */ #ifndef _XFUNCS_H_ # define _XFUNCS_H_ # include /* the old Xfuncs.h, for pre-R6 */ # if !(defined(XFree86LOADER) && defined(IN_MODULE)) # ifdef X_USEBFUNCS void bcopy(); void bzero(); int bcmp(); # else # if defined(SYSV) && !defined(__SCO__) && !defined(__sun) && !defined(__UNIXWARE__) && !defined(_AIX) # include void bcopy(); # define bzero(b,len) memset(b, 0, len) # define bcmp(b1,b2,len) memcmp(b1, b2, len) # else # include # if defined(__SCO__) || defined(__sun) || defined(__UNIXWARE__) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) # include # endif # define _XFUNCS_H_INCLUDED_STRING_H # endif # endif /* X_USEBFUNCS */ /* the new Xfuncs.h */ /* the ANSI C way */ # ifndef _XFUNCS_H_INCLUDED_STRING_H # include # endif # undef bzero # define bzero(b,len) memset(b,0,len) # if defined WIN32 && defined __MINGW32__ # define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len)) # endif # endif /* !(defined(XFree86LOADER) && defined(IN_MODULE)) */ #endif /* _XFUNCS_H_ */ xorgproto-2023.2/include/X11/meson.build0000644000175000017500000000266514443010026014727 00000000000000fd_set_maybe_headers = [ 'sys/param.h', 'sys/types.h', 'sys/time.h', 'sys/select.h' ] fd_set_headers = '' foreach h : fd_set_maybe_headers if cc.has_header(h) fd_set_headers += '#include <' + h + '>\n' endif endforeach # generated headers. try not to make more of these, please. if cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers) fds_bits = 'fds_bits' elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers) fds_bits = '__fds_bits' else error('Your fd_set is too weird.') endif xpoll_config = configuration_data() xpoll_config.set('USE_FDS_BITS', fds_bits) configure_file(input : 'Xpoll.h.in', output : 'Xpoll.h', install : true, install_dir : get_option('includedir') + '/X11', configuration: xpoll_config) install_headers( 'ap_keysym.h', 'DECkeysym.h', 'HPkeysym.h', 'keysymdef.h', 'keysym.h', 'Sunkeysym.h', 'Xalloca.h', 'Xarch.h', 'Xatom.h', 'Xdefs.h', 'XF86keysym.h', 'Xfuncs.h', 'Xfuncproto.h', 'X.h', 'Xmd.h', 'Xosdefs.h', 'Xos.h', 'Xos_r.h', 'Xproto.h', 'Xprotostr.h', 'Xthreads.h', 'Xw32defs.h', 'XWDFile.h', 'Xwindows.h', 'Xwinsock.h', subdir : 'X11') subdir('dri') subdir('extensions') subdir('fonts') if get_option('legacy') == true subdir('PM') endif xorgproto-2023.2/include/X11/PM/0000755000175000017500000000000014443010035013150 500000000000000xorgproto-2023.2/include/X11/PM/PM.h0000644000175000017500000000320714443010026013557 00000000000000/* $Xorg: PM.h,v 1.4 2001/02/09 02:05:34 xorgcvs Exp $ */ /* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* Proxy Management Protocol */ #ifndef _PM_H_ #define _PM_H_ #define PM_PROTOCOL_NAME "PROXY_MANAGEMENT" #define PM_MAJOR_VERSION 1 #define PM_MINOR_VERSION 0 /* * PM minor opcodes */ #define PM_Error ICE_Error /* == 0 */ #define PM_GetProxyAddr 1 #define PM_GetProxyAddrReply 2 #define PM_StartProxy 3 /* * status return codes for GetProxyAddrReply */ #define PM_Unable 0 #define PM_Success 1 #define PM_Failure 2 #endif /* _PM_H_ */ xorgproto-2023.2/include/X11/PM/meson.build0000644000175000017500000000010614443010026015227 00000000000000install_headers( 'PM.h', 'PMproto.h', subdir : 'X11/PM' ) xorgproto-2023.2/include/X11/PM/PMproto.h0000644000175000017500000000416014443010026014642 00000000000000/* $Xorg: PMproto.h,v 1.4 2001/02/09 02:05:34 xorgcvs Exp $ */ /* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* Proxy Management Protocol */ #ifndef _PMPROTO_H_ #define _PMPROTO_H_ typedef struct { CARD8 majorOpcode; CARD8 minorOpcode; /* == 1 */ CARD16 authLen; CARD32 length; /* STRING proxy-service */ /* STRING server-address */ /* STRING host-address */ /* STRING start-options */ /* STRING auth-name (if authLen > 0) */ /* LISTofCARD8 auth-data (if authLen > 0) */ } pmGetProxyAddrMsg; #define sz_pmGetProxyAddrMsg 8 typedef struct { CARD8 majorOpcode; CARD8 minorOpcode; /* == 2 */ CARD8 status; CARD8 unused; CARD32 length; /* STRING proxy-address */ /* STRING failure-reason */ } pmGetProxyAddrReplyMsg; #define sz_pmGetProxyAddrReplyMsg 8 typedef struct { CARD8 majorOpcode; CARD8 minorOpcode; /* == 3 */ CARD16 unused; CARD32 length; /* STRING proxy-service */ } pmStartProxyMsg; #define sz_pmStartProxyMsg 8 #endif /* _PMPROTO_H_ */ xorgproto-2023.2/include/X11/Xw32defs.h0000644000175000017500000000356514443010026014343 00000000000000#ifndef _XW32DEFS_H # define _XW32DEFS_H # ifdef __GNUC__ /* mingw is more close to unix than msvc */ # if !defined(__daddr_t_defined) typedef char *caddr_t; # endif # define lstat stat # else typedef char *caddr_t; # define access _access # define alloca _alloca # define chdir _chdir # define chmod _chmod # define close _close # define creat _creat # define dup _dup # define dup2 _dup2 # define environ _environ # define execl _execl # define execle _execle # define execlp _execlp # define execlpe _execlpe # define execv _execv # define execve _execve # define execvp _execvp # define execvpe _execvpe # define fdopen _fdopen # define fileno _fileno # define fstat _fstat # define getcwd _getcwd # define getpid _getpid # define hypot _hypot # define isascii __isascii # define isatty _isatty # define lseek _lseek # define mkdir _mkdir # define mktemp _mktemp # define open _open # define putenv _putenv # define read _read # define rmdir _rmdir # define sleep(x) Sleep((x) * 1000) # define stat _stat # define sys_errlist _sys_errlist # define sys_nerr _sys_nerr # define umask _umask # define unlink _unlink # define write _write # define random rand # define srandom srand # define O_RDONLY _O_RDONLY # define O_WRONLY _O_WRONLY # define O_RDWR _O_RDWR # define O_APPEND _O_APPEND # define O_CREAT _O_CREAT # define O_TRUNC _O_TRUNC # define O_EXCL _O_EXCL # define O_TEXT _O_TEXT # define O_BINARY _O_BINARY # define O_RAW _O_BINARY # define S_IFMT _S_IFMT # define S_IFDIR _S_IFDIR # define S_IFCHR _S_IFCHR # define S_IFREG _S_IFREG # define S_IREAD _S_IREAD # define S_IWRITE _S_IWRITE # define S_IEXEC _S_IEXEC # define F_OK 0 # define X_OK 1 # define W_OK 2 # define R_OK 4 # endif /* __GNUC__ */ #endif xorgproto-2023.2/include/X11/dri/0000755000175000017500000000000014443010035013412 500000000000000xorgproto-2023.2/include/X11/dri/xf86driproto.h0000644000175000017500000002270514443010026016067 00000000000000/************************************************************************** Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. Copyright 2000 VA Linux Systems, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ /* * Authors: * Kevin E. Martin * Jens Owen * Rickard E. (Rik) Faith * */ #ifndef _XF86DRISTR_H_ #define _XF86DRISTR_H_ #include "xf86dri.h" #define XF86DRINAME "XFree86-DRI" /* The DRI version number. This was originally set to be the same of the * XFree86 version number. However, this version is really independent of * the XFree86 version. * * Version History: * 4.0.0: Original * 4.0.1: Patch to bump clipstamp when windows are destroyed, 28 May 02 * 4.1.0: Add transition from single to multi in DRMInfo rec, 24 Jun 02 */ #define XF86DRI_MAJOR_VERSION 4 #define XF86DRI_MINOR_VERSION 1 #define XF86DRI_PATCH_VERSION 0 typedef struct _XF86DRIQueryVersion { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIQueryVersion */ CARD16 length; } xXF86DRIQueryVersionReq; #define sz_xXF86DRIQueryVersionReq 4 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD16 majorVersion; /* major version of DRI protocol */ CARD16 minorVersion; /* minor version of DRI protocol */ CARD32 patchVersion; /* patch version of DRI protocol */ CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DRIQueryVersionReply; #define sz_xXF86DRIQueryVersionReply 32 typedef struct _XF86DRIQueryDirectRenderingCapable { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* X_DRIQueryDirectRenderingCapable */ CARD16 length; CARD32 screen; } xXF86DRIQueryDirectRenderingCapableReq; #define sz_xXF86DRIQueryDirectRenderingCapableReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; BOOL isCapable; BOOL pad2; BOOL pad3; BOOL pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; CARD32 pad8; CARD32 pad9; } xXF86DRIQueryDirectRenderingCapableReply; #define sz_xXF86DRIQueryDirectRenderingCapableReply 32 typedef struct _XF86DRIOpenConnection { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIOpenConnection */ CARD16 length; CARD32 screen; } xXF86DRIOpenConnectionReq; #define sz_xXF86DRIOpenConnectionReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 hSAREALow; CARD32 hSAREAHigh; CARD32 busIdStringLength; CARD32 pad6; CARD32 pad7; CARD32 pad8; } xXF86DRIOpenConnectionReply; #define sz_xXF86DRIOpenConnectionReply 32 typedef struct _XF86DRIAuthConnection { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRICloseConnection */ CARD16 length; CARD32 screen; CARD32 magic; } xXF86DRIAuthConnectionReq; #define sz_xXF86DRIAuthConnectionReq 12 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 authenticated; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DRIAuthConnectionReply; #define zx_xXF86DRIAuthConnectionReply 32 typedef struct _XF86DRICloseConnection { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRICloseConnection */ CARD16 length; CARD32 screen; } xXF86DRICloseConnectionReq; #define sz_xXF86DRICloseConnectionReq 8 typedef struct _XF86DRIGetClientDriverName { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIGetClientDriverName */ CARD16 length; CARD32 screen; } xXF86DRIGetClientDriverNameReq; #define sz_xXF86DRIGetClientDriverNameReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 ddxDriverMajorVersion; CARD32 ddxDriverMinorVersion; CARD32 ddxDriverPatchVersion; CARD32 clientDriverNameLength; CARD32 pad5; CARD32 pad6; } xXF86DRIGetClientDriverNameReply; #define sz_xXF86DRIGetClientDriverNameReply 32 typedef struct _XF86DRICreateContext { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRICreateContext */ CARD16 length; CARD32 screen; CARD32 visual; CARD32 context; } xXF86DRICreateContextReq; #define sz_xXF86DRICreateContextReq 16 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 hHWContext; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DRICreateContextReply; #define sz_xXF86DRICreateContextReply 32 typedef struct _XF86DRIDestroyContext { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIDestroyContext */ CARD16 length; CARD32 screen; CARD32 context; } xXF86DRIDestroyContextReq; #define sz_xXF86DRIDestroyContextReq 12 typedef struct _XF86DRICreateDrawable { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRICreateDrawable */ CARD16 length; CARD32 screen; CARD32 drawable; } xXF86DRICreateDrawableReq; #define sz_xXF86DRICreateDrawableReq 12 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 hHWDrawable; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DRICreateDrawableReply; #define sz_xXF86DRICreateDrawableReply 32 typedef struct _XF86DRIDestroyDrawable { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIDestroyDrawable */ CARD16 length; CARD32 screen; CARD32 drawable; } xXF86DRIDestroyDrawableReq; #define sz_xXF86DRIDestroyDrawableReq 12 typedef struct _XF86DRIGetDrawableInfo { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIGetDrawableInfo */ CARD16 length; CARD32 screen; CARD32 drawable; } xXF86DRIGetDrawableInfoReq; #define sz_xXF86DRIGetDrawableInfoReq 12 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 drawableTableIndex; CARD32 drawableTableStamp; INT16 drawableX; INT16 drawableY; INT16 drawableWidth; INT16 drawableHeight; CARD32 numClipRects; INT16 backX; INT16 backY; CARD32 numBackClipRects; } xXF86DRIGetDrawableInfoReply; #define sz_xXF86DRIGetDrawableInfoReply 36 typedef struct _XF86DRIGetDeviceInfo { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIGetDeviceInfo */ CARD16 length; CARD32 screen; } xXF86DRIGetDeviceInfoReq; #define sz_xXF86DRIGetDeviceInfoReq 8 typedef struct { BYTE type; /* X_Reply */ BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 hFrameBufferLow; CARD32 hFrameBufferHigh; CARD32 framebufferOrigin; CARD32 framebufferSize; CARD32 framebufferStride; CARD32 devPrivateSize; } xXF86DRIGetDeviceInfoReply; #define sz_xXF86DRIGetDeviceInfoReply 32 typedef struct _XF86DRIOpenFullScreen { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRIOpenFullScreen */ CARD16 length; CARD32 screen; CARD32 drawable; } xXF86DRIOpenFullScreenReq; #define sz_xXF86DRIOpenFullScreenReq 12 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 isFullScreen; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xXF86DRIOpenFullScreenReply; #define sz_xXF86DRIOpenFullScreenReply 32 typedef struct _XF86DRICloseFullScreen { CARD8 reqType; /* always DRIReqCode */ CARD8 driReqType; /* always X_DRICloseFullScreen */ CARD16 length; CARD32 screen; CARD32 drawable; } xXF86DRICloseFullScreenReq; #define sz_xXF86DRICloseFullScreenReq 12 typedef struct { BYTE type; BOOL pad1; CARD16 sequenceNumber; CARD32 length; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xXF86DRICloseFullScreenReply; #define sz_xXF86DRICloseFullScreenReply 32 #endif /* _XF86DRISTR_H_ */ xorgproto-2023.2/include/X11/dri/xf86dristr.h0000644000175000017500000000025614443010026015531 00000000000000#warning "xf86dristr.h is obsolete and may be removed in the future." #warning "include for the protocol defines." #include xorgproto-2023.2/include/X11/dri/meson.build0000644000175000017500000000014514443010026015474 00000000000000install_headers( 'xf86dri.h', 'xf86driproto.h', 'xf86dristr.h', subdir : 'X11/dri' ) xorgproto-2023.2/include/X11/dri/xf86dri.h0000644000175000017500000000461514443010026015003 00000000000000/************************************************************************** Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. Copyright 2000 VA Linux Systems, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. **************************************************************************/ /** * \file xf86dri.h * Protocol numbers and function prototypes for DRI X protocol. * * \author Kevin E. Martin * \author Jens Owen * \author Rickard E. (Rik) Faith */ #ifndef _XF86DRI_H_ #define _XF86DRI_H_ #include #define X_XF86DRIQueryVersion 0 #define X_XF86DRIQueryDirectRenderingCapable 1 #define X_XF86DRIOpenConnection 2 #define X_XF86DRICloseConnection 3 #define X_XF86DRIGetClientDriverName 4 #define X_XF86DRICreateContext 5 #define X_XF86DRIDestroyContext 6 #define X_XF86DRICreateDrawable 7 #define X_XF86DRIDestroyDrawable 8 #define X_XF86DRIGetDrawableInfo 9 #define X_XF86DRIGetDeviceInfo 10 #define X_XF86DRIAuthConnection 11 #define X_XF86DRIOpenFullScreen 12 /* Deprecated */ #define X_XF86DRICloseFullScreen 13 /* Deprecated */ #define XF86DRINumberEvents 0 #define XF86DRIClientNotLocal 0 #define XF86DRIOperationNotSupported 1 #define XF86DRINumberErrors (XF86DRIOperationNotSupported + 1) #endif /* _XF86DRI_H_ */ xorgproto-2023.2/include/X11/Xalloca.h0000644000175000017500000001075314443010026014316 00000000000000/* Copyright 1995, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * The purpose of this header is to define the macros ALLOCATE_LOCAL and * DEALLOCATE_LOCAL appropriately for the platform being compiled on. * These macros are used to make fast, function-local memory allocations. * Their characteristics are as follows: * * void *ALLOCATE_LOCAL(size_t size) * Returns a pointer to size bytes of memory, or NULL if the allocation * failed. The memory must be freed with DEALLOCATE_LOCAL before the * function that made the allocation returns. You should not ask for * large blocks of memory with this function, since on many platforms * the memory comes from the stack, which may have limited size. * * void DEALLOCATE_LOCAL(void *) * Frees the memory allocated by ALLOCATE_LOCAL. Omission of this * step may be harmless on some platforms, but will result in * memory leaks or worse on others. * * Before including this file, you should define two macros, * ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK, that have the * same characteristics as ALLOCATE_LOCAL and DEALLOCATE_LOCAL. The * header uses the fallbacks if it doesn't know a "better" way to define * ALLOCATE_LOCAL and DEALLOCATE_LOCAL. Typical usage would be: * * #define ALLOCATE_LOCAL_FALLBACK(_size) malloc(_size) * #define DEALLOCATE_LOCAL_FALLBACK(_ptr) free(_ptr) * #include "Xalloca.h" */ #ifndef XALLOCA_H #define XALLOCA_H 1 #ifndef INCLUDE_ALLOCA_H /* Need to add more here to match Imake *.cf's */ # if defined(HAVE_ALLOCA_H) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) # define INCLUDE_ALLOCA_H # endif #endif #ifdef INCLUDE_ALLOCA_H # include #endif #ifndef NO_ALLOCA /* * os-dependent definition of local allocation and deallocation * If you want something other than (DE)ALLOCATE_LOCAL_FALLBACK * for ALLOCATE/DEALLOCATE_LOCAL then you add that in here. */ # ifdef __GNUC__ # ifndef alloca # define alloca __builtin_alloca # endif /* !alloca */ # define ALLOCATE_LOCAL(size) alloca((size_t)(size)) # else /* ! __GNUC__ */ /* * warning: old mips alloca (pre 2.10) is unusable, new one is built in * Test is easy, the new one is named __builtin_alloca and comes * from alloca.h which #defines alloca. */ # if defined(__sun) || defined(alloca) /* * Some System V boxes extract alloca.o from /lib/libPW.a; if you * decide that you don't want to use alloca, you might want to fix it here. */ /* alloca might be a macro taking one arg (hi, Sun!), so give it one. */ # if !defined(__cplusplus) # define __Xnullarg /* as nothing */ extern void *alloca(__Xnullarg); # endif # define ALLOCATE_LOCAL(size) alloca((size_t)(size)) # endif /* who does alloca */ # endif /* __GNUC__ */ #endif /* NO_ALLOCA */ #if !defined(ALLOCATE_LOCAL) # if defined(ALLOCATE_LOCAL_FALLBACK) && defined(DEALLOCATE_LOCAL_FALLBACK) # define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK(_size) # define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK(_ptr) # else /* no fallbacks supplied; error */ # define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK undefined! # define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK undefined! # endif /* defined(ALLOCATE_LOCAL_FALLBACK && DEALLOCATE_LOCAL_FALLBACK) */ #else # if !defined(DEALLOCATE_LOCAL) # define DEALLOCATE_LOCAL(_ptr) do {} while(0) # endif #endif /* defined(ALLOCATE_LOCAL) */ #endif /* XALLOCA_H */ xorgproto-2023.2/include/X11/DECkeysym.h0000644000175000017500000000537714443010026014576 00000000000000/*********************************************************** Copyright 1988, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1988 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ /* * DEC private keysyms * (29th bit set) */ /* two-key compose sequence initiators, chosen to map to Latin1 characters */ #define DXK_ring_accent 0x1000FEB0 #define DXK_circumflex_accent 0x1000FE5E #define DXK_cedilla_accent 0x1000FE2C #define DXK_acute_accent 0x1000FE27 #define DXK_grave_accent 0x1000FE60 #define DXK_tilde 0x1000FE7E #define DXK_diaeresis 0x1000FE22 /* special keysym for LK2** "Remove" key on editing keypad */ #define DXK_Remove 0x1000FF00 /* Remove */ xorgproto-2023.2/include/X11/Xprotostr.h0000644000175000017500000000526714443010026014763 00000000000000#ifndef XPROTOSTRUCTS_H #define XPROTOSTRUCTS_H /*********************************************************** Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #include /* Used by PolySegment */ typedef struct _xSegment { INT16 x1, y1, x2, y2; } xSegment; /* POINT */ typedef struct _xPoint { INT16 x, y; } xPoint; typedef struct _xRectangle { INT16 x, y; CARD16 width, height; } xRectangle; /* ARC */ typedef struct _xArc { INT16 x, y; CARD16 width, height; INT16 angle1, angle2; } xArc; #endif /* XPROTOSTRUCTS_H */ xorgproto-2023.2/include/X11/Xpoll.h.in0000644000175000017500000001710314443010026014432 00000000000000/* Copyright 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * Copyright © 2005 Daniel Stone * * 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 Daniel Stone not be used in advertising * or publicity pertaining to distribution of the software without specific, * written prior permission. Daniel Stone makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * DANIEL STONE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DANIEL STONE 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. */ #ifndef _XPOLL_H_ #define _XPOLL_H_ #if !defined(WIN32) || defined(__CYGWIN__) #ifndef USE_POLL #include #include /* Get the FD_* macros. */ #include #ifdef CSRG_BASED #include # if BSD < 199103 typedef long fd_mask; # endif #endif #if defined(FD_SETSIZE) && FD_SETSIZE < 512 # define XFD_SETSIZE FD_SETSIZE #else # define XFD_SETSIZE 512 # ifndef FD_SETSIZE # define FD_SETSIZE XFD_SETSIZE # endif #endif #ifndef NBBY #define NBBY 8 /* number of bits in a byte */ #endif #ifndef NFDBITS #define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ #endif #ifndef howmany #define howmany(x,y) (((x)+((y)-1))/(y)) #endif #if defined(BSD) && BSD < 198911 typedef struct fd_set { fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; } fd_set; #endif # define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) #define __X_FDS_BITS @USE_FDS_BITS@ #ifndef __FDS_BITS # define __FDS_BITS(p) ((p)->__X_FDS_BITS) #endif #define __XFDS_BITS(p, n) (__FDS_BITS(p))[n] #ifndef FD_SET #define FD_SET(n, p) (__XFDS_BITS(p, ((n)/NFDBITS)) |= ((fd_mask)1 << ((n) % NFDBITS))) #endif #ifndef FD_CLR #define FD_CLR(n, p) (__XFDS_BITS((p), ((n)/NFDBITS)) &= ~((fd_mask)1 << ((n) % NFDBITS))) #endif #ifndef FD_ISSET #define FD_ISSET(n, p) ((__XFDS_BITS((p), ((n)/NFDBITS))) & ((fd_mask)1 << ((n) % NFDBITS))) #endif #ifndef FD_ZERO #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) #endif /* * The howmany(FD_SETSIZE, NFDBITS) computes the number of elements in the * array. before accessing an element in the array we check it exists. * If it does not exist then the compiler discards the code to access it. */ #define XFD_ANYSET(p) \ ((howmany(FD_SETSIZE, NFDBITS) > 0 && (__XFDS_BITS(p, 0))) || \ (howmany(FD_SETSIZE, NFDBITS) > 1 && (__XFDS_BITS(p, 1))) || \ (howmany(FD_SETSIZE, NFDBITS) > 2 && (__XFDS_BITS(p, 2))) || \ (howmany(FD_SETSIZE, NFDBITS) > 3 && (__XFDS_BITS(p, 3))) || \ (howmany(FD_SETSIZE, NFDBITS) > 4 && (__XFDS_BITS(p, 4))) || \ (howmany(FD_SETSIZE, NFDBITS) > 5 && (__XFDS_BITS(p, 5))) || \ (howmany(FD_SETSIZE, NFDBITS) > 6 && (__XFDS_BITS(p, 6))) || \ (howmany(FD_SETSIZE, NFDBITS) > 7 && (__XFDS_BITS(p, 7))) || \ (howmany(FD_SETSIZE, NFDBITS) > 8 && (__XFDS_BITS(p, 8))) || \ (howmany(FD_SETSIZE, NFDBITS) > 9 && (__XFDS_BITS(p, 9))) || \ (howmany(FD_SETSIZE, NFDBITS) > 10 && (__XFDS_BITS(p, 10))) || \ (howmany(FD_SETSIZE, NFDBITS) > 11 && (__XFDS_BITS(p, 11))) || \ (howmany(FD_SETSIZE, NFDBITS) > 12 && (__XFDS_BITS(p, 12))) || \ (howmany(FD_SETSIZE, NFDBITS) > 13 && (__XFDS_BITS(p, 13))) || \ (howmany(FD_SETSIZE, NFDBITS) > 14 && (__XFDS_BITS(p, 14))) || \ (howmany(FD_SETSIZE, NFDBITS) > 15 && (__XFDS_BITS(p, 15)))) #define XFD_COPYSET(src,dst) { \ int __i__; \ for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ __XFDS_BITS((dst), __i__) = __XFDS_BITS((src), __i__); \ } #define XFD_ANDSET(dst,b1,b2) { \ int __i__; \ for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) & (__XFDS_BITS((b2), __i__))); \ } #define XFD_ORSET(dst,b1,b2) { \ int __i__; \ for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ __XFDS_BITS((dst), __i__) = ((__XFDS_BITS((b1), __i__)) | (__XFDS_BITS((b2), __i__))); \ } #define XFD_UNSET(dst,b1) { \ int __i__; \ for (__i__ = 0; __i__ < howmany(FD_SETSIZE, NFDBITS); __i__++) \ __XFDS_BITS((dst), __i__) &= ~(__XFDS_BITS((b1), __i__)); \ } #else /* USE_POLL */ #include #endif /* USE_POLL */ #else /* WIN32 */ #define XFD_SETSIZE 512 #ifndef FD_SETSIZE #define FD_SETSIZE XFD_SETSIZE #endif #include #define Select(n,r,w,e,t) select(0,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) #define XFD_SETCOUNT(p) (((fd_set FAR *)(p))->fd_count) #define XFD_FD(p,i) (((fd_set FAR *)(p))->fd_array[i]) #define XFD_ANYSET(p) XFD_SETCOUNT(p) #define XFD_COPYSET(src,dst) { \ u_int __i; \ FD_ZERO(dst); \ for (__i = 0; __i < XFD_SETCOUNT(src) ; __i++) { \ XFD_FD(dst,__i) = XFD_FD(src,__i); \ } \ XFD_SETCOUNT(dst) = XFD_SETCOUNT(src); \ } #define XFD_ANDSET(dst,b1,b2) { \ u_int __i; \ FD_ZERO(dst); \ for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ if (FD_ISSET(XFD_FD(b1,__i), b2)) \ FD_SET(XFD_FD(b1,__i), dst); \ } \ } #define XFD_ORSET(dst,b1,b2) { \ u_int __i; \ if (dst != b1) XFD_COPYSET(b1,dst); \ for (__i = 0; __i < XFD_SETCOUNT(b2) ; __i++) { \ if (!FD_ISSET(XFD_FD(b2,__i), dst)) \ FD_SET(XFD_FD(b2,__i), dst); \ } \ } /* this one is really sub-optimal */ #define XFD_UNSET(dst,b1) { \ u_int __i; \ for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ FD_CLR(XFD_FD(b1,__i), dst); \ } \ } /* we have to pay the price of having an array here, unlike with bitmasks calling twice FD_SET with the same fd is not transparent, so be careful */ #undef FD_SET #define FD_SET(fd,set) do { \ if (XFD_SETCOUNT(set) < FD_SETSIZE && !FD_ISSET(fd,set)) \ XFD_FD(set,XFD_SETCOUNT(set)++)=(fd); \ } while(0) #define getdtablesize() FD_SETSIZE #endif /* WIN32 */ #endif /* _XPOLL_H_ */ xorgproto-2023.2/include/X11/HPkeysym.h0000644000175000017500000001363714443010026014510 00000000000000/* Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Hewlett Packard or Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. */ #ifndef _HPKEYSYM_H #define _HPKEYSYM_H #define hpXK_ClearLine 0x1000FF6F #define hpXK_InsertLine 0x1000FF70 #define hpXK_DeleteLine 0x1000FF71 #define hpXK_InsertChar 0x1000FF72 #define hpXK_DeleteChar 0x1000FF73 #define hpXK_BackTab 0x1000FF74 #define hpXK_KP_BackTab 0x1000FF75 #define hpXK_Modelock1 0x1000FF48 #define hpXK_Modelock2 0x1000FF49 #define hpXK_Reset 0x1000FF6C #define hpXK_System 0x1000FF6D #define hpXK_User 0x1000FF6E #define hpXK_mute_acute 0x100000A8 #define hpXK_mute_grave 0x100000A9 #define hpXK_mute_asciicircum 0x100000AA #define hpXK_mute_diaeresis 0x100000AB #define hpXK_mute_asciitilde 0x100000AC #define hpXK_lira 0x100000AF #define hpXK_guilder 0x100000BE #define hpXK_Ydiaeresis 0x100000EE #define hpXK_IO 0x100000EE #define hpXK_longminus 0x100000F6 #define hpXK_block 0x100000FC #ifndef _OSF_Keysyms #define _OSF_Keysyms #define osfXK_Copy 0x1004FF02 #define osfXK_Cut 0x1004FF03 #define osfXK_Paste 0x1004FF04 #define osfXK_BackTab 0x1004FF07 #define osfXK_BackSpace 0x1004FF08 #define osfXK_Clear 0x1004FF0B #define osfXK_Escape 0x1004FF1B #define osfXK_AddMode 0x1004FF31 #define osfXK_PrimaryPaste 0x1004FF32 #define osfXK_QuickPaste 0x1004FF33 #define osfXK_PageLeft 0x1004FF40 #define osfXK_PageUp 0x1004FF41 #define osfXK_PageDown 0x1004FF42 #define osfXK_PageRight 0x1004FF43 #define osfXK_Activate 0x1004FF44 #define osfXK_MenuBar 0x1004FF45 #define osfXK_Left 0x1004FF51 #define osfXK_Up 0x1004FF52 #define osfXK_Right 0x1004FF53 #define osfXK_Down 0x1004FF54 #define osfXK_EndLine 0x1004FF57 #define osfXK_BeginLine 0x1004FF58 #define osfXK_EndData 0x1004FF59 #define osfXK_BeginData 0x1004FF5A #define osfXK_PrevMenu 0x1004FF5B #define osfXK_NextMenu 0x1004FF5C #define osfXK_PrevField 0x1004FF5D #define osfXK_NextField 0x1004FF5E #define osfXK_Select 0x1004FF60 #define osfXK_Insert 0x1004FF63 #define osfXK_Undo 0x1004FF65 #define osfXK_Menu 0x1004FF67 #define osfXK_Cancel 0x1004FF69 #define osfXK_Help 0x1004FF6A #define osfXK_SelectAll 0x1004FF71 #define osfXK_DeselectAll 0x1004FF72 #define osfXK_Reselect 0x1004FF73 #define osfXK_Extend 0x1004FF74 #define osfXK_Restore 0x1004FF78 #define osfXK_Delete 0x1004FFFF #endif /* _OSF_Keysyms */ /************************************************************** * The use of the following macros is deprecated. * They are listed below only for backwards compatibility. */ #define XK_Reset 0x1000FF6C #define XK_System 0x1000FF6D #define XK_User 0x1000FF6E #define XK_ClearLine 0x1000FF6F #define XK_InsertLine 0x1000FF70 #define XK_DeleteLine 0x1000FF71 #define XK_InsertChar 0x1000FF72 #define XK_DeleteChar 0x1000FF73 #define XK_BackTab 0x1000FF74 #define XK_KP_BackTab 0x1000FF75 #define XK_Ext16bit_L 0x1000FF76 #define XK_Ext16bit_R 0x1000FF77 #define XK_mute_acute 0x100000a8 #define XK_mute_grave 0x100000a9 #define XK_mute_asciicircum 0x100000aa #define XK_mute_diaeresis 0x100000ab #define XK_mute_asciitilde 0x100000ac #define XK_lira 0x100000af #define XK_guilder 0x100000be #ifndef XK_Ydiaeresis #define XK_Ydiaeresis 0x100000ee #endif #define XK_IO 0x100000ee #define XK_longminus 0x100000f6 #define XK_block 0x100000fc #endif /* _HPKEYSYM_H */ xorgproto-2023.2/include/X11/fonts/0000755000175000017500000000000014443010035013765 500000000000000xorgproto-2023.2/include/X11/fonts/fontstruct.h0000644000175000017500000002227114443010026016275 00000000000000/*********************************************************** Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #ifndef FONTSTR_H #define FONTSTR_H #include #include "font.h" #include #include /* * This version of the server font data structure is only for describing * the in memory data structure. The file structure is not necessarily a * copy of this. That is up to the compiler and the OS layer font loading * machinery. */ #define GLYPHPADOPTIONS 4 /* 1, 2, 4, or 8 */ typedef struct _FontProp { long name; long value; /* assumes ATOM is not larger than INT32 */ } FontPropRec; typedef struct _FontResolution { unsigned short x_resolution; unsigned short y_resolution; unsigned short point_size; } FontResolutionRec; typedef struct _ExtentInfo { DrawDirection drawDirection; int fontAscent; int fontDescent; int overallAscent; int overallDescent; int overallWidth; int overallLeft; int overallRight; } ExtentInfoRec; typedef struct _CharInfo { xCharInfo metrics; /* info preformatted for Queries */ char *bits; /* pointer to glyph image */ } CharInfoRec; /* * Font is created at font load time. It is specific to a single encoding. * e.g. not all of the glyphs in a font may be part of a single encoding. */ typedef struct _FontInfo { unsigned short firstCol; unsigned short lastCol; unsigned short firstRow; unsigned short lastRow; unsigned short defaultCh; unsigned int noOverlap:1; unsigned int terminalFont:1; unsigned int constantMetrics:1; unsigned int constantWidth:1; unsigned int inkInside:1; unsigned int inkMetrics:1; unsigned int allExist:1; unsigned int drawDirection:2; unsigned int cachable:1; unsigned int anamorphic:1; short maxOverlap; short pad; xCharInfo maxbounds; xCharInfo minbounds; xCharInfo ink_maxbounds; xCharInfo ink_minbounds; short fontAscent; short fontDescent; int nprops; FontPropPtr props; char *isStringProp; } FontInfoRec; typedef struct _Font { int refcnt; FontInfoRec info; char bit; char byte; char glyph; char scan; fsBitmapFormat format; int (*get_glyphs) (FontPtr /* font */, unsigned long /* count */, unsigned char * /* chars */, FontEncoding /* encoding */, unsigned long * /* count */, CharInfoPtr * /* glyphs */); int (*get_metrics) (FontPtr /* font */, unsigned long /* count */, unsigned char * /* chars */, FontEncoding /* encoding */, unsigned long * /* count */, xCharInfo ** /* glyphs */); void (*unload_font) (FontPtr /* font */); void (*unload_glyphs) (FontPtr /* font */); FontPathElementPtr fpe; void *svrPrivate; void *fontPrivate; void *fpePrivate; int maxPrivate; void **devPrivates; } FontRec; #define FontGetPrivate(pFont,n) ((n) > (pFont)->maxPrivate ? (void *) 0 : \ (pFont)->devPrivates[n]) #define FontSetPrivate(pFont,n,ptr) ((n) > (pFont)->maxPrivate ? \ _FontSetNewPrivate (pFont, n, ptr) : \ ((((pFont)->devPrivates[n] = (ptr)) != 0) || TRUE)) typedef struct _FontNames { int nnames; int size; int *length; char **names; } FontNamesRec; /* External view of font paths */ typedef struct _FontPathElement { int name_length; #if FONT_PATH_ELEMENT_NAME_CONST const #endif char *name; int type; int refcount; void *private; } FontPathElementRec; typedef Bool (*NameCheckFunc) (const char *name); typedef int (*InitFpeFunc) (FontPathElementPtr fpe); typedef int (*FreeFpeFunc) (FontPathElementPtr fpe); typedef int (*ResetFpeFunc) (FontPathElementPtr fpe); typedef int (*OpenFontFunc) ( void *client, FontPathElementPtr fpe, Mask flags, const char* name, int namelen, fsBitmapFormat format, fsBitmapFormatMask fmask, XID id, FontPtr* pFont, char** aliasName, FontPtr non_cachable_font); typedef void (*CloseFontFunc) (FontPathElementPtr fpe, FontPtr pFont); typedef int (*ListFontsFunc) (void *client, FontPathElementPtr fpe, const char* pat, int len, int max, FontNamesPtr names); typedef int (*StartLfwiFunc) (void *client, FontPathElementPtr fpe, const char* pat, int len, int max, void ** privatep); typedef int (*NextLfwiFunc) (void *client, FontPathElementPtr fpe, char** name, int* namelen, FontInfoPtr* info, int* numFonts, void *private); typedef int (*WakeupFpeFunc) (FontPathElementPtr fpe, unsigned long* LastSelectMask); typedef void (*ClientDiedFunc) (void *client, FontPathElementPtr fpe); typedef int (*LoadGlyphsFunc) (void *client, FontPtr pfont, Bool range_flag, unsigned int nchars, int item_size, unsigned char* data); typedef int (*StartLaFunc) (void *client, FontPathElementPtr fpe, const char* pat, int len, int max, void ** privatep); typedef int (*NextLaFunc) (void *client, FontPathElementPtr fpe, char** namep, int* namelenp, char** resolvedp, int* resolvedlenp, void *private); typedef void (*SetPathFunc)(void); typedef struct _FPEFunctions { NameCheckFunc name_check; InitFpeFunc init_fpe; ResetFpeFunc reset_fpe; FreeFpeFunc free_fpe; OpenFontFunc open_font; CloseFontFunc close_font; ListFontsFunc list_fonts; StartLaFunc start_list_fonts_and_aliases; NextLaFunc list_next_font_or_alias; StartLfwiFunc start_list_fonts_with_info; NextLfwiFunc list_next_font_with_info; WakeupFpeFunc wakeup_fpe; ClientDiedFunc client_died; /* for load_glyphs, range_flag = 0 -> nchars = # of characters in data item_size = bytes/char data = list of characters range_flag = 1 -> nchars = # of fsChar2b's in data item_size is ignored data = list of fsChar2b's */ LoadGlyphsFunc load_glyphs; SetPathFunc set_path_hook; } FPEFunctionsRec, FPEFunctions; /* * Various macros for computing values based on contents of * the above structures */ #define GLYPHWIDTHPIXELS(pci) \ ((pci)->metrics.rightSideBearing - (pci)->metrics.leftSideBearing) #define GLYPHHEIGHTPIXELS(pci) \ ((pci)->metrics.ascent + (pci)->metrics.descent) #define GLYPHWIDTHBYTES(pci) (((GLYPHWIDTHPIXELS(pci))+7) >> 3) #define GLYPHWIDTHPADDED(bc) (((bc)+7) & ~0x7) #define BYTES_PER_ROW(bits, nbytes) \ ((nbytes) == 1 ? (((bits)+7)>>3) /* pad to 1 byte */ \ :(nbytes) == 2 ? ((((bits)+15)>>3)&~1) /* pad to 2 bytes */ \ :(nbytes) == 4 ? ((((bits)+31)>>3)&~3) /* pad to 4 bytes */ \ :(nbytes) == 8 ? ((((bits)+63)>>3)&~7) /* pad to 8 bytes */ \ : 0) #define BYTES_FOR_GLYPH(ci,pad) (GLYPHHEIGHTPIXELS(ci) * \ BYTES_PER_ROW(GLYPHWIDTHPIXELS(ci),pad)) /* * Macros for computing different bounding boxes for fonts; from * the font protocol */ #define FONT_MAX_ASCENT(pi) ((pi)->fontAscent > (pi)->ink_maxbounds.ascent ? \ (pi)->fontAscent : (pi)->ink_maxbounds.ascent) #define FONT_MAX_DESCENT(pi) ((pi)->fontDescent > (pi)->ink_maxbounds.descent ? \ (pi)->fontDescent : (pi)->ink_maxbounds.descent) #define FONT_MAX_HEIGHT(pi) (FONT_MAX_ASCENT(pi) + FONT_MAX_DESCENT(pi)) #define FONT_MIN_LEFT(pi) ((pi)->ink_minbounds.leftSideBearing < 0 ? \ (pi)->ink_minbounds.leftSideBearing : 0) #define FONT_MAX_RIGHT(pi) ((pi)->ink_maxbounds.rightSideBearing > \ (pi)->ink_maxbounds.characterWidth ? \ (pi)->ink_maxbounds.rightSideBearing : \ (pi)->ink_maxbounds.characterWidth) #define FONT_MAX_WIDTH(pi) (FONT_MAX_RIGHT(pi) - FONT_MIN_LEFT(pi)) #include "fontproto.h" #endif /* FONTSTR_H */ xorgproto-2023.2/include/X11/fonts/fontproto.h0000644000175000017500000000657214443010026016122 00000000000000/*********************************************************** Copyright (c) 1999 The XFree86 Project Inc. All Rights Reserved. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The XFree86 Project Inc. 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 XFree86 Project Inc.. */ #ifndef _FONTPROTO_H #define _FONTPROTO_H #include /* Externally provided functions required by libXfont */ extern _X_EXPORT int RegisterFPEFunctions ( NameCheckFunc name_func, InitFpeFunc init_func, FreeFpeFunc free_func, ResetFpeFunc reset_func, OpenFontFunc open_func, CloseFontFunc close_func, ListFontsFunc list_func, StartLfwiFunc start_lfwi_func, NextLfwiFunc next_lfwi_func, WakeupFpeFunc wakeup_func, ClientDiedFunc client_died, LoadGlyphsFunc load_glyphs, StartLaFunc start_list_alias_func, NextLaFunc next_list_alias_func, SetPathFunc set_path_func); extern _X_EXPORT int GetDefaultPointSize ( void ); extern _X_EXPORT int init_fs_handlers ( FontPathElementPtr fpe, BlockHandlerProcPtr block_handler); extern _X_EXPORT void remove_fs_handlers ( FontPathElementPtr fpe, BlockHandlerProcPtr block_handler, Bool all ); extern _X_EXPORT int client_auth_generation ( ClientPtr client ); #ifndef ___CLIENTSIGNAL_DEFINED___ #define ___CLIENTSIGNAL_DEFINED___ extern Bool ClientSignal ( ClientPtr client ); #endif /* ___CLIENTSIGNAL_DEFINED___ */ extern _X_EXPORT void DeleteFontClientID ( Font id ); extern _X_EXPORT Font GetNewFontClientID ( void ); extern _X_EXPORT int StoreFontClientFont ( FontPtr pfont, Font id ); extern _X_EXPORT void FontFileRegisterFpeFunctions ( void ); extern _X_EXPORT void FontFileCheckRegisterFpeFunctions ( void ); extern Bool XpClientIsBitmapClient ( ClientPtr client ); extern Bool XpClientIsPrintClient( ClientPtr client, FontPathElementPtr fpe ); extern void PrinterFontRegisterFpeFunctions ( void ); extern void fs_register_fpe_functions ( void ); extern void check_fs_register_fpe_functions ( void ); /* util/private.c */ extern FontPtr CreateFontRec (void); extern void DestroyFontRec (FontPtr font); extern Bool _FontSetNewPrivate (FontPtr /* pFont */, int /* n */, void * /* ptr */); extern int AllocateFontPrivateIndex (void); extern void ResetFontPrivateIndex (void); /* Type1/t1funcs.c */ extern void Type1RegisterFontFileFunctions(void); extern void CIDRegisterFontFileFunctions(void); /* Speedo/spfuncs.c */ extern void SpeedoRegisterFontFileFunctions(void); /* FreeType/ftfuncs.c */ extern void FreeTypeRegisterFontFileFunctions(void); #endif xorgproto-2023.2/include/X11/fonts/meson.build0000644000175000017500000000021714443010026016047 00000000000000install_headers( 'font.h', 'fontproto.h', 'fontstruct.h', 'FS.h', 'fsmasks.h', 'FSproto.h', subdir : 'X11/fonts' ) xorgproto-2023.2/include/X11/fonts/font.h0000644000175000017500000001023514443010026015025 00000000000000/*********************************************************** Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. ******************************************************************/ #ifndef FONT_H #define FONT_H #include #ifndef BitmapFormatByteOrderMask #include "fsmasks.h" #endif /* data structures */ #ifndef _XTYPEDEF_FONTPTR typedef struct _Font *FontPtr; #define _XTYPEDEF_FONTPTR #endif typedef struct _FontInfo *FontInfoPtr; typedef struct _FontProp *FontPropPtr; typedef struct _ExtentInfo *ExtentInfoPtr; typedef struct _FontPathElement *FontPathElementPtr; #ifndef _XTYPEDEF_CHARINFOPTR typedef struct _CharInfo *CharInfoPtr; #define _XTYPEDEF_CHARINFOPTR #endif typedef struct _FontNames *FontNamesPtr; typedef struct _FontResolution *FontResolutionPtr; #define NullCharInfo ((CharInfoPtr) 0) #define NullFont ((FontPtr) 0) #define NullFontInfo ((FontInfoPtr) 0) /* draw direction */ #define LeftToRight 0 #define RightToLeft 1 #define BottomToTop 2 #define TopToBottom 3 typedef int DrawDirection; #define NO_SUCH_CHAR -1 #define FontAliasType 0x1000 #define AllocError 80 #define StillWorking 81 #define FontNameAlias 82 #define BadFontName 83 #define Suspended 84 #define Successful 85 #define BadFontPath 86 #define BadCharRange 87 #define BadFontFormat 88 #define FPEResetFailed 89 /* for when an FPE reset won't work */ /* OpenFont flags */ #define FontLoadInfo 0x0001 #define FontLoadProps 0x0002 #define FontLoadMetrics 0x0004 #define FontLoadBitmaps 0x0008 #define FontLoadAll 0x000f #define FontOpenSync 0x0010 #define FontReopen 0x0020 /* Query flags */ #define LoadAll 0x1 #define FinishRamge 0x2 #define EightBitFont 0x4 #define SixteenBitFont 0x8 /* Glyph Caching Modes */ #define CACHING_OFF 0 #define CACHE_16_BIT_GLYPHS 1 #define CACHE_ALL_GLYPHS 2 #define DEFAULT_GLYPH_CACHING_MODE CACHE_16_BIT_GLYPHS extern int glyphCachingMode; struct _Client; extern int StartListFontsWithInfo( struct _Client * /*client*/, int /*length*/, unsigned char * /*pattern*/, int /*max_names*/ ); extern FontNamesPtr MakeFontNamesRecord( unsigned /* size */ ); extern void FreeFontNames( FontNamesPtr /* pFN*/ ); extern int AddFontNamesName( FontNamesPtr /* names */, char * /* name */, int /* length */ ); #if 0 /* unused */ extern int FontToFSError(); extern FontResolutionPtr GetClientResolution(); #endif typedef struct _FontPatternCache *FontPatternCachePtr; extern FontPatternCachePtr MakeFontPatternCache ( void ); extern void FreeFontPatternCache ( FontPatternCachePtr /* cache */ ); extern void EmptyFontPatternCache ( FontPatternCachePtr /* cache */ ); extern void CacheFontPattern ( FontPatternCachePtr /* cache */, const char * /* pattern */, int /* patlen */, FontPtr /* pFont */ ); extern _X_EXPORT FontResolutionPtr GetClientResolutions( int * /* num */ ); extern FontPtr FindCachedFontPattern ( FontPatternCachePtr /* cache */, const char * /* pattern */, int /* patlen */ ); extern void RemoveCachedFontPattern ( FontPatternCachePtr /* cache */, FontPtr /* pFont */ ); typedef enum { Linear8Bit, TwoD8Bit, Linear16Bit, TwoD16Bit } FontEncoding; #endif /* FONT_H */ xorgproto-2023.2/include/X11/fonts/fsmasks.h0000644000175000017500000000763014443010026015533 00000000000000/* * Copyright 1990, 1991 Network Computing Devices; * Portions Copyright 1987 by Digital Equipment Corporation * * 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 names of Network Computing Devices or Digital * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * Network Computing Devices and Digital make no representations * about the suitability of this software for any purpose. It is provided * "as is" without express or implied warranty. * * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES * OR DIGITAL 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. */ /* Portions Copyright 1987, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * masks & values used by the font lib and the font server */ #ifndef _FSMASKS_H_ #define _FSMASKS_H_ #include /* font format macros */ #define BitmapFormatByteOrderMask (1L << 0) #define BitmapFormatBitOrderMask (1L << 1) #define BitmapFormatImageRectMask (3L << 2) #define BitmapFormatScanlinePadMask (3L << 8) #define BitmapFormatScanlineUnitMask (3L << 12) #define BitmapFormatByteOrderLSB (0) #define BitmapFormatByteOrderMSB (1L << 0) #define BitmapFormatBitOrderLSB (0) #define BitmapFormatBitOrderMSB (1L << 1) #define BitmapFormatImageRectMin (0L << 2) #define BitmapFormatImageRectMaxWidth (1L << 2) #define BitmapFormatImageRectMax (2L << 2) #define BitmapFormatScanlinePad8 (0L << 8) #define BitmapFormatScanlinePad16 (1L << 8) #define BitmapFormatScanlinePad32 (2L << 8) #define BitmapFormatScanlinePad64 (3L << 8) #define BitmapFormatScanlineUnit8 (0L << 12) #define BitmapFormatScanlineUnit16 (1L << 12) #define BitmapFormatScanlineUnit32 (2L << 12) #define BitmapFormatScanlineUnit64 (3L << 12) #define BitmapFormatMaskByte (1L << 0) #define BitmapFormatMaskBit (1L << 1) #define BitmapFormatMaskImageRectangle (1L << 2) #define BitmapFormatMaskScanLinePad (1L << 3) #define BitmapFormatMaskScanLineUnit (1L << 4) typedef CARD32 fsBitmapFormat; typedef CARD32 fsBitmapFormatMask; #endif /* _FSMASKS_H_ */ xorgproto-2023.2/include/X11/fonts/FSproto.h0000644000175000017500000004666114443010026015467 00000000000000/* Copyright 1990, 1991, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * Copyright 1990, 1991 Network Computing Devices; * Portions Copyright 1987 by Digital Equipment Corporation * * 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 names of Network Computing Devices, or Digital * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, * OR DIGITAL 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. */ #ifndef _FS_PROTO_H_ #define _FS_PROTO_H_ #include #define sz_fsPropOffset 20 #define sz_fsPropInfo 8 #define sz_fsResolution 6 #define sz_fsChar2b 2 #define sz_fsChar2b_version1 2 #define sz_fsOffset32 8 #define sz_fsRange 4 #define sz_fsXCharInfo 12 #define sz_fsXFontInfoHeader 40 #define sz_fsConnClientPrefix 8 #define sz_fsConnSetup 12 #define sz_fsConnSetupExtra 8 #define sz_fsConnSetupAccept 12 /* request sizes */ #define sz_fsReq 4 #define sz_fsListExtensionsReq 4 #define sz_fsResourceReq 8 #define sz_fsNoopReq 4 #define sz_fsListExtensionReq 4 #define sz_fsQueryExtensionReq 4 #define sz_fsListCataloguesReq 12 #define sz_fsSetCataloguesReq 4 #define sz_fsGetCataloguesReq 4 #define sz_fsSetEventMaskReq 8 #define sz_fsGetEventMaskReq 4 #define sz_fsCreateACReq 8 #define sz_fsFreeACReq 8 #define sz_fsSetAuthorizationReq 8 #define sz_fsSetResolutionReq 4 #define sz_fsGetResolutionReq 4 #define sz_fsListFontsReq 12 #define sz_fsListFontsWithXInfoReq 12 #define sz_fsOpenBitmapFontReq 16 #define sz_fsQueryXInfoReq 8 #define sz_fsQueryXExtents8Req 12 #define sz_fsQueryXExtents16Req 12 #define sz_fsQueryXBitmaps8Req 16 #define sz_fsQueryXBitmaps16Req 16 #define sz_fsCloseReq 8 /* reply sizes */ #define sz_fsReply 8 #define sz_fsGenericReply 8 #define sz_fsListExtensionsReply 8 #define sz_fsQueryExtensionReply 20 #define sz_fsListCataloguesReply 16 #define sz_fsGetCataloguesReply 8 #define sz_fsGetEventMaskReply 12 #define sz_fsCreateACReply 12 #define sz_fsGetResolutionReply 8 #define sz_fsListFontsReply 16 #define sz_fsListFontsWithXInfoReply (12 + sz_fsXFontInfoHeader) #define sz_fsOpenBitmapFontReply 16 #define sz_fsQueryXInfoReply (8 + sz_fsXFontInfoHeader) #define sz_fsQueryXExtents8Reply 12 #define sz_fsQueryXExtents16Reply 12 #define sz_fsQueryXBitmaps8Reply 20 #define sz_fsQueryXBitmaps16Reply 20 #define sz_fsError 16 #define sz_fsEvent 12 #define sz_fsKeepAliveEvent 12 #define fsTrue 1 #define fsFalse 0 /* temp decls */ #define Mask CARD32 #define Font CARD32 #define AccContext CARD32 typedef CARD32 fsTimestamp; #ifdef NOTDEF /* in fsmasks.h */ typedef CARD32 fsBitmapFormat; typedef CARD32 fsBitmapFormatMask; #endif #define sz_fsBitmapFormat 4 typedef struct { INT16 left, right; INT16 width; INT16 ascent, descent; CARD16 attributes; } fsXCharInfo; typedef struct { CARD8 high; CARD8 low; } fsChar2b; typedef struct { CARD8 low; CARD8 high; } fsChar2b_version1; typedef struct { CARD8 min_char_high; CARD8 min_char_low; CARD8 max_char_high; CARD8 max_char_low; } fsRange; typedef struct { CARD32 position; CARD32 length; } fsOffset32; typedef struct { fsOffset32 name; fsOffset32 value; CARD8 type; BYTE pad0; CARD16 pad1; } fsPropOffset; typedef struct { CARD32 num_offsets; CARD32 data_len; /* offsets */ /* data */ } fsPropInfo; typedef struct { CARD16 x_resolution; CARD16 y_resolution; CARD16 point_size; } fsResolution; typedef struct { CARD32 flags; CARD8 char_range_min_char_high; CARD8 char_range_min_char_low; CARD8 char_range_max_char_high; CARD8 char_range_max_char_low; CARD8 draw_direction; CARD8 pad; CARD8 default_char_high; CARD8 default_char_low; INT16 min_bounds_left; INT16 min_bounds_right; INT16 min_bounds_width; INT16 min_bounds_ascent; INT16 min_bounds_descent; CARD16 min_bounds_attributes; INT16 max_bounds_left; INT16 max_bounds_right; INT16 max_bounds_width; INT16 max_bounds_ascent; INT16 max_bounds_descent; CARD16 max_bounds_attributes; INT16 font_ascent; INT16 font_descent; /* propinfo */ } fsXFontInfoHeader; /* requests */ typedef struct { BYTE byteOrder; CARD8 num_auths; CARD16 major_version; CARD16 minor_version; CARD16 auth_len; /* auth data */ } fsConnClientPrefix; typedef struct { CARD16 status; CARD16 major_version; CARD16 minor_version; CARD8 num_alternates; CARD8 auth_index; CARD16 alternate_len; CARD16 auth_len; /* alternates */ /* auth data */ } fsConnSetup; typedef struct { CARD32 length; CARD16 status; CARD16 pad; /* more auth data */ } fsConnSetupExtra; typedef struct { CARD32 length; CARD16 max_request_len; CARD16 vendor_len; CARD32 release_number; /* vendor string */ } fsConnSetupAccept; typedef struct { CARD8 reqType; CARD8 data; CARD16 length; } fsReq; /* * The fsFakeReq structure is never used in the protocol; it is prepended * to incoming packets when setting up a connection so we can index * through InitialVector. To avoid alignment problems, it is padded * to the size of a word on the largest machine this code runs on. * Hence no sz_fsFakeReq constant is necessary. */ typedef struct { CARD8 reqType; CARD8 data; CARD16 length; CARD32 pad; /* to fill out to multiple of 64 bits */ } fsFakeReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Font id; } fsResourceReq; typedef fsReq fsNoopReq; typedef fsReq fsListExtensionsReq; typedef struct { CARD8 reqType; BYTE nbytes; CARD16 length; /* name */ } fsQueryExtensionReq; typedef struct { CARD8 reqType; CARD8 data; CARD16 length; CARD32 maxNames; CARD16 nbytes; CARD16 pad2; /* pattern */ } fsListCataloguesReq; typedef struct { CARD8 reqType; BYTE num_catalogues; CARD16 length; /* catalogues */ } fsSetCataloguesReq; typedef fsReq fsGetCataloguesReq; typedef struct { CARD8 reqType; CARD8 ext_opcode; CARD16 length; Mask event_mask; } fsSetEventMaskReq; typedef struct { CARD8 reqType; CARD8 ext_opcode; CARD16 length; } fsGetEventMaskReq; typedef struct { CARD8 reqType; BYTE num_auths; CARD16 length; AccContext acid; /* auth protocols */ } fsCreateACReq; typedef fsResourceReq fsFreeACReq; typedef fsResourceReq fsSetAuthorizationReq; typedef struct { CARD8 reqType; BYTE num_resolutions; CARD16 length; /* resolutions */ } fsSetResolutionReq; typedef fsReq fsGetResolutionReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; CARD32 maxNames; CARD16 nbytes; CARD16 pad2; /* pattern */ } fsListFontsReq; typedef fsListFontsReq fsListFontsWithXInfoReq; typedef struct { CARD8 reqType; BYTE pad; CARD16 length; Font fid; fsBitmapFormatMask format_mask; fsBitmapFormat format_hint; /* pattern */ } fsOpenBitmapFontReq; typedef fsResourceReq fsQueryXInfoReq; typedef struct { CARD8 reqType; BOOL range; CARD16 length; Font fid; CARD32 num_ranges; /* list of chars */ } fsQueryXExtents8Req; typedef fsQueryXExtents8Req fsQueryXExtents16Req; typedef struct { CARD8 reqType; BOOL range; CARD16 length; Font fid; fsBitmapFormat format; CARD32 num_ranges; /* list of chars */ } fsQueryXBitmaps8Req; typedef fsQueryXBitmaps8Req fsQueryXBitmaps16Req; typedef fsResourceReq fsCloseReq; /* replies */ typedef struct { BYTE type; BYTE data1; CARD16 sequenceNumber; CARD32 length; } fsGenericReply; typedef struct { BYTE type; CARD8 nExtensions; CARD16 sequenceNumber; CARD32 length; /* extension names */ } fsListExtensionsReply; typedef struct { BYTE type; CARD8 present; CARD16 sequenceNumber; CARD32 length; CARD16 major_version; CARD16 minor_version; CARD8 major_opcode; CARD8 first_event; CARD8 num_events; CARD8 first_error; CARD8 num_errors; CARD8 pad1; CARD16 pad2; } fsQueryExtensionReply; typedef struct { BYTE type; BYTE pad; CARD16 sequenceNumber; CARD32 length; CARD32 num_replies; CARD32 num_catalogues; /* catalog names */ } fsListCataloguesReply; typedef struct { BYTE type; CARD8 num_catalogues; CARD16 sequenceNumber; CARD32 length; /* catalogue names */ } fsGetCataloguesReply; typedef struct { BYTE type; BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 event_mask; } fsGetEventMaskReply; typedef struct { BYTE type; CARD8 auth_index; CARD16 sequenceNumber; CARD32 length; CARD16 status; CARD16 pad; /* auth data */ } fsCreateACReply; typedef struct { CARD32 length; CARD16 status; CARD16 pad; /* auth data */ } fsCreateACExtraReply; typedef struct { BYTE type; CARD8 num_resolutions; CARD16 sequenceNumber; CARD32 length; /* resolutions */ } fsGetResolutionReply; typedef struct { BYTE type; BYTE pad1; CARD16 sequenceNumber; CARD32 length; CARD32 following; CARD32 nFonts; /* font names */ } fsListFontsReply; /* * this one is messy. the reply itself is variable length (unknown * number of replies) and the contents of each is variable (unknown * number of properties) * */ typedef struct { BYTE type; CARD8 nameLength; /* 0 is end-of-reply */ CARD16 sequenceNumber; CARD32 length; CARD32 nReplies; CARD32 font_header_flags; CARD8 font_hdr_char_range_min_char_high; CARD8 font_hdr_char_range_min_char_low; CARD8 font_hdr_char_range_max_char_high; CARD8 font_hdr_char_range_max_char_low; CARD8 font_header_draw_direction; CARD8 font_header_pad; CARD8 font_header_default_char_high; CARD8 font_header_default_char_low; INT16 font_header_min_bounds_left; INT16 font_header_min_bounds_right; INT16 font_header_min_bounds_width; INT16 font_header_min_bounds_ascent; INT16 font_header_min_bounds_descent; CARD16 font_header_min_bounds_attributes; INT16 font_header_max_bounds_left; INT16 font_header_max_bounds_right; INT16 font_header_max_bounds_width; INT16 font_header_max_bounds_ascent; INT16 font_header_max_bounds_descent; CARD16 font_header_max_bounds_attributes; INT16 font_header_font_ascent; INT16 font_header_font_descent; /* propinfo */ /* name */ } fsListFontsWithXInfoReply; typedef struct { BYTE type; CARD8 otherid_valid; CARD16 sequenceNumber; CARD32 length; CARD32 otherid; BYTE cachable; BYTE pad1; CARD16 pad2; } fsOpenBitmapFontReply; typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 font_header_flags; CARD8 font_hdr_char_range_min_char_high; CARD8 font_hdr_char_range_min_char_low; CARD8 font_hdr_char_range_max_char_high; CARD8 font_hdr_char_range_max_char_low; CARD8 font_header_draw_direction; CARD8 font_header_pad; CARD8 font_header_default_char_high; CARD8 font_header_default_char_low; INT16 font_header_min_bounds_left; INT16 font_header_min_bounds_right; INT16 font_header_min_bounds_width; INT16 font_header_min_bounds_ascent; INT16 font_header_min_bounds_descent; CARD16 font_header_min_bounds_attributes; INT16 font_header_max_bounds_left; INT16 font_header_max_bounds_right; INT16 font_header_max_bounds_width; INT16 font_header_max_bounds_ascent; INT16 font_header_max_bounds_descent; CARD16 font_header_max_bounds_attributes; INT16 font_header_font_ascent; INT16 font_header_font_descent; /* propinfo */ } fsQueryXInfoReply; typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 num_extents; /* extents */ } fsQueryXExtents8Reply; typedef fsQueryXExtents8Reply fsQueryXExtents16Reply; typedef struct { BYTE type; CARD8 pad0; CARD16 sequenceNumber; CARD32 length; CARD32 replies_hint; CARD32 num_chars; CARD32 nbytes; /* offsets */ /* glyphs */ } fsQueryXBitmaps8Reply; typedef fsQueryXBitmaps8Reply fsQueryXBitmaps16Reply; typedef union { fsGenericReply generic; fsListExtensionsReply extensions; fsGetResolutionReply getres; } fsReply; /* errors */ typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; } fsError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; } fsRequestError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; fsBitmapFormat format; } fsFormatError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; Font fontid; } fsFontError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; fsRange range; } fsRangeError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; Mask event_mask; } fsEventMaskError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; AccContext acid; } fsAccessContextError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; Font fontid; } fsIDChoiceError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; } fsNameError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; fsResolution resolution; } fsResolutionError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; } fsAllocError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; CARD32 bad_length; } fsLengthError; typedef struct { BYTE type; BYTE request; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; CARD8 major_opcode; CARD8 minor_opcode; CARD16 pad; } fsImplementationError; /* events */ typedef struct { BYTE type; BYTE event_code; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; } fsKeepAliveEvent; typedef struct { BYTE type; BYTE event_code; CARD16 sequenceNumber; CARD32 length; fsTimestamp timestamp; BOOL added; BOOL deleted; CARD16 pad; } fsCatalogueChangeNotifyEvent; typedef fsCatalogueChangeNotifyEvent fsFontChangeNotifyEvent; typedef fsCatalogueChangeNotifyEvent fsEvent; /* reply codes */ #define FS_Reply 0 /* normal reply */ #define FS_Error 1 /* error */ #define FS_Event 2 /* request codes */ #define FS_Noop 0 #define FS_ListExtensions 1 #define FS_QueryExtension 2 #define FS_ListCatalogues 3 #define FS_SetCatalogues 4 #define FS_GetCatalogues 5 #define FS_SetEventMask 6 #define FS_GetEventMask 7 #define FS_CreateAC 8 #define FS_FreeAC 9 #define FS_SetAuthorization 10 #define FS_SetResolution 11 #define FS_GetResolution 12 #define FS_ListFonts 13 #define FS_ListFontsWithXInfo 14 #define FS_OpenBitmapFont 15 #define FS_QueryXInfo 16 #define FS_QueryXExtents8 17 #define FS_QueryXExtents16 18 #define FS_QueryXBitmaps8 19 #define FS_QueryXBitmaps16 20 #define FS_CloseFont 21 /* restore decls */ #undef Mask #undef Font #undef AccContext #endif /* _FS_PROTO_H_ */ xorgproto-2023.2/include/X11/fonts/FS.h0000644000175000017500000000775414443010026014403 00000000000000/* * Copyright 1990, 1991 Network Computing Devices; * Portions Copyright 1987 by Digital Equipment Corporation * * 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 names of Network Computing Devices or Digital * not be used in advertising or publicity pertaining to distribution * of the software without specific, written prior permission. * Network Computing Devices and Digital make no representations * about the suitability of this software for any purpose. It is provided * "as is" without express or implied warranty. * * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES * OR DIGITAL 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. */ /* Portions Copyright 1987, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ #ifndef _FS_H_ #define _FS_H_ #include #include #define FS_PROTOCOL 2 #define FS_PROTOCOL_MINOR 0 #ifndef X_PROTOCOL /* protocol families */ #define FamilyInternet 0 #define FamilyDECnet 1 #define FamilyChaos 2 #define FamilyInternet6 6 typedef unsigned int FSDrawDirection; #endif #ifndef None #define None 0L #endif #define LeftToRightDrawDirection 0 #define RightToLeftDrawDirection 1 /* font info flags */ #define FontInfoAllCharsExist (1L << 0) #define FontInfoInkInside (1L << 1) #define FontInfoHorizontalOverlap (1L << 2) /* auth status flags */ #define AuthSuccess 0 #define AuthContinue 1 #define AuthBusy 2 #define AuthDenied 3 /* property types */ #define PropTypeString 0 #define PropTypeUnsigned 1 #define PropTypeSigned 2 #ifndef LSBFirst /* byte order */ #define LSBFirst 0 #define MSBFirst 1 #endif /* event masks */ #define CatalogueChangeNotifyMask (1L << 0) #define FontChangeNotifyMask (1L << 1) /* errors */ #define FSSuccess -1 #define FSBadRequest 0 #define FSBadFormat 1 #define FSBadFont 2 #define FSBadRange 3 #define FSBadEventMask 4 #define FSBadAccessContext 5 #define FSBadIDChoice 6 #define FSBadName 7 #define FSBadResolution 8 #define FSBadAlloc 9 #define FSBadLength 10 #define FSBadImplementation 11 #define FirstExtensionError 128 #define LastExtensionError 255 /* events */ #define KeepAlive 0 #define CatalogueChangeNotify 1 #define FontChangeNotify 2 #define FSLASTEvent 3 #endif /* _FS_H_ */ xorgproto-2023.2/include/X11/Xarch.h0000644000175000017500000000560714443010026014002 00000000000000#ifndef _XARCH_H_ # define _XARCH_H_ /* * Copyright 1997 Metro Link Incorporated * * All Rights Reserved * * 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 names of the above listed copyright holder(s) * not be used in advertising or publicity pertaining to distribution of * the software without specific, written prior permission. The above listed * copyright holder(s) make(s) no representations about the suitability of * this software for any purpose. It is provided "as is" without express or * implied warranty. * * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) 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. */ /* * Determine the machine's byte order. */ /* See if it is set in the imake config first */ # ifdef X_BYTE_ORDER # define X_BIG_ENDIAN 4321 # define X_LITTLE_ENDIAN 1234 # else # if defined(SVR4) || defined(__SVR4) # include # include # elif defined(CSRG_BASED) # if defined(__NetBSD__) || defined(__OpenBSD__) # include # endif # include # elif defined(linux) # if defined __STRICT_ANSI__ # undef __STRICT_ANSI__ # include # define __STRICT_ANSI__ # else # include # endif /* 'endian.h' might have been included before 'Xarch.h' */ # if !defined(LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN) # define LITTLE_ENDIAN __LITTLE_ENDIAN # endif # if !defined(BIG_ENDIAN) && defined(__BIG_ENDIAN) # define BIG_ENDIAN __BIG_ENDIAN # endif # if !defined(PDP_ENDIAN) && defined(__PDP_ENDIAN) # define PDP_ENDIAN __PDP_ENDIAN # endif # if !defined(BYTE_ORDER) && defined(__BYTE_ORDER) # define BYTE_ORDER __BYTE_ORDER # endif # endif # ifndef BYTE_ORDER # define LITTLE_ENDIAN 1234 # define BIG_ENDIAN 4321 # if defined(__sun) && defined(__SVR4) # include # ifdef _LITTLE_ENDIAN # define BYTE_ORDER LITTLE_ENDIAN # endif # ifdef _BIG_ENDIAN # define BYTE_ORDER BIG_ENDIAN # endif # endif /* sun */ # endif /* BYTE_ORDER */ # define X_BYTE_ORDER BYTE_ORDER # define X_BIG_ENDIAN BIG_ENDIAN # define X_LITTLE_ENDIAN LITTLE_ENDIAN # endif /* not in imake config */ #endif /* _XARCH_H_ */ xorgproto-2023.2/include/X11/Xos_r.h0000644000175000017500000010163514443010026014025 00000000000000/* Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ /* * Various and sundry Thread-Safe functions used by X11, Motif, and CDE. * * Use this file in MT-safe code where you would have included * for readdir() * for getgrgid() or getgrnam() * for gethostbyname(), gethostbyaddr(), or getservbyname() * for getpwnam() or getpwuid() * for strtok() * for asctime(), ctime(), localtime(), or gmtime() * for getlogin() or ttyname() * or their thread-safe analogs. * * If you are on a platform that defines XTHREADS but does not have * MT-safe system API (e.g. UnixWare) you must define _Xos_processLock * and _Xos_processUnlock macros before including this header. * * For convenience XOS_USE_XLIB_LOCKING or XOS_USE_XT_LOCKING may be defined * to obtain either Xlib-only or Xt-based versions of these macros. These * macros won't result in truly thread-safe calls, but they are better than * nothing. If you do not want locking in this situation define * XOS_USE_NO_LOCKING. * * NOTE: On systems lacking appropriate _r functions Gethostbyname(), * Gethostbyaddr(), and Getservbyname() do NOT copy the host or * protocol lists! * * NOTE: On systems lacking appropriate _r functions Getgrgid() and * Getgrnam() do NOT copy the list of group members! * * This header is nominally intended to simplify porting X11, Motif, and * CDE; it may be useful to other people too. The structure below is * complicated, mostly because P1003.1c (the IEEE POSIX Threads spec) * went through lots of drafts, and some vendors shipped systems based * on draft API that were changed later. Unfortunately POSIX did not * provide a feature-test macro for distinguishing each of the drafts. */ /* * This header has several parts. Search for "Effective prototypes" * to locate the beginning of a section. */ /* This header can be included multiple times with different defines! */ #ifndef _XOS_R_H_ # define _XOS_R_H_ # include # include # ifndef X_NOT_POSIX # ifdef _POSIX_SOURCE # include # else # define _POSIX_SOURCE # include # undef _POSIX_SOURCE # endif # ifndef LINE_MAX # define X_LINE_MAX 2048 # else # define X_LINE_MAX LINE_MAX # endif # endif #endif /* _XOS_R_H */ #ifndef WIN32 #ifdef __cplusplus extern "C" { #endif # if defined(XOS_USE_XLIB_LOCKING) # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ typedef struct _LockInfoRec *LockInfoPtr; extern LockInfoPtr _Xglobal_lock; # endif # ifndef _Xos_isThreadInitialized # define _Xos_isThreadInitialized (_Xglobal_lock) # endif # if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ # include /* for NeedFunctionPrototypes */ extern void (*_XLockMutex_fn)( # if NeedFunctionPrototypes LockInfoPtr /* lock */, char * /* file */, int /* line */ # endif ); extern void (*_XUnlockMutex_fn)( # if NeedFunctionPrototypes LockInfoPtr /* lock */, char * /* file */, int /* line */ # endif ); # endif # ifndef _Xos_processLock # define _Xos_processLock \ (_XLockMutex_fn ? (*_XLockMutex_fn)(_Xglobal_lock,__FILE__,__LINE__) : 0) # endif # ifndef _Xos_processUnlock # define _Xos_processUnlock \ (_XUnlockMutex_fn ? (*_XUnlockMutex_fn)(_Xglobal_lock,__FILE__,__LINE__) : 0) # endif # else # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ # include /* for NeedFunctionPrototypes */ extern void (*_XLockMutex_fn)( # if NeedFunctionPrototypes LockInfoPtr /* lock */ # endif ); extern void (*_XUnlockMutex_fn)( # if NeedFunctionPrototypes LockInfoPtr /* lock */ # endif ); # endif # ifndef _Xos_processLock # define _Xos_processLock \ (_XLockMutex_fn ? ((*_XLockMutex_fn)(_Xglobal_lock), 0) : 0) # endif # ifndef _Xos_processUnlock # define _Xos_processUnlock \ (_XUnlockMutex_fn ? ((*_XUnlockMutex_fn)(_Xglobal_lock), 0) : 0) # endif # endif # elif defined(XOS_USE_XT_LOCKING) # ifndef _XtThreadsI_h extern void (*_XtProcessLock)(void); # endif # ifndef _XtintrinsicP_h # include /* for NeedFunctionPrototypes */ extern void XtProcessLock( # if NeedFunctionPrototypes void # endif ); extern void XtProcessUnlock( # if NeedFunctionPrototypes void # endif ); # endif # ifndef _Xos_isThreadInitialized # define _Xos_isThreadInitialized _XtProcessLock # endif # ifndef _Xos_processLock # define _Xos_processLock XtProcessLock() # endif # ifndef _Xos_processUnlock # define _Xos_processUnlock XtProcessUnlock() # endif # elif defined(XOS_USE_NO_LOCKING) # ifndef _Xos_isThreadInitialized # define _Xos_isThreadInitialized 0 # endif # ifndef _Xos_processLock # define _Xos_processLock 0 # endif # ifndef _Xos_processUnlock # define _Xos_processUnlock 0 # endif # endif #endif /* !defined WIN32 */ /* * Solaris defines the POSIX thread-safe feature test macro, but * uses the older SVR4 thread-safe functions unless the POSIX ones * are specifically requested. Fix the feature test macro. */ #if defined(__sun) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && \ (_POSIX_C_SOURCE - 0 < 199506L) && !defined(_POSIX_PTHREAD_SEMANTICS) # undef _POSIX_THREAD_SAFE_FUNCTIONS #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * #define X_INCLUDE_PWD_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xgetpwparams; * * struct passwd* _XGetpwnam(const char *name, _Xgetpwparams); * struct passwd* _XGetpwuid(uid_t uid, _Xgetpwparams); */ #if defined(X_INCLUDE_PWD_H) && !defined(_XOS_INCLUDED_PWD_H) # include # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_PWDAPI) # define XOS_USE_MTSAFE_PWDAPI 1 # endif #endif #undef X_NEEDS_PWPARAMS #if !defined(X_INCLUDE_PWD_H) || defined(_XOS_INCLUDED_PWD_H) /* Do nothing */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ # if defined(X_NOT_POSIX) && !defined(__i386__) && !defined(SYSV) extern struct passwd *getpwuid(), *getpwnam(); # endif typedef int _Xgetpwparams; /* dummy */ # define _XGetpwuid(u,p) getpwuid((u)) # define _XGetpwnam(u,p) getpwnam((u)) #elif !defined(XOS_USE_MTSAFE_PWDAPI) || defined(XNO_MTSAFE_PWDAPI) /* UnixWare 2.0, or other systems with thread support but no _r API. */ # define X_NEEDS_PWPARAMS typedef struct { struct passwd pws; char pwbuf[1024]; struct passwd* pwp; size_t len; } _Xgetpwparams; /* * NetBSD and FreeBSD, at least, are missing several of the unixware passwd * fields. */ #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ defined(__APPLE__) || defined(__DragonFly__) static __inline__ void _Xpw_copyPasswd(_Xgetpwparams p) { memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)); (p).pws.pw_name = (p).pwbuf; (p).len = strlen((p).pwp->pw_name); strcpy((p).pws.pw_name, (p).pwp->pw_name); (p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1; (p).len = strlen((p).pwp->pw_passwd); strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd); (p).pws.pw_class = (p).pws.pw_passwd + (p).len + 1; (p).len = strlen((p).pwp->pw_class); strcpy((p).pws.pw_class, (p).pwp->pw_class); (p).pws.pw_gecos = (p).pws.pw_class + (p).len + 1; (p).len = strlen((p).pwp->pw_gecos); strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos); (p).pws.pw_dir = (p).pws.pw_gecos + (p).len + 1; (p).len = strlen((p).pwp->pw_dir); strcpy((p).pws.pw_dir, (p).pwp->pw_dir); (p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1; (p).len = strlen((p).pwp->pw_shell); strcpy((p).pws.pw_shell, (p).pwp->pw_shell); (p).pwp = &(p).pws; } #else # define _Xpw_copyPasswd(p) \ (memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)), \ ((p).pws.pw_name = (p).pwbuf), \ ((p).len = strlen((p).pwp->pw_name)), \ strcpy((p).pws.pw_name, (p).pwp->pw_name), \ ((p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_passwd)), \ strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd), \ ((p).pws.pw_age = (p).pws.pw_passwd + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_age)), \ strcpy((p).pws.pw_age, (p).pwp->pw_age), \ ((p).pws.pw_comment = (p).pws.pw_age + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_comment)), \ strcpy((p).pws.pw_comment, (p).pwp->pw_comment), \ ((p).pws.pw_gecos = (p).pws.pw_comment + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_gecos)), \ strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos), \ ((p).pws.pw_dir = (p).pws.pw_comment + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_dir)), \ strcpy((p).pws.pw_dir, (p).pwp->pw_dir), \ ((p).pws.pw_shell = (p).pws.pw_dir + (p).len + 1), \ ((p).len = strlen((p).pwp->pw_shell)), \ strcpy((p).pws.pw_shell, (p).pwp->pw_shell), \ ((p).pwp = &(p).pws), \ 0 ) #endif # define _XGetpwuid(u,p) \ ( (_Xos_processLock), \ (((p).pwp = getpwuid((u))) ? _Xpw_copyPasswd(p), 0 : 0), \ (_Xos_processUnlock), \ (p).pwp ) # define _XGetpwnam(u,p) \ ( (_Xos_processLock), \ (((p).pwp = getpwnam((u))) ? _Xpw_copyPasswd(p), 0 : 0), \ (_Xos_processUnlock), \ (p).pwp ) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(__APPLE__) # define X_NEEDS_PWPARAMS typedef struct { struct passwd pws; char pwbuf[X_LINE_MAX]; } _Xgetpwparams; # if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) # define _XGetpwuid(u,p) \ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # define _XGetpwnam(u,p) \ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) # else /* SVR4 */ # define _XGetpwuid(u,p) \ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) # define _XGetpwnam(u,p) \ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) # endif /* SVR4 */ #else /* _POSIX_THREAD_SAFE_FUNCTIONS */ # define X_NEEDS_PWPARAMS typedef struct { struct passwd pws; char pwbuf[X_LINE_MAX]; struct passwd* pwp; } _Xgetpwparams; typedef int _Xgetpwret; # define _XGetpwuid(u,p) \ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \ (p).pwp : NULL) # define _XGetpwnam(u,p) \ ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf),&(p).pwp) == 0) ? \ (p).pwp : NULL) #endif /* X_INCLUDE_PWD_H */ #if defined(X_INCLUDE_PWD_H) && !defined(_XOS_INCLUDED_PWD_H) # define _XOS_INCLUDED_PWD_H #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * NOTE: On systems lacking the appropriate _r functions Gethostbyname(), * Gethostbyaddr(), and Getservbyname() do NOT copy the host or * protocol lists! * * #define X_INCLUDE_NETDB_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xgethostbynameparams; * typedef ... _Xgetservbynameparams; * * struct hostent* _XGethostbyname(const char* name,_Xgethostbynameparams); * struct hostent* _XGethostbyaddr(const char* addr, int len, int type, * _Xgethostbynameparams); * struct servent* _XGetservbyname(const char* name, const char* proto, * _Xgetservbynameparams); */ #undef XTHREADS_NEEDS_BYNAMEPARAMS #if defined(X_INCLUDE_NETDB_H) && !defined(_XOS_INCLUDED_NETDB_H) \ && !defined(WIN32) # include # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_NETDBAPI) # define XOS_USE_MTSAFE_NETDBAPI 1 # endif #endif #if !defined(X_INCLUDE_NETDB_H) || defined(_XOS_INCLUDED_NETDB_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xgethostbynameparams; /* dummy */ typedef int _Xgetservbynameparams; /* dummy */ # define _XGethostbyname(h,hp) gethostbyname((h)) # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t)) # define _XGetservbyname(s,p,sp) getservbyname((s),(p)) #elif !defined(XOS_USE_MTSAFE_NETDBAPI) || defined(XNO_MTSAFE_NETDBAPI) /* WARNING: The h_addr_list and s_aliases values are *not* copied! */ #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) #include #endif typedef struct { struct hostent hent; char h_name[MAXHOSTNAMELEN]; struct hostent *hptr; } _Xgethostbynameparams; typedef struct { struct servent sent; char s_name[255]; char s_proto[255]; struct servent *sptr; } _Xgetservbynameparams; # define XTHREADS_NEEDS_BYNAMEPARAMS # define _Xg_copyHostent(hp) \ (memcpy(&(hp).hent, (hp).hptr, sizeof(struct hostent)), \ strcpy((hp).h_name, (hp).hptr->h_name), \ ((hp).hent.h_name = (hp).h_name), \ ((hp).hptr = &(hp).hent), \ 0 ) # define _Xg_copyServent(sp) \ (memcpy(&(sp).sent, (sp).sptr, sizeof(struct servent)), \ strcpy((sp).s_name, (sp).sptr->s_name), \ ((sp).sent.s_name = (sp).s_name), \ strcpy((sp).s_proto, (sp).sptr->s_proto), \ ((sp).sent.s_proto = (sp).s_proto), \ ((sp).sptr = &(sp).sent), \ 0 ) # define _XGethostbyname(h,hp) \ ((_Xos_processLock), \ (((hp).hptr = gethostbyname((h))) ? _Xg_copyHostent(hp) : 0), \ (_Xos_processUnlock), \ (hp).hptr ) # define _XGethostbyaddr(a,al,t,hp) \ ((_Xos_processLock), \ (((hp).hptr = gethostbyaddr((a),(al),(t))) ? _Xg_copyHostent(hp) : 0), \ (_Xos_processUnlock), \ (hp).hptr ) # define _XGetservbyname(s,p,sp) \ ((_Xos_processLock), \ (((sp).sptr = getservbyname((s),(p))) ? _Xg_copyServent(sp) : 0), \ (_Xos_processUnlock), \ (sp).sptr ) #elif defined(XUSE_NETDB_R_API) /* * POSIX does not specify _r equivalents for API, but some * vendors provide them anyway. Use them only when explicitly asked. */ # ifdef _POSIX_REENTRANT_FUNCTIONS # ifndef _POSIX_THREAD_SAFE_FUNCTIONS # endif # endif # ifdef _POSIX_THREAD_SAFE_FUNCTIONS # define X_POSIX_THREAD_SAFE_FUNCTIONS 1 # endif # define XTHREADS_NEEDS_BYNAMEPARAMS # ifndef X_POSIX_THREAD_SAFE_FUNCTIONS typedef struct { struct hostent hent; char hbuf[X_LINE_MAX]; int herr; } _Xgethostbynameparams; typedef struct { struct servent sent; char sbuf[X_LINE_MAX]; } _Xgetservbynameparams; # define _XGethostbyname(h,hp) \ gethostbyname_r((h),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr) # define _XGethostbyaddr(a,al,t,hp) \ gethostbyaddr_r((a),(al),(t),&(hp).hent,(hp).hbuf,sizeof((hp).hbuf),&(hp).herr) # define _XGetservbyname(s,p,sp) \ getservbyname_r((s),(p),&(sp).sent,(sp).sbuf,sizeof((sp).sbuf)) # else typedef struct { struct hostent hent; struct hostent_data hdata; } _Xgethostbynameparams; typedef struct { struct servent sent; struct servent_data sdata; } _Xgetservbynameparams; # define _XGethostbyname(h,hp) \ (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \ ((gethostbyname_r((h),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent)) # define _XGethostbyaddr(a,al,t,hp) \ (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \ ((gethostbyaddr_r((a),(al),(t),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent)) # define _XGetservbyname(s,p,sp) \ (bzero((char*)&(sp).sdata,sizeof((sp).sdata)), \ ((getservbyname_r((s),(p),&(sp).sent,&(sp).sdata) == -1) ? NULL : &(sp).sent) ) # endif # ifdef X_POSIX_THREAD_SAFE_FUNCTIONS # undef X_POSIX_THREAD_SAFE_FUNCTIONS # endif #else /* The regular API is assumed to be MT-safe under POSIX. */ typedef int _Xgethostbynameparams; /* dummy */ typedef int _Xgetservbynameparams; /* dummy */ # define _XGethostbyname(h,hp) gethostbyname((h)) # define _XGethostbyaddr(a,al,t,hp) gethostbyaddr((a),(al),(t)) # define _XGetservbyname(s,p,sp) getservbyname((s),(p)) #endif /* X_INCLUDE_NETDB_H */ #if defined(X_INCLUDE_NETDB_H) && !defined(_XOS_INCLUDED_NETDB_H) # define _XOS_INCLUDED_NETDB_H #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * #define X_INCLUDE_DIRENT_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xreaddirparams; * * struct dirent *_XReaddir(DIR *dir_pointer, _Xreaddirparams); */ #if defined(X_INCLUDE_DIRENT_H) && !defined(_XOS_INCLUDED_DIRENT_H) # include # if !defined(X_NOT_POSIX) || defined(SYSV) # include # else # include # ifndef dirent # define dirent direct # endif # endif # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_DIRENTAPI) # define XOS_USE_MTSAFE_DIRENTAPI 1 # endif #endif #if !defined(X_INCLUDE_DIRENT_H) || defined(_XOS_INCLUDED_DIRENT_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xreaddirparams; /* dummy */ # define _XReaddir(d,p) readdir(d) #elif !defined(XOS_USE_MTSAFE_DIRENTAPI) || defined(XNO_MTSAFE_DIRENTAPI) /* Systems with thread support but no _r API. */ typedef struct { struct dirent *result; struct dirent dir_entry; # ifdef _POSIX_PATH_MAX char buf[_POSIX_PATH_MAX]; # elif defined(NAME_MAX) char buf[NAME_MAX]; # else char buf[255]; # endif } _Xreaddirparams; # define _XReaddir(d,p) \ ( (_Xos_processLock), \ (((p).result = readdir((d))) ? \ (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \ ((p).result = &(p).dir_entry), 0) : \ 0), \ (_Xos_processUnlock), \ (p).result ) #else typedef struct { struct dirent *result; struct dirent dir_entry; # ifdef _POSIX_PATH_MAX char buf[_POSIX_PATH_MAX]; # elif defined(NAME_MAX) char buf[NAME_MAX]; # else char buf[255]; # endif } _Xreaddirparams; # if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(__APPLE__) /* POSIX final API, returns (int)0 on success. */ # define _XReaddir(d,p) \ (readdir_r((d), &((p).dir_entry), &((p).result)) ? NULL : (p).result) # elif defined(_POSIX_REENTRANT_FUNCTIONS) /* POSIX draft API, returns (int)0 on success. */ # define _XReaddir(d,p) \ (readdir_r((d),&((p).dir_entry)) ? NULL : &((p).dir_entry)) # elif defined(SVR4) /* Pre-POSIX API, returns non-NULL on success. */ # define _XReaddir(d,p) (readdir_r((d), &(p).dir_entry)) # else /* We have no idea what is going on. Fake it all using process locks. */ # define _XReaddir(d,p) \ ( (_Xos_processLock), \ (((p).result = readdir((d))) ? \ (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \ ((p).result = &(p).dir_entry), 0) : \ 0), \ (_Xos_processUnlock), \ (p).result ) # endif #endif /* X_INCLUDE_DIRENT_H */ #if defined(X_INCLUDE_DIRENT_H) && !defined(_XOS_INCLUDED_DIRENT_H) # define _XOS_INCLUDED_DIRENT_H #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * #define X_INCLUDE_UNISTD_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xgetloginparams; * typedef ... _Xttynameparams; * * char *_XGetlogin(_Xgetloginparams); * char *_XTtyname(int, _Xttynameparams); */ #if defined(X_INCLUDE_UNISTD_H) && !defined(_XOS_INCLUDED_UNISTD_H) /* already included by */ # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_UNISTDAPI) # define XOS_USE_MTSAFE_UNISTDAPI 1 # endif #endif #if !defined(X_INCLUDE_UNISTD_H) || defined(_XOS_INCLUDED_UNISTD_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xgetloginparams; /* dummy */ typedef int _Xttynameparams; /* dummy */ # define _XGetlogin(p) getlogin() # define _XTtyname(f) ttyname((f)) #elif !defined(XOS_USE_MTSAFE_UNISTDAPI) || defined(XNO_MTSAFE_UNISTDAPI) /* Systems with thread support but no _r API. */ typedef struct { char *result; # if defined(MAXLOGNAME) char buf[MAXLOGNAME]; # elif defined(LOGIN_NAME_MAX) char buf[LOGIN_NAME_MAX]; # else char buf[64]; # endif } _Xgetloginparams; typedef struct { char *result; # ifdef TTY_NAME_MAX char buf[TTY_NAME_MAX]; # elif defined(_POSIX_TTY_NAME_MAX) char buf[_POSIX_TTY_NAME_MAX]; # elif defined(_POSIX_PATH_MAX) char buf[_POSIX_PATH_MAX]; # else char buf[256]; # endif } _Xttynameparams; # define _XGetlogin(p) \ ( (_Xos_processLock), \ (((p).result = getlogin()) ? \ (strncpy((p).buf, (p).result, sizeof((p).buf)), \ ((p).buf[sizeof((p).buf)-1] = '\0'), \ ((p).result = (p).buf), 0) : 0), \ (_Xos_processUnlock), \ (p).result ) #define _XTtyname(f,p) \ ( (_Xos_processLock), \ (((p).result = ttyname(f)) ? \ (strncpy((p).buf, (p).result, sizeof((p).buf)), \ ((p).buf[sizeof((p).buf)-1] = '\0'), \ ((p).result = (p).buf), 0) : 0), \ (_Xos_processUnlock), \ (p).result ) #elif defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_POSIX_REENTRANT_FUNCTIONS) /* POSIX API. * * extern int getlogin_r(char *, size_t); * extern int ttyname_r(int, char *, size_t); */ typedef struct { # if defined(MAXLOGNAME) char buf[MAXLOGNAME]; # elif defined(LOGIN_NAME_MAX) char buf[LOGIN_NAME_MAX]; # else char buf[64]; # endif } _Xgetloginparams; typedef struct { # ifdef TTY_NAME_MAX char buf[TTY_NAME_MAX]; # elif defined(_POSIX_TTY_NAME_MAX) char buf[_POSIX_TTY_NAME_MAX]; # elif defined(_POSIX_PATH_MAX) char buf[_POSIX_PATH_MAX]; # else char buf[256]; # endif } _Xttynameparams; # define _XGetlogin(p) (getlogin_r((p).buf, sizeof((p).buf)) ? NULL : (p).buf) # define _XTtyname(f,p) \ (ttyname_r((f), (p).buf, sizeof((p).buf)) ? NULL : (p).buf) #else /* Pre-POSIX API. * * extern char *getlogin_r(char *, size_t); * extern char *ttyname_r(int, char *, size_t); */ typedef struct { # if defined(MAXLOGNAME) char buf[MAXLOGNAME]; # elif defined(LOGIN_NAME_MAX) char buf[LOGIN_NAME_MAX]; # else char buf[64]; # endif } _Xgetloginparams; typedef struct { # ifdef TTY_NAME_MAX char buf[TTY_NAME_MAX]; # elif defined(_POSIX_TTY_NAME_MAX) char buf[_POSIX_TTY_NAME_MAX]; # elif defined(_POSIX_PATH_MAX) char buf[_POSIX_PATH_MAX]; # else char buf[256]; # endif } _Xttynameparams; # define _XGetlogin(p) getlogin_r((p).buf, sizeof((p).buf)) # define _XTtyname(f,p) ttyname_r((f), (p).buf, sizeof((p).buf)) #endif /* X_INCLUDE_UNISTD_H */ #if defined(X_INCLUDE_UNISTD_H) && !defined(_XOS_INCLUDED_UNISTD_H) # define _XOS_INCLUDED_UNISTD_H #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * #define X_INCLUDE_STRING_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xstrtokparams; * * char *_XStrtok(char *, const char*, _Xstrtokparams); */ #if defined(X_INCLUDE_STRING_H) && !defined(_XOS_INCLUDED_STRING_H) /* has already been included by */ # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_STRINGAPI) # define XOS_USE_MTSAFE_STRINGAPI 1 # endif #endif #if !defined(X_INCLUDE_STRING_H) || defined(_XOS_INCLUDED_STRING_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xstrtokparams; /* dummy */ # define _XStrtok(s1,s2,p) \ ( p = 0, (void)p, strtok((s1),(s2)) ) #elif !defined(XOS_USE_MTSAFE_STRINGAPI) || defined(XNO_MTSAFE_STRINGAPI) /* Systems with thread support but no _r API. */ typedef char *_Xstrtokparams; # define _XStrtok(s1,s2,p) \ ( (_Xos_processLock), \ ((p) = strtok((s1),(s2))), \ (_Xos_processUnlock), \ (p) ) #else /* POSIX or pre-POSIX API. */ typedef char * _Xstrtokparams; # define _XStrtok(s1,s2,p) strtok_r((s1),(s2),&(p)) #endif /* X_INCLUDE_STRING_H */ /***** wrappers *****/ /* * Effective prototypes for wrappers: * * #define X_INCLUDE_TIME_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xatimeparams; * typedef ... _Xctimeparams; * typedef ... _Xgtimeparams; * typedef ... _Xltimeparams; * * char *_XAsctime(const struct tm *, _Xatimeparams); * char *_XCtime(const time_t *, _Xctimeparams); * struct tm *_XGmtime(const time_t *, _Xgtimeparams); * struct tm *_XLocaltime(const time_t *, _Xltimeparams); */ #if defined(X_INCLUDE_TIME_H) && !defined(_XOS_INCLUDED_TIME_H) # include # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_TIMEAPI) # define XOS_USE_MTSAFE_TIMEAPI 1 # endif #endif #if !defined(X_INCLUDE_TIME_H) || defined(_XOS_INCLUDED_TIME_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xatimeparams; /* dummy */ # define _XAsctime(t,p) asctime((t)) typedef int _Xctimeparams; /* dummy */ # define _XCtime(t,p) ctime((t)) typedef int _Xgtimeparams; /* dummy */ # define _XGmtime(t,p) gmtime((t)) typedef int _Xltimeparams; /* dummy */ # define _XLocaltime(t,p) localtime((t)) #elif !defined(XOS_USE_MTSAFE_TIMEAPI) || defined(XNO_MTSAFE_TIMEAPI) /* Systems with thread support but no _r API. */ typedef struct { # ifdef TIMELEN char buf[TIMELEN]; # else char buf[26]; # endif char *result; } _Xctimeparams, _Xatimeparams; typedef struct { struct tm buf; struct tm *result; } _Xgtimeparams, _Xltimeparams; # define _XAsctime(t,p) \ ( (_Xos_processLock), \ (((p).result = asctime((t))) ? \ (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ 0), \ (_Xos_processUnlock), \ (p).result ) # define _XCtime(t,p) \ ( (_Xos_processLock), \ (((p).result = ctime((t))) ? \ (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ 0), \ (_Xos_processUnlock), \ (p).result ) # define _XGmtime(t,p) \ ( (_Xos_processLock), \ (((p).result = gmtime(t)) ? \ (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ 0), \ (_Xos_processUnlock), \ (p).result ) # define _XLocaltime(t,p) \ ( (_Xos_processLock), \ (((p).result = localtime(t)) ? \ (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \ 0), \ (_Xos_processUnlock), \ (p).result ) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(hpV4) /* Returns (int)0 on success. * * extern int asctime_r(const struct tm *timeptr, char *buffer, int buflen); * extern int ctime_r(const time_t *timer, char *buffer, int buflen); * extern int gmtime_r(const time_t *timer, struct tm *result); * extern int localtime_r(const time_t *timer, struct tm *result); */ # ifdef TIMELEN typedef char _Xatimeparams[TIMELEN]; typedef char _Xctimeparams[TIMELEN]; # else typedef char _Xatimeparams[26]; typedef char _Xctimeparams[26]; # endif typedef struct tm _Xgtimeparams; typedef struct tm _Xltimeparams; # define _XAsctime(t,p) (asctime_r((t),(p),sizeof((p))) ? NULL : (p)) # define _XCtime(t,p) (ctime_r((t),(p),sizeof((p))) ? NULL : (p)) # define _XGmtime(t,p) (gmtime_r((t),&(p)) ? NULL : &(p)) # define _XLocaltime(t,p) (localtime_r((t),&(p)) ? NULL : &(p)) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(__sun) /* Returns NULL on failure. Solaris 2.5 * * extern char *asctime_r(const struct tm *tm,char *buf, int buflen); * extern char *ctime_r(const time_t *clock, char *buf, int buflen); * extern struct tm *gmtime_r(const time_t *clock, struct tm *res); * extern struct tm *localtime_r(const time_t *clock, struct tm *res); */ # ifdef TIMELEN typedef char _Xatimeparams[TIMELEN]; typedef char _Xctimeparams[TIMELEN]; # else typedef char _Xatimeparams[26]; typedef char _Xctimeparams[26]; # endif typedef struct tm _Xgtimeparams; typedef struct tm _Xltimeparams; # define _XAsctime(t,p) asctime_r((t),(p),sizeof((p))) # define _XCtime(t,p) ctime_r((t),(p),sizeof((p))) # define _XGmtime(t,p) gmtime_r((t),&(p)) # define _XLocaltime(t,p) localtime_r((t),&(p)) #else /* defined(_POSIX_THREAD_SAFE_FUNCTIONS) */ /* POSIX final API. * extern char *asctime_r(const struct tm *timeptr, char *buffer); * extern char *ctime_r(const time_t *timer, char *buffer); * extern struct tm *gmtime_r(const time_t *timer, struct tm *result); * extern struct tm *localtime_r(const time_t *timer, struct tm *result); */ # ifdef TIMELEN typedef char _Xatimeparams[TIMELEN]; typedef char _Xctimeparams[TIMELEN]; # else typedef char _Xatimeparams[26]; typedef char _Xctimeparams[26]; # endif typedef struct tm _Xgtimeparams; typedef struct tm _Xltimeparams; # define _XAsctime(t,p) asctime_r((t),(p)) # define _XCtime(t,p) ctime_r((t),(p)) # define _XGmtime(t,p) gmtime_r((t),&(p)) # define _XLocaltime(t,p) localtime_r((t),&(p)) #endif /* X_INCLUDE_TIME_H */ #if defined(X_INCLUDE_TIME_H) && !defined(_XOS_INCLUDED_TIME_H) # define _XOS_INCLUDED_TIME_H #endif /***** wrappers *****/ /* * Effective prototypes for wrappers: * * NOTE: On systems lacking appropriate _r functions Getgrgid() and * Getgrnam() do NOT copy the list of group members! * * Remember that fgetgrent(), setgrent(), getgrent(), and endgrent() * are not included in POSIX. * * #define X_INCLUDE_GRP_H * #define XOS_USE_..._LOCKING * #include * * typedef ... _Xgetgrparams; * * struct group *_XGetgrgid(gid_t, _Xgetgrparams); * struct group *_XGetgrnam(const char *, _Xgetgrparams); */ #if defined(X_INCLUDE_GRP_H) && !defined(_XOS_INCLUDED_GRP_H) # include # if defined(XUSE_MTSAFE_API) || defined(XUSE_MTSAFE_GRPAPI) # define XOS_USE_MTSAFE_GRPAPI 1 # endif #endif #if !defined(X_INCLUDE_GRP_H) || defined(_XOS_INCLUDED_GRP_H) /* Do nothing. */ #elif !defined(XTHREADS) && !defined(X_FORCE_USE_MTSAFE_API) /* Use regular, unsafe API. */ typedef int _Xgetgrparams; /* dummy */ #define _XGetgrgid(g,p) getgrgid((g)) #define _XGetgrnam(n,p) getgrnam((n)) #elif !defined(XOS_USE_MTSAFE_GRPAPI) || defined(XNO_MTSAFE_GRPAPI) /* Systems with thread support but no _r API. UnixWare 2.0. */ typedef struct { struct group grp; char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ struct group *pgrp; size_t len; } _Xgetgrparams; #ifdef SVR4 /* Copy the gr_passwd field too. */ # define _Xgrp_copyGroup(p) \ ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \ ((p).grp.gr_name = (p).buf), \ ((p).len = strlen((p).pgrp->gr_name)), \ strcpy((p).grp.gr_name, (p).pgrp->gr_name), \ ((p).grp.gr_passwd = (p).grp.gr_name + (p).len + 1), \ ((p).pgrp = &(p).grp), \ 0 ) #else # define _Xgrp_copyGroup(p) \ ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \ ((p).grp.gr_name = (p).buf), \ strcpy((p).grp.gr_name, (p).pgrp->gr_name), \ ((p).pgrp = &(p).grp), \ 0 ) #endif #define _XGetgrgid(g,p) \ ( (_Xos_processLock), \ (((p).pgrp = getgrgid((g))) ? _Xgrp_copyGroup(p) : 0), \ (_Xos_processUnlock), \ (p).pgrp ) #define _XGetgrnam(n,p) \ ( (_Xos_processLock), \ (((p).pgrp = getgrnam((n))) ? _Xgrp_copyGroup(p) : 0), \ (_Xos_processUnlock), \ (p).pgrp ) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(__sun) /* Non-POSIX API. Solaris. * * extern struct group *getgrgid_r(gid_t, struct group *, char *, int); * extern struct group *getgrnam_r(const char *, struct group *, char *, int); */ typedef struct { struct group grp; char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ } _Xgetgrparams; #define _XGetgrgid(g,p) getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf)) #define _XGetgrnam(n,p) getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf)) #elif !defined(_POSIX_THREAD_SAFE_FUNCTIONS) /* Non-POSIX API. * extern int getgrgid_r(gid_t, struct group *, char *, int); * extern int getgrnam_r(const char *, struct group *, char *, int); */ typedef struct { struct group grp; char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ } _Xgetgrparams; #define _XGetgrgid(g,p) \ ((getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf)) ? NULL : &(p).grp)) #define _XGetgrnam(n,p) \ ((getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf)) ? NULL : &(p).grp)) #else /* POSIX final API. * * int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); * int getgrnam_r(const char *, struct group *, char *, size_t, struct group **); */ typedef struct { struct group grp; char buf[X_LINE_MAX]; /* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */ struct group *result; } _Xgetgrparams; #define _XGetgrgid(g,p) \ ((getgrgid_r((g), &(p).grp, (p).buf, sizeof((p).buf), &(p).result) ? \ NULL : (p).result)) #define _XGetgrnam(n,p) \ ((getgrnam_r((n), &(p).grp, (p).buf, sizeof((p).buf), &(p).result) ? \ NULL : (p).result)) #endif #if defined(X_INCLUDE_GRP_H) && !defined(_XOS_INCLUDED_GRP_H) # define _XOS_INCLUDED_GRP_H #endif #ifdef __cplusplus } /* Close scope of 'extern "C"' declaration which encloses file. */ #endif xorgproto-2023.2/include/X11/XF86keysym.h0000644000175000017500000007033514443010026014672 00000000000000/* * XFree86 vendor specific keysyms. * * The XFree86 keysym range is 0x10080001 - 0x1008FFFF. * * The XF86 set of keysyms is a catch-all set of defines for keysyms found * on various multimedia keyboards. Originally specific to XFree86 they have * been been adopted over time and are considered a "standard" part of X * keysym definitions. * XFree86 never properly commented these keysyms, so we have done our * best to explain the semantic meaning of these keys. * * XFree86 has removed their mail archives of the period, that might have * shed more light on some of these definitions. Until/unless we resurrect * these archives, these are from memory and usage. */ /* * ModeLock * * This one is old, and not really used any more since XKB offers this * functionality. */ #define XF86XK_ModeLock 0x1008FF01 /* Mode Switch Lock */ /* Backlight controls. */ #define XF86XK_MonBrightnessUp 0x1008FF02 /* Monitor/panel brightness */ #define XF86XK_MonBrightnessDown 0x1008FF03 /* Monitor/panel brightness */ #define XF86XK_KbdLightOnOff 0x1008FF04 /* Keyboards may be lit */ #define XF86XK_KbdBrightnessUp 0x1008FF05 /* Keyboards may be lit */ #define XF86XK_KbdBrightnessDown 0x1008FF06 /* Keyboards may be lit */ #define XF86XK_MonBrightnessCycle 0x1008FF07 /* Monitor/panel brightness */ /* * Keys found on some "Internet" keyboards. */ #define XF86XK_Standby 0x1008FF10 /* System into standby mode */ #define XF86XK_AudioLowerVolume 0x1008FF11 /* Volume control down */ #define XF86XK_AudioMute 0x1008FF12 /* Mute sound from the system */ #define XF86XK_AudioRaiseVolume 0x1008FF13 /* Volume control up */ #define XF86XK_AudioPlay 0x1008FF14 /* Start playing of audio > */ #define XF86XK_AudioStop 0x1008FF15 /* Stop playing audio */ #define XF86XK_AudioPrev 0x1008FF16 /* Previous track */ #define XF86XK_AudioNext 0x1008FF17 /* Next track */ #define XF86XK_HomePage 0x1008FF18 /* Display user's home page */ #define XF86XK_Mail 0x1008FF19 /* Invoke user's mail program */ #define XF86XK_Start 0x1008FF1A /* Start application */ #define XF86XK_Search 0x1008FF1B /* Search */ #define XF86XK_AudioRecord 0x1008FF1C /* Record audio application */ /* These are sometimes found on PDA's (e.g. Palm, PocketPC or elsewhere) */ #define XF86XK_Calculator 0x1008FF1D /* Invoke calculator program */ #define XF86XK_Memo 0x1008FF1E /* Invoke Memo taking program */ #define XF86XK_ToDoList 0x1008FF1F /* Invoke To Do List program */ #define XF86XK_Calendar 0x1008FF20 /* Invoke Calendar program */ #define XF86XK_PowerDown 0x1008FF21 /* Deep sleep the system */ #define XF86XK_ContrastAdjust 0x1008FF22 /* Adjust screen contrast */ #define XF86XK_RockerUp 0x1008FF23 /* Rocker switches exist up */ #define XF86XK_RockerDown 0x1008FF24 /* and down */ #define XF86XK_RockerEnter 0x1008FF25 /* and let you press them */ /* Some more "Internet" keyboard symbols */ #define XF86XK_Back 0x1008FF26 /* Like back on a browser */ #define XF86XK_Forward 0x1008FF27 /* Like forward on a browser */ #define XF86XK_Stop 0x1008FF28 /* Stop current operation */ #define XF86XK_Refresh 0x1008FF29 /* Refresh the page */ #define XF86XK_PowerOff 0x1008FF2A /* Power off system entirely */ #define XF86XK_WakeUp 0x1008FF2B /* Wake up system from sleep */ #define XF86XK_Eject 0x1008FF2C /* Eject device (e.g. DVD) */ #define XF86XK_ScreenSaver 0x1008FF2D /* Invoke screensaver */ #define XF86XK_WWW 0x1008FF2E /* Invoke web browser */ #define XF86XK_Sleep 0x1008FF2F /* Put system to sleep */ #define XF86XK_Favorites 0x1008FF30 /* Show favorite locations */ #define XF86XK_AudioPause 0x1008FF31 /* Pause audio playing */ #define XF86XK_AudioMedia 0x1008FF32 /* Launch media collection app */ #define XF86XK_MyComputer 0x1008FF33 /* Display "My Computer" window */ #define XF86XK_VendorHome 0x1008FF34 /* Display vendor home web site */ #define XF86XK_LightBulb 0x1008FF35 /* Light bulb keys exist */ #define XF86XK_Shop 0x1008FF36 /* Display shopping web site */ #define XF86XK_History 0x1008FF37 /* Show history of web surfing */ #define XF86XK_OpenURL 0x1008FF38 /* Open selected URL */ #define XF86XK_AddFavorite 0x1008FF39 /* Add URL to favorites list */ #define XF86XK_HotLinks 0x1008FF3A /* Show "hot" links */ #define XF86XK_BrightnessAdjust 0x1008FF3B /* Invoke brightness adj. UI */ #define XF86XK_Finance 0x1008FF3C /* Display financial site */ #define XF86XK_Community 0x1008FF3D /* Display user's community */ #define XF86XK_AudioRewind 0x1008FF3E /* "rewind" audio track */ #define XF86XK_BackForward 0x1008FF3F /* ??? */ #define XF86XK_Launch0 0x1008FF40 /* Launch Application */ #define XF86XK_Launch1 0x1008FF41 /* Launch Application */ #define XF86XK_Launch2 0x1008FF42 /* Launch Application */ #define XF86XK_Launch3 0x1008FF43 /* Launch Application */ #define XF86XK_Launch4 0x1008FF44 /* Launch Application */ #define XF86XK_Launch5 0x1008FF45 /* Launch Application */ #define XF86XK_Launch6 0x1008FF46 /* Launch Application */ #define XF86XK_Launch7 0x1008FF47 /* Launch Application */ #define XF86XK_Launch8 0x1008FF48 /* Launch Application */ #define XF86XK_Launch9 0x1008FF49 /* Launch Application */ #define XF86XK_LaunchA 0x1008FF4A /* Launch Application */ #define XF86XK_LaunchB 0x1008FF4B /* Launch Application */ #define XF86XK_LaunchC 0x1008FF4C /* Launch Application */ #define XF86XK_LaunchD 0x1008FF4D /* Launch Application */ #define XF86XK_LaunchE 0x1008FF4E /* Launch Application */ #define XF86XK_LaunchF 0x1008FF4F /* Launch Application */ #define XF86XK_ApplicationLeft 0x1008FF50 /* switch to application, left */ #define XF86XK_ApplicationRight 0x1008FF51 /* switch to application, right*/ #define XF86XK_Book 0x1008FF52 /* Launch bookreader */ #define XF86XK_CD 0x1008FF53 /* Launch CD/DVD player */ #define XF86XK_Calculater 0x1008FF54 /* Launch Calculater */ #define XF86XK_Clear 0x1008FF55 /* Clear window, screen */ #define XF86XK_Close 0x1008FF56 /* Close window */ #define XF86XK_Copy 0x1008FF57 /* Copy selection */ #define XF86XK_Cut 0x1008FF58 /* Cut selection */ #define XF86XK_Display 0x1008FF59 /* Output switch key */ #define XF86XK_DOS 0x1008FF5A /* Launch DOS (emulation) */ #define XF86XK_Documents 0x1008FF5B /* Open documents window */ #define XF86XK_Excel 0x1008FF5C /* Launch spread sheet */ #define XF86XK_Explorer 0x1008FF5D /* Launch file explorer */ #define XF86XK_Game 0x1008FF5E /* Launch game */ #define XF86XK_Go 0x1008FF5F /* Go to URL */ #define XF86XK_iTouch 0x1008FF60 /* Logitech iTouch- don't use */ #define XF86XK_LogOff 0x1008FF61 /* Log off system */ #define XF86XK_Market 0x1008FF62 /* ?? */ #define XF86XK_Meeting 0x1008FF63 /* enter meeting in calendar */ #define XF86XK_MenuKB 0x1008FF65 /* distinguish keyboard from PB */ #define XF86XK_MenuPB 0x1008FF66 /* distinguish PB from keyboard */ #define XF86XK_MySites 0x1008FF67 /* Favourites */ #define XF86XK_New 0x1008FF68 /* New (folder, document... */ #define XF86XK_News 0x1008FF69 /* News */ #define XF86XK_OfficeHome 0x1008FF6A /* Office home (old Staroffice)*/ #define XF86XK_Open 0x1008FF6B /* Open */ #define XF86XK_Option 0x1008FF6C /* ?? */ #define XF86XK_Paste 0x1008FF6D /* Paste */ #define XF86XK_Phone 0x1008FF6E /* Launch phone; dial number */ #define XF86XK_Q 0x1008FF70 /* Compaq's Q - don't use */ #define XF86XK_Reply 0x1008FF72 /* Reply e.g., mail */ #define XF86XK_Reload 0x1008FF73 /* Reload web page, file, etc. */ #define XF86XK_RotateWindows 0x1008FF74 /* Rotate windows e.g. xrandr */ #define XF86XK_RotationPB 0x1008FF75 /* don't use */ #define XF86XK_RotationKB 0x1008FF76 /* don't use */ #define XF86XK_Save 0x1008FF77 /* Save (file, document, state */ #define XF86XK_ScrollUp 0x1008FF78 /* Scroll window/contents up */ #define XF86XK_ScrollDown 0x1008FF79 /* Scrool window/contentd down */ #define XF86XK_ScrollClick 0x1008FF7A /* Use XKB mousekeys instead */ #define XF86XK_Send 0x1008FF7B /* Send mail, file, object */ #define XF86XK_Spell 0x1008FF7C /* Spell checker */ #define XF86XK_SplitScreen 0x1008FF7D /* Split window or screen */ #define XF86XK_Support 0x1008FF7E /* Get support (??) */ #define XF86XK_TaskPane 0x1008FF7F /* Show tasks */ #define XF86XK_Terminal 0x1008FF80 /* Launch terminal emulator */ #define XF86XK_Tools 0x1008FF81 /* toolbox of desktop/app. */ #define XF86XK_Travel 0x1008FF82 /* ?? */ #define XF86XK_UserPB 0x1008FF84 /* ?? */ #define XF86XK_User1KB 0x1008FF85 /* ?? */ #define XF86XK_User2KB 0x1008FF86 /* ?? */ #define XF86XK_Video 0x1008FF87 /* Launch video player */ #define XF86XK_WheelButton 0x1008FF88 /* button from a mouse wheel */ #define XF86XK_Word 0x1008FF89 /* Launch word processor */ #define XF86XK_Xfer 0x1008FF8A #define XF86XK_ZoomIn 0x1008FF8B /* zoom in view, map, etc. */ #define XF86XK_ZoomOut 0x1008FF8C /* zoom out view, map, etc. */ #define XF86XK_Away 0x1008FF8D /* mark yourself as away */ #define XF86XK_Messenger 0x1008FF8E /* as in instant messaging */ #define XF86XK_WebCam 0x1008FF8F /* Launch web camera app. */ #define XF86XK_MailForward 0x1008FF90 /* Forward in mail */ #define XF86XK_Pictures 0x1008FF91 /* Show pictures */ #define XF86XK_Music 0x1008FF92 /* Launch music application */ #define XF86XK_Battery 0x1008FF93 /* Display battery information */ #define XF86XK_Bluetooth 0x1008FF94 /* Enable/disable Bluetooth */ #define XF86XK_WLAN 0x1008FF95 /* Enable/disable WLAN */ #define XF86XK_UWB 0x1008FF96 /* Enable/disable UWB */ #define XF86XK_AudioForward 0x1008FF97 /* fast-forward audio track */ #define XF86XK_AudioRepeat 0x1008FF98 /* toggle repeat mode */ #define XF86XK_AudioRandomPlay 0x1008FF99 /* toggle shuffle mode */ #define XF86XK_Subtitle 0x1008FF9A /* cycle through subtitle */ #define XF86XK_AudioCycleTrack 0x1008FF9B /* cycle through audio tracks */ #define XF86XK_CycleAngle 0x1008FF9C /* cycle through angles */ #define XF86XK_FrameBack 0x1008FF9D /* video: go one frame back */ #define XF86XK_FrameForward 0x1008FF9E /* video: go one frame forward */ #define XF86XK_Time 0x1008FF9F /* display, or shows an entry for time seeking */ #define XF86XK_Select 0x1008FFA0 /* Select button on joypads and remotes */ #define XF86XK_View 0x1008FFA1 /* Show a view options/properties */ #define XF86XK_TopMenu 0x1008FFA2 /* Go to a top-level menu in a video */ #define XF86XK_Red 0x1008FFA3 /* Red button */ #define XF86XK_Green 0x1008FFA4 /* Green button */ #define XF86XK_Yellow 0x1008FFA5 /* Yellow button */ #define XF86XK_Blue 0x1008FFA6 /* Blue button */ #define XF86XK_Suspend 0x1008FFA7 /* Sleep to RAM */ #define XF86XK_Hibernate 0x1008FFA8 /* Sleep to disk */ #define XF86XK_TouchpadToggle 0x1008FFA9 /* Toggle between touchpad/trackstick */ #define XF86XK_TouchpadOn 0x1008FFB0 /* The touchpad got switched on */ #define XF86XK_TouchpadOff 0x1008FFB1 /* The touchpad got switched off */ #define XF86XK_AudioMicMute 0x1008FFB2 /* Mute the Mic from the system */ #define XF86XK_Keyboard 0x1008FFB3 /* User defined keyboard related action */ #define XF86XK_WWAN 0x1008FFB4 /* Toggle WWAN (LTE, UMTS, etc.) radio */ #define XF86XK_RFKill 0x1008FFB5 /* Toggle radios on/off */ #define XF86XK_AudioPreset 0x1008FFB6 /* Select equalizer preset, e.g. theatre-mode */ #define XF86XK_RotationLockToggle 0x1008FFB7 /* Toggle screen rotation lock on/off */ #define XF86XK_FullScreen 0x1008FFB8 /* Toggle fullscreen */ /* Keys for special action keys (hot keys) */ /* Virtual terminals on some operating systems */ #define XF86XK_Switch_VT_1 0x1008FE01 #define XF86XK_Switch_VT_2 0x1008FE02 #define XF86XK_Switch_VT_3 0x1008FE03 #define XF86XK_Switch_VT_4 0x1008FE04 #define XF86XK_Switch_VT_5 0x1008FE05 #define XF86XK_Switch_VT_6 0x1008FE06 #define XF86XK_Switch_VT_7 0x1008FE07 #define XF86XK_Switch_VT_8 0x1008FE08 #define XF86XK_Switch_VT_9 0x1008FE09 #define XF86XK_Switch_VT_10 0x1008FE0A #define XF86XK_Switch_VT_11 0x1008FE0B #define XF86XK_Switch_VT_12 0x1008FE0C #define XF86XK_Ungrab 0x1008FE20 /* force ungrab */ #define XF86XK_ClearGrab 0x1008FE21 /* kill application with grab */ #define XF86XK_Next_VMode 0x1008FE22 /* next video mode available */ #define XF86XK_Prev_VMode 0x1008FE23 /* prev. video mode available */ #define XF86XK_LogWindowTree 0x1008FE24 /* print window tree to log */ #define XF86XK_LogGrabInfo 0x1008FE25 /* print all active grabs to log */ /* * Reserved range for evdev symbols: 0x10081000-0x10081FFF * * Key syms within this range must match the Linux kernel * input-event-codes.h file in the format: * XF86XK_CamelCaseKernelName _EVDEVK(kernel value) * For example, the kernel * #define KEY_MACRO_RECORD_START 0x2b0 * effectively ends up as: * #define XF86XK_MacroRecordStart 0x100812b0 * * For historical reasons, some keysyms within the reserved range will be * missing, most notably all "normal" keys that are mapped through default * XKB layouts (e.g. KEY_Q). * * CamelCasing is done with a human control as last authority, e.g. see VOD * instead of Vod for the Video on Demand key. * * The format for #defines is strict: * * #define XF86XK_FOO_EVDEVK(0xABC) |* kver KEY_FOO *| * * Where * - alignment by tabs * - the _EVDEVK macro must be used * - the hex code must be in uppercase hex * - the kernel version (kver) is in the form v5.10 * - kver and key name are within a slash-star comment (a pipe is used in * this example for technical reasons) * These #defines are parsed by scripts. Do not stray from the given format. * * Where the evdev keycode is mapped to a different symbol, please add a * comment line starting with Use: but otherwise the same format, e.g. * Use: XF86XK_RotationLockToggle _EVDEVK(0x231) v4.16 KEY_ROTATE_LOCK_TOGGLE * */ #define _EVDEVK(_v) (0x10081000 + _v) /* Use: XF86XK_Eject _EVDEVK(0x0A2) KEY_EJECTCLOSECD */ /* Use: XF86XK_New _EVDEVK(0x0B5) v2.6.14 KEY_NEW */ /* Use: XK_Redo _EVDEVK(0x0B6) v2.6.14 KEY_REDO */ /* KEY_DASHBOARD has been mapped to LaunchB in xkeyboard-config since 2011 */ /* Use: XF86XK_LaunchB _EVDEVK(0x0CC) v2.6.28 KEY_DASHBOARD */ /* Use: XF86XK_Display _EVDEVK(0x0E3) v2.6.12 KEY_SWITCHVIDEOMODE */ /* Use: XF86XK_KbdLightOnOff _EVDEVK(0x0E4) v2.6.12 KEY_KBDILLUMTOGGLE */ /* Use: XF86XK_KbdBrightnessDown _EVDEVK(0x0E5) v2.6.12 KEY_KBDILLUMDOWN */ /* Use: XF86XK_KbdBrightnessUp _EVDEVK(0x0E6) v2.6.12 KEY_KBDILLUMUP */ /* Use: XF86XK_Send _EVDEVK(0x0E7) v2.6.14 KEY_SEND */ /* Use: XF86XK_Reply _EVDEVK(0x0E8) v2.6.14 KEY_REPLY */ /* Use: XF86XK_MailForward _EVDEVK(0x0E9) v2.6.14 KEY_FORWARDMAIL */ /* Use: XF86XK_Save _EVDEVK(0x0EA) v2.6.14 KEY_SAVE */ /* Use: XF86XK_Documents _EVDEVK(0x0EB) v2.6.14 KEY_DOCUMENTS */ /* Use: XF86XK_Battery _EVDEVK(0x0EC) v2.6.17 KEY_BATTERY */ /* Use: XF86XK_Bluetooth _EVDEVK(0x0ED) v2.6.19 KEY_BLUETOOTH */ /* Use: XF86XK_WLAN _EVDEVK(0x0EE) v2.6.19 KEY_WLAN */ /* Use: XF86XK_UWB _EVDEVK(0x0EF) v2.6.24 KEY_UWB */ /* Use: XF86XK_Next_VMode _EVDEVK(0x0F1) v2.6.23 KEY_VIDEO_NEXT */ /* Use: XF86XK_Prev_VMode _EVDEVK(0x0F2) v2.6.23 KEY_VIDEO_PREV */ /* Use: XF86XK_MonBrightnessCycle _EVDEVK(0x0F3) v2.6.23 KEY_BRIGHTNESS_CYCLE */ #define XF86XK_BrightnessAuto _EVDEVK(0x0F4) /* v3.16 KEY_BRIGHTNESS_AUTO */ #define XF86XK_DisplayOff _EVDEVK(0x0F5) /* v2.6.23 KEY_DISPLAY_OFF */ /* Use: XF86XK_WWAN _EVDEVK(0x0F6) v3.13 KEY_WWAN */ /* Use: XF86XK_RFKill _EVDEVK(0x0F7) v2.6.33 KEY_RFKILL */ /* Use: XF86XK_AudioMicMute _EVDEVK(0x0F8) v3.1 KEY_MICMUTE */ #define XF86XK_Info _EVDEVK(0x166) /* KEY_INFO */ /* Use: XF86XK_CycleAngle _EVDEVK(0x173) KEY_ANGLE */ /* Use: XF86XK_FullScreen _EVDEVK(0x174) v5.1 KEY_FULL_SCREEN */ #define XF86XK_AspectRatio _EVDEVK(0x177) /* v5.1 KEY_ASPECT_RATIO */ #define XF86XK_DVD _EVDEVK(0x185) /* KEY_DVD */ #define XF86XK_Audio _EVDEVK(0x188) /* KEY_AUDIO */ /* Use: XF86XK_Video _EVDEVK(0x189) KEY_VIDEO */ /* Use: XF86XK_Calendar _EVDEVK(0x18D) KEY_CALENDAR */ #define XF86XK_ChannelUp _EVDEVK(0x192) /* KEY_CHANNELUP */ #define XF86XK_ChannelDown _EVDEVK(0x193) /* KEY_CHANNELDOWN */ /* Use: XF86XK_AudioRandomPlay _EVDEVK(0x19A) KEY_SHUFFLE */ #define XF86XK_Break _EVDEVK(0x19B) /* KEY_BREAK */ #define XF86XK_VideoPhone _EVDEVK(0x1A0) /* v2.6.20 KEY_VIDEOPHONE */ /* Use: XF86XK_Game _EVDEVK(0x1A1) v2.6.20 KEY_GAMES */ /* Use: XF86XK_ZoomIn _EVDEVK(0x1A2) v2.6.20 KEY_ZOOMIN */ /* Use: XF86XK_ZoomOut _EVDEVK(0x1A3) v2.6.20 KEY_ZOOMOUT */ #define XF86XK_ZoomReset _EVDEVK(0x1A4) /* v2.6.20 KEY_ZOOMRESET */ /* Use: XF86XK_Word _EVDEVK(0x1A5) v2.6.20 KEY_WORDPROCESSOR */ #define XF86XK_Editor _EVDEVK(0x1A6) /* v2.6.20 KEY_EDITOR */ /* Use: XF86XK_Excel _EVDEVK(0x1A7) v2.6.20 KEY_SPREADSHEET */ #define XF86XK_GraphicsEditor _EVDEVK(0x1A8) /* v2.6.20 KEY_GRAPHICSEDITOR */ #define XF86XK_Presentation _EVDEVK(0x1A9) /* v2.6.20 KEY_PRESENTATION */ #define XF86XK_Database _EVDEVK(0x1AA) /* v2.6.20 KEY_DATABASE */ /* Use: XF86XK_News _EVDEVK(0x1AB) v2.6.20 KEY_NEWS */ #define XF86XK_Voicemail _EVDEVK(0x1AC) /* v2.6.20 KEY_VOICEMAIL */ #define XF86XK_Addressbook _EVDEVK(0x1AD) /* v2.6.20 KEY_ADDRESSBOOK */ /* Use: XF86XK_Messenger _EVDEVK(0x1AE) v2.6.20 KEY_MESSENGER */ #define XF86XK_DisplayToggle _EVDEVK(0x1AF) /* v2.6.20 KEY_DISPLAYTOGGLE */ #define XF86XK_SpellCheck _EVDEVK(0x1B0) /* v2.6.24 KEY_SPELLCHECK */ /* Use: XF86XK_LogOff _EVDEVK(0x1B1) v2.6.24 KEY_LOGOFF */ /* Use: XK_dollar _EVDEVK(0x1B2) v2.6.24 KEY_DOLLAR */ /* Use: XK_EuroSign _EVDEVK(0x1B3) v2.6.24 KEY_EURO */ /* Use: XF86XK_FrameBack _EVDEVK(0x1B4) v2.6.24 KEY_FRAMEBACK */ /* Use: XF86XK_FrameForward _EVDEVK(0x1B5) v2.6.24 KEY_FRAMEFORWARD */ #define XF86XK_ContextMenu _EVDEVK(0x1B6) /* v2.6.24 KEY_CONTEXT_MENU */ #define XF86XK_MediaRepeat _EVDEVK(0x1B7) /* v2.6.26 KEY_MEDIA_REPEAT */ #define XF86XK_10ChannelsUp _EVDEVK(0x1B8) /* v2.6.38 KEY_10CHANNELSUP */ #define XF86XK_10ChannelsDown _EVDEVK(0x1B9) /* v2.6.38 KEY_10CHANNELSDOWN */ #define XF86XK_Images _EVDEVK(0x1BA) /* v2.6.39 KEY_IMAGES */ #define XF86XK_NotificationCenter _EVDEVK(0x1BC) /* v5.10 KEY_NOTIFICATION_CENTER */ #define XF86XK_PickupPhone _EVDEVK(0x1BD) /* v5.10 KEY_PICKUP_PHONE */ #define XF86XK_HangupPhone _EVDEVK(0x1BE) /* v5.10 KEY_HANGUP_PHONE */ #define XF86XK_Fn _EVDEVK(0x1D0) /* KEY_FN */ #define XF86XK_Fn_Esc _EVDEVK(0x1D1) /* KEY_FN_ESC */ #define XF86XK_FnRightShift _EVDEVK(0x1E5) /* v5.10 KEY_FN_RIGHT_SHIFT */ /* Use: XK_braille_dot_1 _EVDEVK(0x1F1) v2.6.17 KEY_BRL_DOT1 */ /* Use: XK_braille_dot_2 _EVDEVK(0x1F2) v2.6.17 KEY_BRL_DOT2 */ /* Use: XK_braille_dot_3 _EVDEVK(0x1F3) v2.6.17 KEY_BRL_DOT3 */ /* Use: XK_braille_dot_4 _EVDEVK(0x1F4) v2.6.17 KEY_BRL_DOT4 */ /* Use: XK_braille_dot_5 _EVDEVK(0x1F5) v2.6.17 KEY_BRL_DOT5 */ /* Use: XK_braille_dot_6 _EVDEVK(0x1F6) v2.6.17 KEY_BRL_DOT6 */ /* Use: XK_braille_dot_7 _EVDEVK(0x1F7) v2.6.17 KEY_BRL_DOT7 */ /* Use: XK_braille_dot_8 _EVDEVK(0x1F8) v2.6.17 KEY_BRL_DOT8 */ /* Use: XK_braille_dot_9 _EVDEVK(0x1F9) v2.6.23 KEY_BRL_DOT9 */ /* Use: XK_braille_dot_1 _EVDEVK(0x1FA) v2.6.23 KEY_BRL_DOT10 */ #define XF86XK_Numeric0 _EVDEVK(0x200) /* v2.6.28 KEY_NUMERIC_0 */ #define XF86XK_Numeric1 _EVDEVK(0x201) /* v2.6.28 KEY_NUMERIC_1 */ #define XF86XK_Numeric2 _EVDEVK(0x202) /* v2.6.28 KEY_NUMERIC_2 */ #define XF86XK_Numeric3 _EVDEVK(0x203) /* v2.6.28 KEY_NUMERIC_3 */ #define XF86XK_Numeric4 _EVDEVK(0x204) /* v2.6.28 KEY_NUMERIC_4 */ #define XF86XK_Numeric5 _EVDEVK(0x205) /* v2.6.28 KEY_NUMERIC_5 */ #define XF86XK_Numeric6 _EVDEVK(0x206) /* v2.6.28 KEY_NUMERIC_6 */ #define XF86XK_Numeric7 _EVDEVK(0x207) /* v2.6.28 KEY_NUMERIC_7 */ #define XF86XK_Numeric8 _EVDEVK(0x208) /* v2.6.28 KEY_NUMERIC_8 */ #define XF86XK_Numeric9 _EVDEVK(0x209) /* v2.6.28 KEY_NUMERIC_9 */ #define XF86XK_NumericStar _EVDEVK(0x20A) /* v2.6.28 KEY_NUMERIC_STAR */ #define XF86XK_NumericPound _EVDEVK(0x20B) /* v2.6.28 KEY_NUMERIC_POUND */ #define XF86XK_NumericA _EVDEVK(0x20C) /* v4.1 KEY_NUMERIC_A */ #define XF86XK_NumericB _EVDEVK(0x20D) /* v4.1 KEY_NUMERIC_B */ #define XF86XK_NumericC _EVDEVK(0x20E) /* v4.1 KEY_NUMERIC_C */ #define XF86XK_NumericD _EVDEVK(0x20F) /* v4.1 KEY_NUMERIC_D */ #define XF86XK_CameraFocus _EVDEVK(0x210) /* v2.6.33 KEY_CAMERA_FOCUS */ #define XF86XK_WPSButton _EVDEVK(0x211) /* v2.6.34 KEY_WPS_BUTTON */ /* Use: XF86XK_TouchpadToggle _EVDEVK(0x212) v2.6.37 KEY_TOUCHPAD_TOGGLE */ /* Use: XF86XK_TouchpadOn _EVDEVK(0x213) v2.6.37 KEY_TOUCHPAD_ON */ /* Use: XF86XK_TouchpadOff _EVDEVK(0x214) v2.6.37 KEY_TOUCHPAD_OFF */ #define XF86XK_CameraZoomIn _EVDEVK(0x215) /* v2.6.39 KEY_CAMERA_ZOOMIN */ #define XF86XK_CameraZoomOut _EVDEVK(0x216) /* v2.6.39 KEY_CAMERA_ZOOMOUT */ #define XF86XK_CameraUp _EVDEVK(0x217) /* v2.6.39 KEY_CAMERA_UP */ #define XF86XK_CameraDown _EVDEVK(0x218) /* v2.6.39 KEY_CAMERA_DOWN */ #define XF86XK_CameraLeft _EVDEVK(0x219) /* v2.6.39 KEY_CAMERA_LEFT */ #define XF86XK_CameraRight _EVDEVK(0x21A) /* v2.6.39 KEY_CAMERA_RIGHT */ #define XF86XK_AttendantOn _EVDEVK(0x21B) /* v3.10 KEY_ATTENDANT_ON */ #define XF86XK_AttendantOff _EVDEVK(0x21C) /* v3.10 KEY_ATTENDANT_OFF */ #define XF86XK_AttendantToggle _EVDEVK(0x21D) /* v3.10 KEY_ATTENDANT_TOGGLE */ #define XF86XK_LightsToggle _EVDEVK(0x21E) /* v3.10 KEY_LIGHTS_TOGGLE */ #define XF86XK_ALSToggle _EVDEVK(0x230) /* v3.13 KEY_ALS_TOGGLE */ /* Use: XF86XK_RotationLockToggle _EVDEVK(0x231) v4.16 KEY_ROTATE_LOCK_TOGGLE */ #define XF86XK_Buttonconfig _EVDEVK(0x240) /* v3.16 KEY_BUTTONCONFIG */ #define XF86XK_Taskmanager _EVDEVK(0x241) /* v3.16 KEY_TASKMANAGER */ #define XF86XK_Journal _EVDEVK(0x242) /* v3.16 KEY_JOURNAL */ #define XF86XK_ControlPanel _EVDEVK(0x243) /* v3.16 KEY_CONTROLPANEL */ #define XF86XK_AppSelect _EVDEVK(0x244) /* v3.16 KEY_APPSELECT */ #define XF86XK_Screensaver _EVDEVK(0x245) /* v3.16 KEY_SCREENSAVER */ #define XF86XK_VoiceCommand _EVDEVK(0x246) /* v3.16 KEY_VOICECOMMAND */ #define XF86XK_Assistant _EVDEVK(0x247) /* v4.13 KEY_ASSISTANT */ /* Use: XK_ISO_Next_Group _EVDEVK(0x248) v5.2 KEY_KBD_LAYOUT_NEXT */ #define XF86XK_EmojiPicker _EVDEVK(0x249) /* v5.13 KEY_EMOJI_PICKER */ #define XF86XK_Dictate _EVDEVK(0x24A) /* v5.17 KEY_DICTATE */ #define XF86XK_BrightnessMin _EVDEVK(0x250) /* v3.16 KEY_BRIGHTNESS_MIN */ #define XF86XK_BrightnessMax _EVDEVK(0x251) /* v3.16 KEY_BRIGHTNESS_MAX */ #define XF86XK_KbdInputAssistPrev _EVDEVK(0x260) /* v3.18 KEY_KBDINPUTASSIST_PREV */ #define XF86XK_KbdInputAssistNext _EVDEVK(0x261) /* v3.18 KEY_KBDINPUTASSIST_NEXT */ #define XF86XK_KbdInputAssistPrevgroup _EVDEVK(0x262) /* v3.18 KEY_KBDINPUTASSIST_PREVGROUP */ #define XF86XK_KbdInputAssistNextgroup _EVDEVK(0x263) /* v3.18 KEY_KBDINPUTASSIST_NEXTGROUP */ #define XF86XK_KbdInputAssistAccept _EVDEVK(0x264) /* v3.18 KEY_KBDINPUTASSIST_ACCEPT */ #define XF86XK_KbdInputAssistCancel _EVDEVK(0x265) /* v3.18 KEY_KBDINPUTASSIST_CANCEL */ #define XF86XK_RightUp _EVDEVK(0x266) /* v4.7 KEY_RIGHT_UP */ #define XF86XK_RightDown _EVDEVK(0x267) /* v4.7 KEY_RIGHT_DOWN */ #define XF86XK_LeftUp _EVDEVK(0x268) /* v4.7 KEY_LEFT_UP */ #define XF86XK_LeftDown _EVDEVK(0x269) /* v4.7 KEY_LEFT_DOWN */ #define XF86XK_RootMenu _EVDEVK(0x26A) /* v4.7 KEY_ROOT_MENU */ #define XF86XK_MediaTopMenu _EVDEVK(0x26B) /* v4.7 KEY_MEDIA_TOP_MENU */ #define XF86XK_Numeric11 _EVDEVK(0x26C) /* v4.7 KEY_NUMERIC_11 */ #define XF86XK_Numeric12 _EVDEVK(0x26D) /* v4.7 KEY_NUMERIC_12 */ #define XF86XK_AudioDesc _EVDEVK(0x26E) /* v4.7 KEY_AUDIO_DESC */ #define XF86XK_3DMode _EVDEVK(0x26F) /* v4.7 KEY_3D_MODE */ #define XF86XK_NextFavorite _EVDEVK(0x270) /* v4.7 KEY_NEXT_FAVORITE */ #define XF86XK_StopRecord _EVDEVK(0x271) /* v4.7 KEY_STOP_RECORD */ #define XF86XK_PauseRecord _EVDEVK(0x272) /* v4.7 KEY_PAUSE_RECORD */ #define XF86XK_VOD _EVDEVK(0x273) /* v4.7 KEY_VOD */ #define XF86XK_Unmute _EVDEVK(0x274) /* v4.7 KEY_UNMUTE */ #define XF86XK_FastReverse _EVDEVK(0x275) /* v4.7 KEY_FASTREVERSE */ #define XF86XK_SlowReverse _EVDEVK(0x276) /* v4.7 KEY_SLOWREVERSE */ #define XF86XK_Data _EVDEVK(0x277) /* v4.7 KEY_DATA */ #define XF86XK_OnScreenKeyboard _EVDEVK(0x278) /* v4.12 KEY_ONSCREEN_KEYBOARD */ #define XF86XK_PrivacyScreenToggle _EVDEVK(0x279) /* v5.5 KEY_PRIVACY_SCREEN_TOGGLE */ #define XF86XK_SelectiveScreenshot _EVDEVK(0x27A) /* v5.6 KEY_SELECTIVE_SCREENSHOT */ #define XF86XK_Macro1 _EVDEVK(0x290) /* v5.5 KEY_MACRO1 */ #define XF86XK_Macro2 _EVDEVK(0x291) /* v5.5 KEY_MACRO2 */ #define XF86XK_Macro3 _EVDEVK(0x292) /* v5.5 KEY_MACRO3 */ #define XF86XK_Macro4 _EVDEVK(0x293) /* v5.5 KEY_MACRO4 */ #define XF86XK_Macro5 _EVDEVK(0x294) /* v5.5 KEY_MACRO5 */ #define XF86XK_Macro6 _EVDEVK(0x295) /* v5.5 KEY_MACRO6 */ #define XF86XK_Macro7 _EVDEVK(0x296) /* v5.5 KEY_MACRO7 */ #define XF86XK_Macro8 _EVDEVK(0x297) /* v5.5 KEY_MACRO8 */ #define XF86XK_Macro9 _EVDEVK(0x298) /* v5.5 KEY_MACRO9 */ #define XF86XK_Macro10 _EVDEVK(0x299) /* v5.5 KEY_MACRO10 */ #define XF86XK_Macro11 _EVDEVK(0x29A) /* v5.5 KEY_MACRO11 */ #define XF86XK_Macro12 _EVDEVK(0x29B) /* v5.5 KEY_MACRO12 */ #define XF86XK_Macro13 _EVDEVK(0x29C) /* v5.5 KEY_MACRO13 */ #define XF86XK_Macro14 _EVDEVK(0x29D) /* v5.5 KEY_MACRO14 */ #define XF86XK_Macro15 _EVDEVK(0x29E) /* v5.5 KEY_MACRO15 */ #define XF86XK_Macro16 _EVDEVK(0x29F) /* v5.5 KEY_MACRO16 */ #define XF86XK_Macro17 _EVDEVK(0x2A0) /* v5.5 KEY_MACRO17 */ #define XF86XK_Macro18 _EVDEVK(0x2A1) /* v5.5 KEY_MACRO18 */ #define XF86XK_Macro19 _EVDEVK(0x2A2) /* v5.5 KEY_MACRO19 */ #define XF86XK_Macro20 _EVDEVK(0x2A3) /* v5.5 KEY_MACRO20 */ #define XF86XK_Macro21 _EVDEVK(0x2A4) /* v5.5 KEY_MACRO21 */ #define XF86XK_Macro22 _EVDEVK(0x2A5) /* v5.5 KEY_MACRO22 */ #define XF86XK_Macro23 _EVDEVK(0x2A6) /* v5.5 KEY_MACRO23 */ #define XF86XK_Macro24 _EVDEVK(0x2A7) /* v5.5 KEY_MACRO24 */ #define XF86XK_Macro25 _EVDEVK(0x2A8) /* v5.5 KEY_MACRO25 */ #define XF86XK_Macro26 _EVDEVK(0x2A9) /* v5.5 KEY_MACRO26 */ #define XF86XK_Macro27 _EVDEVK(0x2AA) /* v5.5 KEY_MACRO27 */ #define XF86XK_Macro28 _EVDEVK(0x2AB) /* v5.5 KEY_MACRO28 */ #define XF86XK_Macro29 _EVDEVK(0x2AC) /* v5.5 KEY_MACRO29 */ #define XF86XK_Macro30 _EVDEVK(0x2AD) /* v5.5 KEY_MACRO30 */ #define XF86XK_MacroRecordStart _EVDEVK(0x2B0) /* v5.5 KEY_MACRO_RECORD_START */ #define XF86XK_MacroRecordStop _EVDEVK(0x2B1) /* v5.5 KEY_MACRO_RECORD_STOP */ #define XF86XK_MacroPresetCycle _EVDEVK(0x2B2) /* v5.5 KEY_MACRO_PRESET_CYCLE */ #define XF86XK_MacroPreset1 _EVDEVK(0x2B3) /* v5.5 KEY_MACRO_PRESET1 */ #define XF86XK_MacroPreset2 _EVDEVK(0x2B4) /* v5.5 KEY_MACRO_PRESET2 */ #define XF86XK_MacroPreset3 _EVDEVK(0x2B5) /* v5.5 KEY_MACRO_PRESET3 */ #define XF86XK_KbdLcdMenu1 _EVDEVK(0x2B8) /* v5.5 KEY_KBD_LCD_MENU1 */ #define XF86XK_KbdLcdMenu2 _EVDEVK(0x2B9) /* v5.5 KEY_KBD_LCD_MENU2 */ #define XF86XK_KbdLcdMenu3 _EVDEVK(0x2BA) /* v5.5 KEY_KBD_LCD_MENU3 */ #define XF86XK_KbdLcdMenu4 _EVDEVK(0x2BB) /* v5.5 KEY_KBD_LCD_MENU4 */ #define XF86XK_KbdLcdMenu5 _EVDEVK(0x2BC) /* v5.5 KEY_KBD_LCD_MENU5 */ #undef _EVDEVK xorgproto-2023.2/include/meson.build0000644000175000017500000000003314443010026014341 00000000000000subdir('GL') subdir('X11') xorgproto-2023.2/include/GL/0000755000175000017500000000000014443010035012565 500000000000000xorgproto-2023.2/include/GL/glxint.h0000644000175000017500000001113014443010026014157 00000000000000#ifndef __GLX_glxint_h__ #define __GLX_glxint_h__ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ #include #include #include "GL/gl.h" typedef struct __GLXvisualConfigRec __GLXvisualConfig; typedef struct __GLXFBConfigRec __GLXFBConfig; struct __GLXvisualConfigRec { VisualID vid; int class; Bool rgba; int redSize, greenSize, blueSize, alphaSize; unsigned long redMask, greenMask, blueMask, alphaMask; int accumRedSize, accumGreenSize, accumBlueSize, accumAlphaSize; Bool doubleBuffer; Bool stereo; int bufferSize; int depthSize; int stencilSize; int auxBuffers; int level; /* Start of Extended Visual Properties */ int visualRating; /* visual_rating extension */ int transparentPixel; /* visual_info extension */ /* colors are floats scaled to ints */ int transparentRed, transparentGreen, transparentBlue, transparentAlpha; int transparentIndex; int multiSampleSize; int nMultiSampleBuffers; int visualSelectGroup; }; #define __GLX_MIN_CONFIG_PROPS 18 #define __GLX_MAX_CONFIG_PROPS 500 #define __GLX_EXT_CONFIG_PROPS 10 /* ** Since we send all non-core visual properties as token, value pairs, ** we require 2 words across the wire. In order to maintain backwards ** compatibility, we need to send the total number of words that the ** VisualConfigs are sent back in so old libraries can simply "ignore" ** the new properties. */ #define __GLX_TOTAL_CONFIG (__GLX_MIN_CONFIG_PROPS + \ 2 * __GLX_EXT_CONFIG_PROPS) struct __GLXFBConfigRec { int visualType; int transparentType; /* colors are floats scaled to ints */ int transparentRed, transparentGreen, transparentBlue, transparentAlpha; int transparentIndex; int visualCaveat; int associatedVisualId; int screen; int drawableType; int renderType; int maxPbufferWidth, maxPbufferHeight, maxPbufferPixels; int optimalPbufferWidth, optimalPbufferHeight; /* for SGIX_pbuffer */ int visualSelectGroup; /* visuals grouped by select priority */ unsigned int id; GLboolean rgbMode; GLboolean colorIndexMode; GLboolean doubleBufferMode; GLboolean stereoMode; GLboolean haveAccumBuffer; GLboolean haveDepthBuffer; GLboolean haveStencilBuffer; /* The number of bits present in various buffers */ GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits; GLint depthBits; GLint stencilBits; GLint indexBits; GLint redBits, greenBits, blueBits, alphaBits; GLuint redMask, greenMask, blueMask, alphaMask; GLuint multiSampleSize; /* Number of samples per pixel (0 if no ms) */ GLuint nMultiSampleBuffers; /* Number of available ms buffers */ GLint maxAuxBuffers; /* frame buffer level */ GLint level; /* color ranges (for SGI_color_range) */ GLboolean extendedRange; GLdouble minRed, maxRed; GLdouble minGreen, maxGreen; GLdouble minBlue, maxBlue; GLdouble minAlpha, maxAlpha; }; #define __GLX_TOTAL_FBCONFIG_PROPS 35 #endif /* !__GLX_glxint_h__ */ xorgproto-2023.2/include/GL/glxtokens.h0000644000175000017500000002624514443010026014705 00000000000000#ifndef __GLX_glxtokens_h__ #define __GLX_glxtokens_h__ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ #ifdef __cplusplus extern "C" { #endif #define GLX_VERSION_1_1 1 #define GLX_VERSION_1_2 1 #define GLX_VERSION_1_3 1 #define GLX_VERSION_1_4 1 /* ** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib) */ #define GLX_USE_GL 1 /* support GLX rendering */ #define GLX_BUFFER_SIZE 2 /* depth of the color buffer */ #define GLX_LEVEL 3 /* level in plane stacking */ #define GLX_RGBA 4 /* true if RGBA mode */ #define GLX_DOUBLEBUFFER 5 /* double buffering supported */ #define GLX_STEREO 6 /* stereo buffering supported */ #define GLX_AUX_BUFFERS 7 /* number of aux buffers */ #define GLX_RED_SIZE 8 /* number of red component bits */ #define GLX_GREEN_SIZE 9 /* number of green component bits */ #define GLX_BLUE_SIZE 10 /* number of blue component bits */ #define GLX_ALPHA_SIZE 11 /* number of alpha component bits */ #define GLX_DEPTH_SIZE 12 /* number of depth bits */ #define GLX_STENCIL_SIZE 13 /* number of stencil bits */ #define GLX_ACCUM_RED_SIZE 14 /* number of red accum bits */ #define GLX_ACCUM_GREEN_SIZE 15 /* number of green accum bits */ #define GLX_ACCUM_BLUE_SIZE 16 /* number of blue accum bits */ #define GLX_ACCUM_ALPHA_SIZE 17 /* number of alpha accum bits */ /* ** FBConfig-specific attributes */ #define GLX_X_VISUAL_TYPE 0x22 #define GLX_CONFIG_CAVEAT 0x20 /* Like visual_info VISUAL_CAVEAT_EXT */ #define GLX_TRANSPARENT_TYPE 0x23 #define GLX_TRANSPARENT_INDEX_VALUE 0x24 #define GLX_TRANSPARENT_RED_VALUE 0x25 #define GLX_TRANSPARENT_GREEN_VALUE 0x26 #define GLX_TRANSPARENT_BLUE_VALUE 0x27 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28 #define GLX_DRAWABLE_TYPE 0x8010 #define GLX_RENDER_TYPE 0x8011 #define GLX_X_RENDERABLE 0x8012 #define GLX_FBCONFIG_ID 0x8013 #define GLX_MAX_PBUFFER_WIDTH 0x8016 #define GLX_MAX_PBUFFER_HEIGHT 0x8017 #define GLX_MAX_PBUFFER_PIXELS 0x8018 #define GLX_VISUAL_ID 0x800B /* FBConfigSGIX Attributes */ #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A /* ** Error return values from glXGetConfig. Success is indicated by ** a value of 0. */ #define GLX_BAD_SCREEN 1 /* screen # is bad */ #define GLX_BAD_ATTRIBUTE 2 /* attribute to get is bad */ #define GLX_NO_EXTENSION 3 /* no glx extension on server */ #define GLX_BAD_VISUAL 4 /* visual # not known by GLX */ #define GLX_BAD_CONTEXT 5 /* returned only by import_context EXT? */ #define GLX_BAD_VALUE 6 /* returned only by glXSwapIntervalSGI? */ #define GLX_BAD_ENUM 7 /* unused? */ /* FBConfig attribute values */ /* ** Generic "don't care" value for glX ChooseFBConfig attributes (except ** GLX_LEVEL) */ #define GLX_DONT_CARE 0xFFFFFFFF /* GLX_RENDER_TYPE bits */ #define GLX_RGBA_BIT 0x00000001 #define GLX_COLOR_INDEX_BIT 0x00000002 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 /* GLX_DRAWABLE_TYPE bits */ #define GLX_WINDOW_BIT 0x00000001 #define GLX_PIXMAP_BIT 0x00000002 #define GLX_PBUFFER_BIT 0x00000004 /* GLX_CONFIG_CAVEAT attribute values */ #define GLX_NONE 0x8000 #define GLX_SLOW_CONFIG 0x8001 #define GLX_NON_CONFORMANT_CONFIG 0x800D /* GLX_X_VISUAL_TYPE attribute values */ #define GLX_TRUE_COLOR 0x8002 #define GLX_DIRECT_COLOR 0x8003 #define GLX_PSEUDO_COLOR 0x8004 #define GLX_STATIC_COLOR 0x8005 #define GLX_GRAY_SCALE 0x8006 #define GLX_STATIC_GRAY 0x8007 /* GLX_TRANSPARENT_TYPE attribute values */ /* #define GLX_NONE 0x8000 */ #define GLX_TRANSPARENT_RGB 0x8008 #define GLX_TRANSPARENT_INDEX 0x8009 /* glXCreateGLXPbuffer attributes */ #define GLX_PRESERVED_CONTENTS 0x801B #define GLX_LARGEST_PBUFFER 0x801C #define GLX_PBUFFER_HEIGHT 0x8040 /* New for GLX 1.3 */ #define GLX_PBUFFER_WIDTH 0x8041 /* New for GLX 1.3 */ /* glXQueryGLXPBuffer attributes */ #define GLX_WIDTH 0x801D #define GLX_HEIGHT 0x801E #define GLX_EVENT_MASK 0x801F /* glXCreateNewContext render_type attribute values */ #define GLX_RGBA_TYPE 0x8014 #define GLX_COLOR_INDEX_TYPE 0x8015 /* glXQueryContext attributes */ /* #define GLX_FBCONFIG_ID 0x8013 */ /* #define GLX_RENDER_TYPE 0x8011 */ #define GLX_SCREEN 0x800C /* glXSelectEvent event mask bits */ #define GLX_PBUFFER_CLOBBER_MASK 0x08000000 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 /* GLXPbufferClobberEvent event_type values */ #define GLX_DAMAGED 0x8020 #define GLX_SAVED 0x8021 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 #define GLX_BLIT_COMPLETE_INTEL 0x8181 #define GLX_FLIP_COMPLETE_INTEL 0x8182 /* GLXPbufferClobberEvent draw_type values */ #define GLX_WINDOW 0x8022 #define GLX_PBUFFER 0x8023 /* GLXPbufferClobberEvent buffer_mask bits */ #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 #define GLX_AUX_BUFFERS_BIT 0x00000010 #define GLX_DEPTH_BUFFER_BIT 0x00000020 #define GLX_STENCIL_BUFFER_BIT 0x00000040 #define GLX_ACCUM_BUFFER_BIT 0x00000080 /* ** Extension return values from glXGetConfig. These are also ** accepted as parameter values for glXChooseVisual. */ #define GLX_X_VISUAL_TYPE_EXT 0x22 /* visual_info extension type */ #define GLX_TRANSPARENT_TYPE_EXT 0x23 /* visual_info extension */ #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 /* visual_info extension */ #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 /* visual_info extension */ #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 /* visual_info extension */ #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 /* visual_info extension */ #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 /* visual_info extension */ /* Property values for visual_type */ #define GLX_TRUE_COLOR_EXT 0x8002 #define GLX_DIRECT_COLOR_EXT 0x8003 #define GLX_PSEUDO_COLOR_EXT 0x8004 #define GLX_STATIC_COLOR_EXT 0x8005 #define GLX_GRAY_SCALE_EXT 0x8006 #define GLX_STATIC_GRAY_EXT 0x8007 /* Property values for transparent pixel */ #define GLX_NONE_EXT 0x8000 #define GLX_TRANSPARENT_RGB_EXT 0x8008 #define GLX_TRANSPARENT_INDEX_EXT 0x8009 /* Property values for visual_rating */ #define GLX_VISUAL_CAVEAT_EXT 0x20 /* visual_rating extension type */ #define GLX_SLOW_VISUAL_EXT 0x8001 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D /* Property values for swap method (GLX_OML_swap_method) */ #define GLX_SWAP_METHOD_OML 0x8060 #define GLX_SWAP_EXCHANGE_OML 0x8061 #define GLX_SWAP_COPY_OML 0x8062 #define GLX_SWAP_UNDEFINED_OML 0x8063 /* Property values for multi-sampling */ #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 /* visuals grouped by select priority */ /* ** Names for attributes to glXGetClientString. */ #define GLX_VENDOR 0x1 #define GLX_VERSION 0x2 #define GLX_EXTENSIONS 0x3 /* ** Names for attributes to glXQueryContextInfoEXT. */ #define GLX_SHARE_CONTEXT_EXT 0x800A /* id of share context */ #define GLX_VISUAL_ID_EXT 0x800B /* id of context's visual */ #define GLX_SCREEN_EXT 0x800C /* screen number */ /* ** GLX_EXT_texture_from_pixmap */ #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 #define GLX_Y_INVERTED_EXT 0x20D4 #define GLX_TEXTURE_FORMAT_EXT 0x20D5 #define GLX_TEXTURE_TARGET_EXT 0x20D6 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA #define GLX_TEXTURE_1D_BIT_EXT 0x00000001 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 #define GLX_TEXTURE_1D_EXT 0x20DB #define GLX_TEXTURE_2D_EXT 0x20DC #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD #define GLX_FRONT_LEFT_EXT 0x20DE #define GLX_FRONT_RIGHT_EXT 0x20DF #define GLX_BACK_LEFT_EXT 0x20E0 #define GLX_BACK_RIGHT_EXT 0x20E1 #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT #define GLX_BACK_EXT GLX_BACK_LEFT_EXT #define GLX_AUX0_EXT 0x20E2 #define GLX_AUX1_EXT 0x20E3 #define GLX_AUX2_EXT 0x20E4 #define GLX_AUX3_EXT 0x20E5 #define GLX_AUX4_EXT 0x20E6 #define GLX_AUX5_EXT 0x20E7 #define GLX_AUX6_EXT 0x20E8 #define GLX_AUX7_EXT 0x20E9 #define GLX_AUX8_EXT 0x20EA #define GLX_AUX9_EXT 0x20EB /* * GLX 1.4 and later: */ #define GLX_SAMPLE_BUFFERS_SGIS 100000 #define GLX_SAMPLES_SGIS 100001 /* * GLX_EXT_framebuffer_SRGB */ #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 /* * GLX_ARB_create_context * GLX_ARB_create_context_profile * GLX_EXT_create_context_es2_profile */ #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 #define GLX_CONTEXT_FLAGS_ARB 0x2094 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x0001 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x0002 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x0004 /* * GLX_ARB_create_context_robustness */ #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x0004 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 #ifdef __cplusplus } #endif #endif /* !__GLX_glxtokens_h__ */ xorgproto-2023.2/include/GL/meson.build0000644000175000017500000000017314443010026014650 00000000000000install_headers( 'glxint.h', 'glxmd.h', 'glxproto.h', 'glxtokens.h', subdir : 'GL') subdir('internal') xorgproto-2023.2/include/GL/internal/0000755000175000017500000000000014443010035014401 500000000000000xorgproto-2023.2/include/GL/internal/meson.build0000644000175000017500000000006414443010026016463 00000000000000install_headers('glcore.h', subdir : 'GL/internal') xorgproto-2023.2/include/GL/internal/glcore.h0000644000175000017500000001425314443010026015752 00000000000000#ifndef __gl_core_h_ #define __gl_core_h_ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ #if !defined(_WIN32_WCE) #include #endif #define GL_CORE_SGI 1 #define GL_CORE_MESA 2 #define GL_CORE_APPLE 4 #define GL_CORE_WINDOWS 8 typedef struct __GLcontextRec __GLcontext; /* ** This file defines the interface between the GL core and the surrounding ** "operating system" that supports it (currently the GLX or WGL extensions). ** ** Members (data and function pointers) are documented as imported or ** exported according to how they are used by the core rendering functions. ** Imported members are initialized by the "operating system" and used by ** the core functions. Exported members are initialized by the core functions ** and used by the "operating system". */ /** * Mode and limit information for a context. This information is * kept around in the context so that values can be used during * command execution, and for returning information about the * context to the application. * * Instances of this structure are shared by the driver and the loader. To * maintain binary compatibility, new fields \b must be added only to the * end of the structure. * * \sa _gl_context_modes_create */ typedef struct __GLcontextModesRec { struct __GLcontextModesRec * next; GLboolean rgbMode; GLboolean floatMode; GLboolean colorIndexMode; GLuint doubleBufferMode; GLuint stereoMode; GLboolean haveAccumBuffer; GLboolean haveDepthBuffer; GLboolean haveStencilBuffer; GLint redBits, greenBits, blueBits, alphaBits; /* bits per comp */ GLuint redMask, greenMask, blueMask, alphaMask; GLint rgbBits; /* total bits for rgb */ GLint indexBits; /* total bits for colorindex */ GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits; GLint depthBits; GLint stencilBits; GLint numAuxBuffers; GLint level; GLint pixmapMode; /* GLX */ GLint visualID; GLint visualType; /**< One of the GLX X visual types. (i.e., * \c GLX_TRUE_COLOR, etc.) */ /* EXT_visual_rating / GLX 1.2 */ GLint visualRating; /* EXT_visual_info / GLX 1.2 */ GLint transparentPixel; /* colors are floats scaled to ints */ GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha; GLint transparentIndex; /* ARB_multisample / SGIS_multisample */ GLint sampleBuffers; GLint samples; /* SGIX_fbconfig / GLX 1.3 */ GLint drawableType; GLint renderType; GLint xRenderable; GLint fbconfigID; /* SGIX_pbuffer / GLX 1.3 */ GLint maxPbufferWidth; GLint maxPbufferHeight; GLint maxPbufferPixels; GLint optimalPbufferWidth; /* Only for SGIX_pbuffer. */ GLint optimalPbufferHeight; /* Only for SGIX_pbuffer. */ /* SGIX_visual_select_group */ GLint visualSelectGroup; /* OML_swap_method */ GLint swapMethod; GLint screen; /* EXT_texture_from_pixmap */ GLint bindToTextureRgb; GLint bindToTextureRgba; GLint bindToMipmapTexture; GLint bindToTextureTargets; GLint yInverted; } __GLcontextModes; /* Several fields of __GLcontextModes can take these as values. Since * GLX header files may not be available everywhere they need to be used, * redefine them here. */ #define GLX_NONE 0x8000 #define GLX_SLOW_CONFIG 0x8001 #define GLX_TRUE_COLOR 0x8002 #define GLX_DIRECT_COLOR 0x8003 #define GLX_PSEUDO_COLOR 0x8004 #define GLX_STATIC_COLOR 0x8005 #define GLX_GRAY_SCALE 0x8006 #define GLX_STATIC_GRAY 0x8007 #define GLX_TRANSPARENT_RGB 0x8008 #define GLX_TRANSPARENT_INDEX 0x8009 #define GLX_NON_CONFORMANT_CONFIG 0x800D #define GLX_SWAP_EXCHANGE_OML 0x8061 #define GLX_SWAP_COPY_OML 0x8062 #define GLX_SWAP_UNDEFINED_OML 0x8063 #define GLX_DONT_CARE 0xFFFFFFFF #define GLX_RGBA_BIT 0x00000001 #define GLX_COLOR_INDEX_BIT 0x00000002 #define GLX_WINDOW_BIT 0x00000001 #define GLX_PIXMAP_BIT 0x00000002 #define GLX_PBUFFER_BIT 0x00000004 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 #define GLX_Y_INVERTED_EXT 0x20D4 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 #endif /* __gl_core_h_ */ xorgproto-2023.2/include/GL/glxmd.h0000644000175000017500000000404514443010026013774 00000000000000#ifndef _GLX_glxmd_h_ #define _GLX_glxmd_h_ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ /* ** Machine dependent declarations. */ /* ** Define floating point wire types. These are in IEEE format on the wire. */ typedef float FLOAT32; typedef double FLOAT64; /* ** Like B32, but this is used to store floats in a request. ** ** NOTE: Machines that have a native 32-bit IEEE float can define this as ** nothing. Machines that don't might mimic the float with an integer, ** and then define this to :32. */ #define F32 #endif /* _GLX_glxmd_h_ */ xorgproto-2023.2/include/GL/glxproto.h0000644000175000017500000023130314443010026014536 00000000000000#ifndef _GLX_glxproto_h_ #define _GLX_glxproto_h_ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ #include /*****************************************************************************/ /* ** Errors. */ #define GLXBadContext 0 #define GLXBadContextState 1 #define GLXBadDrawable 2 #define GLXBadPixmap 3 #define GLXBadContextTag 4 #define GLXBadCurrentWindow 5 #define GLXBadRenderRequest 6 #define GLXBadLargeRequest 7 #define GLXUnsupportedPrivateRequest 8 #define GLXBadFBConfig 9 #define GLXBadPbuffer 10 #define GLXBadCurrentDrawable 11 #define GLXBadWindow 12 #define GLXBadProfileARB 13 #define __GLX_NUMBER_ERRORS 14 /* ** Events. ** __GLX_NUMBER_EVENTS is set to 17 to account for the BufferClobberSGIX ** event - this helps initialization if the server supports the pbuffer ** extension and the client doesn't. */ #define GLX_PbufferClobber 0 #define GLX_BufferSwapComplete 1 #define __GLX_NUMBER_EVENTS 17 #define GLX_EXTENSION_NAME "GLX" #define GLX_EXTENSION_ALIAS "SGI-GLX" #define __GLX_MAX_CONTEXT_PROPS 3 #ifndef GLX_VENDOR #define GLX_VENDOR 0x1 #endif #ifndef GLX_VERSION #define GLX_VERSION 0x2 #endif #ifndef GLX_EXTENSIONS #define GLX_EXTENSIONS 0x3 #endif /*****************************************************************************/ /* ** For the structure definitions in this file, we must redefine these types in ** terms of Xmd.h types, which may include bitfields. All of these are ** undef'ed at the end of this file, restoring the definitions in glx.h. */ #define GLXContextID CARD32 #define GLXPixmap CARD32 #define GLXDrawable CARD32 #define GLXPbuffer CARD32 #define GLXWindow CARD32 #define GLXFBConfigID CARD32 #define GLXFBConfigIDSGIX CARD32 #define GLXPbufferSGIX CARD32 /* ** ContextTag is not exposed to the API. */ typedef CARD32 GLXContextTag; /*****************************************************************************/ /* ** Sizes of basic wire types. */ #define __GLX_SIZE_INT8 1 #define __GLX_SIZE_INT16 2 #define __GLX_SIZE_INT32 4 #define __GLX_SIZE_CARD8 1 #define __GLX_SIZE_CARD16 2 #define __GLX_SIZE_CARD32 4 #define __GLX_SIZE_FLOAT32 4 #define __GLX_SIZE_FLOAT64 8 /*****************************************************************************/ /* Requests */ /* ** Render command request. A bunch of rendering commands are packed into ** a single X extension request. */ typedef struct GLXRender { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; } xGLXRenderReq; #define sz_xGLXRenderReq 8 /* ** The maximum size that a GLXRender command can be. The value must fit ** in 16 bits and should be a multiple of 4. */ #define __GLX_MAX_RENDER_CMD_SIZE 64000 /* ** Large render command request. A single large rendering command ** is output in multiple X extension requests. The first packet ** contains an opcode dependent header (see below) that describes ** the data that follows. */ typedef struct GLXRenderLarge { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; CARD16 requestNumber; CARD16 requestTotal; CARD32 dataBytes; } xGLXRenderLargeReq; #define sz_xGLXRenderLargeReq 16 /* ** GLX single request. Commands that go over as single GLX protocol ** requests use this structure. The glxCode will be one of the X_GLsop ** opcodes. */ typedef struct GLXSingle { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; } xGLXSingleReq; #define sz_xGLXSingleReq 8 /* ** glXQueryVersion request */ typedef struct GLXQueryVersion { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 majorVersion; CARD32 minorVersion; } xGLXQueryVersionReq; #define sz_xGLXQueryVersionReq 12 /* ** glXIsDirect request */ typedef struct GLXIsDirect { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; } xGLXIsDirectReq; #define sz_xGLXIsDirectReq 8 /* ** glXCreateContext request */ typedef struct GLXCreateContext { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; CARD32 visual; CARD32 screen; GLXContextID shareList; BOOL isDirect; CARD8 reserved1; CARD16 reserved2; } xGLXCreateContextReq; #define sz_xGLXCreateContextReq 24 /* ** glXDestroyContext request */ typedef struct GLXDestroyContext { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; } xGLXDestroyContextReq; #define sz_xGLXDestroyContextReq 8 /* ** glXMakeCurrent request */ typedef struct GLXMakeCurrent { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXDrawable drawable; GLXContextID context; GLXContextTag oldContextTag; } xGLXMakeCurrentReq; #define sz_xGLXMakeCurrentReq 16 /* ** glXWaitGL request */ typedef struct GLXWaitGL { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; } xGLXWaitGLReq; #define sz_xGLXWaitGLReq 8 /* ** glXWaitX request */ typedef struct GLXWaitX { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; } xGLXWaitXReq; #define sz_xGLXWaitXReq 8 /* ** glXCopyContext request */ typedef struct GLXCopyContext { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID source; GLXContextID dest; CARD32 mask; GLXContextTag contextTag; } xGLXCopyContextReq; #define sz_xGLXCopyContextReq 20 /* ** glXSwapBuffers request */ typedef struct GLXSwapBuffers { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; GLXDrawable drawable; } xGLXSwapBuffersReq; #define sz_xGLXSwapBuffersReq 12 /* ** glXUseXFont request */ typedef struct GLXUseXFont { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag contextTag; CARD32 font; CARD32 first; CARD32 count; CARD32 listBase; } xGLXUseXFontReq; #define sz_xGLXUseXFontReq 24 /* ** glXCreateGLXPixmap request */ typedef struct GLXCreateGLXPixmap { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; CARD32 visual; CARD32 pixmap; GLXPixmap glxpixmap; } xGLXCreateGLXPixmapReq; #define sz_xGLXCreateGLXPixmapReq 20 /* ** glXDestroyGLXPixmap request */ typedef struct GLXDestroyGLXPixmap { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXPixmap glxpixmap; } xGLXDestroyGLXPixmapReq; #define sz_xGLXDestroyGLXPixmapReq 8 /* ** glXGetVisualConfigs request */ typedef struct GLXGetVisualConfigs { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; } xGLXGetVisualConfigsReq; #define sz_xGLXGetVisualConfigsReq 8 /* ** glXVendorPrivate request. */ typedef struct GLXVendorPrivate { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ GLXContextTag contextTag; /* ** More data may follow; this is just the header. */ } xGLXVendorPrivateReq; #define sz_xGLXVendorPrivateReq 12 /* ** glXVendorPrivateWithReply request */ typedef struct GLXVendorPrivateWithReply { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ GLXContextTag contextTag; /* ** More data may follow; this is just the header. */ } xGLXVendorPrivateWithReplyReq; #define sz_xGLXVendorPrivateWithReplyReq 12 /* ** glXQueryExtensionsString request */ typedef struct GLXQueryExtensionsString { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; } xGLXQueryExtensionsStringReq; #define sz_xGLXQueryExtensionsStringReq 8 /* ** glXQueryServerString request */ typedef struct GLXQueryServerString { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; CARD32 name; } xGLXQueryServerStringReq; #define sz_xGLXQueryServerStringReq 12 /* ** glXClientInfo request */ typedef struct GLXClientInfo { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 major; CARD32 minor; CARD32 numbytes; } xGLXClientInfoReq; #define sz_xGLXClientInfoReq 16 /*** Start of GLX 1.3 requests */ /* ** glXGetFBConfigs request */ typedef struct GLXGetFBConfigs { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; } xGLXGetFBConfigsReq; #define sz_xGLXGetFBConfigsReq 8 /* ** glXCreatePixmap request */ typedef struct GLXCreatePixmap { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; GLXFBConfigID fbconfig; CARD32 pixmap; GLXPixmap glxpixmap; CARD32 numAttribs; /* followed by attribute list */ } xGLXCreatePixmapReq; #define sz_xGLXCreatePixmapReq 24 /* ** glXDestroyPixmap request */ typedef struct GLXDestroyPixmap { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXPixmap glxpixmap; } xGLXDestroyPixmapReq; #define sz_xGLXDestroyPixmapReq 8 /* ** glXCreateNewContext request */ typedef struct GLXCreateNewContext { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; GLXFBConfigID fbconfig; CARD32 screen; CARD32 renderType; GLXContextID shareList; BOOL isDirect; CARD8 reserved1; CARD16 reserved2; } xGLXCreateNewContextReq; #define sz_xGLXCreateNewContextReq 28 /* ** glXQueryContext request */ typedef struct GLXQueryContext { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; } xGLXQueryContextReq; #define sz_xGLXQueryContextReq 8 /* ** glXMakeContextCurrent request */ typedef struct GLXMakeContextCurrent { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextTag oldContextTag; GLXDrawable drawable; GLXDrawable readdrawable; GLXContextID context; } xGLXMakeContextCurrentReq; #define sz_xGLXMakeContextCurrentReq 20 /* ** glXCreatePbuffer request */ typedef struct GLXCreatePbuffer { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; GLXFBConfigID fbconfig; GLXPbuffer pbuffer; CARD32 numAttribs; /* followed by attribute list */ } xGLXCreatePbufferReq; #define sz_xGLXCreatePbufferReq 20 /* ** glXDestroyPbuffer request */ typedef struct GLXDestroyPbuffer { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXPbuffer pbuffer; } xGLXDestroyPbufferReq; #define sz_xGLXDestroyPbufferReq 8 /* ** glXGetDrawableAttributes request */ typedef struct GLXGetDrawableAttributes { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXDrawable drawable; } xGLXGetDrawableAttributesReq; #define sz_xGLXGetDrawableAttributesReq 8 /* ** glXChangeDrawableAttributes request */ typedef struct GLXChangeDrawableAttributes { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXDrawable drawable; CARD32 numAttribs; /* followed by attribute list */ } xGLXChangeDrawableAttributesReq; #define sz_xGLXChangeDrawableAttributesReq 12 /* ** glXCreateWindow request */ typedef struct GLXCreateWindow { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 screen; GLXFBConfigID fbconfig; CARD32 window; GLXWindow glxwindow; CARD32 numAttribs; /* followed by attribute list */ } xGLXCreateWindowReq; #define sz_xGLXCreateWindowReq 24 /* ** glXDestroyWindow request */ typedef struct GLXDestroyWindow { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXWindow glxwindow; } xGLXDestroyWindowReq; #define sz_xGLXDestroyWindowReq 8 /* Replies */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 error; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetErrorReply; #define sz_xGLXGetErrorReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; GLXContextTag contextTag; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXMakeCurrentReply; #define sz_xGLXMakeCurrentReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXReadPixelsReply; #define sz_xGLXReadPixelsReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 width; CARD32 height; CARD32 depth; CARD32 pad6; } xGLXGetTexImageReply; #define sz_xGLXGetTexImageReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 width; CARD32 height; CARD32 pad5; CARD32 pad6; } xGLXGetSeparableFilterReply; #define sz_xGLXGetSeparableFilterReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 width; CARD32 height; CARD32 pad5; CARD32 pad6; } xGLXGetConvolutionFilterReply; #define sz_xGLXGetConvolutionFilterReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 width; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetHistogramReply; #define sz_xGLXGetHistogramReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetMinmaxReply; #define sz_xGLXGetMinmaxReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 retval; CARD32 size; CARD32 newMode; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXRenderModeReply; #define sz_xGLXRenderModeReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 majorVersion; CARD32 minorVersion; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryVersionReply; #define sz_xGLXQueryVersionReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 numVisuals; CARD32 numProps; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetVisualConfigsReply; #define sz_xGLXGetVisualConfigsReply 32 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; BOOL isDirect; CARD8 pad1; CARD16 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; CARD32 pad7; } xGLXIsDirectReply; #define sz_xGLXIsDirectReply 32 /* ** This reply structure is used for all single replies. Single replies ** ship either 1 piece of data or N pieces of data. In these cases ** size indicates how much data is to be returned. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 retval; CARD32 size; CARD32 pad3; /* NOTE: may hold a single value */ CARD32 pad4; /* NOTE: may hold half a double */ CARD32 pad5; CARD32 pad6; } xGLXSingleReply; #define sz_xGLXSingleReply 32 /* ** This reply structure is used for all Vendor Private replies. Vendor ** Private replies can ship up to 24 bytes within the header or can ** be variable sized, in which case, the reply length field indicates ** the number of words of data which follow the header. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 retval; CARD32 size; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXVendorPrivReply; #define sz_xGLXVendorPrivReply 32 /* ** QueryExtensionsStringReply ** n indicates the number of bytes to be returned. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryExtensionsStringReply; #define sz_xGLXQueryExtensionsStringReply 32 /* ** QueryServerString Reply struct ** n indicates the number of bytes to be returned. */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 pad3; /* NOTE: may hold a single value */ CARD32 pad4; /* NOTE: may hold half a double */ CARD32 pad5; CARD32 pad6; } xGLXQueryServerStringReply; #define sz_xGLXQueryServerStringReply 32 /*** Start of GLX 1.3 replies */ /* ** glXGetFBConfigs reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 numFBConfigs; CARD32 numAttribs; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetFBConfigsReply; #define sz_xGLXGetFBConfigsReply 32 /* ** glXQueryContext reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 n; /* number of attribute/value pairs */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryContextReply; #define sz_xGLXQueryContextReply 32 /* ** glXMakeContextCurrent reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; GLXContextTag contextTag; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXMakeContextCurrentReply; #define sz_xGLXMakeContextCurrentReply 32 /* ** glXCreateGLXPbuffer reply ** This is used only in the direct rendering case on SGIs - otherwise ** CreateGLXPbuffer has no reply. It is not part of GLX 1.3. */ typedef struct { BYTE type; /* X_Reply */ CARD8 success; CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXCreateGLXPbufferReply; #define sz_xGLXCreateGLXPbufferReply 32 /* ** glXGetDrawableAttributes reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 numAttribs; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetDrawableAttributesReply; #define sz_xGLXGetDrawableAttributesReply 32 /* ** glXGetColorTable reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 pad2; CARD32 width; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetColorTableReply; #define sz_xGLXGetColorTableReply 32 /************************************************************************/ /* GLX extension requests and replies */ /* ** glXQueryContextInfoEXT request */ typedef struct GLXQueryContextInfoEXT { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ GLXContextID context; } xGLXQueryContextInfoEXTReq; #define sz_xGLXQueryContextInfoEXTReq 16 /* ** glXQueryContextInfoEXT reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 n; /* number of attribute/value pairs */ CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryContextInfoEXTReply; #define sz_xGLXQueryContextInfoEXTReply 32 /* ** glXMakeCurrentReadSGI request */ typedef struct GLXMakeCurrentReadSGI { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ GLXContextTag oldContextTag; GLXDrawable drawable; GLXDrawable readable; GLXContextID context; } xGLXMakeCurrentReadSGIReq; #define sz_xGLXMakeCurrentReadSGIReq 24 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; GLXContextTag contextTag; CARD32 writeVid; CARD32 writeType; CARD32 readVid; CARD32 readType; CARD32 pad6; } xGLXMakeCurrentReadSGIReply; #define sz_xGLXMakeCurrentReadSGIReply 32 /* ** glXGetFBConfigsSGIX request */ typedef struct GLXGetFBConfigsSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; } xGLXGetFBConfigsSGIXReq; #define sz_xGLXGetFBConfigsSGIXReq 16 /* ** glXCreateContextWithConfigSGIX request */ typedef struct GLXCreateContextWithConfigSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ GLXContextID context; GLXFBConfigID fbconfig; CARD32 screen; CARD32 renderType; GLXContextID shareList; BOOL isDirect; CARD8 reserved1; CARD16 reserved2; } xGLXCreateContextWithConfigSGIXReq; #define sz_xGLXCreateContextWithConfigSGIXReq 36 /* ** glXCreatePixmapWithConfigSGIX request */ typedef struct GLXCreateGLXPixmapWithConfigSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; GLXFBConfigID fbconfig; CARD32 pixmap; GLXPixmap glxpixmap; } xGLXCreateGLXPixmapWithConfigSGIXReq; #define sz_xGLXCreateGLXPixmapWithConfigSGIXReq 28 /* ** glXCreateGLXPbufferSGIX request */ typedef struct GLXCreateGLXPbufferSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; GLXFBConfigID fbconfig; GLXPbuffer pbuffer; CARD32 width; CARD32 height; /* followed by attribute list */ } xGLXCreateGLXPbufferSGIXReq; #define sz_xGLXCreateGLXPbufferSGIXReq 32 /* ** glXDestroyGLXPbufferSGIX request */ typedef struct GLXDestroyGLXPbuffer { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ GLXPbuffer pbuffer; } xGLXDestroyGLXPbufferSGIXReq; #define sz_xGLXDestroyGLXPbufferSGIXReq 16 /* ** glXChangeDrawableAttributesSGIX request */ typedef struct GLXChangeDrawableAttributesSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ GLXDrawable drawable; CARD32 numAttribs; /* followed by attribute list */ } xGLXChangeDrawableAttributesSGIXReq; #define sz_xGLXChangeDrawableAttributesSGIXReq 20 /* ** glXGetDrawableAttributesSGIX request */ typedef struct GLXGetDrawableAttributesSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ GLXDrawable drawable; } xGLXGetDrawableAttributesSGIXReq; #define sz_xGLXGetDrawableAttributesSGIXReq 16 /* ** glXGetDrawableAttributesSGIX reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 numAttribs; CARD32 pad2; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXGetDrawableAttributesSGIXReply; #define sz_xGLXGetDrawableAttributesSGIXReply 32 /* ** glXJoinSwapGroupSGIX request */ typedef struct GLXJoinSwapGroupSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 unused; /* corresponds to contextTag in hdr */ GLXDrawable drawable; GLXDrawable member; } xGLXJoinSwapGroupSGIXReq; #define sz_xGLXJoinSwapGroupSGIXReq 20 /* ** glXBindSwapBarrierSGIX request */ typedef struct GLXBindSwapBarrierSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 unused; /* corresponds to contextTag in hdr */ GLXDrawable drawable; CARD32 barrier; } xGLXBindSwapBarrierSGIXReq; #define sz_xGLXBindSwapBarrierSGIXReq 20 /* ** glXQueryMaxSwapBarriersSGIX request */ typedef struct GLXQueryMaxSwapBarriersSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 unused; /* corresponds to contextTag in hdr */ CARD32 screen; } xGLXQueryMaxSwapBarriersSGIXReq; #define sz_xGLXQueryMaxSwapBarriersSGIXReq 16 typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 max; CARD32 size; CARD32 pad3; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryMaxSwapBarriersSGIXReply; #define sz_xGLXQueryMaxSwapBarriersSGIXReply 32 /* ** glXQueryHyperpipeNetworkSGIX request */ typedef struct GLXQueryHyperpipeNetworkSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; } xGLXQueryHyperpipeNetworkSGIXReq; #define sz_xGLXQueryHyperpipeNetworkSGIXReq 16 /* ** glXQueryHyperpipeNetworkSGIX reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 npipes; /* NOTE: may hold a single value */ CARD32 pad4; /* NOTE: may hold half a double */ CARD32 pad5; CARD32 pad6; } xGLXQueryHyperpipeNetworkSGIXReply; #define sz_xGLXQueryHyperpipeNetworkSGIXReply 32 /* ** glXDestroyHyperpipeConfigSGIX request */ typedef struct GLXDestroyHyperpipeConfigSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; CARD32 hpId; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xGLXDestroyHyperpipeConfigSGIXReq; #define sz_xGLXDestroyHyperpipeConfigSGIXReq 32 /* ** glXDestroyHyperpipeConfigSGIX reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 success; /* NOTE: may hold a single value */ CARD32 pad4; /* NOTE: may hold half a double */ CARD32 pad5; CARD32 pad6; } xGLXDestroyHyperpipeConfigSGIXReply; #define sz_xGLXDestroyHyperpipeConfigSGIXReply 32 /* ** glXQueryHyperpipeConfigSGIX request */ typedef struct GLXQueryHyperpipeConfigSGIX { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; CARD32 hpId; CARD32 pad2; CARD32 pad3; CARD32 pad4; } xGLXQueryHyperpipeConfigSGIXReq; #define sz_xGLXQueryHyperpipeConfigSGIXReq 32 /* ** glXQueryHyperpipeConfigSGIX reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 npipes; CARD32 pad4; CARD32 pad5; CARD32 pad6; } xGLXQueryHyperpipeConfigSGIXReply; #define sz_xGLXQueryHyperpipeConfigSGIXReply 32 /* ** glXHyperpipeConfigSGIX request */ typedef struct { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 vendorCode; /* vendor-specific opcode */ CARD32 pad1; /* unused; corresponds to contextTag in header */ CARD32 screen; CARD32 npipes; CARD32 networkId; CARD32 pad2; CARD32 pad3; /* followed by attribute list */ } xGLXHyperpipeConfigSGIXReq; #define sz_xGLXHyperpipeConfigSGIXReq 32 /* ** glXHyperpipeConfigSGIX reply */ typedef struct { BYTE type; /* X_Reply */ CARD8 unused; /* not used */ CARD16 sequenceNumber; CARD32 length; CARD32 pad1; CARD32 n; CARD32 npipes; CARD32 hpId; CARD32 pad5; CARD32 pad6; } xGLXHyperpipeConfigSGIXReply; #define sz_xGLXHyperpipeConfigSGIXReply 32 /** * \name Protocol structures for GLX_ARB_create_context and * GLX_ARB_create_context_profile */ /*@{*/ /** * Protocol header for glXSetClientInfoARB * * This structure is followed by \c numVersions * 2 \c CARD32 values listing * the OpenGL versions supported by the client. The pairs of values are an * OpenGL major version followed by a minor version. For example, * * CARD32 versions[4] = { 2, 1, 3, 0 }; * * says that the client supports OpenGL 2.1 and OpenGL 3.0. * * These are followed by \c numGLExtensionBytes bytes of \c STRING8 containing * the OpenGL extension string supported by the client and up to 3 bytes of * padding. * * The list of OpenGL extensions is followed by \c numGLXExtensionBytes bytes * of \c STRING8 containing the GLX extension string supported by the client * and up to 3 bytes of padding. * * This protocol replaces \c GLXClientInfo. * * \sa GLXClientInfo, GLXSetClientInfo2ARB */ typedef struct GLXSetClientInfoARB { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 major; CARD32 minor; CARD32 numVersions; CARD32 numGLExtensionBytes; CARD32 numGLXExtensionBytes; /* ** More data may follow; this is just the header. */ } xGLXSetClientInfoARBReq; #define sz_xGLXSetClientInfoARBReq 24 /** * Protocol head for glXCreateContextAttribsARB * * This protocol replaces \c GLXCreateContext, \c GLXCreateNewContext, and * \c GLXCreateContextWithConfigSGIX. */ typedef struct GLXCreateContextAttribsARB { CARD8 reqType; CARD8 glxCode; CARD16 length; GLXContextID context; GLXFBConfigID fbconfig; CARD32 screen; GLXContextID shareList; BOOL isDirect; CARD8 reserved1; CARD16 reserved2; CARD32 numAttribs; /* followed by attribute list */ } xGLXCreateContextAttribsARBReq; #define sz_xGLXCreateContextAttribsARBReq 28 /** * Protocol header for glXSetClientInfo2ARB * * The glXSetClientInfo2ARB protocol differs from glXSetClientInfoARB in that * the list of OpenGL versions supported by the client is 3 \c CARD32 values * per version: major version, minor version, and supported profile mask. * * This protocol replaces \c GLXClientInfo and \c GLXSetClientInfoARB. * * \sa GLXClientInfo, GLXSetClientInfoARB */ typedef struct GLXSetClientInfo2ARB { CARD8 reqType; CARD8 glxCode; CARD16 length; CARD32 major; CARD32 minor; CARD32 numVersions; CARD32 numGLExtensionBytes; CARD32 numGLXExtensionBytes; /* ** More data may follow; this is just the header. */ } xGLXSetClientInfo2ARBReq; #define sz_xGLXSetClientInfo2ARBReq 24 /*@}*/ /************************************************************************/ /* ** Events */ typedef struct { BYTE type; BYTE pad; CARD16 sequenceNumber; CARD16 event_type; /*** was clobber_class */ CARD16 draw_type; CARD32 drawable; CARD32 buffer_mask; /*** was mask */ CARD16 aux_buffer; CARD16 x; CARD16 y; CARD16 width; CARD16 height; CARD16 count; CARD32 unused2; } xGLXPbufferClobberEvent; typedef struct { BYTE type; BYTE pad; CARD16 sequenceNumber; CARD16 event_type; CARD32 drawable; CARD32 ust_hi; CARD32 ust_lo; CARD32 msc_hi; CARD32 msc_lo; CARD32 sbc_hi; CARD32 sbc_lo; } xGLXBufferSwapComplete; typedef struct { BYTE type; BYTE pad; CARD16 sequenceNumber; CARD16 event_type; CARD16 pad2; CARD32 drawable; CARD32 ust_hi; CARD32 ust_lo; CARD32 msc_hi; CARD32 msc_lo; CARD32 sbc; } xGLXBufferSwapComplete2; /************************************************************************/ /* ** Size of the standard X request header. */ #define __GLX_SINGLE_HDR_SIZE sz_xGLXSingleReq #define __GLX_VENDPRIV_HDR_SIZE sz_xGLXVendorPrivateReq #define __GLX_RENDER_HDR \ CARD16 length; \ CARD16 opcode #define __GLX_RENDER_HDR_SIZE 4 typedef struct { __GLX_RENDER_HDR; } __GLXrenderHeader; #define __GLX_RENDER_LARGE_HDR \ CARD32 length; \ CARD32 opcode #define __GLX_RENDER_LARGE_HDR_SIZE 8 typedef struct { __GLX_RENDER_LARGE_HDR; } __GLXrenderLargeHeader; /* ** The glBitmap, glPolygonStipple, glTexImage[12]D, glTexSubImage[12]D ** and glDrawPixels calls all have a pixel header transmitted after the ** Render or RenderLarge header and before their own opcode specific ** headers. */ #define __GLX_PIXEL_HDR \ BOOL swapBytes; \ BOOL lsbFirst; \ CARD8 reserved0; \ CARD8 reserved1; \ CARD32 rowLength; \ CARD32 skipRows; \ CARD32 skipPixels; \ CARD32 alignment #define __GLX_PIXEL_HDR_SIZE 20 typedef struct { __GLX_PIXEL_HDR; } __GLXpixelHeader; /* ** glTexImage[34]D and glTexSubImage[34]D calls ** all have a pixel header transmitted after the Render or RenderLarge ** header and before their own opcode specific headers. */ #define __GLX_PIXEL_3D_HDR \ BOOL swapBytes; \ BOOL lsbFirst; \ CARD8 reserved0; \ CARD8 reserved1; \ CARD32 rowLength; \ CARD32 imageHeight; \ CARD32 imageDepth; \ CARD32 skipRows; \ CARD32 skipImages; \ CARD32 skipVolumes; \ CARD32 skipPixels; \ CARD32 alignment #define __GLX_PIXEL_3D_HDR_SIZE 36 /* ** Data that is specific to a glBitmap call. The data is sent in the ** following order: ** Render or RenderLarge header ** Pixel header ** Bitmap header */ #define __GLX_BITMAP_HDR \ CARD32 width; \ CARD32 height; \ FLOAT32 xorig F32; \ FLOAT32 yorig F32; \ FLOAT32 xmove F32; \ FLOAT32 ymove F32 typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_BITMAP_HDR; } __GLXbitmapHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_BITMAP_HDR; } __GLXbitmapLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_BITMAP_HDR; } __GLXdispatchBitmapHeader; #define __GLX_BITMAP_HDR_SIZE 24 #define __GLX_BITMAP_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_BITMAP_HDR_SIZE) #define __GLX_BITMAP_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_HDR_SIZE + __GLX_BITMAP_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; } __GLXpolygonStippleHeader; #define __GLX_POLYGONSTIPPLE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE) /* ** Data that is specific to a glTexImage1D or glTexImage2D call. The ** data is sent in the following order: ** Render or RenderLarge header ** Pixel header ** TexImage header ** When a glTexImage1D call the height field is unexamined by the server. */ #define __GLX_TEXIMAGE_HDR \ CARD32 target; \ CARD32 level; \ CARD32 components; \ CARD32 width; \ CARD32 height; \ CARD32 border; \ CARD32 format; \ CARD32 type #define __GLX_TEXIMAGE_HDR_SIZE 32 #define __GLX_TEXIMAGE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_TEXIMAGE_HDR_SIZE) #define __GLX_TEXIMAGE_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_HDR_SIZE + __GLX_TEXIMAGE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_TEXIMAGE_HDR; } __GLXtexImageHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_TEXIMAGE_HDR; } __GLXtexImageLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_TEXIMAGE_HDR; } __GLXdispatchTexImageHeader; /* ** Data that is specific to a glTexImage3D or glTexImage4D call. The ** data is sent in the following order: ** Render or RenderLarge header ** Pixel 3D header ** TexImage 3D header ** When a glTexImage3D call the size4d and woffset fields are unexamined ** by the server. ** Could be used by all TexImage commands and perhaps should be in the ** future. */ #define __GLX_TEXIMAGE_3D_HDR \ CARD32 target; \ CARD32 level; \ CARD32 internalformat; \ CARD32 width; \ CARD32 height; \ CARD32 depth; \ CARD32 size4d; \ CARD32 border; \ CARD32 format; \ CARD32 type; \ CARD32 nullimage #define __GLX_TEXIMAGE_3D_HDR_SIZE 44 #define __GLX_TEXIMAGE_3D_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_3D_HDR_SIZE + \ __GLX_TEXIMAGE_3D_HDR_SIZE) #define __GLX_TEXIMAGE_3D_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_3D_HDR_SIZE + __GLX_TEXIMAGE_3D_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_3D_HDR; __GLX_TEXIMAGE_3D_HDR; } __GLXtexImage3DHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_3D_HDR; __GLX_TEXIMAGE_3D_HDR; } __GLXtexImage3DLargeHeader; typedef struct { __GLX_PIXEL_3D_HDR; __GLX_TEXIMAGE_3D_HDR; } __GLXdispatchTexImage3DHeader; /* ** Data that is specific to a glTexSubImage1D or glTexSubImage2D call. The ** data is sent in the following order: ** Render or RenderLarge header ** Pixel header ** TexSubImage header ** When a glTexSubImage1D call is made, the yoffset and height fields ** are unexamined by the server and are considered to be padding. */ #define __GLX_TEXSUBIMAGE_HDR \ CARD32 target; \ CARD32 level; \ CARD32 xoffset; \ CARD32 yoffset; \ CARD32 width; \ CARD32 height; \ CARD32 format; \ CARD32 type; \ CARD32 nullImage \ #define __GLX_TEXSUBIMAGE_HDR_SIZE 36 #define __GLX_TEXSUBIMAGE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_TEXSUBIMAGE_HDR_SIZE) #define __GLX_TEXSUBIMAGE_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_HDR_SIZE + __GLX_TEXSUBIMAGE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_TEXSUBIMAGE_HDR; } __GLXtexSubImageHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_TEXSUBIMAGE_HDR; } __GLXtexSubImageLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_TEXSUBIMAGE_HDR; } __GLXdispatchTexSubImageHeader; /* ** Data that is specific to a glTexSubImage3D and 4D calls. The ** data is sent in the following order: ** Render or RenderLarge header ** Pixel 3D header ** TexSubImage 3D header ** When a glTexSubImage3D call is made, the woffset and size4d fields ** are unexamined by the server and are considered to be padding. */ #define __GLX_TEXSUBIMAGE_3D_HDR \ CARD32 target; \ CARD32 level; \ CARD32 xoffset; \ CARD32 yoffset; \ CARD32 zoffset; \ CARD32 woffset; \ CARD32 width; \ CARD32 height; \ CARD32 depth; \ CARD32 size4d; \ CARD32 format; \ CARD32 type; \ CARD32 nullImage \ #define __GLX_TEXSUBIMAGE_3D_HDR_SIZE 52 #define __GLX_TEXSUBIMAGE_3D_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_3D_HDR_SIZE + \ __GLX_TEXSUBIMAGE_3D_HDR_SIZE) #define __GLX_TEXSUBIMAGE_3D_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_3D_HDR_SIZE + __GLX_TEXSUBIMAGE_3D_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_3D_HDR; __GLX_TEXSUBIMAGE_3D_HDR; } __GLXtexSubImage3DHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_3D_HDR; __GLX_TEXSUBIMAGE_3D_HDR; } __GLXtexSubImage3DLargeHeader; typedef struct { __GLX_PIXEL_3D_HDR; __GLX_TEXSUBIMAGE_3D_HDR; } __GLXdispatchTexSubImage3DHeader; /** * Data that is specific to a \c glCompressedTexImage1D or * \c glCompressedTexImage2D call. The data is sent in the following * order: * - Render or RenderLarge header * - CompressedTexImage header * * When a \c glCompressedTexImage1D call is made, the \c height field is * not examined by the server and is considered padding. */ #define __GLX_COMPRESSED_TEXIMAGE_HDR \ CARD32 target; \ CARD32 level; \ CARD32 internalFormat; \ CARD32 width; \ CARD32 height; \ CARD32 border; \ CARD32 imageSize #define __GLX_COMPRESSED_TEXIMAGE_HDR_SIZE 28 #define __GLX_COMPRESSED_TEXIMAGE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXIMAGE_HDR_SIZE) #define __GLX_COMPRESSED_TEXIMAGE_DISPATCH_HDR_SIZE \ (__GLX_COMPRESSED_TEXIMAGE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_COMPRESSED_TEXIMAGE_HDR; } __GLXcompressedTexImageHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_COMPRESSED_TEXIMAGE_HDR; } __GLXcompressedTexImageLargeHeader; typedef struct { __GLX_COMPRESSED_TEXIMAGE_HDR; } __GLXdispatchCompressedTexImageHeader; /** * Data that is specifi to a \c glCompressedTexSubImage1D or * \c glCompressedTexSubImage2D call. The data is sent in the following * order: * - Render or RenderLarge header * - CompressedTexSubImage header * * When a \c glCompressedTexSubImage1D call is made, the \c yoffset and * \c height fields are not examined by the server and are considered padding. */ #define __GLX_COMPRESSED_TEXSUBIMAGE_HDR \ CARD32 target; \ CARD32 level; \ CARD32 xoffset; \ CARD32 yoffset; \ CARD32 width; \ CARD32 height; \ CARD32 format; \ CARD32 imageSize #define __GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE 32 #define __GLX_COMPRESSED_TEXSUBIMAGE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE) #define __GLX_COMPRESSED_TEXSUBIMAGE_DISPATCH_HDR_SIZE \ (__GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_COMPRESSED_TEXSUBIMAGE_HDR; } __GLXcompressedTexSubImageHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_COMPRESSED_TEXSUBIMAGE_HDR; } __GLXcompressedTexSubImageLargeHeader; typedef struct { __GLX_COMPRESSED_TEXSUBIMAGE_HDR; } __GLXdispatchCompressedTexSubImageHeader; /** * Data that is specific to a \c glCompressedTexImage3D call. The data is * sent in the following order: * - Render or RenderLarge header * - CompressedTexImage3D header */ #define __GLX_COMPRESSED_TEXIMAGE_3D_HDR \ CARD32 target; \ CARD32 level; \ CARD32 internalFormat; \ CARD32 width; \ CARD32 height; \ CARD32 depth; \ CARD32 border; \ CARD32 imageSize #define __GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE 32 #define __GLX_COMPRESSED_TEXIMAGE_3D_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE) #define __GLX_COMPRESSED_TEXIMAGE_3D_DISPATCH_HDR_SIZE \ (__GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_COMPRESSED_TEXIMAGE_3D_HDR; } __GLXcompressedTexImage3DHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_COMPRESSED_TEXIMAGE_3D_HDR; } __GLXcompressedTexImage3DLargeHeader; typedef struct { __GLX_COMPRESSED_TEXIMAGE_3D_HDR; } __GLXdispatchCompressedTexImage3DHeader; /** * Data that is specifi to a \c glCompressedTexSubImage3D call. The data is * sent in the following order: * - Render or RenderLarge header * - CompressedTexSubImage3D header */ #define __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR \ CARD32 target; \ CARD32 level; \ CARD32 xoffset; \ CARD32 yoffset; \ CARD32 zoffset; \ CARD32 width; \ CARD32 height; \ CARD32 depth; \ CARD32 format; \ CARD32 imageSize #define __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE 32 #define __GLX_COMPRESSED_TEXSUBIMAGE_3D_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE) #define __GLX_COMPRESSED_TEXSUBIMAGE_3D_DISPATCH_HDR_SIZE \ (__GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; } __GLXcompressedTexSubImage3DHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; } __GLXcompressedTexSubImage3DLargeHeader; typedef struct { __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; } __GLXdispatchCompressedTexSubImage3DHeader; /* ** Data that is specific to a glDrawPixels call. The data is sent in the ** following order: ** Render or RenderLarge header ** Pixel header ** DrawPixels header */ #define __GLX_DRAWPIXELS_HDR \ CARD32 width; \ CARD32 height; \ CARD32 format; \ CARD32 type #define __GLX_DRAWPIXELS_HDR_SIZE 16 #define __GLX_DRAWPIXELS_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_DRAWPIXELS_HDR_SIZE) #define __GLX_DRAWPIXELS_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_HDR_SIZE + __GLX_DRAWPIXELS_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_DRAWPIXELS_HDR; } __GLXdrawPixelsHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_DRAWPIXELS_HDR; } __GLXdrawPixelsLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_DRAWPIXELS_HDR; } __GLXdispatchDrawPixelsHeader; /* ** Data that is specific to a glConvolutionFilter1D or glConvolutionFilter2D ** call. The data is sent in the following order: ** Render or RenderLarge header ** Pixel header ** ConvolutionFilter header ** When a glConvolutionFilter1D call the height field is unexamined by the server. */ #define __GLX_CONV_FILT_HDR \ CARD32 target; \ CARD32 internalformat; \ CARD32 width; \ CARD32 height; \ CARD32 format; \ CARD32 type #define __GLX_CONV_FILT_HDR_SIZE 24 #define __GLX_CONV_FILT_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_CONV_FILT_HDR_SIZE) #define __GLX_CONV_FILT_CMD_DISPATCH_HDR_SIZE \ (__GLX_PIXEL_HDR_SIZE + __GLX_CONV_FILT_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_CONV_FILT_HDR; } __GLXConvolutionFilterHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_CONV_FILT_HDR; } __GLXConvolutionFilterLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_CONV_FILT_HDR; } __GLXdispatchConvolutionFilterHeader; /* ** Data that is specific to a glDrawArraysEXT call. The data is sent in the ** following order: ** Render or RenderLarge header ** Draw Arrays header ** a variable number of Component headers ** vertex data for each component type */ #define __GLX_DRAWARRAYS_HDR \ CARD32 numVertexes; \ CARD32 numComponents; \ CARD32 primType #define __GLX_DRAWARRAYS_HDR_SIZE 12 #define __GLX_DRAWARRAYS_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_DRAWARRAYS_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_DRAWARRAYS_HDR; } __GLXdrawArraysHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_DRAWARRAYS_HDR; } __GLXdrawArraysLargeHeader; typedef struct { __GLX_DRAWARRAYS_HDR; } __GLXdispatchDrawArraysHeader; #define __GLX_COMPONENT_HDR \ CARD32 datatype; \ INT32 numVals; \ CARD32 component typedef struct { __GLX_COMPONENT_HDR; } __GLXdispatchDrawArraysComponentHeader; #define __GLX_COMPONENT_HDR_SIZE 12 /* ** Data that is specific to a glColorTable call ** The data is sent in the following order: ** Render or RenderLarge header ** Pixel header ** ColorTable header */ #define __GLX_COLOR_TABLE_HDR \ CARD32 target; \ CARD32 internalformat; \ CARD32 width; \ CARD32 format; \ CARD32 type #define __GLX_COLOR_TABLE_HDR_SIZE 20 #define __GLX_COLOR_TABLE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_COLOR_TABLE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_COLOR_TABLE_HDR; } __GLXColorTableHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_COLOR_TABLE_HDR; } __GLXColorTableLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_COLOR_TABLE_HDR; } __GLXdispatchColorTableHeader; /* ** Data that is specific to a glColorSubTable call ** The data is sent in the following order: ** Render or RenderLarge header ** Pixel header ** ColorTable header */ #define __GLX_COLOR_SUBTABLE_HDR \ CARD32 target; \ CARD32 start; \ CARD32 count; \ CARD32 format; \ CARD32 type #define __GLX_COLOR_SUBTABLE_HDR_SIZE 20 #define __GLX_COLOR_SUBTABLE_CMD_HDR_SIZE \ (__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + \ __GLX_COLOR_SUBTABLE_HDR_SIZE) typedef struct { __GLX_RENDER_HDR; __GLX_PIXEL_HDR; __GLX_COLOR_SUBTABLE_HDR; } __GLXColorSubTableHeader; typedef struct { __GLX_RENDER_LARGE_HDR; __GLX_PIXEL_HDR; __GLX_COLOR_SUBTABLE_HDR; } __GLXColorSubTableLargeHeader; typedef struct { __GLX_PIXEL_HDR; __GLX_COLOR_SUBTABLE_HDR; } __GLXdispatchColorSubTableHeader; #define GLX_WINDOW_TYPE 1 #define GLX_PIXMAP_TYPE 2 #define GLX_VIDEO_SOURCE_TYPE 3 #define GLX_PBUFFER_TYPE 4 /* 5 is for DM_PBUFFER */ #define GLX_GLXWINDOW_TYPE 6 /*****************************************************************************/ /* ** Restore these definitions back to the typedefs in glx.h */ #undef GLXContextID #undef GLXPixmap #undef GLXDrawable #undef GLXPbuffer #undef GLXWindow #undef GLXFBConfigID #undef GLXFBConfigIDSGIX #undef GLXPbufferSGIX /* Opcodes for GLX commands */ #define X_GLXRender 1 #define X_GLXRenderLarge 2 #define X_GLXCreateContext 3 #define X_GLXDestroyContext 4 #define X_GLXMakeCurrent 5 #define X_GLXIsDirect 6 #define X_GLXQueryVersion 7 #define X_GLXWaitGL 8 #define X_GLXWaitX 9 #define X_GLXCopyContext 10 #define X_GLXSwapBuffers 11 #define X_GLXUseXFont 12 #define X_GLXCreateGLXPixmap 13 #define X_GLXGetVisualConfigs 14 #define X_GLXDestroyGLXPixmap 15 #define X_GLXVendorPrivate 16 #define X_GLXVendorPrivateWithReply 17 #define X_GLXQueryExtensionsString 18 #define X_GLXQueryServerString 19 #define X_GLXClientInfo 20 #define X_GLXGetFBConfigs 21 #define X_GLXCreatePixmap 22 #define X_GLXDestroyPixmap 23 #define X_GLXCreateNewContext 24 #define X_GLXQueryContext 25 #define X_GLXMakeContextCurrent 26 #define X_GLXCreatePbuffer 27 #define X_GLXDestroyPbuffer 28 #define X_GLXGetDrawableAttributes 29 #define X_GLXChangeDrawableAttributes 30 #define X_GLXCreateWindow 31 #define X_GLXDestroyWindow 32 #define X_GLXSetClientInfoARB 33 #define X_GLXCreateContextAttribsARB 34 #define X_GLXSetClientInfo2ARB 35 /* typo compatibility with older headers */ #define X_GLXCreateContextAtrribsARB 34 #define X_GLXSetConfigInfo2ARB 35 /* Opcodes for single commands (part of GLX command space) */ #define X_GLsop_NewList 101 #define X_GLsop_EndList 102 #define X_GLsop_DeleteLists 103 #define X_GLsop_GenLists 104 #define X_GLsop_FeedbackBuffer 105 #define X_GLsop_SelectBuffer 106 #define X_GLsop_RenderMode 107 #define X_GLsop_Finish 108 #define X_GLsop_Flush 142 #define X_GLsop_PixelStoref 109 #define X_GLsop_PixelStorei 110 #define X_GLsop_ReadPixels 111 #define X_GLsop_GetBooleanv 112 #define X_GLsop_GetClipPlane 113 #define X_GLsop_GetDoublev 114 #define X_GLsop_GetError 115 #define X_GLsop_GetFloatv 116 #define X_GLsop_GetIntegerv 117 #define X_GLsop_GetLightfv 118 #define X_GLsop_GetLightiv 119 #define X_GLsop_GetMapdv 120 #define X_GLsop_GetMapfv 121 #define X_GLsop_GetMapiv 122 #define X_GLsop_GetMaterialfv 123 #define X_GLsop_GetMaterialiv 124 #define X_GLsop_GetPixelMapfv 125 #define X_GLsop_GetPixelMapuiv 126 #define X_GLsop_GetPixelMapusv 127 #define X_GLsop_GetPolygonStipple 128 #define X_GLsop_GetString 129 #define X_GLsop_GetTexEnvfv 130 #define X_GLsop_GetTexEnviv 131 #define X_GLsop_GetTexGendv 132 #define X_GLsop_GetTexGenfv 133 #define X_GLsop_GetTexGeniv 134 #define X_GLsop_GetTexImage 135 #define X_GLsop_GetTexParameterfv 136 #define X_GLsop_GetTexParameteriv 137 #define X_GLsop_GetTexLevelParameterfv 138 #define X_GLsop_GetTexLevelParameteriv 139 #define X_GLsop_IsEnabled 140 #define X_GLsop_IsList 141 #define X_GLsop_AreTexturesResident 143 #define X_GLsop_DeleteTextures 144 #define X_GLsop_GenTextures 145 #define X_GLsop_IsTexture 146 #define X_GLsop_GetColorTable 147 #define X_GLsop_GetColorTableParameterfv 148 #define X_GLsop_GetColorTableParameteriv 149 #define X_GLsop_GetConvolutionFilter 150 #define X_GLsop_GetConvolutionParameterfv 151 #define X_GLsop_GetConvolutionParameteriv 152 #define X_GLsop_GetSeparableFilter 153 #define X_GLsop_GetHistogram 154 #define X_GLsop_GetHistogramParameterfv 155 #define X_GLsop_GetHistogramParameteriv 156 #define X_GLsop_GetMinmax 157 #define X_GLsop_GetMinmaxParameterfv 158 #define X_GLsop_GetMinmaxParameteriv 159 #define X_GLsop_GetCompressedTexImage 160 /* Opcodes for rendering commands */ #define X_GLrop_CallList 1 #define X_GLrop_CallLists 2 #define X_GLrop_ListBase 3 #define X_GLrop_Begin 4 #define X_GLrop_Bitmap 5 #define X_GLrop_Color3bv 6 #define X_GLrop_Color3dv 7 #define X_GLrop_Color3fv 8 #define X_GLrop_Color3iv 9 #define X_GLrop_Color3sv 10 #define X_GLrop_Color3ubv 11 #define X_GLrop_Color3uiv 12 #define X_GLrop_Color3usv 13 #define X_GLrop_Color4bv 14 #define X_GLrop_Color4dv 15 #define X_GLrop_Color4fv 16 #define X_GLrop_Color4iv 17 #define X_GLrop_Color4sv 18 #define X_GLrop_Color4ubv 19 #define X_GLrop_Color4uiv 20 #define X_GLrop_Color4usv 21 #define X_GLrop_EdgeFlagv 22 #define X_GLrop_End 23 #define X_GLrop_Indexdv 24 #define X_GLrop_Indexfv 25 #define X_GLrop_Indexiv 26 #define X_GLrop_Indexsv 27 #define X_GLrop_Normal3bv 28 #define X_GLrop_Normal3dv 29 #define X_GLrop_Normal3fv 30 #define X_GLrop_Normal3iv 31 #define X_GLrop_Normal3sv 32 #define X_GLrop_RasterPos2dv 33 #define X_GLrop_RasterPos2fv 34 #define X_GLrop_RasterPos2iv 35 #define X_GLrop_RasterPos2sv 36 #define X_GLrop_RasterPos3dv 37 #define X_GLrop_RasterPos3fv 38 #define X_GLrop_RasterPos3iv 39 #define X_GLrop_RasterPos3sv 40 #define X_GLrop_RasterPos4dv 41 #define X_GLrop_RasterPos4fv 42 #define X_GLrop_RasterPos4iv 43 #define X_GLrop_RasterPos4sv 44 #define X_GLrop_Rectdv 45 #define X_GLrop_Rectfv 46 #define X_GLrop_Rectiv 47 #define X_GLrop_Rectsv 48 #define X_GLrop_TexCoord1dv 49 #define X_GLrop_TexCoord1fv 50 #define X_GLrop_TexCoord1iv 51 #define X_GLrop_TexCoord1sv 52 #define X_GLrop_TexCoord2dv 53 #define X_GLrop_TexCoord2fv 54 #define X_GLrop_TexCoord2iv 55 #define X_GLrop_TexCoord2sv 56 #define X_GLrop_TexCoord3dv 57 #define X_GLrop_TexCoord3fv 58 #define X_GLrop_TexCoord3iv 59 #define X_GLrop_TexCoord3sv 60 #define X_GLrop_TexCoord4dv 61 #define X_GLrop_TexCoord4fv 62 #define X_GLrop_TexCoord4iv 63 #define X_GLrop_TexCoord4sv 64 #define X_GLrop_Vertex2dv 65 #define X_GLrop_Vertex2fv 66 #define X_GLrop_Vertex2iv 67 #define X_GLrop_Vertex2sv 68 #define X_GLrop_Vertex3dv 69 #define X_GLrop_Vertex3fv 70 #define X_GLrop_Vertex3iv 71 #define X_GLrop_Vertex3sv 72 #define X_GLrop_Vertex4dv 73 #define X_GLrop_Vertex4fv 74 #define X_GLrop_Vertex4iv 75 #define X_GLrop_Vertex4sv 76 #define X_GLrop_ClipPlane 77 #define X_GLrop_ColorMaterial 78 #define X_GLrop_CullFace 79 #define X_GLrop_Fogf 80 #define X_GLrop_Fogfv 81 #define X_GLrop_Fogi 82 #define X_GLrop_Fogiv 83 #define X_GLrop_FrontFace 84 #define X_GLrop_Hint 85 #define X_GLrop_Lightf 86 #define X_GLrop_Lightfv 87 #define X_GLrop_Lighti 88 #define X_GLrop_Lightiv 89 #define X_GLrop_LightModelf 90 #define X_GLrop_LightModelfv 91 #define X_GLrop_LightModeli 92 #define X_GLrop_LightModeliv 93 #define X_GLrop_LineStipple 94 #define X_GLrop_LineWidth 95 #define X_GLrop_Materialf 96 #define X_GLrop_Materialfv 97 #define X_GLrop_Materiali 98 #define X_GLrop_Materialiv 99 #define X_GLrop_PointSize 100 #define X_GLrop_PolygonMode 101 #define X_GLrop_PolygonStipple 102 #define X_GLrop_Scissor 103 #define X_GLrop_ShadeModel 104 #define X_GLrop_TexParameterf 105 #define X_GLrop_TexParameterfv 106 #define X_GLrop_TexParameteri 107 #define X_GLrop_TexParameteriv 108 #define X_GLrop_TexImage1D 109 #define X_GLrop_TexImage2D 110 #define X_GLrop_TexEnvf 111 #define X_GLrop_TexEnvfv 112 #define X_GLrop_TexEnvi 113 #define X_GLrop_TexEnviv 114 #define X_GLrop_TexGend 115 #define X_GLrop_TexGendv 116 #define X_GLrop_TexGenf 117 #define X_GLrop_TexGenfv 118 #define X_GLrop_TexGeni 119 #define X_GLrop_TexGeniv 120 #define X_GLrop_InitNames 121 #define X_GLrop_LoadName 122 #define X_GLrop_PassThrough 123 #define X_GLrop_PopName 124 #define X_GLrop_PushName 125 #define X_GLrop_DrawBuffer 126 #define X_GLrop_Clear 127 #define X_GLrop_ClearAccum 128 #define X_GLrop_ClearIndex 129 #define X_GLrop_ClearColor 130 #define X_GLrop_ClearStencil 131 #define X_GLrop_ClearDepth 132 #define X_GLrop_StencilMask 133 #define X_GLrop_ColorMask 134 #define X_GLrop_DepthMask 135 #define X_GLrop_IndexMask 136 #define X_GLrop_Accum 137 #define X_GLrop_Disable 138 #define X_GLrop_Enable 139 #define X_GLrop_PopAttrib 141 #define X_GLrop_PushAttrib 142 #define X_GLrop_Map1d 143 #define X_GLrop_Map1f 144 #define X_GLrop_Map2d 145 #define X_GLrop_Map2f 146 #define X_GLrop_MapGrid1d 147 #define X_GLrop_MapGrid1f 148 #define X_GLrop_MapGrid2d 149 #define X_GLrop_MapGrid2f 150 #define X_GLrop_EvalCoord1dv 151 #define X_GLrop_EvalCoord1fv 152 #define X_GLrop_EvalCoord2dv 153 #define X_GLrop_EvalCoord2fv 154 #define X_GLrop_EvalMesh1 155 #define X_GLrop_EvalPoint1 156 #define X_GLrop_EvalMesh2 157 #define X_GLrop_EvalPoint2 158 #define X_GLrop_AlphaFunc 159 #define X_GLrop_BlendFunc 160 #define X_GLrop_LogicOp 161 #define X_GLrop_StencilFunc 162 #define X_GLrop_StencilOp 163 #define X_GLrop_DepthFunc 164 #define X_GLrop_PixelZoom 165 #define X_GLrop_PixelTransferf 166 #define X_GLrop_PixelTransferi 167 #define X_GLrop_PixelMapfv 168 #define X_GLrop_PixelMapuiv 169 #define X_GLrop_PixelMapusv 170 #define X_GLrop_ReadBuffer 171 #define X_GLrop_CopyPixels 172 #define X_GLrop_DrawPixels 173 #define X_GLrop_DepthRange 174 #define X_GLrop_Frustum 175 #define X_GLrop_LoadIdentity 176 #define X_GLrop_LoadMatrixf 177 #define X_GLrop_LoadMatrixd 178 #define X_GLrop_MatrixMode 179 #define X_GLrop_MultMatrixf 180 #define X_GLrop_MultMatrixd 181 #define X_GLrop_Ortho 182 #define X_GLrop_PopMatrix 183 #define X_GLrop_PushMatrix 184 #define X_GLrop_Rotated 185 #define X_GLrop_Rotatef 186 #define X_GLrop_Scaled 187 #define X_GLrop_Scalef 188 #define X_GLrop_Translated 189 #define X_GLrop_Translatef 190 #define X_GLrop_Viewport 191 #define X_GLrop_DrawArrays 193 #define X_GLrop_PolygonOffset 192 #define X_GLrop_CopyTexImage1D 4119 #define X_GLrop_CopyTexImage2D 4120 #define X_GLrop_CopyTexSubImage1D 4121 #define X_GLrop_CopyTexSubImage2D 4122 #define X_GLrop_TexSubImage1D 4099 #define X_GLrop_TexSubImage2D 4100 #define X_GLrop_BindTexture 4117 #define X_GLrop_PrioritizeTextures 4118 #define X_GLrop_Indexubv 194 #define X_GLrop_BlendColor 4096 #define X_GLrop_BlendEquation 4097 #define X_GLrop_ColorTable 2053 #define X_GLrop_ColorTableParameterfv 2054 #define X_GLrop_ColorTableParameteriv 2055 #define X_GLrop_CopyColorTable 2056 #define X_GLrop_ColorSubTable 195 #define X_GLrop_CopyColorSubTable 196 #define X_GLrop_ConvolutionFilter1D 4101 #define X_GLrop_ConvolutionFilter2D 4102 #define X_GLrop_ConvolutionParameterf 4103 #define X_GLrop_ConvolutionParameterfv 4104 #define X_GLrop_ConvolutionParameteri 4105 #define X_GLrop_ConvolutionParameteriv 4106 #define X_GLrop_CopyConvolutionFilter1D 4107 #define X_GLrop_CopyConvolutionFilter2D 4108 #define X_GLrop_SeparableFilter2D 4109 #define X_GLrop_Histogram 4110 #define X_GLrop_Minmax 4111 #define X_GLrop_ResetHistogram 4112 #define X_GLrop_ResetMinmax 4113 #define X_GLrop_TexImage3D 4114 #define X_GLrop_TexSubImage3D 4115 #define X_GLrop_CopyTexSubImage3D 4123 #define X_GLrop_DrawArraysEXT 4116 /* Added for core GL version 1.3 */ #define X_GLrop_ActiveTextureARB 197 #define X_GLrop_MultiTexCoord1dvARB 198 #define X_GLrop_MultiTexCoord1fvARB 199 #define X_GLrop_MultiTexCoord1ivARB 200 #define X_GLrop_MultiTexCoord1svARB 201 #define X_GLrop_MultiTexCoord2dvARB 202 #define X_GLrop_MultiTexCoord2fvARB 203 #define X_GLrop_MultiTexCoord2ivARB 204 #define X_GLrop_MultiTexCoord2svARB 205 #define X_GLrop_MultiTexCoord3dvARB 206 #define X_GLrop_MultiTexCoord3fvARB 207 #define X_GLrop_MultiTexCoord3ivARB 208 #define X_GLrop_MultiTexCoord3svARB 209 #define X_GLrop_MultiTexCoord4dvARB 210 #define X_GLrop_MultiTexCoord4fvARB 211 #define X_GLrop_MultiTexCoord4ivARB 212 #define X_GLrop_MultiTexCoord4svARB 213 #define X_GLrop_CompressedTexImage1D 214 #define X_GLrop_CompressedTexImage2D 215 #define X_GLrop_CompressedTexImage3D 216 #define X_GLrop_CompressedTexSubImage1D 217 #define X_GLrop_CompressedTexSubImage2D 218 #define X_GLrop_CompressedTexSubImage3D 219 #define X_GLrop_SampleCoverageARB 229 /* Added for core GL version 1.4 */ #define X_GLrop_WindowPos3fARB 230 #define X_GLrop_FogCoordfv 4124 #define X_GLrop_FogCoorddv 4125 #define X_GLrop_PointParameterfARB 2065 #define X_GLrop_PointParameterfvARB 2066 #define X_GLrop_SecondaryColor3bv 4126 #define X_GLrop_SecondaryColor3sv 4127 #define X_GLrop_SecondaryColor3iv 4128 #define X_GLrop_SecondaryColor3fv 4129 #define X_GLrop_SecondaryColor3dv 4130 #define X_GLrop_SecondaryColor3ubv 4131 #define X_GLrop_SecondaryColor3usv 4132 #define X_GLrop_SecondaryColor3uiv 4133 #define X_GLrop_BlendFuncSeparate 4134 #define X_GLrop_PointParameteri 4221 #define X_GLrop_PointParameteriv 4222 /* Added for core GL version 1.5 */ /* XXX opcodes not defined in the spec */ /* Opcodes for Vendor Private commands */ #define X_GLvop_GetConvolutionFilterEXT 1 #define X_GLvop_GetConvolutionParameterfvEXT 2 #define X_GLvop_GetConvolutionParameterivEXT 3 #define X_GLvop_GetSeparableFilterEXT 4 #define X_GLvop_GetHistogramEXT 5 #define X_GLvop_GetHistogramParameterfvEXT 6 #define X_GLvop_GetHistogramParameterivEXT 7 #define X_GLvop_GetMinmaxEXT 8 #define X_GLvop_GetMinmaxParameterfvEXT 9 #define X_GLvop_GetMinmaxParameterivEXT 10 #define X_GLvop_AreTexturesResidentEXT 11 #define X_GLvop_DeleteTexturesEXT 12 #define X_GLvop_GenTexturesEXT 13 #define X_GLvop_IsTextureEXT 14 #define X_GLvop_GetCombinerInputParameterfvNV 1270 #define X_GLvop_GetCombinerInputParameterivNV 1271 #define X_GLvop_GetCombinerOutputParameterfvNV 1272 #define X_GLvop_GetCombinerOutputParameterivNV 1273 #define X_GLvop_GetFinalCombinerOutputParameterfvNV 1274 #define X_GLvop_GetFinalCombinerOutputParameterivNV 1275 #define X_GLvop_DeleteFenceNV 1276 #define X_GLvop_GenFencesNV 1277 #define X_GLvop_IsFenceNV 1278 #define X_GLvop_TestFenceNV 1279 #define X_GLvop_GetFenceivNV 1280 #define X_GLvop_AreProgramsResidentNV 1293 #define X_GLvop_DeleteProgramARB 1294 #define X_GLvop_GenProgramsARB 1295 #define X_GLvop_GetProgramEnvParameterfvARB 1296 #define X_GLvop_GetProgramEnvParameterdvARB 1297 #define X_GLvop_GetProgramEnvParameterivNV 1298 #define X_GLvop_GetProgramStringNV 1299 #define X_GLvop_GetTrackMatrixivNV 1300 #define X_GLvop_GetVertexAttribdvARB 1301 #define X_GLvop_GetVertexAttribfvARB 1302 #define X_GLvop_GetVertexAttribivARB 1303 #define X_GLvop_IsProgramARB 1304 #define X_GLvop_GetProgramLocalParameterfvARB 1305 #define X_GLvop_GetProgramLocalParameterdvARB 1306 #define X_GLvop_GetProgramivARB 1307 #define X_GLvop_GetProgramStringARB 1308 #define X_GLvop_GetProgramNamedParameter4fvNV 1310 #define X_GLvop_GetProgramNamedParameter4dvNV 1311 #define X_GLvop_SampleMaskSGIS 2048 #define X_GLvop_SamplePatternSGIS 2049 #define X_GLvop_GetDetailTexFuncSGIS 4096 #define X_GLvop_GetSharpenTexFuncSGIS 4097 #define X_GLvop_GetColorTableSGI 4098 #define X_GLvop_GetColorTableParameterfvSGI 4099 #define X_GLvop_GetColorTableParameterivSGI 4100 #define X_GLvop_GetTexFilterFuncSGIS 4101 #define X_GLvop_GetInstrumentsSGIX 4102 #define X_GLvop_InstrumentsBufferSGIX 4103 #define X_GLvop_PollInstrumentsSGIX 4104 #define X_GLvop_FlushRasterSGIX 4105 /* Opcodes for GLX vendor private commands */ #define X_GLXvop_QueryContextInfoEXT 1024 #define X_GLXvop_BindTexImageEXT 1330 #define X_GLXvop_ReleaseTexImageEXT 1331 #define X_GLXvop_SwapIntervalSGI 65536 #define X_GLXvop_MakeCurrentReadSGI 65537 #define X_GLXvop_CreateGLXVideoSourceSGIX 65538 #define X_GLXvop_DestroyGLXVideoSourceSGIX 65539 #define X_GLXvop_GetFBConfigsSGIX 65540 #define X_GLXvop_CreateContextWithConfigSGIX 65541 #define X_GLXvop_CreateGLXPixmapWithConfigSGIX 65542 #define X_GLXvop_CreateGLXPbufferSGIX 65543 #define X_GLXvop_DestroyGLXPbufferSGIX 65544 #define X_GLXvop_ChangeDrawableAttributesSGIX 65545 #define X_GLXvop_GetDrawableAttributesSGIX 65546 #define X_GLXvop_JoinSwapGroupSGIX 65547 #define X_GLXvop_BindSwapBarrierSGIX 65548 #define X_GLXvop_QueryMaxSwapBarriersSGIX 65549 #define X_GLXvop_QueryHyperpipeNetworkSGIX 65550 #define X_GLXvop_QueryHyperpipeConfigSGIX 65551 #define X_GLXvop_HyperpipeConfigSGIX 65552 #define X_GLXvop_DestroyHyperpipeConfigSGIX 65553 /* ARB extension opcodes */ /* 1. GL_ARB_multitexture - see GL 1.2 opcodes */ /* 5. GL_ARB_multisample - see GL 1.3 opcodes */ /* 12. GL_ARB_texture_compression - see GL 1.3 opcodes */ /* 14. GL_ARB_point_parameters - see GL 1.4 opcodees */ /* 15. GL_ARB_vertex_blend */ #define X_GLrop_WeightbvARB 220 #define X_GLrop_WeightubvARB 221 #define X_GLrop_WeightsvARB 222 #define X_GLrop_WeightusvARB 223 #define X_GLrop_WeightivARB 224 #define X_GLrop_WeightuivARB 225 #define X_GLrop_VertexBlendARB 226 #define X_GLrop_WeightfvARB 227 #define X_GLrop_WeightdvARB 228 /* 16. GL_ARB_matrix_palette */ /* XXX opcodes not defined in the spec */ /* 25. GL_ARB_window_pos - see GL 1.4 opcodes */ /* 26. GL_ARB_vertex_program */ #define X_GLrop_BindProgramARB 4180 #define X_GLrop_ProgramEnvParameter4fvARB 4184 #define X_GLrop_ProgramEnvParameter4dvARB 4185 #define X_GLrop_VertexAttrib1svARB 4189 #define X_GLrop_VertexAttrib2svARB 4190 #define X_GLrop_VertexAttrib3svARB 4191 #define X_GLrop_VertexAttrib4svARB 4192 #define X_GLrop_VertexAttrib1fvARB 4193 #define X_GLrop_VertexAttrib2fvARB 4194 #define X_GLrop_VertexAttrib3fvARB 4195 #define X_GLrop_VertexAttrib4fvARB 4196 #define X_GLrop_VertexAttrib1dvARB 4197 #define X_GLrop_VertexAttrib2dvARB 4198 #define X_GLrop_VertexAttrib3dvARB 4199 #define X_GLrop_ProgramLocalParameter4fvARB 4215 #define X_GLrop_ProgramLocalParameter4dvARB 4216 #define X_GLrop_ProgramStringARB 4217 #define X_GLrop_VertexAttrib4dvARB 4200 #define X_GLrop_VertexAttrib4NubvARB 4201 #define X_GLrop_VertexAttrib4bvARB 4230 #define X_GLrop_VertexAttrib4ivARB 4231 #define X_GLrop_VertexAttrib4ubvARB 4232 #define X_GLrop_VertexAttrib4usvARB 4233 #define X_GLrop_VertexAttrib4uivARB 4234 #define X_GLrop_VertexAttrib4NbvARB 4235 #define X_GLrop_VertexAttrib4NsvARB 4236 #define X_GLrop_VertexAttrib4NivARB 4237 #define X_GLrop_VertexAttrib4NusvARB 4238 #define X_GLrop_VertexAttrib4NuivARB 4239 /* 27. GL_ARB_fragment_program - see GL_ARB_vertex_program opcodes */ /* 29. GL_ARB_occlusion_query */ /* XXX opcodes not defined in the spec */ /* New extension opcodes */ /* 145. GL_EXT_secondary_color - see GL 1.4 opcodes */ /* 188. GL_EXT_vertex_weighting */ #define X_GLrop_VertexWeightfvEXT 4135 /* 191. GL_NV_register_combiners */ #define X_GLrop_CombinerParameterfNV 4136 #define X_GLrop_CombinerParameterfvNV 4137 #define X_GLrop_CombinerParameteriNV 4138 #define X_GLrop_CombinerParameterivNV 4139 #define X_GLrop_CombinerInputNV 4140 #define X_GLrop_CombinerOutputNV 4141 #define X_GLrop_FinalCombinerInputNV 4142 /* 222. GL_NV_fence */ #define X_GLrop_SetFenceNV 4143 #define X_GLrop_FinishFenceNV 4144 /* 227. GL_NV_register_combiners2 */ /* XXX opcodes not defined in the spec */ /* 233. GL_NV_vertex_program - see also GL_ARB_vertex_program opcodes */ #define X_GLrop_ExecuteProgramNV 4181 #define X_GLrop_RequestResidentProgramsNV 4182 #define X_GLrop_LoadProgamNV 4183 #define X_GLrop_ProgramParameters4fvNV 4186 #define X_GLrop_ProgramParameters4dvNV 4187 #define X_GLrop_TrackMatrixNV 4188 #define X_GLrop_VertexAttribs1svNV 4202 #define X_GLrop_VertexAttribs2svNV 4203 #define X_GLrop_VertexAttribs3svNV 4204 #define X_GLrop_VertexAttribs4svNV 4205 #define X_GLrop_VertexAttribs1fvNV 4206 #define X_GLrop_VertexAttribs2fvNV 4207 #define X_GLrop_VertexAttribs3fvNV 4208 #define X_GLrop_VertexAttribs4fvNV 4209 #define X_GLrop_VertexAttribs1dvNV 4210 #define X_GLrop_VertexAttribs2dvNV 4211 #define X_GLrop_VertexAttribs3dvNV 4212 #define X_GLrop_VertexAttribs4dvNV 4213 #define X_GLrop_VertexAttribs4ubvNV 4214 /* 261. GL_NV_occlusion_query */ /* XXX opcodes not defined in the spec */ /* 262. GL_NV_point_sprite - see GL 1.4 opcodes */ /* 268. GL_EXT_stencil_two_side */ #define X_GLrop_ActiveStencilFaceEXT 4220 /* 282. GL_NV_fragment_program - see also GL_NV_vertex_program and GL_ARB_vertex_program opcodes */ #define X_GLrop_ProgramNamedParameter4fvNV 4218 #define X_GLrop_ProgramNamedParameter4dvNV 4219 /* 285. GL_NV_primitive_restart */ /* XXX opcodes not defined in the spec */ /* 297. GL_EXT_depth_bounds_test */ #define X_GLrop_DepthBoundsEXT 4229 /* 299. GL_EXT_blend_equation_separate */ #define X_GLrop_BlendEquationSeparateEXT 4228 /* 310. GL_EXT_framebuffer_object */ #define X_GLvop_IsRenderbufferEXT 1422 #define X_GLvop_GenRenderbuffersEXT 1423 #define X_GLvop_GetRenderbufferParameterivEXT 1424 #define X_GLvop_IsFramebufferEXT 1425 #define X_GLvop_GenFramebuffersEXT 1426 #define X_GLvop_CheckFramebufferStatusEXT 1427 #define X_GLvop_GetFramebufferAttachmentParameterivEXT 1428 #endif /* _GLX_glxproto_h_ */ xorgproto-2023.2/evieproto.pc.in0000644000175000017500000000020214443010026013517 00000000000000prefix=@prefix@ includedir=@includedir@ Name: EvIEExt Description: EvIE extension headers Version: 1.1.1 Cflags: -I${includedir} xorgproto-2023.2/dri3proto.pc.in0000644000175000017500000000020314443010026013431 00000000000000prefix=@prefix@ includedir=@includedir@ Name: DRI3Proto Description: DRI3 extension headers Version: 1.3 Cflags: -I${includedir} xorgproto-2023.2/bigreqsproto.pc.in0000644000175000017500000000021314443010026014225 00000000000000prefix=@prefix@ includedir=@includedir@ Name: BigReqsProto Description: BigReqs extension headers Version: 1.1.2 Cflags: -I${includedir} xorgproto-2023.2/dri2proto.pc.in0000644000175000017500000000020314443010026013430 00000000000000prefix=@prefix@ includedir=@includedir@ Name: DRI2Proto Description: DRI2 extension headers Version: 2.8 Cflags: -I${includedir} xorgproto-2023.2/COPYING-xextproto0000644000175000017500000002374214443010026013675 00000000000000Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Silicon Graphics not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Silicon Graphics makes no representation about the suitability of this software for any purpose. It is provided "as is" without any express or implied warranty. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS 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. Copyright 1992 Network Computing Devices 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 NCD. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. NCD. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD. 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. Copyright (c) 1994, 1995 Hewlett-Packard Company 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 HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the Hewlett-Packard Company 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 Hewlett-Packard Company. Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 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. 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 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Digital Equipment Corporation shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Digital Equipment Corporation. Copyright 1988, 1989, 1990, 1994 Network Computing Devices, Inc. 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 Network Computing Devices, Inc. not be used in advertising or publicity pertaining to distribution of this software without specific, written prior permission. THIS SOFTWARE IS PROVIDED `AS-IS'. NETWORK COMPUTING DEVICES, INC., DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT SHALL NETWORK COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA, OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts, and Olivetti Research Limited, Cambridge, England. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 names of Digital or Olivetti not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THEY 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. Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Hewlett-Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. This software is not subject to any license of the American Telephone and Telegraph Company or of the Regents of the University of California. Copyright © 2007-2008 Peter Hutterer 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. xorgproto-2023.2/videoproto.pc.in0000644000175000017500000000020614443010026013701 00000000000000prefix=@prefix@ includedir=@includedir@ Name: VideoProto Description: Video extension headers Version: 2.3.3 Cflags: -I${includedir} xorgproto-2023.2/xwaylandproto.txt0000644000175000017500000000452014443010026014235 00000000000000 The XWAYLAND Extension Version 1.0 2022-07-29 1. Introduction The XWAYLAND extension allows clients to reliably identify whether an X server is Xwayland. It does not provide any functionality beyond the absolute minimum to identify as extension. Only Xwayland initializes this extension. Thus, if the extension is present, the X server is Xwayland. Clients should not need the protocol detailed in this document, a QueryExtension or ListExtensions request is sufficient to check whether the extension is present. The protocol detailed in this document is merely to future-proof this extension in case actual functionality is added in the future. ℠℠℠℠℠℠℠2. Version History - 1.0, July 2022: QueryVersion request only ℠℠℠℠℠℠℠3. Events and Errors XWAYLAND defines no events or errrors ℠℠℠℠℠℠℠4. Extension initialization The name of this extension is "XWAYLAND" ┌─── XwlQueryVersion client-major-version: CARD16 client-minor-version: CARD16 ▶ major-version: CARD16 minor-version: CARD16 └─── The client sends the highest supported version to the server and the server replies with the highest version it supports, but no higher than the requested version. Major versions changes can introduce incompatibilities in existing functionality, minor version changes introduce only backward compatible changes. It is the clients responsibility to ensure that the server supports a version which is compatible with its expectations. Backwards compatible changes include addition of new requests. ℠℠℠℠℠℠℠Appendix A. Protocol Encoding Syntactic Conventions This document uses the same syntactic conventions as the core X protocol encoding document. A.1 Common Types None. A.2 Protocol Requests ┌─── XwlQueryVersion 1 CARD8 major opcode 1 0 XWAYLAND opcode 2 2 length 2 CARD16 major version 2 CARD16 minor version ▶ 1 1 Reply 1 unused 2 CARD16 sequence number 4 0 reply length 2 CARD16 major version 2 CARD16 minor version 20 unused └─── A.3 Protocol Events The XWAYLAND extension defines no events. A.4 Protocol Errors The XWAYLAND extension defines no errors. ℠℠℠℠℠℠℠xorgproto-2023.2/kbproto.pc.in0000644000175000017500000000020114443010026013162 00000000000000prefix=@prefix@ includedir=@includedir@ Name: KBProto Description: KB extension headers Version: 1.0.7 Cflags: -I${includedir} xorgproto-2023.2/dpmsproto.pc.in0000644000175000017500000000020214443010026013532 00000000000000prefix=@prefix@ includedir=@includedir@ Name: DPMSProto Description: DPMS extension headers Version: 1.2 Cflags: -I${includedir} xorgproto-2023.2/COPYING-x11proto0000644000175000017500000001221014443010026013302 00000000000000Copyright (c) 1991, Oracle and/or its affiliates. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. Copyright 1985, 1987, 1988, 1990, 1991, 1993-1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. The X Window System is a Trademark of The Open Group. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, 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 Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL 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. Copyright 1987 by Apollo Computer Inc., Chelmsford, Massachusetts. Copyright 1989 by Hewlett-Packard Company. All Rights Reserved Permission to use, duplicate, change, and distribute this software and its documentation for any purpose and without fee is granted, provided that the above copyright notice appear in such copy and that this copyright notice appear in all supporting documentation, and that the names of Apollo Computer Inc., the Hewlett-Packard Company, or the X Consortium not be used in advertising or publicity pertaining to distribution of the software without written prior permission. HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. Copyright (c) 1999 The XFree86 Project Inc. All Rights Reserved. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The XFree86 Project Inc. 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 XFree86 Project Inc. xorgproto-2023.2/COPYING-dmxproto0000644000175000017500000000216214443010026013466 00000000000000Copyright 2002-2004 Red Hat Inc., Durham, North Carolina. 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 on 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS 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. xorgproto-2023.2/fontsproto.pc.in0000644000175000017500000000020714443010026013725 00000000000000prefix=@prefix@ includedir=@includedir@ Name: FontsProto Description: Fonts extension headers Version: 2.1.3 Cflags: -I${includedir} xorgproto-2023.2/renderproto.pc.in0000644000175000017500000000021114443010026014046 00000000000000prefix=@prefix@ includedir=@includedir@ Name: RenderProto Description: Render extension headers Version: 0.11.1 Cflags: -I${includedir} xorgproto-2023.2/Makefile.am0000644000175000017500000003366714443010026012633 00000000000000SED = sed XORGRELSTRING = @PACKAGE_STRING@ XORGMANNAME = X Version 11 MAN_SUBSTS = \ -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__datadir__|$(datadir)|g' \ -e 's|__libdir__|$(libdir)|g' \ -e 's|__sysconfdir__|$(sysconfdir)|g' \ -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' SUFFIXES = .$(MISC_MAN_SUFFIX) .man .man.$(MISC_MAN_SUFFIX): man $(MKDIR_P) man $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ dist_doc_DATA = applewmdir = $(includedir)/X11/extensions applewm_HEADERS = \ include/X11/extensions/applewmconst.h \ include/X11/extensions/applewmproto.h applewmprotopkgconfigdir = $(datadir)/pkgconfig applewmprotopkgconfig_DATA = applewmproto.pc bigreqsdir = $(includedir)/X11/extensions bigreqs_HEADERS = \ include/X11/extensions/bigreqsproto.h \ include/X11/extensions/bigreqstr.h bigreqsprotopkgconfigdir = $(datadir)/pkgconfig bigreqsprotopkgconfig_DATA = bigreqsproto.pc compositedir = $(includedir)/X11/extensions composite_HEADERS = \ include/X11/extensions/composite.h \ include/X11/extensions/compositeproto.h compositeprotopkgconfigdir = $(datadir)/pkgconfig compositeprotopkgconfig_DATA = compositeproto.pc dist_doc_DATA += compositeproto.txt damagedir = $(includedir)/X11/extensions damage_HEADERS = \ include/X11/extensions/damageproto.h \ include/X11/extensions/damagewire.h damageprotopkgconfigdir = $(datadir)/pkgconfig damageprotopkgconfig_DATA = damageproto.pc dist_doc_DATA += damageproto.txt dmxdir = $(includedir)/X11/extensions dmx_HEADERS = \ include/X11/extensions/dmx.h \ include/X11/extensions/dmxproto.h dmxprotopkgconfigdir = $(datadir)/pkgconfig dmxprotopkgconfig_DATA = dmxproto.pc dpmsprotopkgconfigdir = $(datadir)/pkgconfig dpmsprotopkgconfig_DATA = dpmsproto.pc dri2dir = $(includedir)/X11/extensions dri2_HEADERS = \ include/X11/extensions/dri2proto.h \ include/X11/extensions/dri2tokens.h dri2protopkgconfigdir = $(datadir)/pkgconfig dri2protopkgconfig_DATA = dri2proto.pc dist_doc_DATA += dri2proto.txt dri3dir = $(includedir)/X11/extensions dri3_HEADERS = \ include/X11/extensions/dri3proto.h dri3protopkgconfigdir = $(datadir)/pkgconfig dri3protopkgconfig_DATA = dri3proto.pc dist_doc_DATA += dri3proto.txt fixesdir = $(includedir)/X11/extensions fixes_HEADERS = \ include/X11/extensions/xfixesproto.h \ include/X11/extensions/xfixeswire.h fixesprotopkgconfigdir = $(datadir)/pkgconfig fixesprotopkgconfig_DATA = fixesproto.pc dist_doc_DATA += fixesproto.txt fontsdir = $(includedir)/X11/fonts fonts_HEADERS = \ include/X11/fonts/font.h \ include/X11/fonts/fontproto.h \ include/X11/fonts/fontstruct.h \ include/X11/fonts/FS.h \ include/X11/fonts/fsmasks.h \ include/X11/fonts/FSproto.h fontsprotopkgconfigdir = $(datadir)/pkgconfig fontsprotopkgconfig_DATA = fontsproto.pc gldir = $(includedir)/GL gl_HEADERS = \ include/GL/glxint.h \ include/GL/glxmd.h \ include/GL/glxproto.h \ include/GL/glxtokens.h glinternaldir = $(includedir)/GL/internal glinternal_HEADERS = \ include/GL/internal/glcore.h glprotopkgconfigdir = $(datadir)/pkgconfig glprotopkgconfig_DATA = glproto.pc inputdir = $(includedir)/X11/extensions input_HEADERS = \ include/X11/extensions/XI.h \ include/X11/extensions/XIproto.h \ include/X11/extensions/XI2.h \ include/X11/extensions/XI2proto.h inputprotopkgconfigdir = $(datadir)/pkgconfig inputprotopkgconfig_DATA = inputproto.pc kbdir = $(includedir)/X11/extensions kb_HEADERS = \ include/X11/extensions/XKB.h \ include/X11/extensions/XKBproto.h \ include/X11/extensions/XKBsrv.h \ include/X11/extensions/XKBstr.h if LEGACY kb_HEADERS += include/X11/extensions/XKBgeom.h endif kbprotopkgconfigdir = $(datadir)/pkgconfig kbprotopkgconfig_DATA = kbproto.pc presentdir = $(includedir)/X11/extensions present_HEADERS = \ include/X11/extensions/presentproto.h \ include/X11/extensions/presenttokens.h presentprotopkgconfigdir = $(datadir)/pkgconfig presentprotopkgconfig_DATA = presentproto.pc dist_doc_DATA += presentproto.txt randrdir = $(includedir)/X11/extensions randr_HEADERS = \ include/X11/extensions/randr.h \ include/X11/extensions/randrproto.h randrprotopkgconfigdir = $(datadir)/pkgconfig randrprotopkgconfig_DATA = randrproto.pc dist_doc_DATA += randrproto.txt recorddir = $(includedir)/X11/extensions record_HEADERS = \ include/X11/extensions/recordconst.h \ include/X11/extensions/recordproto.h \ include/X11/extensions/recordstr.h recordprotopkgconfigdir = $(datadir)/pkgconfig recordprotopkgconfig_DATA = recordproto.pc renderdir = $(includedir)/X11/extensions render_HEADERS = \ include/X11/extensions/render.h \ include/X11/extensions/renderproto.h renderprotopkgconfigdir = $(datadir)/pkgconfig renderprotopkgconfig_DATA = renderproto.pc dist_doc_DATA += renderproto.txt resourcedir = $(includedir)/X11/extensions resource_HEADERS = \ include/X11/extensions/XResproto.h resourceprotopkgconfigdir = $(datadir)/pkgconfig resourceprotopkgconfig_DATA = resourceproto.pc dist_doc_DATA += resproto.txt scrnsaverdir = $(includedir)/X11/extensions scrnsaver_HEADERS = \ include/X11/extensions/saver.h \ include/X11/extensions/saverproto.h scrnsaverprotopkgconfigdir = $(datadir)/pkgconfig scrnsaverprotopkgconfig_DATA = scrnsaverproto.pc videodir = $(includedir)/X11/extensions video_HEADERS = \ include/X11/extensions/Xv.h \ include/X11/extensions/XvMC.h \ include/X11/extensions/XvMCproto.h \ include/X11/extensions/Xvproto.h if LEGACY video_HEADERS += include/X11/extensions/vldXvMC.h endif videoprotopkgconfigdir = $(datadir)/pkgconfig videoprotopkgconfig_DATA = videoproto.pc dist_doc_DATA += xv-protocol-v2.txt xprotodir = $(includedir)/X11 xproto_HEADERS = \ include/X11/ap_keysym.h \ include/X11/DECkeysym.h \ include/X11/HPkeysym.h \ include/X11/keysymdef.h \ include/X11/keysym.h \ include/X11/Sunkeysym.h \ include/X11/Xalloca.h \ include/X11/Xarch.h \ include/X11/Xatom.h \ include/X11/Xdefs.h \ include/X11/XF86keysym.h \ include/X11/Xfuncproto.h \ include/X11/Xfuncs.h \ include/X11/X.h \ include/X11/Xmd.h \ include/X11/Xosdefs.h \ include/X11/Xos.h \ include/X11/Xos_r.h \ include/X11/Xproto.h \ include/X11/Xprotostr.h \ include/X11/Xthreads.h \ include/X11/Xw32defs.h \ include/X11/XWDFile.h \ include/X11/Xwindows.h \ include/X11/Xwinsock.h nodist_xproto_HEADERS = \ include/X11/Xpoll.h x11protopkgconfigdir = $(datadir)/pkgconfig x11protopkgconfig_DATA = xproto.pc xcmiscdir = $(includedir)/X11/extensions xcmisc_HEADERS = \ include/X11/extensions/xcmiscproto.h \ include/X11/extensions/xcmiscstr.h xcmiscprotopkgconfigdir = $(datadir)/pkgconfig xcmiscprotopkgconfig_DATA = xcmiscproto.pc xextdir = $(includedir)/X11/extensions xext_HEADERS = \ include/X11/extensions/dpmsconst.h \ include/X11/extensions/dpmsproto.h \ include/X11/extensions/ge.h \ include/X11/extensions/geproto.h \ include/X11/extensions/lbx.h \ include/X11/extensions/lbxproto.h \ include/X11/extensions/mitmiscconst.h \ include/X11/extensions/mitmiscproto.h \ include/X11/extensions/multibufconst.h \ include/X11/extensions/multibufproto.h \ include/X11/extensions/secur.h \ include/X11/extensions/securproto.h \ include/X11/extensions/shapeconst.h \ include/X11/extensions/shapeproto.h \ include/X11/extensions/shm.h \ include/X11/extensions/shmproto.h \ include/X11/extensions/syncconst.h \ include/X11/extensions/syncproto.h \ include/X11/extensions/ag.h \ include/X11/extensions/agproto.h \ include/X11/extensions/cup.h \ include/X11/extensions/cupproto.h \ include/X11/extensions/dbe.h \ include/X11/extensions/dbeproto.h \ include/X11/extensions/EVI.h \ include/X11/extensions/EVIproto.h \ include/X11/extensions/xtestext1proto.h \ include/X11/extensions/xtestext1const.h \ include/X11/extensions/xtestconst.h \ include/X11/extensions/xtestproto.h compatdir = $(xextdir) compat_HEADERS = \ include/X11/extensions/shapestr.h \ include/X11/extensions/shmstr.h \ include/X11/extensions/syncstr.h xextprotopkgconfigdir = $(datadir)/pkgconfig xextprotopkgconfig_DATA = xextproto.pc xf86bigfontdir = $(includedir)/X11/extensions xf86bigfont_HEADERS = \ include/X11/extensions/xf86bigfont.h \ include/X11/extensions/xf86bigfproto.h \ include/X11/extensions/xf86bigfstr.h xf86bigfontprotopkgconfigdir = $(datadir)/pkgconfig xf86bigfontprotopkgconfig_DATA = xf86bigfontproto.pc xf86dgadir = $(includedir)/X11/extensions xf86dga_HEADERS = \ include/X11/extensions/xf86dga.h \ include/X11/extensions/xf86dga1const.h \ include/X11/extensions/xf86dga1str.h \ include/X11/extensions/xf86dga1proto.h \ include/X11/extensions/xf86dgaconst.h \ include/X11/extensions/xf86dgaproto.h \ include/X11/extensions/xf86dgastr.h xf86dgaprotopkgconfigdir = $(datadir)/pkgconfig xf86dgaprotopkgconfig_DATA = xf86dgaproto.pc xf86dridir = $(includedir)/X11/dri xf86dri_HEADERS = \ include/X11/dri/xf86dri.h \ include/X11/dri/xf86dristr.h \ include/X11/dri/xf86driproto.h xf86driprotopkgconfigdir = $(datadir)/pkgconfig xf86driprotopkgconfig_DATA = xf86driproto.pc xf86vidmodedir = $(includedir)/X11/extensions xf86vidmode_HEADERS = \ include/X11/extensions/xf86vm.h \ include/X11/extensions/xf86vmproto.h \ include/X11/extensions/xf86vmstr.h xf86vidmodeprotopkgconfigdir = $(datadir)/pkgconfig xf86vidmodeprotopkgconfig_DATA = xf86vidmodeproto.pc xineramadir = $(includedir)/X11/extensions xinerama_HEADERS = \ include/X11/extensions/panoramiXproto.h xineramaprotopkgconfigdir = $(datadir)/pkgconfig xineramaprotopkgconfig_DATA = xineramaproto.pc xwaylandprotodir = $(includedir)/X11/extensions xwaylandproto_HEADERS = \ include/X11/extensions/xwaylandproto.h xwaylandprotopkgconfigdir = $(datadir)/pkgconfig xwaylandprotopkgconfig_DATA = xwaylandproto.pc dist_doc_DATA += xwaylandproto.txt if LEGACY XCalibrateincludedir = $(includedir)/X11/extensions XCalibrateinclude_HEADERS = \ include/X11/extensions/xcalibrateproto.h \ include/X11/extensions/xcalibratewire.h calibrateprotopkgconfigdir = $(datadir)/pkgconfig calibrateprotopkgconfig_DATA = xcalibrateproto.pc eviedir = $(includedir)/X11/extensions evie_HEADERS = \ include/X11/extensions/evieproto.h \ include/X11/extensions/Xeviestr.h evieprotopkgconfigdir = $(datadir)/pkgconfig evieprotopkgconfig_DATA = evieproto.pc fontcachedir = $(includedir)/X11/extensions fontcache_HEADERS = \ include/X11/extensions/fontcache.h \ include/X11/extensions/fontcacheP.h \ include/X11/extensions/fontcachstr.h fontcacheprotopkgconfigdir = $(datadir)/pkgconfig fontcacheprotopkgconfig_DATA = fontcacheproto.pc lg3ddir = $(includedir)/X11/extensions lg3d_HEADERS = \ include/X11/extensions/lgewire.h lg3dprotopkgconfigdir = $(datadir)/pkgconfig lg3dprotopkgconfig_DATA = lg3dproto.pc xproxymngdir = $(includedir)/X11/PM xproxymng_HEADERS = \ include/X11/PM/PM.h \ include/X11/PM/PMproto.h pmprotopkgconfigdir = $(datadir)/pkgconfig pmprotopkgconfig_DATA = xproxymngproto.pc dist_doc_DATA += PM_spec printdir = $(includedir)/X11/extensions print_HEADERS = \ include/X11/extensions/Print.h \ include/X11/extensions/Printstr.h printprotopkgconfigdir = $(datadir)/pkgconfig printprotopkgconfig_DATA = printproto.pc miscmandir = $(MISC_MAN_DIR) miscman_DATA = man/Xprint.$(MISC_MAN_SUFFIX) CLEANFILES = $(miscman_DATA) trapdir = $(includedir)/X11/extensions trap_HEADERS = \ include/X11/extensions/xtrapbits.h \ include/X11/extensions/xtrapddmi.h \ include/X11/extensions/xtrapdi.h \ include/X11/extensions/xtrapemacros.h \ include/X11/extensions/xtraplib.h \ include/X11/extensions/xtraplibp.h \ include/X11/extensions/xtrapproto.h trapprotopkgconfigdir = $(datadir)/pkgconfig trapprotopkgconfig_DATA = trapproto.pc windowswmdir = $(includedir)/X11/extensions windowswm_HEADERS = \ include/X11/extensions/windowswm.h \ include/X11/extensions/windowswmstr.h windowswmprotopkgconfigdir = $(datadir)/pkgconfig windowswmprotopkgconfig_DATA = windowswmproto.pc xf86miscdir = $(includedir)/X11/extensions xf86misc_HEADERS = \ include/X11/extensions/xf86misc.h \ include/X11/extensions/xf86mscstr.h xf86miscprotopkgconfigdir = $(datadir)/pkgconfig xf86miscprotopkgconfig_DATA = xf86miscproto.pc xf86rushdir = $(includedir)/X11/extensions xf86rush_HEADERS = \ include/X11/extensions/xf86rush.h \ include/X11/extensions/xf86rushstr.h xf86rushprotopkgconfigdir = $(datadir)/pkgconfig xf86rushprotopkgconfig_DATA = xf86rushproto.pc endif SUBDIRS=specs EXTRA_DIST = \ COPYING-applewmproto \ COPYING-bigreqsproto \ COPYING-compositeproto \ COPYING-damageproto \ COPYING-dmxproto \ COPYING-dri2proto \ COPYING-dri3proto \ COPYING-evieproto \ COPYING-fixesproto \ COPYING-fontcacheproto \ COPYING-fontsproto \ COPYING-glproto \ COPYING-inputproto \ COPYING-kbproto \ COPYING-lg3dproto \ COPYING-pmproto \ COPYING-presentproto \ COPYING-printproto \ COPYING-randrproto \ COPYING-recordproto \ COPYING-renderproto \ COPYING-resourceproto \ COPYING-scrnsaverproto \ COPYING-trapproto \ COPYING-videoproto \ COPYING-windowswmproto \ COPYING-x11proto \ COPYING-xcmiscproto \ COPYING-xextproto \ COPYING-xf86bigfontproto \ COPYING-xf86dgaproto \ COPYING-xf86driproto \ COPYING-xf86miscproto \ COPYING-xf86rushproto \ COPYING-xf86vidmodeproto \ COPYING-xineramaproto \ COPYING-xwaylandproto \ README.md \ autogen.sh \ include/GL/internal/meson.build \ include/GL/meson.build \ include/meson.build \ include/X11/dri/meson.build \ include/X11/extensions/meson.build \ include/X11/fonts/meson.build \ include/X11/meson.build \ include/X11/PM/meson.build \ meson.build \ meson_options.txt \ man/Xprint.man \ man/Xprint.sgml \ scripts/keysym-generator.py AM_DISTCHECK_CONFIGURE_FLAGS = --enable-legacy if HAVE_PYTHON AM_TESTS_ENVIRONMENT = \ INCLUDESDIR=$(top_srcdir)/include TESTS = scripts/keysym-generator.py TEST_EXTENSIONS = .py PY_LOG_COMPILER = $(PYTHON) endif xorgproto-2023.2/aclocal.m40000644000175000017500000042127514443010030012426 00000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, [m4_warning([this file was generated for autoconf 2.71. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. dnl dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. dnl dnl Permission is hereby granted, free of charge, to any person obtaining a dnl copy of this software and associated documentation files (the "Software"), dnl to deal in the Software without restriction, including without limitation dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, dnl and/or sell copies of the Software, and to permit persons to whom the dnl Software is furnished to do so, subject to the following conditions: dnl dnl The above copyright notice and this permission notice (including the next dnl paragraph) shall be included in all copies or substantial portions of the dnl Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER dnl DEALINGS IN THE SOFTWARE. # XORG_MACROS_VERSION(required-version) # ------------------------------------- # Minimum version: 1.1.0 # # If you're using a macro added in Version 1.1 or newer, include this in # your configure.ac with the minimum required version, such as: # XORG_MACROS_VERSION(1.1) # # To ensure that this macro is defined, also add: # m4_ifndef([XORG_MACROS_VERSION], # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) # # # See the "minimum version" comment for each macro you use to see what # version you require. m4_defun([XORG_MACROS_VERSION],[ m4_define([vers_have], [1.19.3]) m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) m4_if(m4_cmp(maj_have, maj_needed), 0,, [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) m4_if(m4_version_compare(vers_have, [$1]), -1, [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) m4_undefine([vers_have]) m4_undefine([maj_have]) m4_undefine([maj_needed]) ]) # XORG_MACROS_VERSION # XORG_PROG_RAWCPP() # ------------------ # Minimum version: 1.0.0 # # Find cpp program and necessary flags for use in pre-processing text files # such as man pages and config files AC_DEFUN([XORG_PROG_RAWCPP],[ AC_REQUIRE([AC_PROG_CPP]) AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}], [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) # Check for flag to avoid builtin definitions - assumes unix is predefined, # which is not the best choice for supporting other OS'es, but covers most # of the ones we need for now. AC_MSG_CHECKING([if $RAWCPP requires -undef]) AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])]) if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then AC_MSG_RESULT([no]) else if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then RAWCPPFLAGS=-undef AC_MSG_RESULT([yes]) # under Cygwin unix is still defined even with -undef elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then RAWCPPFLAGS="-undef -ansi" AC_MSG_RESULT([yes, with -ansi]) else AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) fi fi rm -f conftest.$ac_ext AC_MSG_CHECKING([if $RAWCPP requires -traditional]) AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])]) if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then AC_MSG_RESULT([no]) else if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then TRADITIONALCPPFLAGS="-traditional" RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" AC_MSG_RESULT([yes]) else AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) fi fi rm -f conftest.$ac_ext AC_SUBST(RAWCPPFLAGS) AC_SUBST(TRADITIONALCPPFLAGS) ]) # XORG_PROG_RAWCPP # XORG_MANPAGE_SECTIONS() # ----------------------- # Minimum version: 1.0.0 # # Determine which sections man pages go in for the different man page types # on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. # Not sure if there's any better way than just hardcoding by OS name. # Override default settings by setting environment variables # Added MAN_SUBSTS in version 1.8 # Added AC_PROG_SED in version 1.8 AC_DEFUN([XORG_MANPAGE_SECTIONS],[ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_SED]) case $host_os in solaris*) # Solaris 2.0 - 11.3 use SysV man page section numbers, so we # check for a man page file found in later versions that use # traditional section numbers instead AC_CHECK_FILE([/usr/share/man/man7/attributes.7], [SYSV_MAN_SECTIONS=false], [SYSV_MAN_SECTIONS=true]) ;; *) SYSV_MAN_SECTIONS=false ;; esac if test x$APP_MAN_SUFFIX = x ; then APP_MAN_SUFFIX=1 fi if test x$APP_MAN_DIR = x ; then APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' fi if test x$LIB_MAN_SUFFIX = x ; then LIB_MAN_SUFFIX=3 fi if test x$LIB_MAN_DIR = x ; then LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' fi if test x$FILE_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) FILE_MAN_SUFFIX=4 ;; *) FILE_MAN_SUFFIX=5 ;; esac fi if test x$FILE_MAN_DIR = x ; then FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' fi if test x$MISC_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) MISC_MAN_SUFFIX=5 ;; *) MISC_MAN_SUFFIX=7 ;; esac fi if test x$MISC_MAN_DIR = x ; then MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' fi if test x$DRIVER_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) DRIVER_MAN_SUFFIX=7 ;; *) DRIVER_MAN_SUFFIX=4 ;; esac fi if test x$DRIVER_MAN_DIR = x ; then DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' fi if test x$ADMIN_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) ADMIN_MAN_SUFFIX=1m ;; *) ADMIN_MAN_SUFFIX=8 ;; esac fi if test x$ADMIN_MAN_DIR = x ; then ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' fi AC_SUBST([APP_MAN_SUFFIX]) AC_SUBST([LIB_MAN_SUFFIX]) AC_SUBST([FILE_MAN_SUFFIX]) AC_SUBST([MISC_MAN_SUFFIX]) AC_SUBST([DRIVER_MAN_SUFFIX]) AC_SUBST([ADMIN_MAN_SUFFIX]) AC_SUBST([APP_MAN_DIR]) AC_SUBST([LIB_MAN_DIR]) AC_SUBST([FILE_MAN_DIR]) AC_SUBST([MISC_MAN_DIR]) AC_SUBST([DRIVER_MAN_DIR]) AC_SUBST([ADMIN_MAN_DIR]) XORG_MAN_PAGE="X Version 11" AC_SUBST([XORG_MAN_PAGE]) MAN_SUBSTS="\ -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ -e 's|__xservername__|Xorg|g' \ -e 's|__xconfigfile__|xorg.conf|g' \ -e 's|__projectroot__|\$(prefix)|g' \ -e 's|__apploaddir__|\$(appdefaultdir)|g' \ -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" AC_SUBST([MAN_SUBSTS]) ]) # XORG_MANPAGE_SECTIONS # XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) # ------------------------ # Minimum version: 1.7.0 # # Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent # provided by xorg-sgml-doctools, if installed. AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) XORG_SGML_PATH= PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], [m4_ifval([$1],[:], [if test x"$cross_compiling" != x"yes" ; then AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], [XORG_SGML_PATH=$prefix/share/sgml]) fi]) ]) # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing # the path and the name of the doc stylesheet if test "x$XORG_SGML_PATH" != "x" ; then AC_MSG_RESULT([$XORG_SGML_PATH]) STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl else AC_MSG_RESULT([no]) fi AC_SUBST(XORG_SGML_PATH) AC_SUBST(STYLESHEET_SRCDIR) AC_SUBST(XSL_STYLESHEET) AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) ]) # XORG_CHECK_SGML_DOCTOOLS # XORG_CHECK_LINUXDOC # ------------------- # Minimum version: 1.0.0 # # Defines the variable MAKE_TEXT if the necessary tools and # files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. # Whether or not the necessary tools and files are found can be checked # with the AM_CONDITIONAL "BUILD_LINUXDOC" AC_DEFUN([XORG_CHECK_LINUXDOC],[ AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) AC_REQUIRE([XORG_WITH_PS2PDF]) AC_PATH_PROG(LINUXDOC, linuxdoc) AC_MSG_CHECKING([whether to build documentation]) if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then BUILDDOC=yes else BUILDDOC=no fi AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) AC_MSG_RESULT([$BUILDDOC]) AC_MSG_CHECKING([whether to build pdf documentation]) if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then BUILDPDFDOC=yes else BUILDPDFDOC=no fi AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) AC_MSG_RESULT([$BUILDPDFDOC]) MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" MAKE_PDF="$PS2PDF" MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" AC_SUBST(MAKE_TEXT) AC_SUBST(MAKE_PS) AC_SUBST(MAKE_PDF) AC_SUBST(MAKE_HTML) ]) # XORG_CHECK_LINUXDOC # XORG_CHECK_DOCBOOK # ------------------- # Minimum version: 1.0.0 # # Checks for the ability to build output formats from SGML DocBook source. # For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" # indicates whether the necessary tools and files are found and, if set, # $(MAKE_XXX) blah.sgml will produce blah.xxx. AC_DEFUN([XORG_CHECK_DOCBOOK],[ AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) BUILDTXTDOC=no BUILDPDFDOC=no BUILDPSDOC=no BUILDHTMLDOC=no AC_PATH_PROG(DOCBOOKPS, docbook2ps) AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) AC_PATH_PROG(DOCBOOKHTML, docbook2html) AC_PATH_PROG(DOCBOOKTXT, docbook2txt) AC_MSG_CHECKING([whether to build text documentation]) if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && test x$BUILD_TXTDOC != xno; then BUILDTXTDOC=yes fi AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) AC_MSG_RESULT([$BUILDTXTDOC]) AC_MSG_CHECKING([whether to build PDF documentation]) if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && test x$BUILD_PDFDOC != xno; then BUILDPDFDOC=yes fi AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) AC_MSG_RESULT([$BUILDPDFDOC]) AC_MSG_CHECKING([whether to build PostScript documentation]) if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && test x$BUILD_PSDOC != xno; then BUILDPSDOC=yes fi AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) AC_MSG_RESULT([$BUILDPSDOC]) AC_MSG_CHECKING([whether to build HTML documentation]) if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && test x$BUILD_HTMLDOC != xno; then BUILDHTMLDOC=yes fi AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) AC_MSG_RESULT([$BUILDHTMLDOC]) MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" AC_SUBST(MAKE_TEXT) AC_SUBST(MAKE_PS) AC_SUBST(MAKE_PDF) AC_SUBST(MAKE_HTML) ]) # XORG_CHECK_DOCBOOK # XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT]) # ---------------- # Minimum version: 1.5.0 # Minimum version for optional DEFAULT argument: 1.11.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-xmlto option, it allows maximum flexibilty in making decisions # as whether or not to use the xmlto package. When DEFAULT is not specified, # --with-xmlto assumes 'auto'. # # Interface to module: # HAVE_XMLTO: used in makefiles to conditionally generate documentation # XMLTO: returns the path of the xmlto program found # returns the path set by the user in the environment # --with-xmlto: 'yes' user instructs the module to use xmlto # 'no' user instructs the module not to use xmlto # # Added in version 1.10.0 # HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation # xmlto for text output requires either lynx, links, or w3m browsers # # If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_XMLTO],[ AC_ARG_VAR([XMLTO], [Path to xmlto command]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(xmlto, AS_HELP_STRING([--with-xmlto], [Use xmlto to regenerate documentation (default: ]_defopt[)]), [use_xmlto=$withval], [use_xmlto=]_defopt) m4_undefine([_defopt]) if test "x$use_xmlto" = x"auto"; then AC_PATH_PROG([XMLTO], [xmlto]) if test "x$XMLTO" = "x"; then AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) have_xmlto=no else have_xmlto=yes fi elif test "x$use_xmlto" = x"yes" ; then AC_PATH_PROG([XMLTO], [xmlto]) if test "x$XMLTO" = "x"; then AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) fi have_xmlto=yes elif test "x$use_xmlto" = x"no" ; then if test "x$XMLTO" != "x"; then AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) fi have_xmlto=no else AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) fi # Test for a minimum version of xmlto, if provided. m4_ifval([$1], [if test "$have_xmlto" = yes; then # scrape the xmlto version AC_MSG_CHECKING([the xmlto version]) xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` AC_MSG_RESULT([$xmlto_version]) AS_VERSION_COMPARE([$xmlto_version], [$1], [if test "x$use_xmlto" = xauto; then AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) have_xmlto=no else AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) fi]) fi]) # Test for the ability of xmlto to generate a text target # # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the # following test for empty XML docbook files. # For compatibility reasons use the following empty XML docbook file and if # it fails try it again with a non-empty XML file. have_xmlto_text=no cat > conftest.xml << "EOF" EOF AS_IF([test "$have_xmlto" = yes], [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], [have_xmlto_text=yes], [# Try it again with a non-empty XML file. cat > conftest.xml << "EOF" EOF AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], [have_xmlto_text=yes], [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])]) rm -f conftest.xml AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) ]) # XORG_WITH_XMLTO # XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT]) # -------------------------------------------- # Minimum version: 1.12.0 # Minimum version for optional DEFAULT argument: 1.12.0 # # XSLT (Extensible Stylesheet Language Transformations) is a declarative, # XML-based language used for the transformation of XML documents. # The xsltproc command line tool is for applying XSLT stylesheets to XML documents. # It is used under the cover by xmlto to generate html files from DocBook/XML. # The XSLT processor is often used as a standalone tool for transformations. # It should not be assumed that this tool is used only to work with documnetation. # When DEFAULT is not specified, --with-xsltproc assumes 'auto'. # # Interface to module: # HAVE_XSLTPROC: used in makefiles to conditionally generate documentation # XSLTPROC: returns the path of the xsltproc program found # returns the path set by the user in the environment # --with-xsltproc: 'yes' user instructs the module to use xsltproc # 'no' user instructs the module not to use xsltproc # have_xsltproc: returns yes if xsltproc found in PATH or no # # If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_XSLTPROC],[ AC_ARG_VAR([XSLTPROC], [Path to xsltproc command]) # Preserves the interface, should it be implemented later m4_ifval([$1], [m4_warn([syntax], [Checking for xsltproc MIN-VERSION is not implemented])]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(xsltproc, AS_HELP_STRING([--with-xsltproc], [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]), [use_xsltproc=$withval], [use_xsltproc=]_defopt) m4_undefine([_defopt]) if test "x$use_xsltproc" = x"auto"; then AC_PATH_PROG([XSLTPROC], [xsltproc]) if test "x$XSLTPROC" = "x"; then AC_MSG_WARN([xsltproc not found - cannot transform XML documents]) have_xsltproc=no else have_xsltproc=yes fi elif test "x$use_xsltproc" = x"yes" ; then AC_PATH_PROG([XSLTPROC], [xsltproc]) if test "x$XSLTPROC" = "x"; then AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH]) fi have_xsltproc=yes elif test "x$use_xsltproc" = x"no" ; then if test "x$XSLTPROC" != "x"; then AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified]) fi have_xsltproc=no else AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no']) fi AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes]) ]) # XORG_WITH_XSLTPROC # XORG_WITH_PERL([MIN-VERSION], [DEFAULT]) # ---------------------------------------- # Minimum version: 1.15.0 # # PERL (Practical Extraction and Report Language) is a language optimized for # scanning arbitrary text files, extracting information from those text files, # and printing reports based on that information. # # When DEFAULT is not specified, --with-perl assumes 'auto'. # # Interface to module: # HAVE_PERL: used in makefiles to conditionally scan text files # PERL: returns the path of the perl program found # returns the path set by the user in the environment # --with-perl: 'yes' user instructs the module to use perl # 'no' user instructs the module not to use perl # have_perl: returns yes if perl found in PATH or no # # If the user sets the value of PERL, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_PERL],[ AC_ARG_VAR([PERL], [Path to perl command]) # Preserves the interface, should it be implemented later m4_ifval([$1], [m4_warn([syntax], [Checking for perl MIN-VERSION is not implemented])]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(perl, AS_HELP_STRING([--with-perl], [Use perl for extracting information from files (default: ]_defopt[)]), [use_perl=$withval], [use_perl=]_defopt) m4_undefine([_defopt]) if test "x$use_perl" = x"auto"; then AC_PATH_PROG([PERL], [perl]) if test "x$PERL" = "x"; then AC_MSG_WARN([perl not found - cannot extract information and report]) have_perl=no else have_perl=yes fi elif test "x$use_perl" = x"yes" ; then AC_PATH_PROG([PERL], [perl]) if test "x$PERL" = "x"; then AC_MSG_ERROR([--with-perl=yes specified but perl not found in PATH]) fi have_perl=yes elif test "x$use_perl" = x"no" ; then if test "x$PERL" != "x"; then AC_MSG_WARN([ignoring PERL environment variable since --with-perl=no was specified]) fi have_perl=no else AC_MSG_ERROR([--with-perl expects 'yes' or 'no']) fi AM_CONDITIONAL([HAVE_PERL], [test "$have_perl" = yes]) ]) # XORG_WITH_PERL # XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT]) # ---------------- # Minimum version: 1.5.0 # Minimum version for optional DEFAULT argument: 1.11.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-asciidoc option, it allows maximum flexibilty in making decisions # as whether or not to use the asciidoc package. When DEFAULT is not specified, # --with-asciidoc assumes 'auto'. # # Interface to module: # HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation # ASCIIDOC: returns the path of the asciidoc program found # returns the path set by the user in the environment # --with-asciidoc: 'yes' user instructs the module to use asciidoc # 'no' user instructs the module not to use asciidoc # # If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_ASCIIDOC],[ AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(asciidoc, AS_HELP_STRING([--with-asciidoc], [Use asciidoc to regenerate documentation (default: ]_defopt[)]), [use_asciidoc=$withval], [use_asciidoc=]_defopt) m4_undefine([_defopt]) if test "x$use_asciidoc" = x"auto"; then AC_PATH_PROG([ASCIIDOC], [asciidoc]) if test "x$ASCIIDOC" = "x"; then AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) have_asciidoc=no else have_asciidoc=yes fi elif test "x$use_asciidoc" = x"yes" ; then AC_PATH_PROG([ASCIIDOC], [asciidoc]) if test "x$ASCIIDOC" = "x"; then AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) fi have_asciidoc=yes elif test "x$use_asciidoc" = x"no" ; then if test "x$ASCIIDOC" != "x"; then AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) fi have_asciidoc=no else AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) fi m4_ifval([$1], [if test "$have_asciidoc" = yes; then # scrape the asciidoc version AC_MSG_CHECKING([the asciidoc version]) asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` AC_MSG_RESULT([$asciidoc_version]) AS_VERSION_COMPARE([$asciidoc_version], [$1], [if test "x$use_asciidoc" = xauto; then AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) have_asciidoc=no else AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) fi]) fi]) AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) ]) # XORG_WITH_ASCIIDOC # XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) # ------------------------------------------- # Minimum version: 1.5.0 # Minimum version for optional DEFAULT argument: 1.11.0 # Minimum version for optional DOT checking: 1.18.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-doxygen option, it allows maximum flexibilty in making decisions # as whether or not to use the doxygen package. When DEFAULT is not specified, # --with-doxygen assumes 'auto'. # # Interface to module: # HAVE_DOXYGEN: used in makefiles to conditionally generate documentation # DOXYGEN: returns the path of the doxygen program found # returns the path set by the user in the environment # --with-doxygen: 'yes' user instructs the module to use doxygen # 'no' user instructs the module not to use doxygen # # If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_DOXYGEN],[ AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) AC_ARG_VAR([DOT], [Path to the dot graphics utility]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(doxygen, AS_HELP_STRING([--with-doxygen], [Use doxygen to regenerate documentation (default: ]_defopt[)]), [use_doxygen=$withval], [use_doxygen=]_defopt) m4_undefine([_defopt]) if test "x$use_doxygen" = x"auto"; then AC_PATH_PROG([DOXYGEN], [doxygen]) if test "x$DOXYGEN" = "x"; then AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) have_doxygen=no else have_doxygen=yes fi elif test "x$use_doxygen" = x"yes" ; then AC_PATH_PROG([DOXYGEN], [doxygen]) if test "x$DOXYGEN" = "x"; then AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) fi have_doxygen=yes elif test "x$use_doxygen" = x"no" ; then if test "x$DOXYGEN" != "x"; then AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) fi have_doxygen=no else AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) fi m4_ifval([$1], [if test "$have_doxygen" = yes; then # scrape the doxygen version AC_MSG_CHECKING([the doxygen version]) doxygen_version=`$DOXYGEN --version 2>/dev/null` AC_MSG_RESULT([$doxygen_version]) AS_VERSION_COMPARE([$doxygen_version], [$1], [if test "x$use_doxygen" = xauto; then AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) have_doxygen=no else AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) fi]) fi]) dnl Check for DOT if we have doxygen. The caller decides if it is mandatory dnl HAVE_DOT is a variable that can be used in your doxygen.in config file: dnl HAVE_DOT = @HAVE_DOT@ HAVE_DOT=no if test "x$have_doxygen" = "xyes"; then AC_PATH_PROG([DOT], [dot]) if test "x$DOT" != "x"; then HAVE_DOT=yes fi fi AC_SUBST([HAVE_DOT]) AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"]) AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) ]) # XORG_WITH_DOXYGEN # XORG_WITH_GROFF([DEFAULT]) # ---------------- # Minimum version: 1.6.0 # Minimum version for optional DEFAULT argument: 1.11.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-groff option, it allows maximum flexibilty in making decisions # as whether or not to use the groff package. When DEFAULT is not specified, # --with-groff assumes 'auto'. # # Interface to module: # HAVE_GROFF: used in makefiles to conditionally generate documentation # HAVE_GROFF_MM: the memorandum macros (-mm) package # HAVE_GROFF_MS: the -ms macros package # GROFF: returns the path of the groff program found # returns the path set by the user in the environment # --with-groff: 'yes' user instructs the module to use groff # 'no' user instructs the module not to use groff # # Added in version 1.9.0: # HAVE_GROFF_HTML: groff has dependencies to output HTML format: # pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. # psselect from the psutils package. # the ghostcript package. Refer to the grohtml man pages # # If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. # # OS and distros often splits groff in a basic and full package, the former # having the groff program and the later having devices, fonts and macros # Checking for the groff executable is not enough. # # If macros are missing, we cannot assume that groff is useless, so we don't # unset HAVE_GROFF or GROFF env variables. # HAVE_GROFF_?? can never be true while HAVE_GROFF is false. # AC_DEFUN([XORG_WITH_GROFF],[ AC_ARG_VAR([GROFF], [Path to groff command]) m4_define([_defopt], m4_default([$1], [auto])) AC_ARG_WITH(groff, AS_HELP_STRING([--with-groff], [Use groff to regenerate documentation (default: ]_defopt[)]), [use_groff=$withval], [use_groff=]_defopt) m4_undefine([_defopt]) if test "x$use_groff" = x"auto"; then AC_PATH_PROG([GROFF], [groff]) if test "x$GROFF" = "x"; then AC_MSG_WARN([groff not found - documentation targets will be skipped]) have_groff=no else have_groff=yes fi elif test "x$use_groff" = x"yes" ; then AC_PATH_PROG([GROFF], [groff]) if test "x$GROFF" = "x"; then AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) fi have_groff=yes elif test "x$use_groff" = x"no" ; then if test "x$GROFF" != "x"; then AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) fi have_groff=no else AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) fi # We have groff, test for the presence of the macro packages if test "x$have_groff" = x"yes"; then AC_MSG_CHECKING([for ${GROFF} -ms macros]) if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then groff_ms_works=yes else groff_ms_works=no fi AC_MSG_RESULT([$groff_ms_works]) AC_MSG_CHECKING([for ${GROFF} -mm macros]) if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then groff_mm_works=yes else groff_mm_works=no fi AC_MSG_RESULT([$groff_mm_works]) fi # We have groff, test for HTML dependencies, one command per package if test "x$have_groff" = x"yes"; then AC_PATH_PROGS(GS_PATH, [gs gswin32c]) AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) AC_PATH_PROG(PSSELECT_PATH, [psselect]) if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then have_groff_html=yes else have_groff_html=no AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) fi fi # Set Automake conditionals for Makefiles AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) ]) # XORG_WITH_GROFF # XORG_WITH_FOP([MIN-VERSION], [DEFAULT]) # --------------------------------------- # Minimum version: 1.6.0 # Minimum version for optional DEFAULT argument: 1.11.0 # Minimum version for optional MIN-VERSION argument: 1.15.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-fop option, it allows maximum flexibilty in making decisions # as whether or not to use the fop package. When DEFAULT is not specified, # --with-fop assumes 'auto'. # # Interface to module: # HAVE_FOP: used in makefiles to conditionally generate documentation # FOP: returns the path of the fop program found # returns the path set by the user in the environment # --with-fop: 'yes' user instructs the module to use fop # 'no' user instructs the module not to use fop # # If the user sets the value of FOP, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_FOP],[ AC_ARG_VAR([FOP], [Path to fop command]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(fop, AS_HELP_STRING([--with-fop], [Use fop to regenerate documentation (default: ]_defopt[)]), [use_fop=$withval], [use_fop=]_defopt) m4_undefine([_defopt]) if test "x$use_fop" = x"auto"; then AC_PATH_PROG([FOP], [fop]) if test "x$FOP" = "x"; then AC_MSG_WARN([fop not found - documentation targets will be skipped]) have_fop=no else have_fop=yes fi elif test "x$use_fop" = x"yes" ; then AC_PATH_PROG([FOP], [fop]) if test "x$FOP" = "x"; then AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) fi have_fop=yes elif test "x$use_fop" = x"no" ; then if test "x$FOP" != "x"; then AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) fi have_fop=no else AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) fi # Test for a minimum version of fop, if provided. m4_ifval([$1], [if test "$have_fop" = yes; then # scrape the fop version AC_MSG_CHECKING([for fop minimum version]) fop_version=`$FOP -version 2>/dev/null | cut -d' ' -f3` AC_MSG_RESULT([$fop_version]) AS_VERSION_COMPARE([$fop_version], [$1], [if test "x$use_fop" = xauto; then AC_MSG_WARN([fop version $fop_version found, but $1 needed]) have_fop=no else AC_MSG_ERROR([fop version $fop_version found, but $1 needed]) fi]) fi]) AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) ]) # XORG_WITH_FOP # XORG_WITH_M4([MIN-VERSION]) # --------------------------- # Minimum version: 1.19.0 # # This macro attempts to locate an m4 macro processor which supports # -I option and is only useful for modules relying on M4 in order to # expand macros in source code files. # # Interface to module: # M4: returns the path of the m4 program found # returns the path set by the user in the environment # AC_DEFUN([XORG_WITH_M4], [ AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4], [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4], [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]], [AC_MSG_ERROR([could not find m4 that supports -I option])], [$PATH:/usr/gnu/bin])]) AC_SUBST([M4], [$ac_cv_path_M4]) ]) # XORG_WITH_M4 # XORG_WITH_PS2PDF([DEFAULT]) # ---------------- # Minimum version: 1.6.0 # Minimum version for optional DEFAULT argument: 1.11.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a module to test for the # presence of the tool and obtain it's path in separate variables. Coupled with # the --with-ps2pdf option, it allows maximum flexibilty in making decisions # as whether or not to use the ps2pdf package. When DEFAULT is not specified, # --with-ps2pdf assumes 'auto'. # # Interface to module: # HAVE_PS2PDF: used in makefiles to conditionally generate documentation # PS2PDF: returns the path of the ps2pdf program found # returns the path set by the user in the environment # --with-ps2pdf: 'yes' user instructs the module to use ps2pdf # 'no' user instructs the module not to use ps2pdf # # If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. # AC_DEFUN([XORG_WITH_PS2PDF],[ AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) m4_define([_defopt], m4_default([$1], [auto])) AC_ARG_WITH(ps2pdf, AS_HELP_STRING([--with-ps2pdf], [Use ps2pdf to regenerate documentation (default: ]_defopt[)]), [use_ps2pdf=$withval], [use_ps2pdf=]_defopt) m4_undefine([_defopt]) if test "x$use_ps2pdf" = x"auto"; then AC_PATH_PROG([PS2PDF], [ps2pdf]) if test "x$PS2PDF" = "x"; then AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) have_ps2pdf=no else have_ps2pdf=yes fi elif test "x$use_ps2pdf" = x"yes" ; then AC_PATH_PROG([PS2PDF], [ps2pdf]) if test "x$PS2PDF" = "x"; then AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) fi have_ps2pdf=yes elif test "x$use_ps2pdf" = x"no" ; then if test "x$PS2PDF" != "x"; then AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) fi have_ps2pdf=no else AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) fi AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) ]) # XORG_WITH_PS2PDF # XORG_ENABLE_DOCS (enable_docs=yes) # ---------------- # Minimum version: 1.6.0 # # Documentation tools are not always available on all platforms and sometimes # not at the appropriate level. This macro enables a builder to skip all # documentation targets except traditional man pages. # Combined with the specific tool checking macros XORG_WITH_*, it provides # maximum flexibilty in controlling documentation building. # Refer to: # XORG_WITH_XMLTO --with-xmlto # XORG_WITH_ASCIIDOC --with-asciidoc # XORG_WITH_DOXYGEN --with-doxygen # XORG_WITH_FOP --with-fop # XORG_WITH_GROFF --with-groff # XORG_WITH_PS2PDF --with-ps2pdf # # Interface to module: # ENABLE_DOCS: used in makefiles to conditionally generate documentation # --enable-docs: 'yes' user instructs the module to generate docs # 'no' user instructs the module not to generate docs # parm1: specify the default value, yes or no. # AC_DEFUN([XORG_ENABLE_DOCS],[ m4_define([docs_default], m4_default([$1], [yes])) AC_ARG_ENABLE(docs, AS_HELP_STRING([--enable-docs], [Enable building the documentation (default: ]docs_default[)]), [build_docs=$enableval], [build_docs=]docs_default) m4_undefine([docs_default]) AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) AC_MSG_CHECKING([whether to build documentation]) AC_MSG_RESULT([$build_docs]) ]) # XORG_ENABLE_DOCS # XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) # ---------------- # Minimum version: 1.6.0 # # This macro enables a builder to skip all developer documentation. # Combined with the specific tool checking macros XORG_WITH_*, it provides # maximum flexibilty in controlling documentation building. # Refer to: # XORG_WITH_XMLTO --with-xmlto # XORG_WITH_ASCIIDOC --with-asciidoc # XORG_WITH_DOXYGEN --with-doxygen # XORG_WITH_FOP --with-fop # XORG_WITH_GROFF --with-groff # XORG_WITH_PS2PDF --with-ps2pdf # # Interface to module: # ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs # --enable-devel-docs: 'yes' user instructs the module to generate developer docs # 'no' user instructs the module not to generate developer docs # parm1: specify the default value, yes or no. # AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ m4_define([devel_default], m4_default([$1], [yes])) AC_ARG_ENABLE(devel-docs, AS_HELP_STRING([--enable-devel-docs], [Enable building the developer documentation (default: ]devel_default[)]), [build_devel_docs=$enableval], [build_devel_docs=]devel_default) m4_undefine([devel_default]) AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) AC_MSG_CHECKING([whether to build developer documentation]) AC_MSG_RESULT([$build_devel_docs]) ]) # XORG_ENABLE_DEVEL_DOCS # XORG_ENABLE_SPECS (enable_specs=yes) # ---------------- # Minimum version: 1.6.0 # # This macro enables a builder to skip all functional specification targets. # Combined with the specific tool checking macros XORG_WITH_*, it provides # maximum flexibilty in controlling documentation building. # Refer to: # XORG_WITH_XMLTO --with-xmlto # XORG_WITH_ASCIIDOC --with-asciidoc # XORG_WITH_DOXYGEN --with-doxygen # XORG_WITH_FOP --with-fop # XORG_WITH_GROFF --with-groff # XORG_WITH_PS2PDF --with-ps2pdf # # Interface to module: # ENABLE_SPECS: used in makefiles to conditionally generate specs # --enable-specs: 'yes' user instructs the module to generate specs # 'no' user instructs the module not to generate specs # parm1: specify the default value, yes or no. # AC_DEFUN([XORG_ENABLE_SPECS],[ m4_define([spec_default], m4_default([$1], [yes])) AC_ARG_ENABLE(specs, AS_HELP_STRING([--enable-specs], [Enable building the specs (default: ]spec_default[)]), [build_specs=$enableval], [build_specs=]spec_default) m4_undefine([spec_default]) AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) AC_MSG_CHECKING([whether to build functional specifications]) AC_MSG_RESULT([$build_specs]) ]) # XORG_ENABLE_SPECS # XORG_ENABLE_UNIT_TESTS (enable_unit_tests=auto) # ---------------------------------------------- # Minimum version: 1.13.0 # # This macro enables a builder to enable/disable unit testing # It makes no assumption about the test cases implementation # Test cases may or may not use Automake "Support for test suites" # They may or may not use the software utility library GLib # # When used in conjunction with XORG_WITH_GLIB, use both AM_CONDITIONAL # ENABLE_UNIT_TESTS and HAVE_GLIB. Not all unit tests may use glib. # The variable enable_unit_tests is used by other macros in this file. # # Interface to module: # ENABLE_UNIT_TESTS: used in makefiles to conditionally build tests # enable_unit_tests: used in configure.ac for additional configuration # --enable-unit-tests: 'yes' user instructs the module to build tests # 'no' user instructs the module not to build tests # parm1: specify the default value, yes or no. # AC_DEFUN([XORG_ENABLE_UNIT_TESTS],[ AC_BEFORE([$0], [XORG_WITH_GLIB]) AC_BEFORE([$0], [XORG_LD_WRAP]) AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) m4_define([_defopt], m4_default([$1], [auto])) AC_ARG_ENABLE(unit-tests, AS_HELP_STRING([--enable-unit-tests], [Enable building unit test cases (default: ]_defopt[)]), [enable_unit_tests=$enableval], [enable_unit_tests=]_defopt) m4_undefine([_defopt]) AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "x$enable_unit_tests" != xno]) AC_MSG_CHECKING([whether to build unit test cases]) AC_MSG_RESULT([$enable_unit_tests]) ]) # XORG_ENABLE_UNIT_TESTS # XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto) # ------------------------------------------------------ # Minimum version: 1.17.0 # # This macro enables a builder to enable/disable integration testing # It makes no assumption about the test cases' implementation # Test cases may or may not use Automake "Support for test suites" # # Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support # usually requires less dependencies and may be built and run under less # stringent environments than integration tests. # # Interface to module: # ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests # enable_integration_tests: used in configure.ac for additional configuration # --enable-integration-tests: 'yes' user instructs the module to build tests # 'no' user instructs the module not to build tests # parm1: specify the default value, yes or no. # AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[ AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) m4_define([_defopt], m4_default([$1], [auto])) AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests], [Enable building integration test cases (default: ]_defopt[)]), [enable_integration_tests=$enableval], [enable_integration_tests=]_defopt) m4_undefine([_defopt]) AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS], [test "x$enable_integration_tests" != xno]) AC_MSG_CHECKING([whether to build unit test cases]) AC_MSG_RESULT([$enable_integration_tests]) ]) # XORG_ENABLE_INTEGRATION_TESTS # XORG_WITH_GLIB([MIN-VERSION], [DEFAULT]) # ---------------------------------------- # Minimum version: 1.13.0 # # GLib is a library which provides advanced data structures and functions. # This macro enables a module to test for the presence of Glib. # # When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing. # Otherwise the value of $enable_unit_tests is blank. # # Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit # test support usually requires less dependencies and may be built and run under # less stringent environments than integration tests. # # Interface to module: # HAVE_GLIB: used in makefiles to conditionally build targets # with_glib: used in configure.ac to know if GLib has been found # --with-glib: 'yes' user instructs the module to use glib # 'no' user instructs the module not to use glib # AC_DEFUN([XORG_WITH_GLIB],[ AC_REQUIRE([PKG_PROG_PKG_CONFIG]) m4_define([_defopt], m4_default([$2], [auto])) AC_ARG_WITH(glib, AS_HELP_STRING([--with-glib], [Use GLib library for unit testing (default: ]_defopt[)]), [with_glib=$withval], [with_glib=]_defopt) m4_undefine([_defopt]) have_glib=no # Do not probe GLib if user explicitly disabled unit testing if test "x$enable_unit_tests" != x"no"; then # Do not probe GLib if user explicitly disabled it if test "x$with_glib" != x"no"; then m4_ifval( [$1], [PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $1], [have_glib=yes], [have_glib=no])], [PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])] ) fi fi # Not having GLib when unit testing has been explicitly requested is an error if test "x$enable_unit_tests" = x"yes"; then if test "x$have_glib" = x"no"; then AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) fi fi # Having unit testing disabled when GLib has been explicitly requested is an error if test "x$enable_unit_tests" = x"no"; then if test "x$with_glib" = x"yes"; then AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) fi fi # Not having GLib when it has been explicitly requested is an error if test "x$with_glib" = x"yes"; then if test "x$have_glib" = x"no"; then AC_MSG_ERROR([--with-glib=yes specified but glib-2.0 not found]) fi fi AM_CONDITIONAL([HAVE_GLIB], [test "$have_glib" = yes]) ]) # XORG_WITH_GLIB # XORG_LD_WRAP([required|optional]) # --------------------------------- # Minimum version: 1.13.0 # # Check if linker supports -wrap, passed via compiler flags # # When used with ENABLE_UNIT_TESTS, it is assumed -wrap is used for unit testing. # Otherwise the value of $enable_unit_tests is blank. # # Argument added in 1.16.0 - default is "required", to match existing behavior # of returning an error if enable_unit_tests is yes, and ld -wrap is not # available, an argument of "optional" allows use when some unit tests require # ld -wrap and others do not. # AC_DEFUN([XORG_LD_WRAP],[ XORG_CHECK_LINKER_FLAGS([-Wl,-wrap,exit],[have_ld_wrap=yes],[have_ld_wrap=no], [AC_LANG_PROGRAM([#include void __wrap_exit(int status) { return; }], [exit(0);])]) # Not having ld wrap when unit testing has been explicitly requested is an error if test "x$enable_unit_tests" = x"yes" -a "x$1" != "xoptional"; then if test "x$have_ld_wrap" = x"no"; then AC_MSG_ERROR([--enable-unit-tests=yes specified but ld -wrap support is not available]) fi fi AM_CONDITIONAL([HAVE_LD_WRAP], [test "$have_ld_wrap" = yes]) # ]) # XORG_LD_WRAP # XORG_CHECK_LINKER_FLAGS # ----------------------- # SYNOPSIS # # XORG_CHECK_LINKER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE], [PROGRAM-SOURCE]) # # DESCRIPTION # # Check whether the given linker FLAGS work with the current language's # linker, or whether they give an error. # # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on # success/failure. # # PROGRAM-SOURCE is the program source to link with, if needed # # NOTE: Based on AX_CHECK_COMPILER_FLAGS. # # LICENSE # # Copyright (c) 2009 Mike Frysinger # Copyright (c) 2009 Steven G. Johnson # Copyright (c) 2009 Matteo Frigo # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see . # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well.# AC_DEFUN([XORG_CHECK_LINKER_FLAGS], [AC_MSG_CHECKING([whether the linker accepts $1]) dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname: AS_LITERAL_IF([$1], [AC_CACHE_VAL(AS_TR_SH(xorg_cv_linker_flags_[$1]), [ ax_save_FLAGS=$LDFLAGS LDFLAGS="$1" AC_LINK_IFELSE([m4_default([$4],[AC_LANG_PROGRAM()])], AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, AS_TR_SH(xorg_cv_linker_flags_[$1])=no) LDFLAGS=$ax_save_FLAGS])], [ax_save_FLAGS=$LDFLAGS LDFLAGS="$1" AC_LINK_IFELSE([AC_LANG_PROGRAM()], eval AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, eval AS_TR_SH(xorg_cv_linker_flags_[$1])=no) LDFLAGS=$ax_save_FLAGS]) eval xorg_check_linker_flags=$AS_TR_SH(xorg_cv_linker_flags_[$1]) AC_MSG_RESULT($xorg_check_linker_flags) if test "x$xorg_check_linker_flags" = xyes; then m4_default([$2], :) else m4_default([$3], :) fi ]) # XORG_CHECK_LINKER_FLAGS # XORG_MEMORY_CHECK_FLAGS # ----------------------- # Minimum version: 1.16.0 # # This macro attempts to find appropriate memory checking functionality # for various platforms which unit testing code may use to catch various # forms of memory allocation and access errors in testing. # # Interface to module: # XORG_MALLOC_DEBUG_ENV - environment variables to set to enable debugging # Usually added to TESTS_ENVIRONMENT in Makefile.am # # If the user sets the value of XORG_MALLOC_DEBUG_ENV, it is used verbatim. # AC_DEFUN([XORG_MEMORY_CHECK_FLAGS],[ AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_VAR([XORG_MALLOC_DEBUG_ENV], [Environment variables to enable memory checking in tests]) # Check for different types of support on different platforms case $host_os in solaris*) AC_CHECK_LIB([umem], [umem_alloc], [malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default']) ;; *-gnu*) # GNU libc - Value is used as a single byte bit pattern, # both directly and inverted, so should not be 0 or 255. malloc_debug_env='MALLOC_PERTURB_=15' ;; darwin*) malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' ;; *bsd*) malloc_debug_env='MallocPreScribble=1 MallocScribble=1' ;; esac # User supplied flags override default flags if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" fi AC_SUBST([XORG_MALLOC_DEBUG_ENV],[$malloc_debug_env]) ]) # XORG_WITH_LINT # XORG_CHECK_MALLOC_ZERO # ---------------------- # Minimum version: 1.0.0 # # Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if # malloc(0) returns NULL. Packages should add one of these cflags to # their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ AC_ARG_ENABLE(malloc0returnsnull, AS_HELP_STRING([--enable-malloc0returnsnull], [malloc(0) returns NULL (default: auto)]), [MALLOC_ZERO_RETURNS_NULL=$enableval], [MALLOC_ZERO_RETURNS_NULL=auto]) AC_MSG_CHECKING([whether malloc(0) returns NULL]) if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then AC_CACHE_VAL([xorg_cv_malloc0_returns_null], [AC_RUN_IFELSE([AC_LANG_PROGRAM([ #include ],[ char *m0, *r0, *c0, *p; m0 = malloc(0); p = malloc(10); r0 = realloc(p,0); c0 = calloc(0,10); exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); ])], [xorg_cv_malloc0_returns_null=yes], [xorg_cv_malloc0_returns_null=no])]) MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null fi AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" else MALLOC_ZERO_CFLAGS="" XMALLOC_ZERO_CFLAGS="" XTMALLOC_ZERO_CFLAGS="" fi AC_SUBST([MALLOC_ZERO_CFLAGS]) AC_SUBST([XMALLOC_ZERO_CFLAGS]) AC_SUBST([XTMALLOC_ZERO_CFLAGS]) ]) # XORG_CHECK_MALLOC_ZERO # XORG_WITH_LINT() # ---------------- # Minimum version: 1.1.0 # # This macro enables the use of a tool that flags some suspicious and # non-portable constructs (likely to be bugs) in C language source code. # It will attempt to locate the tool and use appropriate options. # There are various lint type tools on different platforms. # # Interface to module: # LINT: returns the path to the tool found on the platform # or the value set to LINT on the configure cmd line # also an Automake conditional # LINT_FLAGS: an Automake variable with appropriate flags # # --with-lint: 'yes' user instructs the module to use lint # 'no' user instructs the module not to use lint (default) # # If the user sets the value of LINT, AC_PATH_PROG skips testing the path. # If the user sets the value of LINT_FLAGS, they are used verbatim. # AC_DEFUN([XORG_WITH_LINT],[ AC_ARG_VAR([LINT], [Path to a lint-style command]) AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], [Use a lint-style source code checker (default: disabled)])], [use_lint=$withval], [use_lint=no]) # Obtain platform specific info like program name and options # The lint program on FreeBSD and NetBSD is different from the one on Solaris case $host_os in *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) lint_name=splint lint_options="-badflag" ;; *freebsd* | *netbsd*) lint_name=lint lint_options="-u -b" ;; *solaris*) lint_name=lint lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" ;; esac # Test for the presence of the program (either guessed by the code or spelled out by the user) if test "x$use_lint" = x"yes" ; then AC_PATH_PROG([LINT], [$lint_name]) if test "x$LINT" = "x"; then AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) fi elif test "x$use_lint" = x"no" ; then if test "x$LINT" != "x"; then AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) fi else AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) fi # User supplied flags override default flags if test "x$LINT_FLAGS" != "x"; then lint_options=$LINT_FLAGS fi AC_SUBST([LINT_FLAGS],[$lint_options]) AM_CONDITIONAL(LINT, [test "x$LINT" != x]) ]) # XORG_WITH_LINT # XORG_LINT_LIBRARY(LIBNAME) # -------------------------- # Minimum version: 1.1.0 # # Sets up flags for building lint libraries for checking programs that call # functions in the library. # # Interface to module: # LINTLIB - Automake variable with the name of lint library file to make # MAKE_LINT_LIB - Automake conditional # # --enable-lint-library: - 'yes' user instructs the module to created a lint library # - 'no' user instructs the module not to create a lint library (default) AC_DEFUN([XORG_LINT_LIBRARY],[ AC_REQUIRE([XORG_WITH_LINT]) AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], [Create lint library (default: disabled)])], [make_lint_lib=$enableval], [make_lint_lib=no]) if test "x$make_lint_lib" = x"yes" ; then LINTLIB=llib-l$1.ln if test "x$LINT" = "x"; then AC_MSG_ERROR([Cannot make lint library without --with-lint]) fi elif test "x$make_lint_lib" != x"no" ; then AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) fi AC_SUBST(LINTLIB) AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) ]) # XORG_LINT_LIBRARY # XORG_COMPILER_BRAND # ------------------- # Minimum version: 1.14.0 # # Checks for various brands of compilers and sets flags as appropriate: # GNU gcc - relies on AC_PROG_CC (via AC_PROG_CC_C99) to set GCC to "yes" # GNU g++ - relies on AC_PROG_CXX to set GXX to "yes" # clang compiler - sets CLANGCC to "yes" # Intel compiler - sets INTELCC to "yes" # Sun/Oracle Solaris Studio cc - sets SUNCC to "yes" # AC_DEFUN([XORG_COMPILER_BRAND], [ AC_LANG_CASE( [C], [ AC_REQUIRE([AC_PROG_CC_C99]) ], [C++], [ AC_REQUIRE([AC_PROG_CXX]) ] ) AC_CHECK_DECL([__clang__], [CLANGCC="yes"], [CLANGCC="no"]) AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) ]) # XORG_COMPILER_BRAND # XORG_TESTSET_CFLAG(, , [, ...]) # --------------- # Minimum version: 1.16.0 # # Test if the compiler works when passed the given flag as a command line argument. # If it succeeds, the flag is appeneded to the given variable. If not, it tries the # next flag in the list until there are no more options. # # Note that this does not guarantee that the compiler supports the flag as some # compilers will simply ignore arguments that they do not understand, but we do # attempt to weed out false positives by using -Werror=unknown-warning-option and # -Werror=unused-command-line-argument # AC_DEFUN([XORG_TESTSET_CFLAG], [ m4_if([$#], 0, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) m4_if([$#], 1, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) AC_LANG_COMPILER_REQUIRE AC_LANG_CASE( [C], [ AC_REQUIRE([AC_PROG_CC_C99]) define([PREFIX], [C]) define([CACHE_PREFIX], [cc]) define([COMPILER], [$CC]) ], [C++], [ define([PREFIX], [CXX]) define([CACHE_PREFIX], [cxx]) define([COMPILER], [$CXX]) ] ) [xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]" if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option], [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option], AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes], [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no])) [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option] PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" fi if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" fi PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument], [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument], AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes], [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no])) [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument] PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" fi found="no" m4_foreach([flag], m4_cdr($@), [ if test $found = "no" ; then if test "x$xorg_testset_]CACHE_PREFIX[_unknown_warning_option" = "xyes" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" fi if test "x$xorg_testset_]CACHE_PREFIX[_unused_command_line_argument" = "xyes" ; then PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" fi PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[]) cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[]) AC_CACHE_VAL($cacheid, [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])], [eval $cacheid=yes], [eval $cacheid=no])]) PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" eval supported=\$$cacheid AC_MSG_RESULT([$supported]) if test "$supported" = "yes" ; then $1="$$1 ]flag[" found="yes" fi fi ]) ]) # XORG_TESTSET_CFLAG # XORG_COMPILER_FLAGS # --------------- # Minimum version: 1.16.0 # # Defines BASE_CFLAGS or BASE_CXXFLAGS to contain a set of command line # arguments supported by the selected compiler which do NOT alter the generated # code. These arguments will cause the compiler to print various warnings # during compilation AND turn a conservative set of warnings into errors. # # The set of flags supported by BASE_CFLAGS and BASE_CXXFLAGS will grow in # future versions of util-macros as options are added to new compilers. # AC_DEFUN([XORG_COMPILER_FLAGS], [ AC_REQUIRE([XORG_COMPILER_BRAND]) AC_ARG_ENABLE(selective-werror, AS_HELP_STRING([--disable-selective-werror], [Turn off selective compiler errors. (default: enabled)]), [SELECTIVE_WERROR=$enableval], [SELECTIVE_WERROR=yes]) AC_LANG_CASE( [C], [ define([PREFIX], [C]) ], [C++], [ define([PREFIX], [CXX]) ] ) # -v is too short to test reliably with XORG_TESTSET_CFLAG if test "x$SUNCC" = "xyes"; then [BASE_]PREFIX[FLAGS]="-v" else [BASE_]PREFIX[FLAGS]="" fi # This chunk of warnings were those that existed in the legacy CWARNFLAGS XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wall]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-arith]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-declarations]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wformat=2], [-Wformat]) AC_LANG_CASE( [C], [ XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wstrict-prototypes]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement]) ] ) # This chunk adds additional warnings that could catch undesired effects. XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) # These are currently disabled because they are noisy. They will be enabled # in the future once the codebase is sufficiently modernized to silence # them. For now, I don't want them to drown out the other warnings. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) # Turn some warnings into errors, so we don't accidently get successful builds # when there are problems that should be fixed. if test "x$SELECTIVE_WERROR" = "xyes" ; then XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=implicit], [-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=nonnull]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=init-self]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=main]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=missing-braces]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=sequence-point]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=return-type], [-errwarn=E_FUNC_HAS_NO_RETURN_STMT]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=trigraphs]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=array-bounds]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=write-strings]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=address]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=int-to-pointer-cast], [-errwarn=E_BAD_PTR_INT_COMBINATION]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=pointer-to-int-cast]) # Also -errwarn=E_BAD_PTR_INT_COMBINATION else AC_MSG_WARN([You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wimplicit]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnonnull]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Winit-self]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmain]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-braces]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wsequence-point]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wreturn-type]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wtrigraphs]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Warray-bounds]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wwrite-strings]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Waddress]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wint-to-pointer-cast]) XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-to-int-cast]) fi AC_SUBST([BASE_]PREFIX[FLAGS]) ]) # XORG_COMPILER_FLAGS # XORG_CWARNFLAGS # --------------- # Minimum version: 1.2.0 # Deprecated since: 1.16.0 (Use XORG_COMPILER_FLAGS instead) # # Defines CWARNFLAGS to enable C compiler warnings. # # This function is deprecated because it defines -fno-strict-aliasing # which alters the code generated by the compiler. If -fno-strict-aliasing # is needed, then it should be added explicitly in the module when # it is updated to use BASE_CFLAGS. # AC_DEFUN([XORG_CWARNFLAGS], [ AC_REQUIRE([XORG_COMPILER_FLAGS]) AC_REQUIRE([XORG_COMPILER_BRAND]) AC_LANG_CASE( [C], [ CWARNFLAGS="$BASE_CFLAGS" if test "x$GCC" = xyes ; then CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" fi AC_SUBST(CWARNFLAGS) ] ) ]) # XORG_CWARNFLAGS # XORG_STRICT_OPTION # ----------------------- # Minimum version: 1.3.0 # # Add configure option to enable strict compilation flags, such as treating # warnings as fatal errors. # If --enable-strict-compilation is passed to configure, adds strict flags to # $BASE_CFLAGS or $BASE_CXXFLAGS and the deprecated $CWARNFLAGS. # # Starting in 1.14.0 also exports $STRICT_CFLAGS for use in other tests or # when strict compilation is unconditionally desired. AC_DEFUN([XORG_STRICT_OPTION], [ AC_REQUIRE([XORG_CWARNFLAGS]) AC_REQUIRE([XORG_COMPILER_FLAGS]) AC_ARG_ENABLE(strict-compilation, AS_HELP_STRING([--enable-strict-compilation], [Enable all warnings from compiler and make them errors (default: disabled)]), [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) AC_LANG_CASE( [C], [ define([PREFIX], [C]) ], [C++], [ define([PREFIX], [CXX]) ] ) [STRICT_]PREFIX[FLAGS]="" XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-pedantic]) XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror], [-errwarn]) # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not # activate it with -Werror, so we add it here explicitly. XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror=attributes]) if test "x$STRICT_COMPILE" = "xyes"; then [BASE_]PREFIX[FLAGS]="$[BASE_]PREFIX[FLAGS] $[STRICT_]PREFIX[FLAGS]" AC_LANG_CASE([C], [CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"]) fi AC_SUBST([STRICT_]PREFIX[FLAGS]) AC_SUBST([BASE_]PREFIX[FLAGS]) AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS])) ]) # XORG_STRICT_OPTION # XORG_DEFAULT_OPTIONS # -------------------- # Minimum version: 1.3.0 # # Defines default options for X.Org modules. # AC_DEFUN([XORG_DEFAULT_OPTIONS], [ AC_REQUIRE([AC_PROG_INSTALL]) XORG_COMPILER_FLAGS XORG_CWARNFLAGS XORG_STRICT_OPTION XORG_RELEASE_VERSION XORG_CHANGELOG XORG_INSTALL XORG_MANPAGE_SECTIONS m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) ]) # XORG_DEFAULT_OPTIONS # XORG_INSTALL() # ---------------- # Minimum version: 1.4.0 # # Defines the variable INSTALL_CMD as the command to copy # INSTALL from $prefix/share/util-macros. # AC_DEFUN([XORG_INSTALL], [ AC_REQUIRE([PKG_PROG_PKG_CONFIG]) macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ touch \$(top_srcdir)/INSTALL; \ echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" AC_SUBST([INSTALL_CMD]) ]) # XORG_INSTALL dnl Copyright 2005 Red Hat, Inc dnl dnl Permission to use, copy, modify, distribute, and sell this software and its dnl documentation for any purpose is hereby granted without fee, provided that dnl the above copyright notice appear in all copies and that both that dnl copyright notice and this permission notice appear in supporting dnl documentation. dnl dnl The above copyright notice and this permission notice shall be included dnl in all copies or substantial portions of the Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR dnl OTHER DEALINGS IN THE SOFTWARE. dnl dnl Except as contained in this notice, the name of the copyright holders shall dnl not be used in advertising or otherwise to promote the sale, use or dnl other dealings in this Software without prior written authorization dnl from the copyright holders. dnl # XORG_RELEASE_VERSION # -------------------- # Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. AC_DEFUN([XORG_RELEASE_VERSION],[ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], [`echo $PACKAGE_VERSION | cut -d . -f 1`], [Major version of this package]) PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` if test "x$PVM" = "x"; then PVM="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], [$PVM], [Minor version of this package]) PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` if test "x$PVP" = "x"; then PVP="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], [$PVP], [Patch version of this package]) ]) # XORG_CHANGELOG() # ---------------- # Minimum version: 1.2.0 # # Defines the variable CHANGELOG_CMD as the command to generate # ChangeLog from git. # # AC_DEFUN([XORG_CHANGELOG], [ CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ touch \$(top_srcdir)/ChangeLog; \ echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" AC_SUBST([CHANGELOG_CMD]) ]) # XORG_CHANGELOG # Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking is enabled. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in # order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------- # Adds support for distributing Python modules and packages. To # install modules, copy them to $(pythondir), using the python_PYTHON # automake variable. To install a package with the same name as the # automake package, install to $(pkgpythondir), or use the # pkgpython_PYTHON automake variable. # # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as # locations to install python extension modules (shared libraries). # Another macro is required to find the appropriate flags to compile # extension modules. # # If your package is configured with a different prefix to python, # users will have to add the install directory to the PYTHONPATH # environment variable, or create a .pth file (see the python # documentation for details). # # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will # cause an error if the version of python installed on the system # doesn't meet the requirement. MINIMUM-VERSION should consist of # numbers and dots only. AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python python2 python3 dnl python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl python3.2 python3.1 python3.0 dnl python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 dnl python2.0]) AC_ARG_VAR([PYTHON], [the Python interpreter]) m4_if([$1],[],[ dnl No version check is needed. # Find any Python interpreter. if test -z "$PYTHON"; then AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) fi am_display_PYTHON=python ], [ dnl A version check is needed. if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. AC_MSG_CHECKING([whether $PYTHON version is >= $1]) AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Python interpreter is too old])]) am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. AC_CACHE_CHECK([for a Python interpreter with version >= $1], [am_cv_pathless_PYTHON],[ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do test "$am_cv_pathless_PYTHON" = none && break AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) done]) # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) fi am_display_PYTHON=$am_cv_pathless_PYTHON fi ]) if test "$PYTHON" = :; then dnl Run any user-specified action, or abort. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) else dnl Query Python for its version number. Although site.py simply uses dnl sys.version[:3], printing that failed with Python 3.10, since the dnl trailing zero was eliminated. So now we output just the major dnl and minor version numbers, as numbers. Apparently the tertiary dnl version is not of interest. dnl AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`]) AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) dnl At times, e.g., when building shared libraries, you may want dnl to know which OS platform Python thinks this is. dnl AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) dnl emacs-page dnl If --with-python-sys-prefix is given, use the values of sys.prefix dnl and sys.exec_prefix for the corresponding values of PYTHON_PREFIX dnl and PYTHON_EXEC_PREFIX. Otherwise, use the GNU ${prefix} and dnl ${exec_prefix} variables. dnl dnl The two are made distinct variables so they can be overridden if dnl need be, although general consensus is that you shouldn't need dnl this separation. dnl dnl Also allow directly setting the prefixes via configure options, dnl overriding any default. dnl if test "x$prefix" = xNONE; then am__usable_prefix=$ac_default_prefix else am__usable_prefix=$prefix fi # Allow user to request using sys.* values from Python, # instead of the GNU $prefix values. AC_ARG_WITH([python-sys-prefix], [AS_HELP_STRING([--with-python-sys-prefix], [use Python's sys.prefix and sys.exec_prefix values])], [am_use_python_sys=:], [am_use_python_sys=false]) # Allow user to override whatever the default Python prefix is. AC_ARG_WITH([python_prefix], [AS_HELP_STRING([--with-python_prefix], [override the default PYTHON_PREFIX])], [am_python_prefix_subst=$withval am_cv_python_prefix=$withval AC_MSG_CHECKING([for explicit $am_display_PYTHON prefix]) AC_MSG_RESULT([$am_cv_python_prefix])], [ if $am_use_python_sys; then # using python sys.prefix value, not GNU AC_CACHE_CHECK([for python default $am_display_PYTHON prefix], [am_cv_python_prefix], [am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`]) dnl If sys.prefix is a subdir of $prefix, replace the literal value of dnl $prefix with a variable reference so it can be overridden. case $am_cv_python_prefix in $am__usable_prefix*) am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` ;; *) am_python_prefix_subst=$am_cv_python_prefix ;; esac else # using GNU prefix value, not python sys.prefix am_python_prefix_subst='${prefix}' am_python_prefix=$am_python_prefix_subst AC_MSG_CHECKING([for GNU default $am_display_PYTHON prefix]) AC_MSG_RESULT([$am_python_prefix]) fi]) # Substituting python_prefix_subst value. AC_SUBST([PYTHON_PREFIX], [$am_python_prefix_subst]) # emacs-page Now do it all over again for Python exec_prefix, but with yet # another conditional: fall back to regular prefix if that was specified. AC_ARG_WITH([python_exec_prefix], [AS_HELP_STRING([--with-python_exec_prefix], [override the default PYTHON_EXEC_PREFIX])], [am_python_exec_prefix_subst=$withval am_cv_python_exec_prefix=$withval AC_MSG_CHECKING([for explicit $am_display_PYTHON exec_prefix]) AC_MSG_RESULT([$am_cv_python_exec_prefix])], [ # no explicit --with-python_exec_prefix, but if # --with-python_prefix was given, use its value for python_exec_prefix too. AS_IF([test -n "$with_python_prefix"], [am_python_exec_prefix_subst=$with_python_prefix am_cv_python_exec_prefix=$with_python_prefix AC_MSG_CHECKING([for python_prefix-given $am_display_PYTHON exec_prefix]) AC_MSG_RESULT([$am_cv_python_exec_prefix])], [ # Set am__usable_exec_prefix whether using GNU or Python values, # since we use that variable for pyexecdir. if test "x$exec_prefix" = xNONE; then am__usable_exec_prefix=$am__usable_prefix else am__usable_exec_prefix=$exec_prefix fi # if $am_use_python_sys; then # using python sys.exec_prefix, not GNU AC_CACHE_CHECK([for python default $am_display_PYTHON exec_prefix], [am_cv_python_exec_prefix], [am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`]) dnl If sys.exec_prefix is a subdir of $exec_prefix, replace the dnl literal value of $exec_prefix with a variable reference so it can dnl be overridden. case $am_cv_python_exec_prefix in $am__usable_exec_prefix*) am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` ;; *) am_python_exec_prefix_subst=$am_cv_python_exec_prefix ;; esac else # using GNU $exec_prefix, not python sys.exec_prefix am_python_exec_prefix_subst='${exec_prefix}' am_python_exec_prefix=$am_python_exec_prefix_subst AC_MSG_CHECKING([for GNU default $am_display_PYTHON exec_prefix]) AC_MSG_RESULT([$am_python_exec_prefix]) fi])]) # Substituting python_exec_prefix_subst. AC_SUBST([PYTHON_EXEC_PREFIX], [$am_python_exec_prefix_subst]) # Factor out some code duplication into this shell variable. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': can_use_sysconfig = 0 except ImportError: pass" dnl emacs-page Set up 4 directories: dnl 1. pythondir: where to install python scripts. This is the dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. dnl Query distutils for this directory. dnl AC_CACHE_CHECK([for $am_display_PYTHON script directory (pythondir)], [am_cv_python_pythondir], [if test "x$am_cv_python_prefix" = x; then am_py_prefix=$am__usable_prefix else am_py_prefix=$am_cv_python_prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` # case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" ;; esac ;; esac ]) AC_SUBST([pythondir], [$am_cv_python_pythondir]) dnl 2. pkgpythondir: $PACKAGE directory under pythondir. Was dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is dnl more consistent with the rest of automake. dnl AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) dnl 3. pyexecdir: directory for installing python extension modules dnl (shared libraries). dnl Query distutils for this directory. dnl AC_CACHE_CHECK([for $am_display_PYTHON extension module directory (pyexecdir)], [am_cv_python_pyexecdir], [if test "x$am_cv_python_exec_prefix" = x; then am_py_exec_prefix=$am__usable_exec_prefix else am_py_exec_prefix=$am_cv_python_exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') sys.stdout.write(sitedir)"` # case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" ;; esac ;; esac ]) AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) dnl 4. pkgpyexecdir: $(pyexecdir)/$(PACKAGE) dnl AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) dnl Run any user-specified action. $2 fi ]) # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # --------------------------------------------------------------------------- # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. # Run ACTION-IF-FALSE otherwise. # This test uses sys.hexversion instead of the string equivalent (first # word of sys.version), in order to cope with versions such as 2.2c1. # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). AC_DEFUN([AM_PYTHON_CHECK_VERSION], [prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR xorgproto-2023.2/configure0000755000175000017500000140040414443010030012465 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for xorgproto 2023.2. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" as_awk_strverscmp=' # Use only awk features that work with 7th edition Unix awk (1978). # My, what an old awk you have, Mr. Solaris! END { while (length(v1) && length(v2)) { # Set d1 to be the next thing to compare from v1, and likewise for d2. # Normally this is a single character, but if v1 and v2 contain digits, # compare them as integers and fractions as strverscmp does. if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { # Split v1 and v2 into their leading digit string components d1 and d2, # and advance v1 and v2 past the leading digit strings. for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) if (d1 ~ /^0/) { if (d2 ~ /^0/) { # Compare two fractions. while (d1 ~ /^0/ && d2 ~ /^0/) { d1 = substr(d1, 2); len1-- d2 = substr(d2, 2); len2-- } if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { # The two components differ in length, and the common prefix # contains only leading zeros. Consider the longer to be less. d1 = -len1 d2 = -len2 } else { # Otherwise, compare as strings. d1 = "x" d1 d2 = "x" d2 } } else { # A fraction is less than an integer. exit 1 } } else { if (d2 ~ /^0/) { # An integer is greater than a fraction. exit 2 } else { # Compare two integers. d1 += 0 d2 += 0 } } } else { # The normal case, without worrying about digits. d1 = substr(v1, 1, 1); v1 = substr(v1, 2) d2 = substr(v2, 1, 1); v2 = substr(v2, 2) } if (d1 < d2) exit 1 if (d1 > d2) exit 2 } # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), # which mishandles some comparisons of empty strings to integers. if (length(v2)) exit 1 if (length(v1)) exit 2 } ' test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='xorgproto' PACKAGE_TARNAME='xorgproto' PACKAGE_VERSION='2023.2' PACKAGE_STRING='xorgproto 2023.2' PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS USE_FDS_BITS LEGACY_FALSE LEGACY_TRUE HAVE_PYTHON_FALSE HAVE_PYTHON_TRUE pkgpyexecdir pyexecdir pkgpythondir pythondir PYTHON_EXEC_PREFIX PYTHON_PREFIX PYTHON_PLATFORM PYTHON_VERSION PYTHON HAVE_STYLESHEETS_FALSE HAVE_STYLESHEETS_TRUE XSL_STYLESHEET STYLESHEET_SRCDIR XORG_SGML_PATH HAVE_XSLTPROC_FALSE HAVE_XSLTPROC_TRUE XSLTPROC HAVE_FOP_FALSE HAVE_FOP_TRUE FOP HAVE_XMLTO_FALSE HAVE_XMLTO_TRUE HAVE_XMLTO_TEXT_FALSE HAVE_XMLTO_TEXT_TRUE XMLTO ENABLE_SPECS_FALSE ENABLE_SPECS_TRUE MAN_SUBSTS XORG_MAN_PAGE ADMIN_MAN_DIR DRIVER_MAN_DIR MISC_MAN_DIR FILE_MAN_DIR LIB_MAN_DIR APP_MAN_DIR ADMIN_MAN_SUFFIX DRIVER_MAN_SUFFIX MISC_MAN_SUFFIX FILE_MAN_SUFFIX LIB_MAN_SUFFIX APP_MAN_SUFFIX SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build INSTALL_CMD PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG CHANGELOG_CMD STRICT_CFLAGS CWARNFLAGS BASE_CFLAGS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_selective_werror enable_strict_compilation enable_specs with_xmlto with_fop with_xsltproc with_python_sys_prefix with_python_prefix with_python_exec_prefix enable_legacy ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR XMLTO FOP XSLTPROC PYTHON' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures xorgproto 2023.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of xorgproto 2023.2:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-selective-werror Turn off selective compiler errors. (default: enabled) --enable-strict-compilation Enable all warnings from compiler and make them errors (default: disabled) --enable-specs Enable building the specs (default: yes) --enable-legacy Install legacy protocol headers (default: false) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-xmlto Use xmlto to regenerate documentation (default: auto) --with-fop Use fop to regenerate documentation (default: auto) --with-xsltproc Use xsltproc for the transformation of XML documents (default: auto) --with-python-sys-prefix use Python's sys.prefix and sys.exec_prefix values --with-python_prefix override the default PYTHON_PREFIX --with-python_exec_prefix override the default PYTHON_EXEC_PREFIX Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path XMLTO Path to xmlto command FOP Path to fop command XSLTPROC Path to xsltproc command PYTHON the Python interpreter Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF xorgproto configure 2023.2 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR # ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_check_decl # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 printf %s "checking for $2.$3... " >&6; } if eval test \${$4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by xorgproto $as_me 2023.2, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" # Auxiliary files required by this configure script. ac_aux_files="config.guess config.sub compile missing install-sh" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.16' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. case $as_dir in #(( ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='xorgproto' VERSION='2023.2' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Require xorg-macros: XORG_DEFAULT_OPTIONS DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_CFLAGS=$CFLAGS ac_cv_c_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" # This test program should *not* compile successfully. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { (void) strchr; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the # off chance that they somehow elicit warnings. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include extern void ac_decl (int, char *); int main (void) { (void) ac_decl (0, (char *) 0); (void) ac_decl; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if test x"$ac_arg" = x then : ac_cv_c_undeclared_builtin_options='none needed' else $as_nop ac_cv_c_undeclared_builtin_options=$ac_arg fi break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done CFLAGS=$ac_save_CFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } case $ac_cv_c_undeclared_builtin_options in #( 'cannot detect') : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot make $CC report undeclared builtins See \`config.log' for more details" "$LINENO" 5; } ;; #( 'none needed') : ac_c_undeclared_builtin_options='' ;; #( *) : ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; esac ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl___clang__" = xyes then : CLANGCC="yes" else $as_nop CLANGCC="no" fi ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes then : INTELCC="yes" else $as_nop INTELCC="no" fi ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl___SUNPRO_C" = xyes then : SUNCC="yes" else $as_nop SUNCC="no" fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in sed gsed do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed # Check whether --enable-selective-werror was given. if test ${enable_selective_werror+y} then : enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval else $as_nop SELECTIVE_WERROR=yes fi # -v is too short to test reliably with XORG_TESTSET_CFLAG if test "x$SUNCC" = "xyes"; then BASE_CFLAGS="-v" else BASE_CFLAGS="" fi # This chunk of warnings were those that existed in the legacy CWARNFLAGS xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wall" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 printf %s "checking if $CC supports -Wall... " >&6; } cacheid=xorg_cv_cc_flag__Wall if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wall" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wpointer-arith" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } cacheid=xorg_cv_cc_flag__Wpointer_arith if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmissing-declarations" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } cacheid=xorg_cv_cc_flag__Wmissing_declarations if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wformat=2" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 printf %s "checking if $CC supports -Wformat=2... " >&6; } cacheid=xorg_cv_cc_flag__Wformat_2 if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wformat" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 printf %s "checking if $CC supports -Wformat... " >&6; } cacheid=xorg_cv_cc_flag__Wformat if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wformat" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wstrict-prototypes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } cacheid=xorg_cv_cc_flag__Wstrict_prototypes if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmissing-prototypes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } cacheid=xorg_cv_cc_flag__Wmissing_prototypes if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wnested-externs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 printf %s "checking if $CC supports -Wnested-externs... " >&6; } cacheid=xorg_cv_cc_flag__Wnested_externs if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wbad-function-cast" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } cacheid=xorg_cv_cc_flag__Wbad_function_cast if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wold-style-definition" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } cacheid=xorg_cv_cc_flag__Wold_style_definition if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -fd" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 printf %s "checking if $CC supports -fd... " >&6; } cacheid=xorg_cv_cc_flag__fd if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -fd" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wdeclaration-after-statement" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" found="yes" fi fi # This chunk adds additional warnings that could catch undesired effects. xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wunused" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 printf %s "checking if $CC supports -Wunused... " >&6; } cacheid=xorg_cv_cc_flag__Wunused if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wunused" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wuninitialized" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 printf %s "checking if $CC supports -Wuninitialized... " >&6; } cacheid=xorg_cv_cc_flag__Wuninitialized if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wshadow" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 printf %s "checking if $CC supports -Wshadow... " >&6; } cacheid=xorg_cv_cc_flag__Wshadow if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wshadow" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmissing-noreturn" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } cacheid=xorg_cv_cc_flag__Wmissing_noreturn if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmissing-format-attribute" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } cacheid=xorg_cv_cc_flag__Wmissing_format_attribute if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wredundant-decls" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } cacheid=xorg_cv_cc_flag__Wredundant_decls if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wlogical-op" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 printf %s "checking if $CC supports -Wlogical-op... " >&6; } cacheid=xorg_cv_cc_flag__Wlogical_op if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" found="yes" fi fi # These are currently disabled because they are noisy. They will be enabled # in the future once the codebase is sufficiently modernized to silence # them. For now, I don't want them to drown out the other warnings. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) # Turn some warnings into errors, so we don't accidently get successful builds # when there are problems that should be fixed. if test "x$SELECTIVE_WERROR" = "xyes" ; then xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=implicit" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 printf %s "checking if $CC supports -Werror=implicit... " >&6; } cacheid=xorg_cv_cc_flag__Werror_implicit if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=nonnull" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } cacheid=xorg_cv_cc_flag__Werror_nonnull if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=init-self" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 printf %s "checking if $CC supports -Werror=init-self... " >&6; } cacheid=xorg_cv_cc_flag__Werror_init_self if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=main" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 printf %s "checking if $CC supports -Werror=main... " >&6; } cacheid=xorg_cv_cc_flag__Werror_main if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=main" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=missing-braces" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } cacheid=xorg_cv_cc_flag__Werror_missing_braces if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=sequence-point" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } cacheid=xorg_cv_cc_flag__Werror_sequence_point if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=return-type" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 printf %s "checking if $CC supports -Werror=return-type... " >&6; } cacheid=xorg_cv_cc_flag__Werror_return_type if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=trigraphs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } cacheid=xorg_cv_cc_flag__Werror_trigraphs if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=array-bounds" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } cacheid=xorg_cv_cc_flag__Werror_array_bounds if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=write-strings" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } cacheid=xorg_cv_cc_flag__Werror_write_strings if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=address" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 printf %s "checking if $CC supports -Werror=address... " >&6; } cacheid=xorg_cv_cc_flag__Werror_address if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=address" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" found="yes" fi fi # Also -errwarn=E_BAD_PTR_INT_COMBINATION else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wimplicit" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 printf %s "checking if $CC supports -Wimplicit... " >&6; } cacheid=xorg_cv_cc_flag__Wimplicit if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wnonnull" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 printf %s "checking if $CC supports -Wnonnull... " >&6; } cacheid=xorg_cv_cc_flag__Wnonnull if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Winit-self" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 printf %s "checking if $CC supports -Winit-self... " >&6; } cacheid=xorg_cv_cc_flag__Winit_self if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Winit-self" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmain" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 printf %s "checking if $CC supports -Wmain... " >&6; } cacheid=xorg_cv_cc_flag__Wmain if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmain" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wmissing-braces" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } cacheid=xorg_cv_cc_flag__Wmissing_braces if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wsequence-point" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 printf %s "checking if $CC supports -Wsequence-point... " >&6; } cacheid=xorg_cv_cc_flag__Wsequence_point if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wreturn-type" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 printf %s "checking if $CC supports -Wreturn-type... " >&6; } cacheid=xorg_cv_cc_flag__Wreturn_type if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wtrigraphs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } cacheid=xorg_cv_cc_flag__Wtrigraphs if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Warray-bounds" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 printf %s "checking if $CC supports -Warray-bounds... " >&6; } cacheid=xorg_cv_cc_flag__Warray_bounds if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wwrite-strings" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } cacheid=xorg_cv_cc_flag__Wwrite_strings if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Waddress" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 printf %s "checking if $CC supports -Waddress... " >&6; } cacheid=xorg_cv_cc_flag__Waddress if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Waddress" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wint-to-pointer-cast" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Wpointer-to-int-cast" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" found="yes" fi fi fi CWARNFLAGS="$BASE_CFLAGS" if test "x$GCC" = xyes ; then CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" fi # Check whether --enable-strict-compilation was given. if test ${enable_strict_compilation+y} then : enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval else $as_nop STRICT_COMPILE=no fi STRICT_CFLAGS="" xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -pedantic" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 printf %s "checking if $CC supports -pedantic... " >&6; } cacheid=xorg_cv_cc_flag__pedantic if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" found="yes" fi fi xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 printf %s "checking if $CC supports -Werror... " >&6; } cacheid=xorg_cv_cc_flag__Werror if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then STRICT_CFLAGS="$STRICT_CFLAGS -Werror" found="yes" fi fi if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -errwarn" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 printf %s "checking if $CC supports -errwarn... " >&6; } cacheid=xorg_cv_cc_flag__errwarn if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" found="yes" fi fi # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not # activate it with -Werror, so we add it here explicitly. xorg_testset_save_CFLAGS="$CFLAGS" if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } if test ${xorg_cv_cc_flag_unknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unknown_warning_option=yes else $as_nop xorg_cv_cc_flag_unknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option CFLAGS="$xorg_testset_save_CFLAGS" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi CFLAGS="$CFLAGS -Werror=unused-command-line-argument" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } if test ${xorg_cv_cc_flag_unused_command_line_argument+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; _ACEOF if ac_fn_c_try_compile "$LINENO" then : xorg_cv_cc_flag_unused_command_line_argument=yes else $as_nop xorg_cv_cc_flag_unused_command_line_argument=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument CFLAGS="$xorg_testset_save_CFLAGS" fi found="no" if test $found = "no" ; then if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unknown-warning-option" fi if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then CFLAGS="$CFLAGS -Werror=unused-command-line-argument" fi CFLAGS="$CFLAGS -Werror=attributes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 printf %s "checking if $CC supports -Werror=attributes... " >&6; } cacheid=xorg_cv_cc_flag__Werror_attributes if eval test \${$cacheid+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval $cacheid=yes else $as_nop eval $cacheid=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CFLAGS="$xorg_testset_save_CFLAGS" eval supported=\$$cacheid { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 printf "%s\n" "$supported" >&6; } if test "$supported" = "yes" ; then STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" found="yes" fi fi if test "x$STRICT_COMPILE" = "xyes"; then BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" fi cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` _ACEOF PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` if test "x$PVM" = "x"; then PVM="0" fi printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` if test "x$PVP" = "x"; then PVP="0" fi printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ touch \$(top_srcdir)/ChangeLog; \ echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ touch \$(top_srcdir)/INSTALL; \ echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" case $host_os in solaris*) # Solaris 2.0 - 11.3 use SysV man page section numbers, so we # check for a man page file found in later versions that use # traditional section numbers instead { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} then : printf %s "(cached) " >&6 else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/usr/share/man/man7/attributes.7"; then ac_cv_file__usr_share_man_man7_attributes_7=yes else ac_cv_file__usr_share_man_man7_attributes_7=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes then : SYSV_MAN_SECTIONS=false else $as_nop SYSV_MAN_SECTIONS=true fi ;; *) SYSV_MAN_SECTIONS=false ;; esac if test x$APP_MAN_SUFFIX = x ; then APP_MAN_SUFFIX=1 fi if test x$APP_MAN_DIR = x ; then APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' fi if test x$LIB_MAN_SUFFIX = x ; then LIB_MAN_SUFFIX=3 fi if test x$LIB_MAN_DIR = x ; then LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' fi if test x$FILE_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) FILE_MAN_SUFFIX=4 ;; *) FILE_MAN_SUFFIX=5 ;; esac fi if test x$FILE_MAN_DIR = x ; then FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' fi if test x$MISC_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) MISC_MAN_SUFFIX=5 ;; *) MISC_MAN_SUFFIX=7 ;; esac fi if test x$MISC_MAN_DIR = x ; then MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' fi if test x$DRIVER_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) DRIVER_MAN_SUFFIX=7 ;; *) DRIVER_MAN_SUFFIX=4 ;; esac fi if test x$DRIVER_MAN_DIR = x ; then DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' fi if test x$ADMIN_MAN_SUFFIX = x ; then case $SYSV_MAN_SECTIONS in true) ADMIN_MAN_SUFFIX=1m ;; *) ADMIN_MAN_SUFFIX=8 ;; esac fi if test x$ADMIN_MAN_DIR = x ; then ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' fi XORG_MAN_PAGE="X Version 11" MAN_SUBSTS="\ -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ -e 's|__xservername__|Xorg|g' \ -e 's|__xconfigfile__|xorg.conf|g' \ -e 's|__projectroot__|\$(prefix)|g' \ -e 's|__apploaddir__|\$(appdefaultdir)|g' \ -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' # Check whether --enable-specs was given. if test ${enable_specs+y} then : enableval=$enable_specs; build_specs=$enableval else $as_nop build_specs=yes fi if test x$build_specs = xyes; then ENABLE_SPECS_TRUE= ENABLE_SPECS_FALSE='#' else ENABLE_SPECS_TRUE='#' ENABLE_SPECS_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 printf %s "checking whether to build functional specifications... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 printf "%s\n" "$build_specs" >&6; } # Check whether --with-xmlto was given. if test ${with_xmlto+y} then : withval=$with_xmlto; use_xmlto=$withval else $as_nop use_xmlto=auto fi if test "x$use_xmlto" = x"auto"; then # Extract the first word of "xmlto", so it can be a program name with args. set dummy xmlto; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XMLTO+y} then : printf %s "(cached) " >&6 else $as_nop case $XMLTO in [\\/]* | ?:[\\/]*) ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XMLTO=$ac_cv_path_XMLTO if test -n "$XMLTO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 printf "%s\n" "$XMLTO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XMLTO" = "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} have_xmlto=no else have_xmlto=yes fi elif test "x$use_xmlto" = x"yes" ; then # Extract the first word of "xmlto", so it can be a program name with args. set dummy xmlto; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XMLTO+y} then : printf %s "(cached) " >&6 else $as_nop case $XMLTO in [\\/]* | ?:[\\/]*) ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XMLTO=$ac_cv_path_XMLTO if test -n "$XMLTO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 printf "%s\n" "$XMLTO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XMLTO" = "x"; then as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 fi have_xmlto=yes elif test "x$use_xmlto" = x"no" ; then if test "x$XMLTO" != "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} fi have_xmlto=no else as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 fi # Test for a minimum version of xmlto, if provided. if test "$have_xmlto" = yes; then # scrape the xmlto version { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 printf %s "checking the xmlto version... " >&6; } xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 printf "%s\n" "$xmlto_version" >&6; } as_arg_v1=$xmlto_version as_arg_v2=0.0.22 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null case $? in #( 1) : if test "x$use_xmlto" = xauto; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} have_xmlto=no else as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 fi ;; #( 0) : ;; #( 2) : ;; #( *) : ;; esac fi # Test for the ability of xmlto to generate a text target # # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the # following test for empty XML docbook files. # For compatibility reasons use the following empty XML docbook file and if # it fails try it again with a non-empty XML file. have_xmlto_text=no cat > conftest.xml << "EOF" EOF if test "$have_xmlto" = yes then : if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 then : have_xmlto_text=yes else $as_nop # Try it again with a non-empty XML file. cat > conftest.xml << "EOF" EOF if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 then : have_xmlto_text=yes else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} fi fi fi rm -f conftest.xml if test $have_xmlto_text = yes; then HAVE_XMLTO_TEXT_TRUE= HAVE_XMLTO_TEXT_FALSE='#' else HAVE_XMLTO_TEXT_TRUE='#' HAVE_XMLTO_TEXT_FALSE= fi if test "$have_xmlto" = yes; then HAVE_XMLTO_TRUE= HAVE_XMLTO_FALSE='#' else HAVE_XMLTO_TRUE='#' HAVE_XMLTO_FALSE= fi # Check whether --with-fop was given. if test ${with_fop+y} then : withval=$with_fop; use_fop=$withval else $as_nop use_fop=auto fi if test "x$use_fop" = x"auto"; then # Extract the first word of "fop", so it can be a program name with args. set dummy fop; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_FOP+y} then : printf %s "(cached) " >&6 else $as_nop case $FOP in [\\/]* | ?:[\\/]*) ac_cv_path_FOP="$FOP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi FOP=$ac_cv_path_FOP if test -n "$FOP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 printf "%s\n" "$FOP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$FOP" = "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} have_fop=no else have_fop=yes fi elif test "x$use_fop" = x"yes" ; then # Extract the first word of "fop", so it can be a program name with args. set dummy fop; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_FOP+y} then : printf %s "(cached) " >&6 else $as_nop case $FOP in [\\/]* | ?:[\\/]*) ac_cv_path_FOP="$FOP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi FOP=$ac_cv_path_FOP if test -n "$FOP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 printf "%s\n" "$FOP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$FOP" = "x"; then as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 fi have_fop=yes elif test "x$use_fop" = x"no" ; then if test "x$FOP" != "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} fi have_fop=no else as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 fi # Test for a minimum version of fop, if provided. if test "$have_fop" = yes; then HAVE_FOP_TRUE= HAVE_FOP_FALSE='#' else HAVE_FOP_TRUE='#' HAVE_FOP_FALSE= fi # Preserves the interface, should it be implemented later # Check whether --with-xsltproc was given. if test ${with_xsltproc+y} then : withval=$with_xsltproc; use_xsltproc=$withval else $as_nop use_xsltproc=auto fi if test "x$use_xsltproc" = x"auto"; then # Extract the first word of "xsltproc", so it can be a program name with args. set dummy xsltproc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XSLTPROC+y} then : printf %s "(cached) " >&6 else $as_nop case $XSLTPROC in [\\/]* | ?:[\\/]*) ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XSLTPROC=$ac_cv_path_XSLTPROC if test -n "$XSLTPROC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 printf "%s\n" "$XSLTPROC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XSLTPROC" = "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} have_xsltproc=no else have_xsltproc=yes fi elif test "x$use_xsltproc" = x"yes" ; then # Extract the first word of "xsltproc", so it can be a program name with args. set dummy xsltproc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XSLTPROC+y} then : printf %s "(cached) " >&6 else $as_nop case $XSLTPROC in [\\/]* | ?:[\\/]*) ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XSLTPROC=$ac_cv_path_XSLTPROC if test -n "$XSLTPROC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 printf "%s\n" "$XSLTPROC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XSLTPROC" = "x"; then as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 fi have_xsltproc=yes elif test "x$use_xsltproc" = x"no" ; then if test "x$XSLTPROC" != "x"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} fi have_xsltproc=no else as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 fi if test "$have_xsltproc" = yes; then HAVE_XSLTPROC_TRUE= HAVE_XSLTPROC_FALSE='#' else HAVE_XSLTPROC_TRUE='#' HAVE_XSLTPROC_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } XORG_SGML_PATH= if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` else : fi # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing # the path and the name of the doc stylesheet if test "x$XORG_SGML_PATH" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 printf "%s\n" "$XORG_SGML_PATH" >&6; } STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$XSL_STYLESHEET" != "x"; then HAVE_STYLESHEETS_TRUE= HAVE_STYLESHEETS_FALSE='#' else HAVE_STYLESHEETS_TRUE='#' HAVE_STYLESHEETS_FALSE= fi if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; } prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 ($PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "Python interpreter is too old" "$LINENO" 5 fi am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; } if test ${am_cv_pathless_PYTHON+y} then : printf %s "(cached) " >&6 else $as_nop for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then : break fi done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. set dummy $am_cv_pathless_PYTHON; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PYTHON+y} then : printf %s "(cached) " >&6 else $as_nop case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 printf "%s\n" "$PYTHON" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi am_display_PYTHON=$am_cv_pathless_PYTHON fi if test "$PYTHON" = :; then : else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 printf %s "checking for $am_display_PYTHON version... " >&6; } if test ${am_cv_python_version+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 printf "%s\n" "$am_cv_python_version" >&6; } PYTHON_VERSION=$am_cv_python_version { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 printf %s "checking for $am_display_PYTHON platform... " >&6; } if test ${am_cv_python_platform+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 printf "%s\n" "$am_cv_python_platform" >&6; } PYTHON_PLATFORM=$am_cv_python_platform if test "x$prefix" = xNONE; then am__usable_prefix=$ac_default_prefix else am__usable_prefix=$prefix fi # Allow user to request using sys.* values from Python, # instead of the GNU $prefix values. # Check whether --with-python-sys-prefix was given. if test ${with_python_sys_prefix+y} then : withval=$with_python_sys_prefix; am_use_python_sys=: else $as_nop am_use_python_sys=false fi # Allow user to override whatever the default Python prefix is. # Check whether --with-python_prefix was given. if test ${with_python_prefix+y} then : withval=$with_python_prefix; am_python_prefix_subst=$withval am_cv_python_prefix=$withval { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 printf "%s\n" "$am_cv_python_prefix" >&6; } else $as_nop if $am_use_python_sys; then # using python sys.prefix value, not GNU { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } if test ${am_cv_python_prefix+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 printf "%s\n" "$am_cv_python_prefix" >&6; } case $am_cv_python_prefix in $am__usable_prefix*) am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` ;; *) am_python_prefix_subst=$am_cv_python_prefix ;; esac else # using GNU prefix value, not python sys.prefix am_python_prefix_subst='${prefix}' am_python_prefix=$am_python_prefix_subst { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 printf "%s\n" "$am_python_prefix" >&6; } fi fi # Substituting python_prefix_subst value. PYTHON_PREFIX=$am_python_prefix_subst # emacs-page Now do it all over again for Python exec_prefix, but with yet # another conditional: fall back to regular prefix if that was specified. # Check whether --with-python_exec_prefix was given. if test ${with_python_exec_prefix+y} then : withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval am_cv_python_exec_prefix=$withval { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } else $as_nop # no explicit --with-python_exec_prefix, but if # --with-python_prefix was given, use its value for python_exec_prefix too. if test -n "$with_python_prefix" then : am_python_exec_prefix_subst=$with_python_prefix am_cv_python_exec_prefix=$with_python_prefix { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } else $as_nop # Set am__usable_exec_prefix whether using GNU or Python values, # since we use that variable for pyexecdir. if test "x$exec_prefix" = xNONE; then am__usable_exec_prefix=$am__usable_prefix else am__usable_exec_prefix=$exec_prefix fi # if $am_use_python_sys; then # using python sys.exec_prefix, not GNU { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } if test ${am_cv_python_exec_prefix+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } case $am_cv_python_exec_prefix in $am__usable_exec_prefix*) am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` ;; *) am_python_exec_prefix_subst=$am_cv_python_exec_prefix ;; esac else # using GNU $exec_prefix, not python sys.exec_prefix am_python_exec_prefix_subst='${exec_prefix}' am_python_exec_prefix=$am_python_exec_prefix_subst { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 printf "%s\n" "$am_python_exec_prefix" >&6; } fi fi fi # Substituting python_exec_prefix_subst. PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst # Factor out some code duplication into this shell variable. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[:3] == '2.7': can_use_sysconfig = 0 except ImportError: pass" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } if test ${am_cv_python_pythondir+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$am_cv_python_prefix" = x; then am_py_prefix=$am__usable_prefix else am_py_prefix=$am_cv_python_prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` # case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 printf "%s\n" "$am_cv_python_pythondir" >&6; } pythondir=$am_cv_python_pythondir pkgpythondir=\${pythondir}/$PACKAGE { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } if test ${am_cv_python_pyexecdir+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$am_cv_python_exec_prefix" = x; then am_py_exec_prefix=$am__usable_exec_prefix else am_py_exec_prefix=$am_cv_python_exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') sys.stdout.write(sitedir)"` # case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" ;; esac ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } pyexecdir=$am_cv_python_pyexecdir pkgpyexecdir=\${pyexecdir}/$PACKAGE fi if test "$PYTHON" != :; then HAVE_PYTHON_TRUE= HAVE_PYTHON_FALSE='#' else HAVE_PYTHON_TRUE='#' HAVE_PYTHON_FALSE= fi # Check whether --enable-legacy was given. if test ${enable_legacy+y} then : enableval=$enable_legacy; LEGACY=$enableval else $as_nop LEGACY=no fi if test "x$LEGACY" = "xyes"; then LEGACY_TRUE= LEGACY_FALSE='#' else LEGACY_TRUE='#' LEGACY_FALSE= fi ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" if test "x$ac_cv_header_sys_select_h" = xyes then : printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" if test "x$ac_cv_header_sys_param_h" = xyes then : printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" if test "x$ac_cv_header_sys_types_h" = xyes then : printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" if test "x$ac_cv_header_sys_time_h" = xyes then : printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h fi # Handle Xpoll.h.in # Avoid determining fds_bits on WIN32 hosts (not including cygwin) case $host_os in mingw*) fds_bits_found=true;; *) fds_bits_found=false;; esac if test "x$fds_bits_found" = xfalse ; then ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" " #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_SYS_SELECT_H #include #endif " if test "x$ac_cv_member_fd_set_fds_bits" = xyes then : fds_bits_found=plain USE_FDS_BITS="fds_bits" fi fi if test "x$fds_bits_found" = xfalse ; then ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" " #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_SYS_SELECT_H #include #endif " if test "x$ac_cv_member_fd_set___fds_bits" = xyes then : fds_bits_found=underscores USE_FDS_BITS="__fds_bits" fi fi if test "x$fds_bits_found" = xfalse ; then as_fn_error $? "Could not determine how to access the fds_bits or equivalent structure in fd_set on your platform." "$LINENO" 5 fi ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then as_fn_error $? "conditional \"HAVE_FOP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then as_fn_error $? "conditional \"LEGACY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by xorgproto $as_me 2023.2, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ xorgproto config.status 2023.2 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;; "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;; "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;; "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;; "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;; "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;; "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;; "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;; "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;; "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;; "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;; "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;; "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;; "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;; "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;; "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;; "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;; "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;; "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;; "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;; "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;; "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;; "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;; "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;; "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;; "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;; "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;; "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;; "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;; "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;; "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;; "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;; "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;; "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;; "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;; "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;; "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;; "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;; "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;; "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;; "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;; "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;; "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;; "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;; "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;; "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;; "xwaylandproto.pc") CONFIG_FILES="$CONFIG_FILES xwaylandproto.pc" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi xorgproto-2023.2/xcalibrateproto.pc.in0000644000175000017500000000021314443010026014707 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XCalibrate Description: XCalibrate extension headers Version: 0.1.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-fixesproto0000644000175000017500000000430014443010026014010 00000000000000Copyright (c) 2006, Oracle and/or its affiliates. Copyright 2010 Red Hat, Inc. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. Copyright © 2001,2003 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 Keith Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Keith Packard makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL KEITH PACKARD 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. xorgproto-2023.2/COPYING-pmproto0000644000175000017500000000216014443010026013310 00000000000000Copyright 1996, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. xorgproto-2023.2/printproto.pc.in0000644000175000017500000000023414443010026013730 00000000000000prefix=@prefix@ includedir=@includedir@ Name: PrintProto Description: Print extension headers Version: 1.0.5 Requires.private: xau Cflags: -I${includedir} xorgproto-2023.2/COPYING-xf86driproto0000644000175000017500000000224314443010026014170 00000000000000Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. Copyright 2000 VA Linux Systems, Inc. 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, sub license, 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 (including the next paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. xorgproto-2023.2/resourceproto.pc.in0000644000175000017500000000021514443010026014422 00000000000000prefix=@prefix@ includedir=@includedir@ Name: ResourceProto Description: Resource extension headers Version: 1.2.0 Cflags: -I${includedir} xorgproto-2023.2/COPYING-renderproto0000644000175000017500000000211014443010026014146 00000000000000Copyright © 2000 SuSE, Inc. 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 SuSE not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. SuSE makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE 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. Author: Keith Packard, SuSE, Inc. xorgproto-2023.2/recordproto.pc.in0000644000175000017500000000021214443010026014046 00000000000000prefix=@prefix@ includedir=@includedir@ Name: RecordProto Description: Record extension headers Version: 1.14.2 Cflags: -I${includedir} xorgproto-2023.2/COPYING-xf86vidmodeproto0000644000175000017500000000237314443010026015045 00000000000000Copyright 1995 Kaleb S. KEITHLEY 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 Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Kaleb S. KEITHLEY shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Kaleb S. KEITHLEY xorgproto-2023.2/xcmiscproto.pc.in0000644000175000017500000000021114443010026014055 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XCMiscProto Description: XCMisc extension headers Version: 1.2.2 Cflags: -I${includedir} xorgproto-2023.2/applewmproto.pc.in0000644000175000017500000000021314443010026014236 00000000000000prefix=@prefix@ includedir=@includedir@ Name: AppleWMProto Description: AppleWM extension headers Version: 1.4.2 Cflags: -I${includedir} xorgproto-2023.2/presentproto.pc.in0000644000175000017500000000021114443010026014247 00000000000000prefix=@prefix@ includedir=@includedir@ Name: PresentProto Description: Present extension headers Version: 1.3 Cflags: -I${includedir} xorgproto-2023.2/test-driver0000755000175000017500000001141714443010031012756 00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2018-03-07.03; # UTC # Copyright (C) 2011-2021 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <"$log_file" "$@" >>"$log_file" 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>"$log_file" # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xorgproto-2023.2/COPYING-presentproto0000644000175000017500000000215014443010026014353 00000000000000Copyright © 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. xorgproto-2023.2/COPYING-lg3dproto0000644000175000017500000000217714443010026013535 00000000000000 Copyright (c) 2004, Sun Microsystems, Inc. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of Sun Microsystems shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Sun Microsystems. xorgproto-2023.2/Makefile.in0000644000175000017500000045171314443010031012634 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @LEGACY_TRUE@am__append_1 = include/X11/extensions/XKBgeom.h @LEGACY_TRUE@am__append_2 = include/X11/extensions/vldXvMC.h @LEGACY_TRUE@am__append_3 = PM_spec subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__dist_doc_DATA_DIST) \ $(am__XCalibrateinclude_HEADERS_DIST) $(applewm_HEADERS) \ $(bigreqs_HEADERS) $(compat_HEADERS) $(composite_HEADERS) \ $(damage_HEADERS) $(dmx_HEADERS) $(dri2_HEADERS) \ $(dri3_HEADERS) $(am__evie_HEADERS_DIST) $(fixes_HEADERS) \ $(am__fontcache_HEADERS_DIST) $(fonts_HEADERS) $(gl_HEADERS) \ $(glinternal_HEADERS) $(input_HEADERS) $(am__kb_HEADERS_DIST) \ $(am__lg3d_HEADERS_DIST) $(present_HEADERS) \ $(am__print_HEADERS_DIST) $(randr_HEADERS) $(record_HEADERS) \ $(render_HEADERS) $(resource_HEADERS) $(scrnsaver_HEADERS) \ $(am__trap_HEADERS_DIST) $(am__video_HEADERS_DIST) \ $(am__windowswm_HEADERS_DIST) $(xcmisc_HEADERS) \ $(xext_HEADERS) $(xf86bigfont_HEADERS) $(xf86dga_HEADERS) \ $(xf86dri_HEADERS) $(am__xf86misc_HEADERS_DIST) \ $(am__xf86rush_HEADERS_DIST) $(xf86vidmode_HEADERS) \ $(xinerama_HEADERS) $(xproto_HEADERS) \ $(am__xproxymng_HEADERS_DIST) $(xwaylandproto_HEADERS) \ $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = applewmproto.pc bigreqsproto.pc compositeproto.pc \ damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc \ dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc \ fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc \ kbproto.pc lg3dproto.pc presentproto.pc printproto.pc \ randrproto.pc recordproto.pc renderproto.pc resourceproto.pc \ scrnsaverproto.pc trapproto.pc videoproto.pc windowswmproto.pc \ xcalibrateproto.pc xcmiscproto.pc xextproto.pc \ xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc \ xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc \ xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(applewmprotopkgconfigdir)" \ "$(DESTDIR)$(bigreqsprotopkgconfigdir)" \ "$(DESTDIR)$(calibrateprotopkgconfigdir)" \ "$(DESTDIR)$(compositeprotopkgconfigdir)" \ "$(DESTDIR)$(damageprotopkgconfigdir)" "$(DESTDIR)$(docdir)" \ "$(DESTDIR)$(dmxprotopkgconfigdir)" \ "$(DESTDIR)$(dpmsprotopkgconfigdir)" \ "$(DESTDIR)$(dri2protopkgconfigdir)" \ "$(DESTDIR)$(dri3protopkgconfigdir)" \ "$(DESTDIR)$(evieprotopkgconfigdir)" \ "$(DESTDIR)$(fixesprotopkgconfigdir)" \ "$(DESTDIR)$(fontcacheprotopkgconfigdir)" \ "$(DESTDIR)$(fontsprotopkgconfigdir)" \ "$(DESTDIR)$(glprotopkgconfigdir)" \ "$(DESTDIR)$(inputprotopkgconfigdir)" \ "$(DESTDIR)$(kbprotopkgconfigdir)" \ "$(DESTDIR)$(lg3dprotopkgconfigdir)" "$(DESTDIR)$(miscmandir)" \ "$(DESTDIR)$(pmprotopkgconfigdir)" \ "$(DESTDIR)$(presentprotopkgconfigdir)" \ "$(DESTDIR)$(printprotopkgconfigdir)" \ "$(DESTDIR)$(randrprotopkgconfigdir)" \ "$(DESTDIR)$(recordprotopkgconfigdir)" \ "$(DESTDIR)$(renderprotopkgconfigdir)" \ "$(DESTDIR)$(resourceprotopkgconfigdir)" \ "$(DESTDIR)$(scrnsaverprotopkgconfigdir)" \ "$(DESTDIR)$(trapprotopkgconfigdir)" \ "$(DESTDIR)$(videoprotopkgconfigdir)" \ "$(DESTDIR)$(windowswmprotopkgconfigdir)" \ "$(DESTDIR)$(x11protopkgconfigdir)" \ "$(DESTDIR)$(xcmiscprotopkgconfigdir)" \ "$(DESTDIR)$(xextprotopkgconfigdir)" \ "$(DESTDIR)$(xf86bigfontprotopkgconfigdir)" \ "$(DESTDIR)$(xf86dgaprotopkgconfigdir)" \ "$(DESTDIR)$(xf86driprotopkgconfigdir)" \ "$(DESTDIR)$(xf86miscprotopkgconfigdir)" \ "$(DESTDIR)$(xf86rushprotopkgconfigdir)" \ "$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)" \ "$(DESTDIR)$(xineramaprotopkgconfigdir)" \ "$(DESTDIR)$(xwaylandprotopkgconfigdir)" \ "$(DESTDIR)$(XCalibrateincludedir)" "$(DESTDIR)$(applewmdir)" \ "$(DESTDIR)$(bigreqsdir)" "$(DESTDIR)$(compatdir)" \ "$(DESTDIR)$(compositedir)" "$(DESTDIR)$(damagedir)" \ "$(DESTDIR)$(dmxdir)" "$(DESTDIR)$(dri2dir)" \ "$(DESTDIR)$(dri3dir)" "$(DESTDIR)$(eviedir)" \ "$(DESTDIR)$(fixesdir)" "$(DESTDIR)$(fontcachedir)" \ "$(DESTDIR)$(fontsdir)" "$(DESTDIR)$(gldir)" \ "$(DESTDIR)$(glinternaldir)" "$(DESTDIR)$(inputdir)" \ "$(DESTDIR)$(kbdir)" "$(DESTDIR)$(lg3ddir)" \ "$(DESTDIR)$(xprotodir)" "$(DESTDIR)$(presentdir)" \ "$(DESTDIR)$(printdir)" "$(DESTDIR)$(randrdir)" \ "$(DESTDIR)$(recorddir)" "$(DESTDIR)$(renderdir)" \ "$(DESTDIR)$(resourcedir)" "$(DESTDIR)$(scrnsaverdir)" \ "$(DESTDIR)$(trapdir)" "$(DESTDIR)$(videodir)" \ "$(DESTDIR)$(windowswmdir)" "$(DESTDIR)$(xcmiscdir)" \ "$(DESTDIR)$(xextdir)" "$(DESTDIR)$(xf86bigfontdir)" \ "$(DESTDIR)$(xf86dgadir)" "$(DESTDIR)$(xf86dridir)" \ "$(DESTDIR)$(xf86miscdir)" "$(DESTDIR)$(xf86rushdir)" \ "$(DESTDIR)$(xf86vidmodedir)" "$(DESTDIR)$(xineramadir)" \ "$(DESTDIR)$(xprotodir)" "$(DESTDIR)$(xproxymngdir)" \ "$(DESTDIR)$(xwaylandprotodir)" am__dist_doc_DATA_DIST = compositeproto.txt damageproto.txt \ dri2proto.txt dri3proto.txt fixesproto.txt presentproto.txt \ randrproto.txt renderproto.txt resproto.txt xv-protocol-v2.txt \ xwaylandproto.txt PM_spec DATA = $(applewmprotopkgconfig_DATA) $(bigreqsprotopkgconfig_DATA) \ $(calibrateprotopkgconfig_DATA) \ $(compositeprotopkgconfig_DATA) $(damageprotopkgconfig_DATA) \ $(dist_doc_DATA) $(dmxprotopkgconfig_DATA) \ $(dpmsprotopkgconfig_DATA) $(dri2protopkgconfig_DATA) \ $(dri3protopkgconfig_DATA) $(evieprotopkgconfig_DATA) \ $(fixesprotopkgconfig_DATA) $(fontcacheprotopkgconfig_DATA) \ $(fontsprotopkgconfig_DATA) $(glprotopkgconfig_DATA) \ $(inputprotopkgconfig_DATA) $(kbprotopkgconfig_DATA) \ $(lg3dprotopkgconfig_DATA) $(miscman_DATA) \ $(pmprotopkgconfig_DATA) $(presentprotopkgconfig_DATA) \ $(printprotopkgconfig_DATA) $(randrprotopkgconfig_DATA) \ $(recordprotopkgconfig_DATA) $(renderprotopkgconfig_DATA) \ $(resourceprotopkgconfig_DATA) $(scrnsaverprotopkgconfig_DATA) \ $(trapprotopkgconfig_DATA) $(videoprotopkgconfig_DATA) \ $(windowswmprotopkgconfig_DATA) $(x11protopkgconfig_DATA) \ $(xcmiscprotopkgconfig_DATA) $(xextprotopkgconfig_DATA) \ $(xf86bigfontprotopkgconfig_DATA) \ $(xf86dgaprotopkgconfig_DATA) $(xf86driprotopkgconfig_DATA) \ $(xf86miscprotopkgconfig_DATA) $(xf86rushprotopkgconfig_DATA) \ $(xf86vidmodeprotopkgconfig_DATA) \ $(xineramaprotopkgconfig_DATA) $(xwaylandprotopkgconfig_DATA) am__XCalibrateinclude_HEADERS_DIST = \ include/X11/extensions/xcalibrateproto.h \ include/X11/extensions/xcalibratewire.h am__evie_HEADERS_DIST = include/X11/extensions/evieproto.h \ include/X11/extensions/Xeviestr.h am__fontcache_HEADERS_DIST = include/X11/extensions/fontcache.h \ include/X11/extensions/fontcacheP.h \ include/X11/extensions/fontcachstr.h am__kb_HEADERS_DIST = include/X11/extensions/XKB.h \ include/X11/extensions/XKBproto.h \ include/X11/extensions/XKBsrv.h \ include/X11/extensions/XKBstr.h \ include/X11/extensions/XKBgeom.h am__lg3d_HEADERS_DIST = include/X11/extensions/lgewire.h am__print_HEADERS_DIST = include/X11/extensions/Print.h \ include/X11/extensions/Printstr.h am__trap_HEADERS_DIST = include/X11/extensions/xtrapbits.h \ include/X11/extensions/xtrapddmi.h \ include/X11/extensions/xtrapdi.h \ include/X11/extensions/xtrapemacros.h \ include/X11/extensions/xtraplib.h \ include/X11/extensions/xtraplibp.h \ include/X11/extensions/xtrapproto.h am__video_HEADERS_DIST = include/X11/extensions/Xv.h \ include/X11/extensions/XvMC.h \ include/X11/extensions/XvMCproto.h \ include/X11/extensions/Xvproto.h \ include/X11/extensions/vldXvMC.h am__windowswm_HEADERS_DIST = include/X11/extensions/windowswm.h \ include/X11/extensions/windowswmstr.h am__xf86misc_HEADERS_DIST = include/X11/extensions/xf86misc.h \ include/X11/extensions/xf86mscstr.h am__xf86rush_HEADERS_DIST = include/X11/extensions/xf86rush.h \ include/X11/extensions/xf86rushstr.h am__xproxymng_HEADERS_DIST = include/X11/PM/PM.h \ include/X11/PM/PMproto.h HEADERS = $(XCalibrateinclude_HEADERS) $(applewm_HEADERS) \ $(bigreqs_HEADERS) $(compat_HEADERS) $(composite_HEADERS) \ $(damage_HEADERS) $(dmx_HEADERS) $(dri2_HEADERS) \ $(dri3_HEADERS) $(evie_HEADERS) $(fixes_HEADERS) \ $(fontcache_HEADERS) $(fonts_HEADERS) $(gl_HEADERS) \ $(glinternal_HEADERS) $(input_HEADERS) $(kb_HEADERS) \ $(lg3d_HEADERS) $(nodist_xproto_HEADERS) $(present_HEADERS) \ $(print_HEADERS) $(randr_HEADERS) $(record_HEADERS) \ $(render_HEADERS) $(resource_HEADERS) $(scrnsaver_HEADERS) \ $(trap_HEADERS) $(video_HEADERS) $(windowswm_HEADERS) \ $(xcmisc_HEADERS) $(xext_HEADERS) $(xf86bigfont_HEADERS) \ $(xf86dga_HEADERS) $(xf86dri_HEADERS) $(xf86misc_HEADERS) \ $(xf86rush_HEADERS) $(xf86vidmode_HEADERS) $(xinerama_HEADERS) \ $(xproto_HEADERS) $(xproxymng_HEADERS) \ $(xwaylandproto_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope check recheck distdir distdir-am dist dist-all \ distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' RECHECK_LOGS = $(TEST_LOGS) TEST_SUITE_LOG = test-suite.log am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.py.log=.log) PY_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver PY_LOG_COMPILE = $(PY_LOG_COMPILER) $(AM_PY_LOG_FLAGS) $(PY_LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/applewmproto.pc.in \ $(srcdir)/bigreqsproto.pc.in $(srcdir)/compositeproto.pc.in \ $(srcdir)/damageproto.pc.in $(srcdir)/dmxproto.pc.in \ $(srcdir)/dpmsproto.pc.in $(srcdir)/dri2proto.pc.in \ $(srcdir)/dri3proto.pc.in $(srcdir)/evieproto.pc.in \ $(srcdir)/fixesproto.pc.in $(srcdir)/fontcacheproto.pc.in \ $(srcdir)/fontsproto.pc.in $(srcdir)/glproto.pc.in \ $(srcdir)/inputproto.pc.in $(srcdir)/kbproto.pc.in \ $(srcdir)/lg3dproto.pc.in $(srcdir)/presentproto.pc.in \ $(srcdir)/printproto.pc.in $(srcdir)/randrproto.pc.in \ $(srcdir)/recordproto.pc.in $(srcdir)/renderproto.pc.in \ $(srcdir)/resourceproto.pc.in $(srcdir)/scrnsaverproto.pc.in \ $(srcdir)/trapproto.pc.in $(srcdir)/videoproto.pc.in \ $(srcdir)/windowswmproto.pc.in $(srcdir)/xcalibrateproto.pc.in \ $(srcdir)/xcmiscproto.pc.in $(srcdir)/xextproto.pc.in \ $(srcdir)/xf86bigfontproto.pc.in $(srcdir)/xf86dgaproto.pc.in \ $(srcdir)/xf86driproto.pc.in $(srcdir)/xf86miscproto.pc.in \ $(srcdir)/xf86rushproto.pc.in $(srcdir)/xf86vidmodeproto.pc.in \ $(srcdir)/xineramaproto.pc.in $(srcdir)/xproto.pc.in \ $(srcdir)/xproxymngproto.pc.in $(srcdir)/xwaylandproto.pc.in \ $(top_srcdir)/include/X11/Xpoll.h.in AUTHORS INSTALL README.md \ compile config.guess config.sub install-sh missing test-driver DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz GZIP_ENV = --best DIST_TARGETS = dist-xz dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ APP_MAN_DIR = @APP_MAN_DIR@ APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_CFLAGS = @BASE_CFLAGS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHANGELOG_CMD = @CHANGELOG_CMD@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CWARNFLAGS = @CWARNFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FILE_MAN_DIR = @FILE_MAN_DIR@ FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ FOP = @FOP@ INSTALL = @INSTALL@ INSTALL_CMD = @INSTALL_CMD@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_MAN_DIR = @LIB_MAN_DIR@ LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAN_SUBSTS = \ -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__datadir__|$(datadir)|g' \ -e 's|__libdir__|$(libdir)|g' \ -e 's|__sysconfdir__|$(sysconfdir)|g' \ -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' MISC_MAN_DIR = @MISC_MAN_DIR@ MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ SED = sed SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRICT_CFLAGS = @STRICT_CFLAGS@ STRIP = @STRIP@ STYLESHEET_SRCDIR = @STYLESHEET_SRCDIR@ USE_FDS_BITS = @USE_FDS_BITS@ VERSION = @VERSION@ XMLTO = @XMLTO@ XORG_MAN_PAGE = @XORG_MAN_PAGE@ XORG_SGML_PATH = @XORG_SGML_PATH@ XSLTPROC = @XSLTPROC@ XSL_STYLESHEET = @XSL_STYLESHEET@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ XORGRELSTRING = @PACKAGE_STRING@ XORGMANNAME = X Version 11 SUFFIXES = .$(MISC_MAN_SUFFIX) .man dist_doc_DATA = compositeproto.txt damageproto.txt dri2proto.txt \ dri3proto.txt fixesproto.txt presentproto.txt randrproto.txt \ renderproto.txt resproto.txt xv-protocol-v2.txt \ xwaylandproto.txt $(am__append_3) applewmdir = $(includedir)/X11/extensions applewm_HEADERS = \ include/X11/extensions/applewmconst.h \ include/X11/extensions/applewmproto.h applewmprotopkgconfigdir = $(datadir)/pkgconfig applewmprotopkgconfig_DATA = applewmproto.pc bigreqsdir = $(includedir)/X11/extensions bigreqs_HEADERS = \ include/X11/extensions/bigreqsproto.h \ include/X11/extensions/bigreqstr.h bigreqsprotopkgconfigdir = $(datadir)/pkgconfig bigreqsprotopkgconfig_DATA = bigreqsproto.pc compositedir = $(includedir)/X11/extensions composite_HEADERS = \ include/X11/extensions/composite.h \ include/X11/extensions/compositeproto.h compositeprotopkgconfigdir = $(datadir)/pkgconfig compositeprotopkgconfig_DATA = compositeproto.pc damagedir = $(includedir)/X11/extensions damage_HEADERS = \ include/X11/extensions/damageproto.h \ include/X11/extensions/damagewire.h damageprotopkgconfigdir = $(datadir)/pkgconfig damageprotopkgconfig_DATA = damageproto.pc dmxdir = $(includedir)/X11/extensions dmx_HEADERS = \ include/X11/extensions/dmx.h \ include/X11/extensions/dmxproto.h dmxprotopkgconfigdir = $(datadir)/pkgconfig dmxprotopkgconfig_DATA = dmxproto.pc dpmsprotopkgconfigdir = $(datadir)/pkgconfig dpmsprotopkgconfig_DATA = dpmsproto.pc dri2dir = $(includedir)/X11/extensions dri2_HEADERS = \ include/X11/extensions/dri2proto.h \ include/X11/extensions/dri2tokens.h dri2protopkgconfigdir = $(datadir)/pkgconfig dri2protopkgconfig_DATA = dri2proto.pc dri3dir = $(includedir)/X11/extensions dri3_HEADERS = \ include/X11/extensions/dri3proto.h dri3protopkgconfigdir = $(datadir)/pkgconfig dri3protopkgconfig_DATA = dri3proto.pc fixesdir = $(includedir)/X11/extensions fixes_HEADERS = \ include/X11/extensions/xfixesproto.h \ include/X11/extensions/xfixeswire.h fixesprotopkgconfigdir = $(datadir)/pkgconfig fixesprotopkgconfig_DATA = fixesproto.pc fontsdir = $(includedir)/X11/fonts fonts_HEADERS = \ include/X11/fonts/font.h \ include/X11/fonts/fontproto.h \ include/X11/fonts/fontstruct.h \ include/X11/fonts/FS.h \ include/X11/fonts/fsmasks.h \ include/X11/fonts/FSproto.h fontsprotopkgconfigdir = $(datadir)/pkgconfig fontsprotopkgconfig_DATA = fontsproto.pc gldir = $(includedir)/GL gl_HEADERS = \ include/GL/glxint.h \ include/GL/glxmd.h \ include/GL/glxproto.h \ include/GL/glxtokens.h glinternaldir = $(includedir)/GL/internal glinternal_HEADERS = \ include/GL/internal/glcore.h glprotopkgconfigdir = $(datadir)/pkgconfig glprotopkgconfig_DATA = glproto.pc inputdir = $(includedir)/X11/extensions input_HEADERS = \ include/X11/extensions/XI.h \ include/X11/extensions/XIproto.h \ include/X11/extensions/XI2.h \ include/X11/extensions/XI2proto.h inputprotopkgconfigdir = $(datadir)/pkgconfig inputprotopkgconfig_DATA = inputproto.pc kbdir = $(includedir)/X11/extensions kb_HEADERS = include/X11/extensions/XKB.h \ include/X11/extensions/XKBproto.h \ include/X11/extensions/XKBsrv.h \ include/X11/extensions/XKBstr.h $(am__append_1) kbprotopkgconfigdir = $(datadir)/pkgconfig kbprotopkgconfig_DATA = kbproto.pc presentdir = $(includedir)/X11/extensions present_HEADERS = \ include/X11/extensions/presentproto.h \ include/X11/extensions/presenttokens.h presentprotopkgconfigdir = $(datadir)/pkgconfig presentprotopkgconfig_DATA = presentproto.pc randrdir = $(includedir)/X11/extensions randr_HEADERS = \ include/X11/extensions/randr.h \ include/X11/extensions/randrproto.h randrprotopkgconfigdir = $(datadir)/pkgconfig randrprotopkgconfig_DATA = randrproto.pc recorddir = $(includedir)/X11/extensions record_HEADERS = \ include/X11/extensions/recordconst.h \ include/X11/extensions/recordproto.h \ include/X11/extensions/recordstr.h recordprotopkgconfigdir = $(datadir)/pkgconfig recordprotopkgconfig_DATA = recordproto.pc renderdir = $(includedir)/X11/extensions render_HEADERS = \ include/X11/extensions/render.h \ include/X11/extensions/renderproto.h renderprotopkgconfigdir = $(datadir)/pkgconfig renderprotopkgconfig_DATA = renderproto.pc resourcedir = $(includedir)/X11/extensions resource_HEADERS = \ include/X11/extensions/XResproto.h resourceprotopkgconfigdir = $(datadir)/pkgconfig resourceprotopkgconfig_DATA = resourceproto.pc scrnsaverdir = $(includedir)/X11/extensions scrnsaver_HEADERS = \ include/X11/extensions/saver.h \ include/X11/extensions/saverproto.h scrnsaverprotopkgconfigdir = $(datadir)/pkgconfig scrnsaverprotopkgconfig_DATA = scrnsaverproto.pc videodir = $(includedir)/X11/extensions video_HEADERS = include/X11/extensions/Xv.h \ include/X11/extensions/XvMC.h \ include/X11/extensions/XvMCproto.h \ include/X11/extensions/Xvproto.h $(am__append_2) videoprotopkgconfigdir = $(datadir)/pkgconfig videoprotopkgconfig_DATA = videoproto.pc xprotodir = $(includedir)/X11 xproto_HEADERS = \ include/X11/ap_keysym.h \ include/X11/DECkeysym.h \ include/X11/HPkeysym.h \ include/X11/keysymdef.h \ include/X11/keysym.h \ include/X11/Sunkeysym.h \ include/X11/Xalloca.h \ include/X11/Xarch.h \ include/X11/Xatom.h \ include/X11/Xdefs.h \ include/X11/XF86keysym.h \ include/X11/Xfuncproto.h \ include/X11/Xfuncs.h \ include/X11/X.h \ include/X11/Xmd.h \ include/X11/Xosdefs.h \ include/X11/Xos.h \ include/X11/Xos_r.h \ include/X11/Xproto.h \ include/X11/Xprotostr.h \ include/X11/Xthreads.h \ include/X11/Xw32defs.h \ include/X11/XWDFile.h \ include/X11/Xwindows.h \ include/X11/Xwinsock.h nodist_xproto_HEADERS = \ include/X11/Xpoll.h x11protopkgconfigdir = $(datadir)/pkgconfig x11protopkgconfig_DATA = xproto.pc xcmiscdir = $(includedir)/X11/extensions xcmisc_HEADERS = \ include/X11/extensions/xcmiscproto.h \ include/X11/extensions/xcmiscstr.h xcmiscprotopkgconfigdir = $(datadir)/pkgconfig xcmiscprotopkgconfig_DATA = xcmiscproto.pc xextdir = $(includedir)/X11/extensions xext_HEADERS = \ include/X11/extensions/dpmsconst.h \ include/X11/extensions/dpmsproto.h \ include/X11/extensions/ge.h \ include/X11/extensions/geproto.h \ include/X11/extensions/lbx.h \ include/X11/extensions/lbxproto.h \ include/X11/extensions/mitmiscconst.h \ include/X11/extensions/mitmiscproto.h \ include/X11/extensions/multibufconst.h \ include/X11/extensions/multibufproto.h \ include/X11/extensions/secur.h \ include/X11/extensions/securproto.h \ include/X11/extensions/shapeconst.h \ include/X11/extensions/shapeproto.h \ include/X11/extensions/shm.h \ include/X11/extensions/shmproto.h \ include/X11/extensions/syncconst.h \ include/X11/extensions/syncproto.h \ include/X11/extensions/ag.h \ include/X11/extensions/agproto.h \ include/X11/extensions/cup.h \ include/X11/extensions/cupproto.h \ include/X11/extensions/dbe.h \ include/X11/extensions/dbeproto.h \ include/X11/extensions/EVI.h \ include/X11/extensions/EVIproto.h \ include/X11/extensions/xtestext1proto.h \ include/X11/extensions/xtestext1const.h \ include/X11/extensions/xtestconst.h \ include/X11/extensions/xtestproto.h compatdir = $(xextdir) compat_HEADERS = \ include/X11/extensions/shapestr.h \ include/X11/extensions/shmstr.h \ include/X11/extensions/syncstr.h xextprotopkgconfigdir = $(datadir)/pkgconfig xextprotopkgconfig_DATA = xextproto.pc xf86bigfontdir = $(includedir)/X11/extensions xf86bigfont_HEADERS = \ include/X11/extensions/xf86bigfont.h \ include/X11/extensions/xf86bigfproto.h \ include/X11/extensions/xf86bigfstr.h xf86bigfontprotopkgconfigdir = $(datadir)/pkgconfig xf86bigfontprotopkgconfig_DATA = xf86bigfontproto.pc xf86dgadir = $(includedir)/X11/extensions xf86dga_HEADERS = \ include/X11/extensions/xf86dga.h \ include/X11/extensions/xf86dga1const.h \ include/X11/extensions/xf86dga1str.h \ include/X11/extensions/xf86dga1proto.h \ include/X11/extensions/xf86dgaconst.h \ include/X11/extensions/xf86dgaproto.h \ include/X11/extensions/xf86dgastr.h xf86dgaprotopkgconfigdir = $(datadir)/pkgconfig xf86dgaprotopkgconfig_DATA = xf86dgaproto.pc xf86dridir = $(includedir)/X11/dri xf86dri_HEADERS = \ include/X11/dri/xf86dri.h \ include/X11/dri/xf86dristr.h \ include/X11/dri/xf86driproto.h xf86driprotopkgconfigdir = $(datadir)/pkgconfig xf86driprotopkgconfig_DATA = xf86driproto.pc xf86vidmodedir = $(includedir)/X11/extensions xf86vidmode_HEADERS = \ include/X11/extensions/xf86vm.h \ include/X11/extensions/xf86vmproto.h \ include/X11/extensions/xf86vmstr.h xf86vidmodeprotopkgconfigdir = $(datadir)/pkgconfig xf86vidmodeprotopkgconfig_DATA = xf86vidmodeproto.pc xineramadir = $(includedir)/X11/extensions xinerama_HEADERS = \ include/X11/extensions/panoramiXproto.h xineramaprotopkgconfigdir = $(datadir)/pkgconfig xineramaprotopkgconfig_DATA = xineramaproto.pc xwaylandprotodir = $(includedir)/X11/extensions xwaylandproto_HEADERS = \ include/X11/extensions/xwaylandproto.h xwaylandprotopkgconfigdir = $(datadir)/pkgconfig xwaylandprotopkgconfig_DATA = xwaylandproto.pc @LEGACY_TRUE@XCalibrateincludedir = $(includedir)/X11/extensions @LEGACY_TRUE@XCalibrateinclude_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/xcalibrateproto.h \ @LEGACY_TRUE@ include/X11/extensions/xcalibratewire.h @LEGACY_TRUE@calibrateprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@calibrateprotopkgconfig_DATA = xcalibrateproto.pc @LEGACY_TRUE@eviedir = $(includedir)/X11/extensions @LEGACY_TRUE@evie_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/evieproto.h \ @LEGACY_TRUE@ include/X11/extensions/Xeviestr.h @LEGACY_TRUE@evieprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@evieprotopkgconfig_DATA = evieproto.pc @LEGACY_TRUE@fontcachedir = $(includedir)/X11/extensions @LEGACY_TRUE@fontcache_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/fontcache.h \ @LEGACY_TRUE@ include/X11/extensions/fontcacheP.h \ @LEGACY_TRUE@ include/X11/extensions/fontcachstr.h @LEGACY_TRUE@fontcacheprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@fontcacheprotopkgconfig_DATA = fontcacheproto.pc @LEGACY_TRUE@lg3ddir = $(includedir)/X11/extensions @LEGACY_TRUE@lg3d_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/lgewire.h @LEGACY_TRUE@lg3dprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@lg3dprotopkgconfig_DATA = lg3dproto.pc @LEGACY_TRUE@xproxymngdir = $(includedir)/X11/PM @LEGACY_TRUE@xproxymng_HEADERS = \ @LEGACY_TRUE@ include/X11/PM/PM.h \ @LEGACY_TRUE@ include/X11/PM/PMproto.h @LEGACY_TRUE@pmprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@pmprotopkgconfig_DATA = xproxymngproto.pc @LEGACY_TRUE@printdir = $(includedir)/X11/extensions @LEGACY_TRUE@print_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/Print.h \ @LEGACY_TRUE@ include/X11/extensions/Printstr.h @LEGACY_TRUE@printprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@printprotopkgconfig_DATA = printproto.pc @LEGACY_TRUE@miscmandir = $(MISC_MAN_DIR) @LEGACY_TRUE@miscman_DATA = man/Xprint.$(MISC_MAN_SUFFIX) @LEGACY_TRUE@CLEANFILES = $(miscman_DATA) @LEGACY_TRUE@trapdir = $(includedir)/X11/extensions @LEGACY_TRUE@trap_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/xtrapbits.h \ @LEGACY_TRUE@ include/X11/extensions/xtrapddmi.h \ @LEGACY_TRUE@ include/X11/extensions/xtrapdi.h \ @LEGACY_TRUE@ include/X11/extensions/xtrapemacros.h \ @LEGACY_TRUE@ include/X11/extensions/xtraplib.h \ @LEGACY_TRUE@ include/X11/extensions/xtraplibp.h \ @LEGACY_TRUE@ include/X11/extensions/xtrapproto.h @LEGACY_TRUE@trapprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@trapprotopkgconfig_DATA = trapproto.pc @LEGACY_TRUE@windowswmdir = $(includedir)/X11/extensions @LEGACY_TRUE@windowswm_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/windowswm.h \ @LEGACY_TRUE@ include/X11/extensions/windowswmstr.h @LEGACY_TRUE@windowswmprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@windowswmprotopkgconfig_DATA = windowswmproto.pc @LEGACY_TRUE@xf86miscdir = $(includedir)/X11/extensions @LEGACY_TRUE@xf86misc_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/xf86misc.h \ @LEGACY_TRUE@ include/X11/extensions/xf86mscstr.h @LEGACY_TRUE@xf86miscprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@xf86miscprotopkgconfig_DATA = xf86miscproto.pc @LEGACY_TRUE@xf86rushdir = $(includedir)/X11/extensions @LEGACY_TRUE@xf86rush_HEADERS = \ @LEGACY_TRUE@ include/X11/extensions/xf86rush.h \ @LEGACY_TRUE@ include/X11/extensions/xf86rushstr.h @LEGACY_TRUE@xf86rushprotopkgconfigdir = $(datadir)/pkgconfig @LEGACY_TRUE@xf86rushprotopkgconfig_DATA = xf86rushproto.pc SUBDIRS = specs EXTRA_DIST = \ COPYING-applewmproto \ COPYING-bigreqsproto \ COPYING-compositeproto \ COPYING-damageproto \ COPYING-dmxproto \ COPYING-dri2proto \ COPYING-dri3proto \ COPYING-evieproto \ COPYING-fixesproto \ COPYING-fontcacheproto \ COPYING-fontsproto \ COPYING-glproto \ COPYING-inputproto \ COPYING-kbproto \ COPYING-lg3dproto \ COPYING-pmproto \ COPYING-presentproto \ COPYING-printproto \ COPYING-randrproto \ COPYING-recordproto \ COPYING-renderproto \ COPYING-resourceproto \ COPYING-scrnsaverproto \ COPYING-trapproto \ COPYING-videoproto \ COPYING-windowswmproto \ COPYING-x11proto \ COPYING-xcmiscproto \ COPYING-xextproto \ COPYING-xf86bigfontproto \ COPYING-xf86dgaproto \ COPYING-xf86driproto \ COPYING-xf86miscproto \ COPYING-xf86rushproto \ COPYING-xf86vidmodeproto \ COPYING-xineramaproto \ COPYING-xwaylandproto \ README.md \ autogen.sh \ include/GL/internal/meson.build \ include/GL/meson.build \ include/meson.build \ include/X11/dri/meson.build \ include/X11/extensions/meson.build \ include/X11/fonts/meson.build \ include/X11/meson.build \ include/X11/PM/meson.build \ meson.build \ meson_options.txt \ man/Xprint.man \ man/Xprint.sgml \ scripts/keysym-generator.py AM_DISTCHECK_CONFIGURE_FLAGS = --enable-legacy @HAVE_PYTHON_TRUE@AM_TESTS_ENVIRONMENT = \ @HAVE_PYTHON_TRUE@ INCLUDESDIR=$(top_srcdir)/include @HAVE_PYTHON_TRUE@TESTS = scripts/keysym-generator.py @HAVE_PYTHON_TRUE@TEST_EXTENSIONS = .py @HAVE_PYTHON_TRUE@PY_LOG_COMPILER = $(PYTHON) all: all-recursive .SUFFIXES: .SUFFIXES: .$(MISC_MAN_SUFFIX) .man .log .py .py$(EXEEXT) .trs am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): applewmproto.pc: $(top_builddir)/config.status $(srcdir)/applewmproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ bigreqsproto.pc: $(top_builddir)/config.status $(srcdir)/bigreqsproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ compositeproto.pc: $(top_builddir)/config.status $(srcdir)/compositeproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ damageproto.pc: $(top_builddir)/config.status $(srcdir)/damageproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ dmxproto.pc: $(top_builddir)/config.status $(srcdir)/dmxproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ dpmsproto.pc: $(top_builddir)/config.status $(srcdir)/dpmsproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ dri2proto.pc: $(top_builddir)/config.status $(srcdir)/dri2proto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ dri3proto.pc: $(top_builddir)/config.status $(srcdir)/dri3proto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ evieproto.pc: $(top_builddir)/config.status $(srcdir)/evieproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ fixesproto.pc: $(top_builddir)/config.status $(srcdir)/fixesproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ fontcacheproto.pc: $(top_builddir)/config.status $(srcdir)/fontcacheproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ fontsproto.pc: $(top_builddir)/config.status $(srcdir)/fontsproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ glproto.pc: $(top_builddir)/config.status $(srcdir)/glproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ include/X11/Xpoll.h: $(top_builddir)/config.status $(top_srcdir)/include/X11/Xpoll.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ inputproto.pc: $(top_builddir)/config.status $(srcdir)/inputproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ kbproto.pc: $(top_builddir)/config.status $(srcdir)/kbproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ lg3dproto.pc: $(top_builddir)/config.status $(srcdir)/lg3dproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ presentproto.pc: $(top_builddir)/config.status $(srcdir)/presentproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ printproto.pc: $(top_builddir)/config.status $(srcdir)/printproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ randrproto.pc: $(top_builddir)/config.status $(srcdir)/randrproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ recordproto.pc: $(top_builddir)/config.status $(srcdir)/recordproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ renderproto.pc: $(top_builddir)/config.status $(srcdir)/renderproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ resourceproto.pc: $(top_builddir)/config.status $(srcdir)/resourceproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ scrnsaverproto.pc: $(top_builddir)/config.status $(srcdir)/scrnsaverproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ trapproto.pc: $(top_builddir)/config.status $(srcdir)/trapproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ videoproto.pc: $(top_builddir)/config.status $(srcdir)/videoproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ windowswmproto.pc: $(top_builddir)/config.status $(srcdir)/windowswmproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xcalibrateproto.pc: $(top_builddir)/config.status $(srcdir)/xcalibrateproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xcmiscproto.pc: $(top_builddir)/config.status $(srcdir)/xcmiscproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xextproto.pc: $(top_builddir)/config.status $(srcdir)/xextproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86bigfontproto.pc: $(top_builddir)/config.status $(srcdir)/xf86bigfontproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86dgaproto.pc: $(top_builddir)/config.status $(srcdir)/xf86dgaproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86driproto.pc: $(top_builddir)/config.status $(srcdir)/xf86driproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86miscproto.pc: $(top_builddir)/config.status $(srcdir)/xf86miscproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86rushproto.pc: $(top_builddir)/config.status $(srcdir)/xf86rushproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xf86vidmodeproto.pc: $(top_builddir)/config.status $(srcdir)/xf86vidmodeproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xineramaproto.pc: $(top_builddir)/config.status $(srcdir)/xineramaproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xproto.pc: $(top_builddir)/config.status $(srcdir)/xproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xproxymngproto.pc: $(top_builddir)/config.status $(srcdir)/xproxymngproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ xwaylandproto.pc: $(top_builddir)/config.status $(srcdir)/xwaylandproto.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-applewmprotopkgconfigDATA: $(applewmprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(applewmprotopkgconfig_DATA)'; test -n "$(applewmprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(applewmprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(applewmprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(applewmprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(applewmprotopkgconfigdir)" || exit $$?; \ done uninstall-applewmprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(applewmprotopkgconfig_DATA)'; test -n "$(applewmprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(applewmprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-bigreqsprotopkgconfigDATA: $(bigreqsprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(bigreqsprotopkgconfig_DATA)'; test -n "$(bigreqsprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bigreqsprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bigreqsprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(bigreqsprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(bigreqsprotopkgconfigdir)" || exit $$?; \ done uninstall-bigreqsprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(bigreqsprotopkgconfig_DATA)'; test -n "$(bigreqsprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(bigreqsprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-calibrateprotopkgconfigDATA: $(calibrateprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(calibrateprotopkgconfig_DATA)'; test -n "$(calibrateprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(calibrateprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(calibrateprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(calibrateprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(calibrateprotopkgconfigdir)" || exit $$?; \ done uninstall-calibrateprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(calibrateprotopkgconfig_DATA)'; test -n "$(calibrateprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(calibrateprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-compositeprotopkgconfigDATA: $(compositeprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(compositeprotopkgconfig_DATA)'; test -n "$(compositeprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(compositeprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(compositeprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(compositeprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(compositeprotopkgconfigdir)" || exit $$?; \ done uninstall-compositeprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(compositeprotopkgconfig_DATA)'; test -n "$(compositeprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(compositeprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-damageprotopkgconfigDATA: $(damageprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(damageprotopkgconfig_DATA)'; test -n "$(damageprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(damageprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(damageprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(damageprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(damageprotopkgconfigdir)" || exit $$?; \ done uninstall-damageprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(damageprotopkgconfig_DATA)'; test -n "$(damageprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(damageprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-dist_docDATA: $(dist_doc_DATA) @$(NORMAL_INSTALL) @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-dist_docDATA: @$(NORMAL_UNINSTALL) @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) install-dmxprotopkgconfigDATA: $(dmxprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(dmxprotopkgconfig_DATA)'; test -n "$(dmxprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dmxprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dmxprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dmxprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dmxprotopkgconfigdir)" || exit $$?; \ done uninstall-dmxprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(dmxprotopkgconfig_DATA)'; test -n "$(dmxprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dmxprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-dpmsprotopkgconfigDATA: $(dpmsprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(dpmsprotopkgconfig_DATA)'; test -n "$(dpmsprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dpmsprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dpmsprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dpmsprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dpmsprotopkgconfigdir)" || exit $$?; \ done uninstall-dpmsprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(dpmsprotopkgconfig_DATA)'; test -n "$(dpmsprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dpmsprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-dri2protopkgconfigDATA: $(dri2protopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(dri2protopkgconfig_DATA)'; test -n "$(dri2protopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dri2protopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dri2protopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dri2protopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dri2protopkgconfigdir)" || exit $$?; \ done uninstall-dri2protopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(dri2protopkgconfig_DATA)'; test -n "$(dri2protopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dri2protopkgconfigdir)'; $(am__uninstall_files_from_dir) install-dri3protopkgconfigDATA: $(dri3protopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(dri3protopkgconfig_DATA)'; test -n "$(dri3protopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dri3protopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dri3protopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dri3protopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dri3protopkgconfigdir)" || exit $$?; \ done uninstall-dri3protopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(dri3protopkgconfig_DATA)'; test -n "$(dri3protopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dri3protopkgconfigdir)'; $(am__uninstall_files_from_dir) install-evieprotopkgconfigDATA: $(evieprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(evieprotopkgconfig_DATA)'; test -n "$(evieprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(evieprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(evieprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(evieprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(evieprotopkgconfigdir)" || exit $$?; \ done uninstall-evieprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(evieprotopkgconfig_DATA)'; test -n "$(evieprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(evieprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-fixesprotopkgconfigDATA: $(fixesprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(fixesprotopkgconfig_DATA)'; test -n "$(fixesprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fixesprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fixesprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fixesprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(fixesprotopkgconfigdir)" || exit $$?; \ done uninstall-fixesprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(fixesprotopkgconfig_DATA)'; test -n "$(fixesprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fixesprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-fontcacheprotopkgconfigDATA: $(fontcacheprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(fontcacheprotopkgconfig_DATA)'; test -n "$(fontcacheprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fontcacheprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fontcacheprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fontcacheprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(fontcacheprotopkgconfigdir)" || exit $$?; \ done uninstall-fontcacheprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(fontcacheprotopkgconfig_DATA)'; test -n "$(fontcacheprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fontcacheprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-fontsprotopkgconfigDATA: $(fontsprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(fontsprotopkgconfig_DATA)'; test -n "$(fontsprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fontsprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fontsprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fontsprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(fontsprotopkgconfigdir)" || exit $$?; \ done uninstall-fontsprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(fontsprotopkgconfig_DATA)'; test -n "$(fontsprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fontsprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-glprotopkgconfigDATA: $(glprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(glprotopkgconfig_DATA)'; test -n "$(glprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(glprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(glprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(glprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(glprotopkgconfigdir)" || exit $$?; \ done uninstall-glprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(glprotopkgconfig_DATA)'; test -n "$(glprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(glprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-inputprotopkgconfigDATA: $(inputprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(inputprotopkgconfig_DATA)'; test -n "$(inputprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(inputprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(inputprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(inputprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(inputprotopkgconfigdir)" || exit $$?; \ done uninstall-inputprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(inputprotopkgconfig_DATA)'; test -n "$(inputprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(inputprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-kbprotopkgconfigDATA: $(kbprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(kbprotopkgconfig_DATA)'; test -n "$(kbprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(kbprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(kbprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(kbprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(kbprotopkgconfigdir)" || exit $$?; \ done uninstall-kbprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(kbprotopkgconfig_DATA)'; test -n "$(kbprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(kbprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-lg3dprotopkgconfigDATA: $(lg3dprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(lg3dprotopkgconfig_DATA)'; test -n "$(lg3dprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lg3dprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lg3dprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lg3dprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lg3dprotopkgconfigdir)" || exit $$?; \ done uninstall-lg3dprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(lg3dprotopkgconfig_DATA)'; test -n "$(lg3dprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lg3dprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-miscmanDATA: $(miscman_DATA) @$(NORMAL_INSTALL) @list='$(miscman_DATA)'; test -n "$(miscmandir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(miscmandir)'"; \ $(MKDIR_P) "$(DESTDIR)$(miscmandir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(miscmandir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(miscmandir)" || exit $$?; \ done uninstall-miscmanDATA: @$(NORMAL_UNINSTALL) @list='$(miscman_DATA)'; test -n "$(miscmandir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(miscmandir)'; $(am__uninstall_files_from_dir) install-pmprotopkgconfigDATA: $(pmprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pmprotopkgconfig_DATA)'; test -n "$(pmprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pmprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pmprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pmprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pmprotopkgconfigdir)" || exit $$?; \ done uninstall-pmprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pmprotopkgconfig_DATA)'; test -n "$(pmprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pmprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-presentprotopkgconfigDATA: $(presentprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(presentprotopkgconfig_DATA)'; test -n "$(presentprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(presentprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(presentprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(presentprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(presentprotopkgconfigdir)" || exit $$?; \ done uninstall-presentprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(presentprotopkgconfig_DATA)'; test -n "$(presentprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(presentprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-printprotopkgconfigDATA: $(printprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(printprotopkgconfig_DATA)'; test -n "$(printprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(printprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(printprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(printprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(printprotopkgconfigdir)" || exit $$?; \ done uninstall-printprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(printprotopkgconfig_DATA)'; test -n "$(printprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(printprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-randrprotopkgconfigDATA: $(randrprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(randrprotopkgconfig_DATA)'; test -n "$(randrprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(randrprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(randrprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(randrprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(randrprotopkgconfigdir)" || exit $$?; \ done uninstall-randrprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(randrprotopkgconfig_DATA)'; test -n "$(randrprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(randrprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-recordprotopkgconfigDATA: $(recordprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(recordprotopkgconfig_DATA)'; test -n "$(recordprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(recordprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(recordprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(recordprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(recordprotopkgconfigdir)" || exit $$?; \ done uninstall-recordprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(recordprotopkgconfig_DATA)'; test -n "$(recordprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(recordprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-renderprotopkgconfigDATA: $(renderprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(renderprotopkgconfig_DATA)'; test -n "$(renderprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(renderprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(renderprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(renderprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(renderprotopkgconfigdir)" || exit $$?; \ done uninstall-renderprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(renderprotopkgconfig_DATA)'; test -n "$(renderprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(renderprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-resourceprotopkgconfigDATA: $(resourceprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(resourceprotopkgconfig_DATA)'; test -n "$(resourceprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(resourceprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(resourceprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(resourceprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(resourceprotopkgconfigdir)" || exit $$?; \ done uninstall-resourceprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(resourceprotopkgconfig_DATA)'; test -n "$(resourceprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(resourceprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-scrnsaverprotopkgconfigDATA: $(scrnsaverprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(scrnsaverprotopkgconfig_DATA)'; test -n "$(scrnsaverprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(scrnsaverprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(scrnsaverprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(scrnsaverprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(scrnsaverprotopkgconfigdir)" || exit $$?; \ done uninstall-scrnsaverprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(scrnsaverprotopkgconfig_DATA)'; test -n "$(scrnsaverprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(scrnsaverprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-trapprotopkgconfigDATA: $(trapprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(trapprotopkgconfig_DATA)'; test -n "$(trapprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(trapprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(trapprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(trapprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(trapprotopkgconfigdir)" || exit $$?; \ done uninstall-trapprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(trapprotopkgconfig_DATA)'; test -n "$(trapprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(trapprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-videoprotopkgconfigDATA: $(videoprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(videoprotopkgconfig_DATA)'; test -n "$(videoprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(videoprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(videoprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(videoprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(videoprotopkgconfigdir)" || exit $$?; \ done uninstall-videoprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(videoprotopkgconfig_DATA)'; test -n "$(videoprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(videoprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-windowswmprotopkgconfigDATA: $(windowswmprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(windowswmprotopkgconfig_DATA)'; test -n "$(windowswmprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(windowswmprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(windowswmprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(windowswmprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(windowswmprotopkgconfigdir)" || exit $$?; \ done uninstall-windowswmprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(windowswmprotopkgconfig_DATA)'; test -n "$(windowswmprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(windowswmprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-x11protopkgconfigDATA: $(x11protopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(x11protopkgconfig_DATA)'; test -n "$(x11protopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(x11protopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(x11protopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(x11protopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(x11protopkgconfigdir)" || exit $$?; \ done uninstall-x11protopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(x11protopkgconfig_DATA)'; test -n "$(x11protopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(x11protopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xcmiscprotopkgconfigDATA: $(xcmiscprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xcmiscprotopkgconfig_DATA)'; test -n "$(xcmiscprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xcmiscprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xcmiscprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xcmiscprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xcmiscprotopkgconfigdir)" || exit $$?; \ done uninstall-xcmiscprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xcmiscprotopkgconfig_DATA)'; test -n "$(xcmiscprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xcmiscprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xextprotopkgconfigDATA: $(xextprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xextprotopkgconfig_DATA)'; test -n "$(xextprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xextprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xextprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xextprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xextprotopkgconfigdir)" || exit $$?; \ done uninstall-xextprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xextprotopkgconfig_DATA)'; test -n "$(xextprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xextprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86bigfontprotopkgconfigDATA: $(xf86bigfontprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86bigfontprotopkgconfig_DATA)'; test -n "$(xf86bigfontprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86bigfontprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86bigfontprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86bigfontprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86bigfontprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86bigfontprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86bigfontprotopkgconfig_DATA)'; test -n "$(xf86bigfontprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86bigfontprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86dgaprotopkgconfigDATA: $(xf86dgaprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86dgaprotopkgconfig_DATA)'; test -n "$(xf86dgaprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86dgaprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86dgaprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86dgaprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86dgaprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86dgaprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86dgaprotopkgconfig_DATA)'; test -n "$(xf86dgaprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86dgaprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86driprotopkgconfigDATA: $(xf86driprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86driprotopkgconfig_DATA)'; test -n "$(xf86driprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86driprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86driprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86driprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86driprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86driprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86driprotopkgconfig_DATA)'; test -n "$(xf86driprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86driprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86miscprotopkgconfigDATA: $(xf86miscprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86miscprotopkgconfig_DATA)'; test -n "$(xf86miscprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86miscprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86miscprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86miscprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86miscprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86miscprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86miscprotopkgconfig_DATA)'; test -n "$(xf86miscprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86miscprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86rushprotopkgconfigDATA: $(xf86rushprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86rushprotopkgconfig_DATA)'; test -n "$(xf86rushprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86rushprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86rushprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86rushprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86rushprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86rushprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86rushprotopkgconfig_DATA)'; test -n "$(xf86rushprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86rushprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xf86vidmodeprotopkgconfigDATA: $(xf86vidmodeprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xf86vidmodeprotopkgconfig_DATA)'; test -n "$(xf86vidmodeprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)" || exit $$?; \ done uninstall-xf86vidmodeprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xf86vidmodeprotopkgconfig_DATA)'; test -n "$(xf86vidmodeprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xineramaprotopkgconfigDATA: $(xineramaprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xineramaprotopkgconfig_DATA)'; test -n "$(xineramaprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xineramaprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xineramaprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xineramaprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xineramaprotopkgconfigdir)" || exit $$?; \ done uninstall-xineramaprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xineramaprotopkgconfig_DATA)'; test -n "$(xineramaprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xineramaprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-xwaylandprotopkgconfigDATA: $(xwaylandprotopkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(xwaylandprotopkgconfig_DATA)'; test -n "$(xwaylandprotopkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xwaylandprotopkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xwaylandprotopkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xwaylandprotopkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xwaylandprotopkgconfigdir)" || exit $$?; \ done uninstall-xwaylandprotopkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(xwaylandprotopkgconfig_DATA)'; test -n "$(xwaylandprotopkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xwaylandprotopkgconfigdir)'; $(am__uninstall_files_from_dir) install-XCalibrateincludeHEADERS: $(XCalibrateinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(XCalibrateinclude_HEADERS)'; test -n "$(XCalibrateincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(XCalibrateincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(XCalibrateincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(XCalibrateincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(XCalibrateincludedir)" || exit $$?; \ done uninstall-XCalibrateincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(XCalibrateinclude_HEADERS)'; test -n "$(XCalibrateincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(XCalibrateincludedir)'; $(am__uninstall_files_from_dir) install-applewmHEADERS: $(applewm_HEADERS) @$(NORMAL_INSTALL) @list='$(applewm_HEADERS)'; test -n "$(applewmdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(applewmdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(applewmdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(applewmdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(applewmdir)" || exit $$?; \ done uninstall-applewmHEADERS: @$(NORMAL_UNINSTALL) @list='$(applewm_HEADERS)'; test -n "$(applewmdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(applewmdir)'; $(am__uninstall_files_from_dir) install-bigreqsHEADERS: $(bigreqs_HEADERS) @$(NORMAL_INSTALL) @list='$(bigreqs_HEADERS)'; test -n "$(bigreqsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bigreqsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bigreqsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(bigreqsdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(bigreqsdir)" || exit $$?; \ done uninstall-bigreqsHEADERS: @$(NORMAL_UNINSTALL) @list='$(bigreqs_HEADERS)'; test -n "$(bigreqsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(bigreqsdir)'; $(am__uninstall_files_from_dir) install-compatHEADERS: $(compat_HEADERS) @$(NORMAL_INSTALL) @list='$(compat_HEADERS)'; test -n "$(compatdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(compatdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(compatdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(compatdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(compatdir)" || exit $$?; \ done uninstall-compatHEADERS: @$(NORMAL_UNINSTALL) @list='$(compat_HEADERS)'; test -n "$(compatdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(compatdir)'; $(am__uninstall_files_from_dir) install-compositeHEADERS: $(composite_HEADERS) @$(NORMAL_INSTALL) @list='$(composite_HEADERS)'; test -n "$(compositedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(compositedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(compositedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(compositedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(compositedir)" || exit $$?; \ done uninstall-compositeHEADERS: @$(NORMAL_UNINSTALL) @list='$(composite_HEADERS)'; test -n "$(compositedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(compositedir)'; $(am__uninstall_files_from_dir) install-damageHEADERS: $(damage_HEADERS) @$(NORMAL_INSTALL) @list='$(damage_HEADERS)'; test -n "$(damagedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(damagedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(damagedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(damagedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(damagedir)" || exit $$?; \ done uninstall-damageHEADERS: @$(NORMAL_UNINSTALL) @list='$(damage_HEADERS)'; test -n "$(damagedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(damagedir)'; $(am__uninstall_files_from_dir) install-dmxHEADERS: $(dmx_HEADERS) @$(NORMAL_INSTALL) @list='$(dmx_HEADERS)'; test -n "$(dmxdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dmxdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dmxdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(dmxdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(dmxdir)" || exit $$?; \ done uninstall-dmxHEADERS: @$(NORMAL_UNINSTALL) @list='$(dmx_HEADERS)'; test -n "$(dmxdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dmxdir)'; $(am__uninstall_files_from_dir) install-dri2HEADERS: $(dri2_HEADERS) @$(NORMAL_INSTALL) @list='$(dri2_HEADERS)'; test -n "$(dri2dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dri2dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dri2dir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(dri2dir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(dri2dir)" || exit $$?; \ done uninstall-dri2HEADERS: @$(NORMAL_UNINSTALL) @list='$(dri2_HEADERS)'; test -n "$(dri2dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dri2dir)'; $(am__uninstall_files_from_dir) install-dri3HEADERS: $(dri3_HEADERS) @$(NORMAL_INSTALL) @list='$(dri3_HEADERS)'; test -n "$(dri3dir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dri3dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dri3dir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(dri3dir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(dri3dir)" || exit $$?; \ done uninstall-dri3HEADERS: @$(NORMAL_UNINSTALL) @list='$(dri3_HEADERS)'; test -n "$(dri3dir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dri3dir)'; $(am__uninstall_files_from_dir) install-evieHEADERS: $(evie_HEADERS) @$(NORMAL_INSTALL) @list='$(evie_HEADERS)'; test -n "$(eviedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(eviedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(eviedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(eviedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(eviedir)" || exit $$?; \ done uninstall-evieHEADERS: @$(NORMAL_UNINSTALL) @list='$(evie_HEADERS)'; test -n "$(eviedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(eviedir)'; $(am__uninstall_files_from_dir) install-fixesHEADERS: $(fixes_HEADERS) @$(NORMAL_INSTALL) @list='$(fixes_HEADERS)'; test -n "$(fixesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fixesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fixesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(fixesdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(fixesdir)" || exit $$?; \ done uninstall-fixesHEADERS: @$(NORMAL_UNINSTALL) @list='$(fixes_HEADERS)'; test -n "$(fixesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fixesdir)'; $(am__uninstall_files_from_dir) install-fontcacheHEADERS: $(fontcache_HEADERS) @$(NORMAL_INSTALL) @list='$(fontcache_HEADERS)'; test -n "$(fontcachedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fontcachedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fontcachedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(fontcachedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(fontcachedir)" || exit $$?; \ done uninstall-fontcacheHEADERS: @$(NORMAL_UNINSTALL) @list='$(fontcache_HEADERS)'; test -n "$(fontcachedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fontcachedir)'; $(am__uninstall_files_from_dir) install-fontsHEADERS: $(fonts_HEADERS) @$(NORMAL_INSTALL) @list='$(fonts_HEADERS)'; test -n "$(fontsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(fontsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(fontsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(fontsdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(fontsdir)" || exit $$?; \ done uninstall-fontsHEADERS: @$(NORMAL_UNINSTALL) @list='$(fonts_HEADERS)'; test -n "$(fontsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fontsdir)'; $(am__uninstall_files_from_dir) install-glHEADERS: $(gl_HEADERS) @$(NORMAL_INSTALL) @list='$(gl_HEADERS)'; test -n "$(gldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(gldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(gldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(gldir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(gldir)" || exit $$?; \ done uninstall-glHEADERS: @$(NORMAL_UNINSTALL) @list='$(gl_HEADERS)'; test -n "$(gldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(gldir)'; $(am__uninstall_files_from_dir) install-glinternalHEADERS: $(glinternal_HEADERS) @$(NORMAL_INSTALL) @list='$(glinternal_HEADERS)'; test -n "$(glinternaldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(glinternaldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(glinternaldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(glinternaldir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(glinternaldir)" || exit $$?; \ done uninstall-glinternalHEADERS: @$(NORMAL_UNINSTALL) @list='$(glinternal_HEADERS)'; test -n "$(glinternaldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(glinternaldir)'; $(am__uninstall_files_from_dir) install-inputHEADERS: $(input_HEADERS) @$(NORMAL_INSTALL) @list='$(input_HEADERS)'; test -n "$(inputdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(inputdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(inputdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(inputdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(inputdir)" || exit $$?; \ done uninstall-inputHEADERS: @$(NORMAL_UNINSTALL) @list='$(input_HEADERS)'; test -n "$(inputdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(inputdir)'; $(am__uninstall_files_from_dir) install-kbHEADERS: $(kb_HEADERS) @$(NORMAL_INSTALL) @list='$(kb_HEADERS)'; test -n "$(kbdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(kbdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(kbdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(kbdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(kbdir)" || exit $$?; \ done uninstall-kbHEADERS: @$(NORMAL_UNINSTALL) @list='$(kb_HEADERS)'; test -n "$(kbdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(kbdir)'; $(am__uninstall_files_from_dir) install-lg3dHEADERS: $(lg3d_HEADERS) @$(NORMAL_INSTALL) @list='$(lg3d_HEADERS)'; test -n "$(lg3ddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lg3ddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lg3ddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(lg3ddir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(lg3ddir)" || exit $$?; \ done uninstall-lg3dHEADERS: @$(NORMAL_UNINSTALL) @list='$(lg3d_HEADERS)'; test -n "$(lg3ddir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lg3ddir)'; $(am__uninstall_files_from_dir) install-nodist_xprotoHEADERS: $(nodist_xproto_HEADERS) @$(NORMAL_INSTALL) @list='$(nodist_xproto_HEADERS)'; test -n "$(xprotodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xprotodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xprotodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xprotodir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xprotodir)" || exit $$?; \ done uninstall-nodist_xprotoHEADERS: @$(NORMAL_UNINSTALL) @list='$(nodist_xproto_HEADERS)'; test -n "$(xprotodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xprotodir)'; $(am__uninstall_files_from_dir) install-presentHEADERS: $(present_HEADERS) @$(NORMAL_INSTALL) @list='$(present_HEADERS)'; test -n "$(presentdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(presentdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(presentdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(presentdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(presentdir)" || exit $$?; \ done uninstall-presentHEADERS: @$(NORMAL_UNINSTALL) @list='$(present_HEADERS)'; test -n "$(presentdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(presentdir)'; $(am__uninstall_files_from_dir) install-printHEADERS: $(print_HEADERS) @$(NORMAL_INSTALL) @list='$(print_HEADERS)'; test -n "$(printdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(printdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(printdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(printdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(printdir)" || exit $$?; \ done uninstall-printHEADERS: @$(NORMAL_UNINSTALL) @list='$(print_HEADERS)'; test -n "$(printdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(printdir)'; $(am__uninstall_files_from_dir) install-randrHEADERS: $(randr_HEADERS) @$(NORMAL_INSTALL) @list='$(randr_HEADERS)'; test -n "$(randrdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(randrdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(randrdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(randrdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(randrdir)" || exit $$?; \ done uninstall-randrHEADERS: @$(NORMAL_UNINSTALL) @list='$(randr_HEADERS)'; test -n "$(randrdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(randrdir)'; $(am__uninstall_files_from_dir) install-recordHEADERS: $(record_HEADERS) @$(NORMAL_INSTALL) @list='$(record_HEADERS)'; test -n "$(recorddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(recorddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(recorddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(recorddir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(recorddir)" || exit $$?; \ done uninstall-recordHEADERS: @$(NORMAL_UNINSTALL) @list='$(record_HEADERS)'; test -n "$(recorddir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(recorddir)'; $(am__uninstall_files_from_dir) install-renderHEADERS: $(render_HEADERS) @$(NORMAL_INSTALL) @list='$(render_HEADERS)'; test -n "$(renderdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(renderdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(renderdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(renderdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(renderdir)" || exit $$?; \ done uninstall-renderHEADERS: @$(NORMAL_UNINSTALL) @list='$(render_HEADERS)'; test -n "$(renderdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(renderdir)'; $(am__uninstall_files_from_dir) install-resourceHEADERS: $(resource_HEADERS) @$(NORMAL_INSTALL) @list='$(resource_HEADERS)'; test -n "$(resourcedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(resourcedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(resourcedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(resourcedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(resourcedir)" || exit $$?; \ done uninstall-resourceHEADERS: @$(NORMAL_UNINSTALL) @list='$(resource_HEADERS)'; test -n "$(resourcedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(resourcedir)'; $(am__uninstall_files_from_dir) install-scrnsaverHEADERS: $(scrnsaver_HEADERS) @$(NORMAL_INSTALL) @list='$(scrnsaver_HEADERS)'; test -n "$(scrnsaverdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(scrnsaverdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(scrnsaverdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(scrnsaverdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(scrnsaverdir)" || exit $$?; \ done uninstall-scrnsaverHEADERS: @$(NORMAL_UNINSTALL) @list='$(scrnsaver_HEADERS)'; test -n "$(scrnsaverdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(scrnsaverdir)'; $(am__uninstall_files_from_dir) install-trapHEADERS: $(trap_HEADERS) @$(NORMAL_INSTALL) @list='$(trap_HEADERS)'; test -n "$(trapdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(trapdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(trapdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(trapdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(trapdir)" || exit $$?; \ done uninstall-trapHEADERS: @$(NORMAL_UNINSTALL) @list='$(trap_HEADERS)'; test -n "$(trapdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(trapdir)'; $(am__uninstall_files_from_dir) install-videoHEADERS: $(video_HEADERS) @$(NORMAL_INSTALL) @list='$(video_HEADERS)'; test -n "$(videodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(videodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(videodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(videodir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(videodir)" || exit $$?; \ done uninstall-videoHEADERS: @$(NORMAL_UNINSTALL) @list='$(video_HEADERS)'; test -n "$(videodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(videodir)'; $(am__uninstall_files_from_dir) install-windowswmHEADERS: $(windowswm_HEADERS) @$(NORMAL_INSTALL) @list='$(windowswm_HEADERS)'; test -n "$(windowswmdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(windowswmdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(windowswmdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(windowswmdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(windowswmdir)" || exit $$?; \ done uninstall-windowswmHEADERS: @$(NORMAL_UNINSTALL) @list='$(windowswm_HEADERS)'; test -n "$(windowswmdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(windowswmdir)'; $(am__uninstall_files_from_dir) install-xcmiscHEADERS: $(xcmisc_HEADERS) @$(NORMAL_INSTALL) @list='$(xcmisc_HEADERS)'; test -n "$(xcmiscdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xcmiscdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xcmiscdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xcmiscdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xcmiscdir)" || exit $$?; \ done uninstall-xcmiscHEADERS: @$(NORMAL_UNINSTALL) @list='$(xcmisc_HEADERS)'; test -n "$(xcmiscdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xcmiscdir)'; $(am__uninstall_files_from_dir) install-xextHEADERS: $(xext_HEADERS) @$(NORMAL_INSTALL) @list='$(xext_HEADERS)'; test -n "$(xextdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xextdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xextdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xextdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xextdir)" || exit $$?; \ done uninstall-xextHEADERS: @$(NORMAL_UNINSTALL) @list='$(xext_HEADERS)'; test -n "$(xextdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xextdir)'; $(am__uninstall_files_from_dir) install-xf86bigfontHEADERS: $(xf86bigfont_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86bigfont_HEADERS)'; test -n "$(xf86bigfontdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86bigfontdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86bigfontdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86bigfontdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86bigfontdir)" || exit $$?; \ done uninstall-xf86bigfontHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86bigfont_HEADERS)'; test -n "$(xf86bigfontdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86bigfontdir)'; $(am__uninstall_files_from_dir) install-xf86dgaHEADERS: $(xf86dga_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86dga_HEADERS)'; test -n "$(xf86dgadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86dgadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86dgadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86dgadir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86dgadir)" || exit $$?; \ done uninstall-xf86dgaHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86dga_HEADERS)'; test -n "$(xf86dgadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86dgadir)'; $(am__uninstall_files_from_dir) install-xf86driHEADERS: $(xf86dri_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86dri_HEADERS)'; test -n "$(xf86dridir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86dridir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86dridir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86dridir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86dridir)" || exit $$?; \ done uninstall-xf86driHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86dri_HEADERS)'; test -n "$(xf86dridir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86dridir)'; $(am__uninstall_files_from_dir) install-xf86miscHEADERS: $(xf86misc_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86misc_HEADERS)'; test -n "$(xf86miscdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86miscdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86miscdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86miscdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86miscdir)" || exit $$?; \ done uninstall-xf86miscHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86misc_HEADERS)'; test -n "$(xf86miscdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86miscdir)'; $(am__uninstall_files_from_dir) install-xf86rushHEADERS: $(xf86rush_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86rush_HEADERS)'; test -n "$(xf86rushdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86rushdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86rushdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86rushdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86rushdir)" || exit $$?; \ done uninstall-xf86rushHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86rush_HEADERS)'; test -n "$(xf86rushdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86rushdir)'; $(am__uninstall_files_from_dir) install-xf86vidmodeHEADERS: $(xf86vidmode_HEADERS) @$(NORMAL_INSTALL) @list='$(xf86vidmode_HEADERS)'; test -n "$(xf86vidmodedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xf86vidmodedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xf86vidmodedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xf86vidmodedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xf86vidmodedir)" || exit $$?; \ done uninstall-xf86vidmodeHEADERS: @$(NORMAL_UNINSTALL) @list='$(xf86vidmode_HEADERS)'; test -n "$(xf86vidmodedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xf86vidmodedir)'; $(am__uninstall_files_from_dir) install-xineramaHEADERS: $(xinerama_HEADERS) @$(NORMAL_INSTALL) @list='$(xinerama_HEADERS)'; test -n "$(xineramadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xineramadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xineramadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xineramadir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xineramadir)" || exit $$?; \ done uninstall-xineramaHEADERS: @$(NORMAL_UNINSTALL) @list='$(xinerama_HEADERS)'; test -n "$(xineramadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xineramadir)'; $(am__uninstall_files_from_dir) install-xprotoHEADERS: $(xproto_HEADERS) @$(NORMAL_INSTALL) @list='$(xproto_HEADERS)'; test -n "$(xprotodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xprotodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xprotodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xprotodir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xprotodir)" || exit $$?; \ done uninstall-xprotoHEADERS: @$(NORMAL_UNINSTALL) @list='$(xproto_HEADERS)'; test -n "$(xprotodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xprotodir)'; $(am__uninstall_files_from_dir) install-xproxymngHEADERS: $(xproxymng_HEADERS) @$(NORMAL_INSTALL) @list='$(xproxymng_HEADERS)'; test -n "$(xproxymngdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xproxymngdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xproxymngdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xproxymngdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xproxymngdir)" || exit $$?; \ done uninstall-xproxymngHEADERS: @$(NORMAL_UNINSTALL) @list='$(xproxymng_HEADERS)'; test -n "$(xproxymngdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xproxymngdir)'; $(am__uninstall_files_from_dir) install-xwaylandprotoHEADERS: $(xwaylandproto_HEADERS) @$(NORMAL_INSTALL) @list='$(xwaylandproto_HEADERS)'; test -n "$(xwaylandprotodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xwaylandprotodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xwaylandprotodir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(xwaylandprotodir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(xwaylandprotodir)" || exit $$?; \ done uninstall-xwaylandprotoHEADERS: @$(NORMAL_UNINSTALL) @list='$(xwaylandproto_HEADERS)'; test -n "$(xwaylandprotodir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xwaylandprotodir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? .py.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(PY_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_PY_LOG_DRIVER_FLAGS) $(PY_LOG_DRIVER_FLAGS) -- $(PY_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.py$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(PY_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_PY_LOG_DRIVER_FLAGS) $(PY_LOG_DRIVER_FLAGS) -- $(PY_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-recursive all-am: Makefile $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(applewmprotopkgconfigdir)" "$(DESTDIR)$(bigreqsprotopkgconfigdir)" "$(DESTDIR)$(calibrateprotopkgconfigdir)" "$(DESTDIR)$(compositeprotopkgconfigdir)" "$(DESTDIR)$(damageprotopkgconfigdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(dmxprotopkgconfigdir)" "$(DESTDIR)$(dpmsprotopkgconfigdir)" "$(DESTDIR)$(dri2protopkgconfigdir)" "$(DESTDIR)$(dri3protopkgconfigdir)" "$(DESTDIR)$(evieprotopkgconfigdir)" "$(DESTDIR)$(fixesprotopkgconfigdir)" "$(DESTDIR)$(fontcacheprotopkgconfigdir)" "$(DESTDIR)$(fontsprotopkgconfigdir)" "$(DESTDIR)$(glprotopkgconfigdir)" "$(DESTDIR)$(inputprotopkgconfigdir)" "$(DESTDIR)$(kbprotopkgconfigdir)" "$(DESTDIR)$(lg3dprotopkgconfigdir)" "$(DESTDIR)$(miscmandir)" "$(DESTDIR)$(pmprotopkgconfigdir)" "$(DESTDIR)$(presentprotopkgconfigdir)" "$(DESTDIR)$(printprotopkgconfigdir)" "$(DESTDIR)$(randrprotopkgconfigdir)" "$(DESTDIR)$(recordprotopkgconfigdir)" "$(DESTDIR)$(renderprotopkgconfigdir)" "$(DESTDIR)$(resourceprotopkgconfigdir)" "$(DESTDIR)$(scrnsaverprotopkgconfigdir)" "$(DESTDIR)$(trapprotopkgconfigdir)" "$(DESTDIR)$(videoprotopkgconfigdir)" "$(DESTDIR)$(windowswmprotopkgconfigdir)" "$(DESTDIR)$(x11protopkgconfigdir)" "$(DESTDIR)$(xcmiscprotopkgconfigdir)" "$(DESTDIR)$(xextprotopkgconfigdir)" "$(DESTDIR)$(xf86bigfontprotopkgconfigdir)" "$(DESTDIR)$(xf86dgaprotopkgconfigdir)" "$(DESTDIR)$(xf86driprotopkgconfigdir)" "$(DESTDIR)$(xf86miscprotopkgconfigdir)" "$(DESTDIR)$(xf86rushprotopkgconfigdir)" "$(DESTDIR)$(xf86vidmodeprotopkgconfigdir)" "$(DESTDIR)$(xineramaprotopkgconfigdir)" "$(DESTDIR)$(xwaylandprotopkgconfigdir)" "$(DESTDIR)$(XCalibrateincludedir)" "$(DESTDIR)$(applewmdir)" "$(DESTDIR)$(bigreqsdir)" "$(DESTDIR)$(compatdir)" "$(DESTDIR)$(compositedir)" "$(DESTDIR)$(damagedir)" "$(DESTDIR)$(dmxdir)" "$(DESTDIR)$(dri2dir)" "$(DESTDIR)$(dri3dir)" "$(DESTDIR)$(eviedir)" "$(DESTDIR)$(fixesdir)" "$(DESTDIR)$(fontcachedir)" "$(DESTDIR)$(fontsdir)" "$(DESTDIR)$(gldir)" "$(DESTDIR)$(glinternaldir)" "$(DESTDIR)$(inputdir)" "$(DESTDIR)$(kbdir)" "$(DESTDIR)$(lg3ddir)" "$(DESTDIR)$(xprotodir)" "$(DESTDIR)$(presentdir)" "$(DESTDIR)$(printdir)" "$(DESTDIR)$(randrdir)" "$(DESTDIR)$(recorddir)" "$(DESTDIR)$(renderdir)" "$(DESTDIR)$(resourcedir)" "$(DESTDIR)$(scrnsaverdir)" "$(DESTDIR)$(trapdir)" "$(DESTDIR)$(videodir)" "$(DESTDIR)$(windowswmdir)" "$(DESTDIR)$(xcmiscdir)" "$(DESTDIR)$(xextdir)" "$(DESTDIR)$(xf86bigfontdir)" "$(DESTDIR)$(xf86dgadir)" "$(DESTDIR)$(xf86dridir)" "$(DESTDIR)$(xf86miscdir)" "$(DESTDIR)$(xf86rushdir)" "$(DESTDIR)$(xf86vidmodedir)" "$(DESTDIR)$(xineramadir)" "$(DESTDIR)$(xprotodir)" "$(DESTDIR)$(xproxymngdir)" "$(DESTDIR)$(xwaylandprotodir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-XCalibrateincludeHEADERS \ install-applewmHEADERS install-applewmprotopkgconfigDATA \ install-bigreqsHEADERS install-bigreqsprotopkgconfigDATA \ install-calibrateprotopkgconfigDATA install-compatHEADERS \ install-compositeHEADERS install-compositeprotopkgconfigDATA \ install-damageHEADERS install-damageprotopkgconfigDATA \ install-dist_docDATA install-dmxHEADERS \ install-dmxprotopkgconfigDATA install-dpmsprotopkgconfigDATA \ install-dri2HEADERS install-dri2protopkgconfigDATA \ install-dri3HEADERS install-dri3protopkgconfigDATA \ install-evieHEADERS install-evieprotopkgconfigDATA \ install-fixesHEADERS install-fixesprotopkgconfigDATA \ install-fontcacheHEADERS install-fontcacheprotopkgconfigDATA \ install-fontsHEADERS install-fontsprotopkgconfigDATA \ install-glHEADERS install-glinternalHEADERS \ install-glprotopkgconfigDATA install-inputHEADERS \ install-inputprotopkgconfigDATA install-kbHEADERS \ install-kbprotopkgconfigDATA install-lg3dHEADERS \ install-lg3dprotopkgconfigDATA install-miscmanDATA \ install-nodist_xprotoHEADERS install-pmprotopkgconfigDATA \ install-presentHEADERS install-presentprotopkgconfigDATA \ install-printHEADERS install-printprotopkgconfigDATA \ install-randrHEADERS install-randrprotopkgconfigDATA \ install-recordHEADERS install-recordprotopkgconfigDATA \ install-renderHEADERS install-renderprotopkgconfigDATA \ install-resourceHEADERS install-resourceprotopkgconfigDATA \ install-scrnsaverHEADERS install-scrnsaverprotopkgconfigDATA \ install-trapHEADERS install-trapprotopkgconfigDATA \ install-videoHEADERS install-videoprotopkgconfigDATA \ install-windowswmHEADERS install-windowswmprotopkgconfigDATA \ install-x11protopkgconfigDATA install-xcmiscHEADERS \ install-xcmiscprotopkgconfigDATA install-xextHEADERS \ install-xextprotopkgconfigDATA install-xf86bigfontHEADERS \ install-xf86bigfontprotopkgconfigDATA install-xf86dgaHEADERS \ install-xf86dgaprotopkgconfigDATA install-xf86driHEADERS \ install-xf86driprotopkgconfigDATA install-xf86miscHEADERS \ install-xf86miscprotopkgconfigDATA install-xf86rushHEADERS \ install-xf86rushprotopkgconfigDATA install-xf86vidmodeHEADERS \ install-xf86vidmodeprotopkgconfigDATA install-xineramaHEADERS \ install-xineramaprotopkgconfigDATA install-xprotoHEADERS \ install-xproxymngHEADERS install-xwaylandprotoHEADERS \ install-xwaylandprotopkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-XCalibrateincludeHEADERS \ uninstall-applewmHEADERS uninstall-applewmprotopkgconfigDATA \ uninstall-bigreqsHEADERS uninstall-bigreqsprotopkgconfigDATA \ uninstall-calibrateprotopkgconfigDATA uninstall-compatHEADERS \ uninstall-compositeHEADERS \ uninstall-compositeprotopkgconfigDATA uninstall-damageHEADERS \ uninstall-damageprotopkgconfigDATA uninstall-dist_docDATA \ uninstall-dmxHEADERS uninstall-dmxprotopkgconfigDATA \ uninstall-dpmsprotopkgconfigDATA uninstall-dri2HEADERS \ uninstall-dri2protopkgconfigDATA uninstall-dri3HEADERS \ uninstall-dri3protopkgconfigDATA uninstall-evieHEADERS \ uninstall-evieprotopkgconfigDATA uninstall-fixesHEADERS \ uninstall-fixesprotopkgconfigDATA uninstall-fontcacheHEADERS \ uninstall-fontcacheprotopkgconfigDATA uninstall-fontsHEADERS \ uninstall-fontsprotopkgconfigDATA uninstall-glHEADERS \ uninstall-glinternalHEADERS uninstall-glprotopkgconfigDATA \ uninstall-inputHEADERS uninstall-inputprotopkgconfigDATA \ uninstall-kbHEADERS uninstall-kbprotopkgconfigDATA \ uninstall-lg3dHEADERS uninstall-lg3dprotopkgconfigDATA \ uninstall-miscmanDATA uninstall-nodist_xprotoHEADERS \ uninstall-pmprotopkgconfigDATA uninstall-presentHEADERS \ uninstall-presentprotopkgconfigDATA uninstall-printHEADERS \ uninstall-printprotopkgconfigDATA uninstall-randrHEADERS \ uninstall-randrprotopkgconfigDATA uninstall-recordHEADERS \ uninstall-recordprotopkgconfigDATA uninstall-renderHEADERS \ uninstall-renderprotopkgconfigDATA uninstall-resourceHEADERS \ uninstall-resourceprotopkgconfigDATA \ uninstall-scrnsaverHEADERS \ uninstall-scrnsaverprotopkgconfigDATA uninstall-trapHEADERS \ uninstall-trapprotopkgconfigDATA uninstall-videoHEADERS \ uninstall-videoprotopkgconfigDATA uninstall-windowswmHEADERS \ uninstall-windowswmprotopkgconfigDATA \ uninstall-x11protopkgconfigDATA uninstall-xcmiscHEADERS \ uninstall-xcmiscprotopkgconfigDATA uninstall-xextHEADERS \ uninstall-xextprotopkgconfigDATA uninstall-xf86bigfontHEADERS \ uninstall-xf86bigfontprotopkgconfigDATA \ uninstall-xf86dgaHEADERS uninstall-xf86dgaprotopkgconfigDATA \ uninstall-xf86driHEADERS uninstall-xf86driprotopkgconfigDATA \ uninstall-xf86miscHEADERS uninstall-xf86miscprotopkgconfigDATA \ uninstall-xf86rushHEADERS uninstall-xf86rushprotopkgconfigDATA \ uninstall-xf86vidmodeHEADERS \ uninstall-xf86vidmodeprotopkgconfigDATA \ uninstall-xineramaHEADERS uninstall-xineramaprotopkgconfigDATA \ uninstall-xprotoHEADERS uninstall-xproxymngHEADERS \ uninstall-xwaylandprotoHEADERS \ uninstall-xwaylandprotopkgconfigDATA .MAKE: $(am__recursive_targets) check-am install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-TESTS check-am clean clean-cscope \ clean-generic cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip dist-zstd distcheck distclean \ distclean-generic distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-XCalibrateincludeHEADERS install-am \ install-applewmHEADERS install-applewmprotopkgconfigDATA \ install-bigreqsHEADERS install-bigreqsprotopkgconfigDATA \ install-calibrateprotopkgconfigDATA install-compatHEADERS \ install-compositeHEADERS install-compositeprotopkgconfigDATA \ install-damageHEADERS install-damageprotopkgconfigDATA \ install-data install-data-am install-dist_docDATA \ install-dmxHEADERS install-dmxprotopkgconfigDATA \ install-dpmsprotopkgconfigDATA install-dri2HEADERS \ install-dri2protopkgconfigDATA install-dri3HEADERS \ install-dri3protopkgconfigDATA install-dvi install-dvi-am \ install-evieHEADERS install-evieprotopkgconfigDATA \ install-exec install-exec-am install-fixesHEADERS \ install-fixesprotopkgconfigDATA install-fontcacheHEADERS \ install-fontcacheprotopkgconfigDATA install-fontsHEADERS \ install-fontsprotopkgconfigDATA install-glHEADERS \ install-glinternalHEADERS install-glprotopkgconfigDATA \ install-html install-html-am install-info install-info-am \ install-inputHEADERS install-inputprotopkgconfigDATA \ install-kbHEADERS install-kbprotopkgconfigDATA \ install-lg3dHEADERS install-lg3dprotopkgconfigDATA install-man \ install-miscmanDATA install-nodist_xprotoHEADERS install-pdf \ install-pdf-am install-pmprotopkgconfigDATA \ install-presentHEADERS install-presentprotopkgconfigDATA \ install-printHEADERS install-printprotopkgconfigDATA \ install-ps install-ps-am install-randrHEADERS \ install-randrprotopkgconfigDATA install-recordHEADERS \ install-recordprotopkgconfigDATA install-renderHEADERS \ install-renderprotopkgconfigDATA install-resourceHEADERS \ install-resourceprotopkgconfigDATA install-scrnsaverHEADERS \ install-scrnsaverprotopkgconfigDATA install-strip \ install-trapHEADERS install-trapprotopkgconfigDATA \ install-videoHEADERS install-videoprotopkgconfigDATA \ install-windowswmHEADERS install-windowswmprotopkgconfigDATA \ install-x11protopkgconfigDATA install-xcmiscHEADERS \ install-xcmiscprotopkgconfigDATA install-xextHEADERS \ install-xextprotopkgconfigDATA install-xf86bigfontHEADERS \ install-xf86bigfontprotopkgconfigDATA install-xf86dgaHEADERS \ install-xf86dgaprotopkgconfigDATA install-xf86driHEADERS \ install-xf86driprotopkgconfigDATA install-xf86miscHEADERS \ install-xf86miscprotopkgconfigDATA install-xf86rushHEADERS \ install-xf86rushprotopkgconfigDATA install-xf86vidmodeHEADERS \ install-xf86vidmodeprotopkgconfigDATA install-xineramaHEADERS \ install-xineramaprotopkgconfigDATA install-xprotoHEADERS \ install-xproxymngHEADERS install-xwaylandprotoHEADERS \ install-xwaylandprotopkgconfigDATA installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am recheck tags tags-am uninstall \ uninstall-XCalibrateincludeHEADERS uninstall-am \ uninstall-applewmHEADERS uninstall-applewmprotopkgconfigDATA \ uninstall-bigreqsHEADERS uninstall-bigreqsprotopkgconfigDATA \ uninstall-calibrateprotopkgconfigDATA uninstall-compatHEADERS \ uninstall-compositeHEADERS \ uninstall-compositeprotopkgconfigDATA uninstall-damageHEADERS \ uninstall-damageprotopkgconfigDATA uninstall-dist_docDATA \ uninstall-dmxHEADERS uninstall-dmxprotopkgconfigDATA \ uninstall-dpmsprotopkgconfigDATA uninstall-dri2HEADERS \ uninstall-dri2protopkgconfigDATA uninstall-dri3HEADERS \ uninstall-dri3protopkgconfigDATA uninstall-evieHEADERS \ uninstall-evieprotopkgconfigDATA uninstall-fixesHEADERS \ uninstall-fixesprotopkgconfigDATA uninstall-fontcacheHEADERS \ uninstall-fontcacheprotopkgconfigDATA uninstall-fontsHEADERS \ uninstall-fontsprotopkgconfigDATA uninstall-glHEADERS \ uninstall-glinternalHEADERS uninstall-glprotopkgconfigDATA \ uninstall-inputHEADERS uninstall-inputprotopkgconfigDATA \ uninstall-kbHEADERS uninstall-kbprotopkgconfigDATA \ uninstall-lg3dHEADERS uninstall-lg3dprotopkgconfigDATA \ uninstall-miscmanDATA uninstall-nodist_xprotoHEADERS \ uninstall-pmprotopkgconfigDATA uninstall-presentHEADERS \ uninstall-presentprotopkgconfigDATA uninstall-printHEADERS \ uninstall-printprotopkgconfigDATA uninstall-randrHEADERS \ uninstall-randrprotopkgconfigDATA uninstall-recordHEADERS \ uninstall-recordprotopkgconfigDATA uninstall-renderHEADERS \ uninstall-renderprotopkgconfigDATA uninstall-resourceHEADERS \ uninstall-resourceprotopkgconfigDATA \ uninstall-scrnsaverHEADERS \ uninstall-scrnsaverprotopkgconfigDATA uninstall-trapHEADERS \ uninstall-trapprotopkgconfigDATA uninstall-videoHEADERS \ uninstall-videoprotopkgconfigDATA uninstall-windowswmHEADERS \ uninstall-windowswmprotopkgconfigDATA \ uninstall-x11protopkgconfigDATA uninstall-xcmiscHEADERS \ uninstall-xcmiscprotopkgconfigDATA uninstall-xextHEADERS \ uninstall-xextprotopkgconfigDATA uninstall-xf86bigfontHEADERS \ uninstall-xf86bigfontprotopkgconfigDATA \ uninstall-xf86dgaHEADERS uninstall-xf86dgaprotopkgconfigDATA \ uninstall-xf86driHEADERS uninstall-xf86driprotopkgconfigDATA \ uninstall-xf86miscHEADERS uninstall-xf86miscprotopkgconfigDATA \ uninstall-xf86rushHEADERS uninstall-xf86rushprotopkgconfigDATA \ uninstall-xf86vidmodeHEADERS \ uninstall-xf86vidmodeprotopkgconfigDATA \ uninstall-xineramaHEADERS uninstall-xineramaprotopkgconfigDATA \ uninstall-xprotoHEADERS uninstall-xproxymngHEADERS \ uninstall-xwaylandprotoHEADERS \ uninstall-xwaylandprotopkgconfigDATA .PRECIOUS: Makefile .man.$(MISC_MAN_SUFFIX): man $(MKDIR_P) man $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xorgproto-2023.2/COPYING-xf86bigfontproto0000644000175000017500000000233714443010026015046 00000000000000Permission 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project. xorgproto-2023.2/glproto.pc.in0000644000175000017500000000020214443010026013171 00000000000000prefix=@prefix@ includedir=@includedir@ Name: GLProto Description: GL extension headers Version: 1.4.17 Cflags: -I${includedir} xorgproto-2023.2/COPYING-evieproto0000644000175000017500000000212214443010026013622 00000000000000Copyright (c) 2003, Oracle and/or its affiliates. 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 (including the next paragraph) 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 OR COPYRIGHT HOLDERS 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. xorgproto-2023.2/COPYING-xcmiscproto0000644000175000017500000000216614443010026014170 00000000000000Copyright 1993, 1994, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. xorgproto-2023.2/xproxymngproto.pc.in0000644000175000017500000000024114443010026014645 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XProxyManagementProtocol Description: X Proxy Management Protocol headers Version: 1.0.3 Cflags: -I${includedir} xorgproto-2023.2/xineramaproto.pc.in0000644000175000017500000000021514443010026014377 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XineramaProto Description: Xinerama extension headers Version: 1.2.1 Cflags: -I${includedir} xorgproto-2023.2/COPYING-recordproto0000644000175000017500000000174114443010026014156 00000000000000Copyright 1995 Network Computing Devices 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 Network Computing Devices not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES 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. xorgproto-2023.2/xf86vidmodeproto.pc.in0000644000175000017500000000022314443010026014735 00000000000000prefix=@prefix@ includedir=@includedir@ Name: XF86VidModeProto Description: XF86VidMode extension headers Version: 2.3.1 Cflags: -I${includedir} xorgproto-2023.2/man/0000755000175000017500000000000014443010035011413 500000000000000xorgproto-2023.2/man/Xprint.sgml0000644000175000017500000006664114443010026013520 00000000000000 Xprint __miscmansuffix__ Xprint The "X print service" - a portable, network-transparent printing system based on the X11 protocol Xprint is a very flexible, extensible, scalable, client/server print system based on ISO 10175 (and some other specs) and the X11 rendering protocol. Using Xprint an application can search, query and use devices like printers, FAX machines or create documents in formats like PDF. In particular, an application can seek a printer, query supported attributes (like paper size, trays, fonts etc.), configure the printer device to match it’s needs and print on it like on any other X device reusing parts of the code which is used for the video card Xserver. OVERVIEW The "X Print Service" technology allows X rendering to devices such as printers and fax. Most of the service is available in the X11 technology stack as Xp, with the remainder in single toolkit stacks (e.g. DtPrint for CDE). Modifications have also been made to the LessTif/Motif/Qt technology stacks to support Xprint. The Xp portion consists of: Xp Extension for the X-Server (included in the X-Server Xprt) Xp Extension API for the client side (libXp/libXprintUtils) PCL ddx driver that converts core X to native PCL PDF ddx driver that converts core X to native PDF PostScript ddx driver that converts core X to native PostScript Raster ddx driver that generates xwd rasters which can be converted to PCL, PDF or PostScript rasters From an X clients perspective, it can attach to one of two nearly identical X-Servers, a "Video" X-Server, and a "Print" X-Server which has the additional Xp capability but otherwise looks and behaves the same. HOW THE X PRINT SERVICE WORKS The X Print Service expands on the traditional X-Server and Xlib world in four ways. Most obvious is the use of "print ddx drivers" instead of "video ddx drivers". While a video ddx driver modifies pixels in a video frame buffer, a print ddx driver generates "page description language (PDL)" output (such as PCL, PDF or PostScript) or sends the print rendering instructions to a platform-specific print API (like Win32/GDI). Once a print ddx driver generates PDL output, it can be sent to a spooler such as lp1 or retrieved by the client (to implement functionality like "print-to-file"). Though not currently done, a single X-Server can support both print and video ddx drivers. Since printers support "paged" output, unlike video, a portion of the Xp Extension supports APIs to delineate printed output. For example, XpStartPage and XpEndPage tell the X-Server where a physical page starts and ends in an otherwise continuous stream of X rendering primitives. Likewise, XpStartJob and XpEndJob determine when a collection of pages starts and ends. XpEndJob typically causes the generated PDL to be submitted to a spooler, such as lp1. Since printers have extensive capabilities, another portion of the Xp Extension supports APIs to manipulate "print contexts". Once a printer is selected using the Xp Extension API, a print context to represent it can be created. A print context embodies the printer selected - it contains the printer's default capabilities, selectable range of capabilities, printer state, and generated output. Some "attributes" within the print context can be modified by the user, and the X-Server and print ddx driver will react accordingly. For example, the attribute "content-orientation" can be set to "landscape" or "portrait" (if the printer supports these values - which can be queried using the Xprint API as well). Since printers can have "built in" fonts, the Xp Extension in the X-Server works with the print ddx drivers to make available (for printing only) additional fonts on a per print context basis. When a print context is created and set for a given printer, the X font calls may be able to access additional printer fonts. To do this (typically), the X-Server must have access to "printer metric files" (.pmf) that describe at minimum the metrics of the built in fonts. USAGE There are three tasks to start the X Print Service: configuring the X Print Server, starting the X Print Service configuring the user session so that clients can find the running X Print Service The tasks are described in detail below. SERVER CONFIGURATION The X Print Server (Xprt) can read a number of configuration files which control its behavior and support for printers. Each vendor platform has a default location for this information. Xprt can also read the environment variable XPCONFIGDIR to locate alternate configuration directories. Common settings include: export XPCONFIGDIR=/X11/lib/X11/XpConfig/ export XPCONFIGDIR=/proj/x11/xc/programs/Xserver/XpConfig/ Xprt has many built-in defaults, and lacking any configuration files, will immediately try to support all printers visible via lpstat1. In order of importance for configuration by a system administrator, the configuration files for a "C" locale are as follows (see Xprt__appmansuffix__ for more details (including support for non-"C" locales)): ${XPCONFIGDIR}/C/print/Xprinters 'Xprinters' is the top most configuration file. It tells Xprt which specific printer names (e.g. mylaser) should be supported, and whether lpstat1 or other commands should be used to automatically supplement the list of printers. ${XPCONFIGDIR}/C/print/attributes/printer The 'printer' file maps printer names to model configurations (see 'model-config' below). For example, "mylaser" could be mapped to a "HPDJ1600C", and all other arbitrary printers could be mapped to a default, such as "HPLJ4SI". When depending on lpstat1 in the Xprinters file, setting up defaults in 'printer' becomes all the more important. ${XPCONFIGDIR}/C/print/attributes/document The 'document' file specifies the initial document values for any print jobs. For example, which paper tray to use, what default resolution, etc. ${XPCONFIGDIR}/C/print/attributes/job The 'job' file specifies the initial job values for any print jobs. For example, "notification-profile" can be set so that when a print job is successfully sent to a printer, e-mail is sent to the user. ${XPCONFIGDIR}/C/print/models/PSdefault/model-config ${XPCONFIGDIR}/C/print/models/PSdefault/fonts/fonts.dir ${XPCONFIGDIR}/C/print/models/PSdefault/fonts/9nb00051.pmf ${XPCONFIGDIR}/C/print/models/PSdefault/fonts/9nb00093.pmf The 'model-config' file has attributes that describe the printer model’s capabilities and default settings. Printer model fonts may also be present. The model-config file also identifies the print ddx driver to be used. For each printer model supported, a complete hierarchy of files should exist. In most cases, these files do not need to be modified. ${XPCONFIGDIR}/C/print/ddx-config/raster/pcl ${XPCONFIGDIR}/C/print/ddx-config/raster/pdf ${XPCONFIGDIR}/C/print/ddx-config/raster/postscript The print ddx drivers can have highly specific configuration files to control their behavior. In most cases, these files do not need to be modified. More information in how to configure and customize the X print server can be found in the Xprt__appmansuffix__ manual page. STARTING UP The summary checklist for starting the X Print Service is as follows: Choose an execution model for the X Print Service. The X Print Service can be run on a per-user session basis, per machine basis, or can be run on a few machines globally available to a number of users. If print jobs are to be submitted to a spooler (almost always the case), make sure all needed printers are available to the spooler subsystem (most often lp1) on the same machine running the X Print Service. Configure the X Print Server. See ``X Print Server Configuration''. Depending on #1, start the X Print Server process "Xprt", and then the toolkit-specific Print Dialog Manager Daemon process (such as CDEnext's "dtpdmd") at the appropriate times. Note that libXprintUtils-based applications/toolkits do not need a Print Dialog Manager Daemon process to use Xprint. The details are described below. Because the X Print Service is based on X, it can be easily distributed. The most significant factors in which execution model to choose will be driven by: how many printers will be accessible through the printer subsystem on any given machine. A system administrator may choose to cluster printers on a few given machines, or scatter them across an organization and possibly make extensive use of remote spoolers to make them globally available. how many machines will need a copy of the X Print Server configuration files. The files have been architected so that one super-set version of them can be maintained and distributed (e.g. via NFS), and a per-machine or per-user version of the `Xprinters' is all that is needed to have the appropriate information in them utilized or ignored. how many users can demand services from a given X Print Service. With the above in mind, some obvious execution models include: Global - in this model, the system administrator is choosing to run the X Print Service on a *few* select machines with appropriate printers configured, and allow clients access to the global resource. This can centralize the administration of printers and configuration files, but may have to be monitored for performance loading. Startup would likely be done by boot-up scripts (such as /etc/init.d/xprint). Per-machine - every machine with potential X Print Service users would run the service. Printer and configuration file administration is decentralized, and usage would be limited to the users on the machine. Startup would likely be done by boot-up scripts (such as /etc/init.d/xprint). Per-user session - every user would run an entire X Print Service for themselves. In the future, the Video X Server normally started may contain Print X Server capability, so this model becomes very natural. Startup would likely be done at session login or by launching actions or processes manually once the user logs in. Note: Daemons like "dtpdmd" must be started after Xprt. Starting of the processes is straight forward. In strict order (example is for manually starting the X print server for CDEnext usage): [machineA] % Xprt [-XpFile <Xprinters file>] [:dispNum] & Note that Xprt will look for configuration files in either a default location or where XPCONFIGDIR points. specifies an alternate `Xprinters' file, rather than the default one or `${XPCONFIGDIR}/C/print/Xprinters'. [machineA] % dtpdmd -d machineA[:dispNum] [-l /tmp/dtpdmd.log] & The dtpdmd will maintain an X-Selection on the X-Server, and will start dtpdm's as required to service requests. In all but the per-user session model, the machine running the dtpdmd (thus dtpdm's) will need display authorization to the users video display. CLIENT CONFIGURATION Once a X Print Server and dtpdmd have been started -- many of them in some cases -- clients will need to find and use them. There are two mechanisms that allow clients to discover X Print Servers and printers. "X Print Specifier" - assuming usage of the DtPrint/XprintUtils-based print applications, the following notation is understood: printer_name@machine[:dispNum] For example: colorlj7@printhub:2 In the above example, the X Print Server running at `printhub:2' is assumed to support the printer named `colorlj7'. ${XPSERVERLIST} - assuming usage of the DtPrint print dialogs, the environment variable ${XPSERVERLIST} can contain a list of X Print Servers. For example: XPSERVERLIST="printhub:2 printhub:3 otherdept:0" Then in the dialogs, only a printer name needs to be entered. The dialog will then search the X Print Servers in ${XPSERVERLIST} for a server than supports the printer, and then establish contact. END-USER SEQUENCE From most CDEnext applications, printing is accomplished by bringing down the <File> menu and selecting <Print...>. This will result in the DtPrintSetupBox dialog, which will request the name of a printer, and offer limited capability to configure print options (e.g. number of copies). If the user wishes, they can select <Setup...>, which will start a dtpdm capable of modifying additional print options. Finally, the user should select <Print>. ENVIRONMENT ${XPCONFIGDIR} This environment variable points to the root of the Xprint server configuration directory hierarchy. If the variable is not defined, the default path is be assumed. The default path may be /usr/X11R6/lib/X11/xserver/, /usr/lib/X11/xserver/, /usr/share/Xprint/xserver/ or /usr/openwin/server/etc/XpConfig, depending on the system, and may be configured in /etc/init.d/xprint. ${LANG} This environment variable selects the locale settings used by the Xprint server. Xprt allows language-specific settings (stored in ${XPCONFIGDIR}/${LANG}/print/) which will override the default settings (stored in ${XPCONFIGDIR}/C/print/). If ${LANG} is not set "C" is assumed. ${XPSERVERLIST} The environment variable ${XPSERVERLIST} contains a list of display identifiers (separated by whitespace) which tell an application where it can find the Xprint servers. Usually ${XPSERVERLIST} is set by the profile startup scripts (e.g. /etc/profile or /etc/profile.d/xprint.sh) using the output of /etc/init.d/xprint get_xpserverlist. Example: export XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist`" Alternatively ${XPSERVERLIST} can be set manually. Example: export XPSERVERLIST="littlecat:80 bitdog:72" instructs an application to find an Xprint server at display 80 on the machine "littlecat" and at display 72 on the machine bigdog. ${XPRINTER} The environment variable ${XPRINTER} defines the default printer used by print applications. The syntax is either printername or printername@display. Examples: XPRINTER=ps003 tells an application to look for the first printer named "ps003" on all Xprint servers. XPRINTER=hplaser19@littlecat:80 tells an application to use the printer "hplaser19" on the Xprint server at display "littlecat:80". If ${XPRINTER} is not set the applications will examine the values of the ${PDPRINTER}, ${LPDEST}, and ${PRINTER} environment variables (in that order). SEE ALSO X11__miscmansuffix__ xplsprinters__appmansuffix__ xprehashprinterlist__appmansuffix__ xphelloworld__appmansuffix__ xpxmhelloworld__appmansuffix__ xpawhelloworld__appmansuffix__ xpxthelloworld__appmansuffix__ xpsimplehelloworld__appmansuffix__ Xserver__appmansuffix__ Xprt__appmansuffix__ libXp__libmansuffix__ libXprintUtils__libmansuffix__ libXprintAppUtils__libmansuffix__ XmPrintShell__libmansuffix__ XawPrintShell__libmansuffix__ Xprint FAQ (http://xprint.mozdev.org/docs/Xprint_FAQ.html) Xprint main site (http://xprint.mozdev.org/) AUTHORS This manual page was written by Roland Mainz roland.mainz@nrubsig.org based on the original X11R6.6 xc/programs/Xserver/XpConfig/README. xorgproto-2023.2/man/Xprint.man0000644000175000017500000003710014443010026013315 00000000000000.\" -*- coding: us-ascii -*- .TH Xprint __miscmansuffix__ "8 October 2004" .SH NAME Xprint \- The "X print service" - a portable, network-transparent printing system based on the X11 protocol .SH SYNOPSIS Xprint is a very flexible, extensible, scalable, client/server print system based on ISO 10175 (and some other specs) and the X11 rendering protocol. Using Xprint an application can search, query and use devices like printers, FAX machines or create documents in formats like PDF. In particular, an application can seek a printer, query supported attributes (like paper size, trays, fonts etc.), configure the printer device to match it\(cqs needs and print on it like on any other X device reusing parts of the code which is used for the video card Xserver. .SH OVERVIEW The "X Print Service" technology allows X rendering to devices such as printers and fax. Most of the service is available in the X11 technology stack as Xp, with the remainder in single toolkit stacks (e.g. DtPrint for CDE). Modifications have also been made to the LessTif/Motif/Qt technology stacks to support Xprint. .PP The Xp portion consists of: .TP 0.2i \(bu Xp Extension for the X-Server (included in the X-Server Xprt) .TP 0.2i \(bu Xp Extension API for the client side (libXp/libXprintUtils) .TP 0.2i \(bu PCL ddx driver that converts core X to native PCL .TP 0.2i \(bu PDF ddx driver that converts core X to native PDF .TP 0.2i \(bu PostScript ddx driver that converts core X to native PostScript .TP 0.2i \(bu Raster ddx driver that generates xwd rasters which can be converted to PCL, PDF or PostScript rasters .PP .PP From an X clients perspective, it can attach to one of two nearly identical X-Servers, a "Video" X-Server, and a "Print" X-Server which has the additional Xp capability but otherwise looks and behaves the same. .SH "HOW THE X PRINT SERVICE WORKS" The X Print Service expands on the traditional X-Server and Xlib world in four ways. .TP 0.4i 1. Most obvious is the use of "print ddx drivers" instead of "video ddx drivers". While a video ddx driver modifies pixels in a video frame buffer, a print ddx driver generates "page description language (PDL)" output (such as PCL, PDF or PostScript) or sends the print rendering instructions to a platform-specific print API (like Win32/GDI). Once a print ddx driver generates PDL output, it can be sent to a spooler such as \fBlp\fR(1) or retrieved by the client (to implement functionality like "print-to-file"). Though not currently done, a single X-Server can support both print and video ddx drivers. .TP 0.4i 2. Since printers support "paged" output, unlike video, a portion of the Xp Extension supports APIs to delineate printed output. For example, XpStartPage and XpEndPage tell the X-Server where a physical page starts and ends in an otherwise continuous stream of X rendering primitives. Likewise, XpStartJob and XpEndJob determine when a collection of pages starts and ends. XpEndJob typically causes the generated PDL to be submitted to a spooler, such as \fBlp\fR(1). .TP 0.4i 3. Since printers have extensive capabilities, another portion of the Xp Extension supports APIs to manipulate "print contexts". Once a printer is selected using the Xp Extension API, a print context to represent it can be created. A print context embodies the printer selected - it contains the printer's default capabilities, selectable range of capabilities, printer state, and generated output. Some "attributes" within the print context can be modified by the user, and the X-Server and print ddx driver will react accordingly. For example, the attribute "content-orientation" can be set to "landscape" or "portrait" (if the printer supports these values - which can be queried using the Xprint API as well). .TP 0.4i 4. Since printers can have "built in" fonts, the Xp Extension in the X-Server works with the print ddx drivers to make available (for printing only) additional fonts on a per print context basis. When a print context is created and set for a given printer, the X font calls may be able to access additional printer fonts. To do this (typically), the X-Server must have access to "printer metric files" (.pmf) that describe at minimum the metrics of the built in fonts. .PP .SH USAGE There are three tasks to start the X Print Service: .TP 0.4i 1. configuring the X Print Server, .TP 0.4i 2. starting the X Print Service .TP 0.4i 3. configuring the user session so that clients can find the running X Print Service .PP .PP The tasks are described in detail below. .SH "SERVER CONFIGURATION" The X Print Server (Xprt) can read a number of configuration files which control its behavior and support for printers. Each vendor platform has a default location for this information. Xprt can also read the environment variable \fBXPCONFIGDIR\fR to locate alternate configuration directories. Common settings include: export XPCONFIGDIR=/X11/lib/X11/XpConfig/ .PP export XPCONFIGDIR=/proj/x11/xc/programs/Xserver/XpConfig/ .PP Xprt has many built-in defaults, and lacking any configuration files, will immediately try to support all printers visible via \fBlpstat\fR(1). .PP In order of importance for configuration by a system administrator, the configuration files for a "C" locale are as follows (see \fBXprt\fR(__appmansuffix__) for more details (including support for non-"C" locales)): .TP \fB${XPCONFIGDIR}/C/print/Xprinters\fR \&'Xprinters' is the top most configuration file. It tells Xprt which specific printer names (e.g. mylaser) should be supported, and whether \fBlpstat\fR(1) or other commands should be used to automatically supplement the list of printers. .TP \fB${XPCONFIGDIR}/C/print/attributes/printer\fR The 'printer' file maps printer names to model configurations (see 'model-config' below). For example, "mylaser" could be mapped to a "HPDJ1600C", and all other arbitrary printers could be mapped to a default, such as "HPLJ4SI". When depending on \fBlpstat\fR(1) in the Xprinters file, setting up defaults in 'printer' becomes all the more important. .TP \fB${XPCONFIGDIR}/C/print/attributes/document\fR The 'document' file specifies the initial document values for any print jobs. For example, which paper tray to use, what default resolution, etc. .TP \fB${XPCONFIGDIR}/C/print/attributes/job\fR The 'job' file specifies the initial job values for any print jobs. For example, "notification-profile" can be set so that when a print job is successfully sent to a printer, e-mail is sent to the user. .TP \fB${XPCONFIGDIR}/C/print/models/PSdefault/model\-config\fR, \fB${XPCONFIGDIR}/C/print/models/PSdefault/fonts/fonts.dir\fR, \fB${XPCONFIGDIR}/C/print/models/PSdefault/fonts/9nb00051.pmf\fR, \fB${XPCONFIGDIR}/C/print/models/PSdefault/fonts/9nb00093.pmf\fR The 'model-config' file has attributes that describe the printer model\(cqs capabilities and default settings. Printer model fonts may also be present. The model-config file also identifies the print ddx driver to be used. For each printer model supported, a complete hierarchy of files should exist. In most cases, these files do not need to be modified. .TP \fB${XPCONFIGDIR}/C/print/ddx\-config/raster/pcl\fR, \fB${XPCONFIGDIR}/C/print/ddx\-config/raster/pdf\fR, \fB${XPCONFIGDIR}/C/print/ddx\-config/raster/postscript\fR The print ddx drivers can have highly specific configuration files to control their behavior. In most cases, these files do not need to be modified. .PP More information in how to configure and customize the X print server can be found in the \fBXprt\fR(__appmansuffix__) manual page. .SH "STARTING UP" The summary checklist for starting the X Print Service is as follows: .TP 0.4i 1. Choose an execution model for the X Print Service. The X Print Service can be run on a per-user session basis, per machine basis, or can be run on a few machines globally available to a number of users. .TP 0.4i 2. If print jobs are to be submitted to a spooler (almost always the case), make sure all needed printers are available to the spooler subsystem (most often \fBlp\fR(1)) on the same machine running the X Print Service. .TP 0.4i 3. Configure the X Print Server. See ``X Print Server Configuration''. .TP 0.4i 4. Depending on #1, start the X Print Server process "Xprt", and then the toolkit-specific Print Dialog Manager Daemon process (such as CDEnext's "dtpdmd") at the appropriate times. Note that libXprintUtils-based applications/toolkits do not need a Print Dialog Manager Daemon process to use Xprint. .PP The details are described below. .PP Because the X Print Service is based on X, it can be easily distributed. The most significant factors in which execution model to choose will be driven by: .TP 0.2i \(bu how many printers will be accessible through the printer subsystem on any given machine. A system administrator may choose to cluster printers on a few given machines, or scatter them across an organization and possibly make extensive use of remote spoolers to make them globally available. .TP 0.2i \(bu how many machines will need a copy of the X Print Server configuration files. The files have been architected so that one super-set version of them can be maintained and distributed (e.g. via NFS), and a per-machine or per-user version of the `Xprinters' is all that is needed to have the appropriate information in them utilized or ignored. .TP 0.2i \(bu how many users can demand services from a given X Print Service. .PP With the above in mind, some obvious execution models include: .TP 0.2i \(bu Global - in this model, the system administrator is choosing to run the X Print Service on a *few* select machines with appropriate printers configured, and allow clients access to the global resource. This can centralize the administration of printers and configuration files, but may have to be monitored for performance loading. Startup would likely be done by boot-up scripts (such as \fB/etc/init.d/xprint\fR). .TP 0.2i \(bu Per-machine - every machine with potential X Print Service users would run the service. Printer and configuration file administration is decentralized, and usage would be limited to the users on the machine. Startup would likely be done by boot-up scripts (such as \fB/etc/init.d/xprint\fR). .TP 0.2i \(bu Per-user session - every user would run an entire X Print Service for themselves. In the future, the Video X Server normally started may contain Print X Server capability, so this model becomes very natural. Startup would likely be done at session login or by launching actions or processes manually once the user logs in. Note: Daemons like "dtpdmd" must be started after Xprt. .PP .PP Starting of the processes is straight forward. In strict order (example is for manually starting the X print server for CDEnext usage): .TP 0.4i 1. .nf [machineA] % Xprt [\-XpFile ] [:dispNum] & .fi Note that Xprt will look for configuration files in either a default location or where \fBXPCONFIGDIR\fR points. \fB\-XpFile\fR specifies an alternate `Xprinters' file, rather than the default one or `\fB${XPCONFIGDIR}/C/print/Xprinters\fR'. .TP 0.4i 2. .nf [machineA] % dtpdmd \-d machineA[:dispNum] [\-l /tmp/dtpdmd.log] & .fi The dtpdmd will maintain an X-Selection on the X-Server, and will start dtpdm's as required to service requests. .PP .PP In all but the per-user session model, the machine running the dtpdmd (thus dtpdm's) will need display authorization to the users video display. .SH "CLIENT CONFIGURATION" Once a X Print Server and dtpdmd have been started -- many of them in some cases -- clients will need to find and use them. There are two mechanisms that allow clients to discover X Print Servers and printers. .TP 0.2i \(bu "X Print Specifier" - assuming usage of the DtPrint/XprintUtils-based print applications, the following notation is understood: .nf printer_name@machine[:dispNum] .fi For example: .nf colorlj7@printhub:2 .fi In the above example, the X Print Server running at `printhub:2' is assumed to support the printer named `colorlj7'. .TP 0.2i \(bu \fB${XPSERVERLIST}\fR - assuming usage of the DtPrint print dialogs, the environment variable \fB${XPSERVERLIST}\fR can contain a list of X Print Servers. For example: .nf XPSERVERLIST="printhub:2 printhub:3 otherdept:0" .fi Then in the dialogs, only a printer name needs to be entered. The dialog will then search the X Print Servers in \fB${XPSERVERLIST}\fR for a server than supports the printer, and then establish contact. .PP .SH "END-USER SEQUENCE" From most CDEnext applications, printing is accomplished by bringing down the menu and selecting . This will result in the DtPrintSetupBox dialog, which will request the name of a printer, and offer limited capability to configure print options (e.g. number of copies). If the user wishes, they can select , which will start a dtpdm capable of modifying additional print options. Finally, the user should select . .SH ENVIRONMENT .TP \fB${XPCONFIGDIR}\fR This environment variable points to the root of the Xprint server configuration directory hierarchy. If the variable is not defined, the default path is be assumed. The default path may be \fB/usr/X11R6/lib/X11/xserver/\fR, \fB/usr/lib/X11/xserver/\fR, \fB/usr/share/Xprint/xserver/\fR or \fB/usr/openwin/server/etc/XpConfig\fR, depending on the system, and may be configured in \fB/etc/init.d/xprint\fR. .TP \fB${LANG}\fR This environment variable selects the locale settings used by the Xprint server. Xprt allows language-specific settings (stored in \fB${XPCONFIGDIR}/${LANG}/print/\fR) which will override the default settings (stored in \fB${XPCONFIGDIR}/C/print/\fR). If \fB${LANG}\fR is not set "C" is assumed. .TP \fB${XPSERVERLIST}\fR The environment variable \fB${XPSERVERLIST}\fR contains a list of display identifiers (separated by whitespace) which tell an application where it can find the Xprint servers. Usually \fB${XPSERVERLIST}\fR is set by the profile startup scripts (e.g. \fB/etc/profile\fR or \fB/etc/profile.d/xprint.sh\fR) using the output of \fB/etc/init.d/xprint get_xpserverlist\fR. Example: .nf export XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist`" .fi Alternatively \fB${XPSERVERLIST}\fR can be set manually. Example: .nf export XPSERVERLIST="littlecat:80 bitdog:72" .fi instructs an application to find an Xprint server at display 80 on the machine "littlecat" and at display 72 on the machine bigdog. .TP \fB${XPRINTER}\fR The environment variable \fB${XPRINTER}\fR defines the default printer used by print applications. The syntax is either \fIprintername\fR or \fIprintername\fR@\fIdisplay\fR. Examples: .RS .TP \fBXPRINTER=ps003\fR tells an application to look for the first printer named "ps003" on all Xprint servers. .TP \fBXPRINTER=hplaser19@littlecat:80\fR tells an application to use the printer "hplaser19" on the Xprint server at display "littlecat:80". .RE If \fB${XPRINTER}\fR is not set the applications will examine the values of the \fB${PDPRINTER}\fR, \fB${LPDEST}\fR, and \fB${PRINTER}\fR environment variables (in that order). .SH "SEE ALSO" \fBX11\fR(__miscmansuffix__), \fBxplsprinters\fR(__appmansuffix__), \fBxprehashprinterlist\fR(__appmansuffix__), \fBxphelloworld\fR(__appmansuffix__), \fBxpxmhelloworld\fR(__appmansuffix__), \fBxpawhelloworld\fR(__appmansuffix__), \fBxpxthelloworld\fR(__appmansuffix__), \fBxpsimplehelloworld\fR(__appmansuffix__), \fBXserver\fR(__appmansuffix__), \fBXprt\fR(__appmansuffix__), \fBlibXp\fR(__libmansuffix__), \fBlibXprintUtils\fR(__libmansuffix__), \fBlibXprintAppUtils\fR(__libmansuffix__), \fBXmPrintShell\fR(__libmansuffix__), \fBXawPrintShell\fR(__libmansuffix__), Xprint FAQ (http://xprint.mozdev.org/docs/Xprint_FAQ.html), Xprint main site (http://xprint.mozdev.org/) .SH AUTHORS This manual page was written by Roland Mainz based on the original X11R6.6 \fBxc/programs/Xserver/XpConfig/README\fR. xorgproto-2023.2/COPYING-xf86miscproto0000644000175000017500000000233714443010026014351 00000000000000Permission 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 XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the XFree86 Project 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 XFree86 Project.