mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-06 03:28:04 +02:00
Merge recordproto
This commit is contained in:
commit
fe2a091949
14 changed files with 2585 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 recordproto
|
||||
#
|
||||
# Edit the following section as needed
|
||||
# For example, !report.pc overrides *.pc. See 'man gitignore'
|
||||
#
|
||||
17
COPYING
Normal file
17
COPYING
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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.
|
||||
23
Makefile.am
Normal file
23
Makefile.am
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
SUBDIRS=specs
|
||||
|
||||
recorddir = $(includedir)/X11/extensions
|
||||
record_HEADERS = \
|
||||
recordconst.h \
|
||||
recordproto.h \
|
||||
recordstr.h
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = recordproto.pc
|
||||
|
||||
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
dist-hook: ChangeLog INSTALL
|
||||
30
README
Normal file
30
README
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
X Record Extension
|
||||
|
||||
This extension defines a protocol for the recording and playback of user
|
||||
actions in the X Window System.
|
||||
|
||||
Extension name: RECORD
|
||||
|
||||
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/recordproto
|
||||
|
||||
http://cgit.freedesktop.org/xorg/proto/recordproto
|
||||
|
||||
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 recordproto"
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
exec "$srcdir"/configure "$@"
|
||||
fi
|
||||
20
configure.ac
Normal file
20
configure.ac
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
AC_PREREQ([2.60])
|
||||
AC_INIT([RecordProto], [1.14.2],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
|
||||
# Require xorg-macros minimum of 1.12 for DocBook external references
|
||||
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)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
specs/Makefile
|
||||
recordproto.pc])
|
||||
AC_OUTPUT
|
||||
105
docbook.am
Normal file
105
docbook.am
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
#
|
||||
# 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)
|
||||
54
recordconst.h
Normal file
54
recordconst.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/***************************************************************************
|
||||
* 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_ */
|
||||
306
recordproto.h
Normal file
306
recordproto.h
Normal file
|
|
@ -0,0 +1,306 @@
|
|||
/***************************************************************************
|
||||
* 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 <X11/extensions/recordconst.h>
|
||||
|
||||
/* 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 B16;
|
||||
CARD16 last B16;
|
||||
} 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 B16;
|
||||
CARD16 extRequestsMinorLast B16;
|
||||
CARD8 extRepliesMajorFirst;
|
||||
CARD8 extRepliesMajorLast;
|
||||
CARD16 extRepliesMinorFirst B16;
|
||||
CARD16 extRepliesMinorLast B16;
|
||||
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 B32;
|
||||
CARD32 nRanges B32;
|
||||
/* LISTofRECORDRANGE */
|
||||
} RECORD_CLIENT_INFO;
|
||||
|
||||
typedef RECORD_CLIENT_INFO xRecordClientInfo;
|
||||
|
||||
/*
|
||||
* Initialize
|
||||
*/
|
||||
typedef struct {
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
CARD16 majorVersion B16;
|
||||
CARD16 minorVersion B16;
|
||||
} xRecordQueryVersionReq;
|
||||
#define sz_xRecordQueryVersionReq 8
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CARD8 type;
|
||||
CARD8 pad0;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
CARD16 majorVersion B16;
|
||||
CARD16 minorVersion B16;
|
||||
CARD32 pad1 B32;
|
||||
CARD32 pad2 B32;
|
||||
CARD32 pad3 B32;
|
||||
CARD32 pad4 B32;
|
||||
CARD32 pad5 B32;
|
||||
} xRecordQueryVersionReply;
|
||||
#define sz_xRecordQueryVersionReply 32
|
||||
|
||||
/*
|
||||
* Create RC
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
RECORD_ELEMENT_HEADER elementHeader;
|
||||
CARD8 pad;
|
||||
CARD16 pad0 B16;
|
||||
CARD32 nClients B32;
|
||||
CARD32 nRanges B32;
|
||||
/* LISTofRECORD_CLIENTSPEC */
|
||||
/* LISTofRECORDRANGE */
|
||||
} xRecordCreateContextReq;
|
||||
#define sz_xRecordCreateContextReq 20
|
||||
|
||||
/*
|
||||
* Add to RC
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
RECORD_ELEMENT_HEADER elementHeader;
|
||||
CARD8 pad;
|
||||
CARD16 pad0 B16;
|
||||
CARD32 nClients B32;
|
||||
CARD32 nRanges B32;
|
||||
/* LISTofRECORD_CLIENTSPEC */
|
||||
/* LISTofRECORDRANGE */
|
||||
} xRecordRegisterClientsReq;
|
||||
#define sz_xRecordRegisterClientsReq 20
|
||||
|
||||
/*
|
||||
* Delete from RC
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
CARD32 nClients B32;
|
||||
/* LISTofRECORD_CLIENTSPEC */
|
||||
} xRecordUnregisterClientsReq;
|
||||
#define sz_xRecordUnregisterClientsReq 12
|
||||
|
||||
/*
|
||||
* Query RC
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
} xRecordGetContextReq;
|
||||
#define sz_xRecordGetContextReq 8
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CARD8 type;
|
||||
BOOL enabled;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
RECORD_ELEMENT_HEADER elementHeader;
|
||||
CARD8 pad;
|
||||
CARD16 pad0 B16;
|
||||
CARD32 nClients B32;
|
||||
CARD32 pad1 B32;
|
||||
CARD32 pad2 B32;
|
||||
CARD32 pad3 B32;
|
||||
CARD32 pad4 B32;
|
||||
/* LISTofCLIENT_INFO */ /* intercepted-clients */
|
||||
} xRecordGetContextReply;
|
||||
#define sz_xRecordGetContextReply 32
|
||||
|
||||
/*
|
||||
* Enable data interception
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
} xRecordEnableContextReq;
|
||||
#define sz_xRecordEnableContextReq 8
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CARD8 type;
|
||||
CARD8 category;
|
||||
CARD16 sequenceNumber B16;
|
||||
CARD32 length B32;
|
||||
RECORD_ELEMENT_HEADER elementHeader;
|
||||
BOOL clientSwapped;
|
||||
CARD16 pad1 B16;
|
||||
RECORD_XIDBASE idBase B32;
|
||||
CARD32 serverTime B32;
|
||||
CARD32 recordedSequenceNumber B32;
|
||||
CARD32 pad3 B32;
|
||||
CARD32 pad4 B32;
|
||||
/* BYTE data; */
|
||||
} xRecordEnableContextReply;
|
||||
#define sz_xRecordEnableContextReply 32
|
||||
|
||||
/*
|
||||
* Disable data interception
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
} xRecordDisableContextReq;
|
||||
#define sz_xRecordDisableContextReq 8
|
||||
|
||||
/*
|
||||
* Free RC
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
CARD8 reqType;
|
||||
CARD8 recordReqType;
|
||||
CARD16 length B16;
|
||||
RECORD_RC context B32;
|
||||
} xRecordFreeContextReq;
|
||||
#define sz_xRecordFreeContextReq 8
|
||||
|
||||
#undef RECORD_RC
|
||||
#undef RECORD_XIDBASE
|
||||
#undef RECORD_ELEMENT_HEADER
|
||||
#undef RECORD_CLIENTSPEC
|
||||
|
||||
#endif
|
||||
9
recordproto.pc.in
Normal file
9
recordproto.pc.in
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: RecordProto
|
||||
Description: Record extension headers
|
||||
Version: @PACKAGE_VERSION@
|
||||
Cflags: -I${includedir}
|
||||
4
recordstr.h
Normal file
4
recordstr.h
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#warning "recordstr.h is obsolete and may be removed in the future."
|
||||
#warning "include <X11/extensions/record.h> for the library interfaces."
|
||||
#warning "include <X11/extensions/recordproto.h> for the protocol defines."
|
||||
#include <X11/extensions/recordproto.h>
|
||||
5
specs/.gitignore
vendored
Normal file
5
specs/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
*.html
|
||||
*.ps
|
||||
*.pdf
|
||||
*.txt
|
||||
*.db
|
||||
13
specs/Makefile.am
Normal file
13
specs/Makefile.am
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
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 = $(docdir)
|
||||
|
||||
# Generate DocBook/XML output formats with or without stylesheets
|
||||
include $(top_srcdir)/docbook.am
|
||||
|
||||
endif ENABLE_SPECS
|
||||
1904
specs/record.xml
Normal file
1904
specs/record.xml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue