From 0808093cbf79e2f18e79b0aa906770d2766638fc Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Fri, 4 Aug 2006 22:24:26 +0100 Subject: Initial import from CVS --- ChangeLog | 5 +++ Makefile.am | 29 ++++++++++++++++ autogen.sh | 12 +++++++ configure.ac | 6 ++++ xcalibrateext.pc.in | 9 +++++ xcalibrateproto.h | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++ xcalibratewire.h | 43 ++++++++++++++++++++++++ 7 files changed, 199 insertions(+) create mode 100644 ChangeLog create mode 100644 Makefile.am create mode 100755 autogen.sh create mode 100644 configure.ac create mode 100644 xcalibrateext.pc.in create mode 100644 xcalibrateproto.h create mode 100644 xcalibratewire.h diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..b36632c --- /dev/null +++ b/ChangeLog @@ -0,0 +1,5 @@ +2004-10-21 Daniel Stone + + * configure.ac: + * xcalibratewire.h: + Bump version to 0.1. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..8be7ff2 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,29 @@ +# +# 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. +# + +XCalibrateincludedir = $(includedir)/X11/extensions +XCalibrateinclude_HEADERS = xcalibrateproto.h xcalibratewire.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = xcalibrateext.pc + +EXTRA_DIST = autogen.sh xcalibrateext.pc.in diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..99849ed --- /dev/null +++ b/configure.ac @@ -0,0 +1,6 @@ +AC_PREREQ([2.59]) +AC_INIT([xcalibrateext], [0.1.0], [pb@nexus.co.uk]) +AM_INIT_AUTOMAKE([foreign dist-bzip2]) + +AC_OUTPUT([Makefile + xcalibrateext.pc]) diff --git a/xcalibrateext.pc.in b/xcalibrateext.pc.in new file mode 100644 index 0000000..f17f8d7 --- /dev/null +++ b/xcalibrateext.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: XCalibrate +Description: XCalibrate extension headers +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} diff --git a/xcalibrateproto.h b/xcalibrateproto.h new file mode 100644 index 0000000..9a174a4 --- /dev/null +++ b/xcalibrateproto.h @@ -0,0 +1,95 @@ +/* + * $Id: xcalibrateproto.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ + * + * 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 B16; + CARD32 majorVersion B32; + CARD32 minorVersion B32; +} xXCalibrateQueryVersionReq; + +#define sz_xXCalibrateQueryVersionReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 majorVersion B32; + CARD32 minorVersion B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; +} xXCalibrateQueryVersionReply; + +#define sz_xXCalibrateQueryVersionReply 32 + +typedef struct { + CARD8 reqType; + CARD8 xCalibrateReqType; + CARD16 length B16; + CARD16 on B16; + CARD16 pad B16; +} xXCalibrateRawModeReq; + +#define sz_xXCalibrateRawModeReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 status; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; +} xXCalibrateRawModeReply; + +#define sz_xXCalibrateRawModeReply 32 + +/* Events */ + +typedef struct { + CARD8 type; + CARD8 pad1; + CARD16 sequenceNumber B16; + CARD16 x; + CARD16 y; + CARD16 pressure; + CARD16 pad2; +} xXCalibrateRawTouchscreenEvent; + +#define sz_xXCalibrateRawTouchscreenEvent 12 + +#endif diff --git a/xcalibratewire.h b/xcalibratewire.h new file mode 100644 index 0000000..a5b1aec --- /dev/null +++ b/xcalibratewire.h @@ -0,0 +1,43 @@ +/* + * $Id: xcalibratewire.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ + * + * 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 0 +#define XCALIBRATE_NAME "XCALIBRATE" + +#define X_XCalibrateQueryVersion 0 +#define X_XCalibrateRawMode 1 + +#define XCalibrateNumberRequests (X_XCalibrateSetRawMode + 1) + +#define X_XCalibrateRawTouchscreen 0 + +#define XCalibrateNumberEvents (X_XCalibrateRawTouchscreen + 1) + +#define XCalibrateNumberErrors 0 + +#endif -- cgit v1.2.3 From a1d5ef0c73fbef3e758c51b57ac69ba9567bae04 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Fri, 4 Aug 2006 22:44:16 +0100 Subject: Update 'ext' naming to proto. --- Makefile.am | 4 ++-- configure.ac | 4 ++-- xcalibrateext.pc.in | 9 --------- xcalibrateproto.pc.in | 9 +++++++++ 4 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 xcalibrateext.pc.in create mode 100644 xcalibrateproto.pc.in diff --git a/Makefile.am b/Makefile.am index 8be7ff2..87bcd58 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,6 @@ XCalibrateincludedir = $(includedir)/X11/extensions XCalibrateinclude_HEADERS = xcalibrateproto.h xcalibratewire.h pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = xcalibrateext.pc +pkgconfig_DATA = xcalibrateproto.pc -EXTRA_DIST = autogen.sh xcalibrateext.pc.in +EXTRA_DIST = autogen.sh xcalibrateproto.pc.in diff --git a/configure.ac b/configure.ac index 99849ed..eb41072 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.59]) -AC_INIT([xcalibrateext], [0.1.0], [pb@nexus.co.uk]) +AC_INIT([xcalibrateproto], [0.1.0], [pb@nexus.co.uk]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AC_OUTPUT([Makefile - xcalibrateext.pc]) + xcalibrateproto.pc]) diff --git a/xcalibrateext.pc.in b/xcalibrateext.pc.in deleted file mode 100644 index f17f8d7..0000000 --- a/xcalibrateext.pc.in +++ /dev/null @@ -1,9 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: XCalibrate -Description: XCalibrate extension headers -Version: @PACKAGE_VERSION@ -Cflags: -I${includedir} diff --git a/xcalibrateproto.pc.in b/xcalibrateproto.pc.in new file mode 100644 index 0000000..f17f8d7 --- /dev/null +++ b/xcalibrateproto.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: XCalibrate +Description: XCalibrate extension headers +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} -- cgit v1.2.3 From 1ea5b191cccf465e595ac571e1c7254d0161cb8d Mon Sep 17 00:00:00 2001 From: James Cloos Date: Thu, 6 Dec 2007 16:38:56 -0500 Subject: Replace static ChangeLog with dist-hook to generate from git log --- ChangeLog | 5 ----- Makefile.am | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 ChangeLog diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index b36632c..0000000 --- a/ChangeLog +++ /dev/null @@ -1,5 +0,0 @@ -2004-10-21 Daniel Stone - - * configure.ac: - * xcalibratewire.h: - Bump version to 0.1. diff --git a/Makefile.am b/Makefile.am index 87bcd58..2e7dee2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,3 +27,13 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = xcalibrateproto.pc EXTRA_DIST = autogen.sh xcalibrateproto.pc.in + +EXTRA_DIST += ChangeLog +MAINTAINERCLEANFILES = ChangeLog + +.PHONY: ChangeLog + +ChangeLog: + (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog -- cgit v1.2.3 From 1da6fd1e2c7a49648245c98481fabea8b9690a8c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Jan 2008 12:35:16 +0100 Subject: [xcalibrate] take orientation in account --- xcalibrateproto.h | 25 +++++++++++++++++++++++++ xcalibratewire.h | 5 +++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/xcalibrateproto.h b/xcalibrateproto.h index 9a174a4..feded32 100644 --- a/xcalibrateproto.h +++ b/xcalibrateproto.h @@ -78,6 +78,31 @@ typedef struct { #define sz_xXCalibrateRawModeReply 32 +typedef struct { + CARD8 reqType; + CARD8 xCalibrateReqType; + CARD16 length B16; + CARD32 x B32; + CARD32 y B32; +} xXCalibrateScreenToCoordReq; + +#define sz_xXCalibrateScreenToCoordReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 x; + CARD32 y; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xXCalibrateScreenToCoordReply; + +#define sz_xXCalibrateScreenToCoordReply 32 + /* Events */ typedef struct { diff --git a/xcalibratewire.h b/xcalibratewire.h index a5b1aec..0a1c904 100644 --- a/xcalibratewire.h +++ b/xcalibratewire.h @@ -26,13 +26,14 @@ #define XCALIBRATEWIRE_H #define XCALIBRATE_MAJOR_VERSION 0 -#define XCALIBRATE_MINOR_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_XCalibrateSetRawMode + 1) +#define XCalibrateNumberRequests (X_XCalibrateScreenToCoord + 1) #define X_XCalibrateRawTouchscreen 0 -- cgit v1.2.3 From 8495d8001217ad81bb2363a1e61a0bb55c83fff9 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 6 Apr 2010 14:17:17 -0700 Subject: Move calibrateproto files to their sub-directory Signed-off-by: Keith Packard --- Makefile.am | 39 ------------ autogen.sh | 12 ---- calibrateproto/Makefile.am | 39 ++++++++++++ calibrateproto/autogen.sh | 12 ++++ calibrateproto/configure.ac | 6 ++ calibrateproto/xcalibrateproto.h | 120 +++++++++++++++++++++++++++++++++++ calibrateproto/xcalibrateproto.pc.in | 9 +++ calibrateproto/xcalibratewire.h | 44 +++++++++++++ configure.ac | 6 -- xcalibrateproto.h | 120 ----------------------------------- xcalibrateproto.pc.in | 9 --- xcalibratewire.h | 44 ------------- 12 files changed, 230 insertions(+), 230 deletions(-) delete mode 100644 Makefile.am delete mode 100755 autogen.sh create mode 100644 calibrateproto/Makefile.am create mode 100755 calibrateproto/autogen.sh create mode 100644 calibrateproto/configure.ac create mode 100644 calibrateproto/xcalibrateproto.h create mode 100644 calibrateproto/xcalibrateproto.pc.in create mode 100644 calibrateproto/xcalibratewire.h delete mode 100644 configure.ac delete mode 100644 xcalibrateproto.h delete mode 100644 xcalibrateproto.pc.in delete mode 100644 xcalibratewire.h diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 2e7dee2..0000000 --- a/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -# -# 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. -# - -XCalibrateincludedir = $(includedir)/X11/extensions -XCalibrateinclude_HEADERS = xcalibrateproto.h xcalibratewire.h - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = xcalibrateproto.pc - -EXTRA_DIST = autogen.sh xcalibrateproto.pc.in - -EXTRA_DIST += ChangeLog -MAINTAINERCLEANFILES = ChangeLog - -.PHONY: ChangeLog - -ChangeLog: - (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) - -dist-hook: ChangeLog diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 904cd67..0000000 --- a/autogen.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/sh - -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. - -ORIGDIR=`pwd` -cd $srcdir - -autoreconf -v --install || exit 1 -cd $ORIGDIR || exit $? - -$srcdir/configure --enable-maintainer-mode "$@" diff --git a/calibrateproto/Makefile.am b/calibrateproto/Makefile.am new file mode 100644 index 0000000..2e7dee2 --- /dev/null +++ b/calibrateproto/Makefile.am @@ -0,0 +1,39 @@ +# +# 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. +# + +XCalibrateincludedir = $(includedir)/X11/extensions +XCalibrateinclude_HEADERS = xcalibrateproto.h xcalibratewire.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = xcalibrateproto.pc + +EXTRA_DIST = autogen.sh xcalibrateproto.pc.in + +EXTRA_DIST += ChangeLog +MAINTAINERCLEANFILES = ChangeLog + +.PHONY: ChangeLog + +ChangeLog: + (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog diff --git a/calibrateproto/autogen.sh b/calibrateproto/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/calibrateproto/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/calibrateproto/configure.ac b/calibrateproto/configure.ac new file mode 100644 index 0000000..eb41072 --- /dev/null +++ b/calibrateproto/configure.ac @@ -0,0 +1,6 @@ +AC_PREREQ([2.59]) +AC_INIT([xcalibrateproto], [0.1.0], [pb@nexus.co.uk]) +AM_INIT_AUTOMAKE([foreign dist-bzip2]) + +AC_OUTPUT([Makefile + xcalibrateproto.pc]) diff --git a/calibrateproto/xcalibrateproto.h b/calibrateproto/xcalibrateproto.h new file mode 100644 index 0000000..feded32 --- /dev/null +++ b/calibrateproto/xcalibrateproto.h @@ -0,0 +1,120 @@ +/* + * $Id: xcalibrateproto.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ + * + * 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 B16; + CARD32 majorVersion B32; + CARD32 minorVersion B32; +} xXCalibrateQueryVersionReq; + +#define sz_xXCalibrateQueryVersionReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 majorVersion B32; + CARD32 minorVersion B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; +} xXCalibrateQueryVersionReply; + +#define sz_xXCalibrateQueryVersionReply 32 + +typedef struct { + CARD8 reqType; + CARD8 xCalibrateReqType; + CARD16 length B16; + CARD16 on B16; + CARD16 pad B16; +} xXCalibrateRawModeReq; + +#define sz_xXCalibrateRawModeReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 status; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; +} xXCalibrateRawModeReply; + +#define sz_xXCalibrateRawModeReply 32 + +typedef struct { + CARD8 reqType; + CARD8 xCalibrateReqType; + CARD16 length B16; + CARD32 x B32; + CARD32 y B32; +} xXCalibrateScreenToCoordReq; + +#define sz_xXCalibrateScreenToCoordReq 12 + +typedef struct { + BYTE type; /* X_Reply */ + BYTE pad1; + CARD16 sequenceNumber B16; + CARD32 x; + CARD32 y; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xXCalibrateScreenToCoordReply; + +#define sz_xXCalibrateScreenToCoordReply 32 + +/* Events */ + +typedef struct { + CARD8 type; + CARD8 pad1; + CARD16 sequenceNumber B16; + CARD16 x; + CARD16 y; + CARD16 pressure; + CARD16 pad2; +} xXCalibrateRawTouchscreenEvent; + +#define sz_xXCalibrateRawTouchscreenEvent 12 + +#endif diff --git a/calibrateproto/xcalibrateproto.pc.in b/calibrateproto/xcalibrateproto.pc.in new file mode 100644 index 0000000..f17f8d7 --- /dev/null +++ b/calibrateproto/xcalibrateproto.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: XCalibrate +Description: XCalibrate extension headers +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir} diff --git a/calibrateproto/xcalibratewire.h b/calibrateproto/xcalibratewire.h new file mode 100644 index 0000000..0a1c904 --- /dev/null +++ b/calibrateproto/xcalibratewire.h @@ -0,0 +1,44 @@ +/* + * $Id: xcalibratewire.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ + * + * 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 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index eb41072..0000000 --- a/configure.ac +++ /dev/null @@ -1,6 +0,0 @@ -AC_PREREQ([2.59]) -AC_INIT([xcalibrateproto], [0.1.0], [pb@nexus.co.uk]) -AM_INIT_AUTOMAKE([foreign dist-bzip2]) - -AC_OUTPUT([Makefile - xcalibrateproto.pc]) diff --git a/xcalibrateproto.h b/xcalibrateproto.h deleted file mode 100644 index feded32..0000000 --- a/xcalibrateproto.h +++ /dev/null @@ -1,120 +0,0 @@ -/* - * $Id: xcalibrateproto.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ - * - * 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 B16; - CARD32 majorVersion B32; - CARD32 minorVersion B32; -} xXCalibrateQueryVersionReq; - -#define sz_xXCalibrateQueryVersionReq 12 - -typedef struct { - BYTE type; /* X_Reply */ - BYTE pad1; - CARD16 sequenceNumber B16; - CARD32 length B32; - CARD32 majorVersion B32; - CARD32 minorVersion B32; - CARD32 pad2 B32; - CARD32 pad3 B32; - CARD32 pad4 B32; - CARD32 pad5 B32; -} xXCalibrateQueryVersionReply; - -#define sz_xXCalibrateQueryVersionReply 32 - -typedef struct { - CARD8 reqType; - CARD8 xCalibrateReqType; - CARD16 length B16; - CARD16 on B16; - CARD16 pad B16; -} xXCalibrateRawModeReq; - -#define sz_xXCalibrateRawModeReq 8 - -typedef struct { - BYTE type; /* X_Reply */ - BYTE pad1; - CARD16 sequenceNumber B16; - CARD32 status; - CARD32 pad2 B32; - CARD32 pad3 B32; - CARD32 pad4 B32; - CARD32 pad5 B32; - CARD32 pad6 B32; - CARD32 pad7 B32; -} xXCalibrateRawModeReply; - -#define sz_xXCalibrateRawModeReply 32 - -typedef struct { - CARD8 reqType; - CARD8 xCalibrateReqType; - CARD16 length B16; - CARD32 x B32; - CARD32 y B32; -} xXCalibrateScreenToCoordReq; - -#define sz_xXCalibrateScreenToCoordReq 12 - -typedef struct { - BYTE type; /* X_Reply */ - BYTE pad1; - CARD16 sequenceNumber B16; - CARD32 x; - CARD32 y; - CARD32 pad2 B32; - CARD32 pad3 B32; - CARD32 pad4 B32; - CARD32 pad5 B32; - CARD32 pad6 B32; -} xXCalibrateScreenToCoordReply; - -#define sz_xXCalibrateScreenToCoordReply 32 - -/* Events */ - -typedef struct { - CARD8 type; - CARD8 pad1; - CARD16 sequenceNumber B16; - CARD16 x; - CARD16 y; - CARD16 pressure; - CARD16 pad2; -} xXCalibrateRawTouchscreenEvent; - -#define sz_xXCalibrateRawTouchscreenEvent 12 - -#endif diff --git a/xcalibrateproto.pc.in b/xcalibrateproto.pc.in deleted file mode 100644 index f17f8d7..0000000 --- a/xcalibrateproto.pc.in +++ /dev/null @@ -1,9 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: XCalibrate -Description: XCalibrate extension headers -Version: @PACKAGE_VERSION@ -Cflags: -I${includedir} diff --git a/xcalibratewire.h b/xcalibratewire.h deleted file mode 100644 index 0a1c904..0000000 --- a/xcalibratewire.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * $Id: xcalibratewire.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $ - * - * 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 -- cgit v1.2.3