mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-08 14:48:08 +02:00
Merge xineramaproto
This commit is contained in:
commit
44e8650e60
8 changed files with 419 additions and 0 deletions
78
.gitignore
vendored
Normal file
78
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
#
|
||||
# X.Org module default exclusion patterns
|
||||
# The next section if for module specific patterns
|
||||
#
|
||||
# Do not edit the following section
|
||||
# GNU Build System (Autotools)
|
||||
aclocal.m4
|
||||
autom4te.cache/
|
||||
autoscan.log
|
||||
ChangeLog
|
||||
compile
|
||||
config.guess
|
||||
config.h
|
||||
config.h.in
|
||||
config.log
|
||||
config-ml.in
|
||||
config.py
|
||||
config.status
|
||||
config.status.lineno
|
||||
config.sub
|
||||
configure
|
||||
configure.scan
|
||||
depcomp
|
||||
.deps/
|
||||
INSTALL
|
||||
install-sh
|
||||
.libs/
|
||||
libtool
|
||||
libtool.m4
|
||||
ltmain.sh
|
||||
lt~obsolete.m4
|
||||
ltoptions.m4
|
||||
ltsugar.m4
|
||||
ltversion.m4
|
||||
Makefile
|
||||
Makefile.in
|
||||
mdate-sh
|
||||
missing
|
||||
mkinstalldirs
|
||||
*.pc
|
||||
py-compile
|
||||
stamp-h?
|
||||
symlink-tree
|
||||
texinfo.tex
|
||||
ylwrap
|
||||
|
||||
# Do not edit the following section
|
||||
# Edit Compile Debug Document Distribute
|
||||
*~
|
||||
*.[0-9]
|
||||
*.[0-9]x
|
||||
*.bak
|
||||
*.bin
|
||||
core
|
||||
*.dll
|
||||
*.exe
|
||||
*-ISO*.bdf
|
||||
*-JIS*.bdf
|
||||
*-KOI8*.bdf
|
||||
*.kld
|
||||
*.ko
|
||||
*.ko.cmd
|
||||
*.lai
|
||||
*.l[oa]
|
||||
*.[oa]
|
||||
*.obj
|
||||
*.patch
|
||||
*.so
|
||||
*.pcf.gz
|
||||
*.pdb
|
||||
*.tar.bz2
|
||||
*.tar.gz
|
||||
#
|
||||
# Add & Override patterns for xineramaproto
|
||||
#
|
||||
# Edit the following section as needed
|
||||
# For example, !report.pc overrides *.pc. See 'man gitignore'
|
||||
#
|
||||
45
COPYING
Normal file
45
COPYING
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
Copyright 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.
|
||||
19
Makefile.am
Normal file
19
Makefile.am
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
xineramadir = $(includedir)/X11/extensions
|
||||
xinerama_HEADERS = \
|
||||
panoramiXproto.h
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = xineramaproto.pc
|
||||
|
||||
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
dist-hook: ChangeLog INSTALL
|
||||
37
README
Normal file
37
README
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
X Xinerama Extension
|
||||
|
||||
Xinerama is an X extension that allows clients to query information
|
||||
about multiple physical screens controlled by a single X server that
|
||||
appear as a single screen to core X11 protocol operations.
|
||||
|
||||
This extension provides a common network protocol for querying information
|
||||
which may be provided by different underlying screen combination
|
||||
technologies in the X server, such as the original Xinerama multiplexer,
|
||||
or alternative implementations like Xrandr or TwinView.
|
||||
|
||||
Extension name: XINERAMA
|
||||
|
||||
All questions regarding this software should be directed at the
|
||||
Xorg mailing list:
|
||||
|
||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||
|
||||
Please submit bug reports to the Xorg bugzilla:
|
||||
|
||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||
|
||||
The master development code repository can be found at:
|
||||
|
||||
git://anongit.freedesktop.org/git/xorg/proto/xineramaproto
|
||||
|
||||
http://cgit.freedesktop.org/xorg/proto/xineramaproto
|
||||
|
||||
For patch submission instructions, see:
|
||||
|
||||
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||
|
||||
For more information on the git code manager, see:
|
||||
|
||||
http://wiki.x.org/wiki/GitPage
|
||||
|
||||
|
||||
17
autogen.sh
Executable file
17
autogen.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#! /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 xineramaproto"
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
exec "$srcdir"/configure "$@"
|
||||
fi
|
||||
21
configure.ac
Normal file
21
configure.ac
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
dnl
|
||||
dnl Process this file with autoconf to create configure.
|
||||
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([XineramaProto], [1.2.1],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
|
||||
# Initialize Automake
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
|
||||
# Require xorg-macros: XORG_DEFAULT_OPTIONS
|
||||
m4_ifndef([XORG_MACROS_VERSION],
|
||||
[m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
|
||||
XORG_MACROS_VERSION(1.3)
|
||||
XORG_DEFAULT_OPTIONS
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
xineramaproto.pc])
|
||||
AC_OUTPUT
|
||||
193
panoramiXproto.h
Normal file
193
panoramiXproto.h
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
/*****************************************************************
|
||||
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 B16;
|
||||
CARD8 clientMajor;
|
||||
CARD8 clientMinor;
|
||||
CARD16 unused B16;
|
||||
} xPanoramiXQueryVersionReq;
|
||||
|
||||
#define sz_xPanoramiXQueryVersionReq 8
|
||||
|
||||
typedef struct {
|
||||
CARD8 type; /* must be X_Reply */
|
||||
CARD8 pad1; /* unused */
|
||||
CARD16 sequenceNumber B16; /* last sequence number */
|
||||
CARD32 length B32; /* 0 */
|
||||
CARD16 majorVersion B16;
|
||||
CARD16 minorVersion B16;
|
||||
CARD32 pad2 B32; /* unused */
|
||||
CARD32 pad3 B32; /* unused */
|
||||
CARD32 pad4 B32; /* unused */
|
||||
CARD32 pad5 B32; /* unused */
|
||||
CARD32 pad6 B32; /* unused */
|
||||
} xPanoramiXQueryVersionReply;
|
||||
|
||||
#define sz_xPanoramiXQueryVersionReply 32
|
||||
|
||||
|
||||
typedef struct _PanoramiXGetState {
|
||||
CARD8 reqType; /* always PanoramiXReqCode */
|
||||
CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
|
||||
CARD16 length B16;
|
||||
CARD32 window B32;
|
||||
} xPanoramiXGetStateReq;
|
||||
#define sz_xPanoramiXGetStateReq 8
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
BYTE state;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 window B32;
|
||||
CARD32 pad1 B32; /* unused */
|
||||
CARD32 pad2 B32; /* unused */
|
||||
CARD32 pad3 B32; /* unused */
|
||||
CARD32 pad4 B32; /* unused */
|
||||
CARD32 pad5 B32; /* unused */
|
||||
} xPanoramiXGetStateReply;
|
||||
|
||||
#define sz_panoramiXGetStateReply 32
|
||||
|
||||
typedef struct _PanoramiXGetScreenCount {
|
||||
CARD8 reqType; /* always PanoramiXReqCode */
|
||||
CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */
|
||||
CARD16 length B16;
|
||||
CARD32 window B32;
|
||||
} xPanoramiXGetScreenCountReq;
|
||||
#define sz_xPanoramiXGetScreenCountReq 8
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
BYTE ScreenCount;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 window B32;
|
||||
CARD32 pad1 B32; /* unused */
|
||||
CARD32 pad2 B32; /* unused */
|
||||
CARD32 pad3 B32; /* unused */
|
||||
CARD32 pad4 B32; /* unused */
|
||||
CARD32 pad5 B32; /* unused */
|
||||
} xPanoramiXGetScreenCountReply;
|
||||
#define sz_panoramiXGetScreenCountReply 32
|
||||
|
||||
typedef struct _PanoramiXGetScreenSize {
|
||||
CARD8 reqType; /* always PanoramiXReqCode */
|
||||
CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
|
||||
CARD16 length B16;
|
||||
CARD32 window B32;
|
||||
CARD32 screen B32;
|
||||
} xPanoramiXGetScreenSizeReq;
|
||||
#define sz_xPanoramiXGetScreenSizeReq 12
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
CARD8 pad1;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 width B32;
|
||||
CARD32 height B32;
|
||||
CARD32 window B32;
|
||||
CARD32 screen B32;
|
||||
CARD32 pad2 B32; /* unused */
|
||||
CARD32 pad3 B32; /* unused */
|
||||
} xPanoramiXGetScreenSizeReply;
|
||||
#define sz_panoramiXGetScreenSizeReply 32
|
||||
|
||||
/************ Alternate protocol ******************/
|
||||
|
||||
typedef struct {
|
||||
CARD8 reqType;
|
||||
CARD8 panoramiXReqType;
|
||||
CARD16 length B16;
|
||||
} xXineramaIsActiveReq;
|
||||
#define sz_xXineramaIsActiveReq 4
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
CARD8 pad1;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 state B32;
|
||||
CARD32 pad2 B32;
|
||||
CARD32 pad3 B32;
|
||||
CARD32 pad4 B32;
|
||||
CARD32 pad5 B32;
|
||||
CARD32 pad6 B32;
|
||||
} xXineramaIsActiveReply;
|
||||
#define sz_XineramaIsActiveReply 32
|
||||
|
||||
|
||||
typedef struct {
|
||||
CARD8 reqType;
|
||||
CARD8 panoramiXReqType;
|
||||
CARD16 length B16;
|
||||
} xXineramaQueryScreensReq;
|
||||
#define sz_xXineramaQueryScreensReq 4
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
CARD8 pad1;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD32 number B32;
|
||||
CARD32 pad2 B32;
|
||||
CARD32 pad3 B32;
|
||||
CARD32 pad4 B32;
|
||||
CARD32 pad5 B32;
|
||||
CARD32 pad6 B32;
|
||||
} xXineramaQueryScreensReply;
|
||||
#define sz_XineramaQueryScreensReply 32
|
||||
|
||||
typedef struct {
|
||||
INT16 x_org B16;
|
||||
INT16 y_org B16;
|
||||
CARD16 width B16;
|
||||
CARD16 height B16;
|
||||
} xXineramaScreenInfo;
|
||||
#define sz_XineramaScreenInfo 8
|
||||
|
||||
#endif
|
||||
9
xineramaproto.pc.in
Normal file
9
xineramaproto.pc.in
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: XineramaProto
|
||||
Description: Xinerama extension headers
|
||||
Version: @PACKAGE_VERSION@
|
||||
Cflags: -I${includedir}
|
||||
Loading…
Add table
Reference in a new issue