packages: move Xorg category to its own feed, move X-related packages as well
[openwrt/svn-archive/archive.git] / xorg / xorg / proto / calibrateproto / src / xcalibrateproto.h
1 /*
2 * $Id: xcalibrateproto.h,v 1.1.1.1 2004/06/02 19:18:47 pb Exp $
3 *
4 * Copyright © 2003 Philip Blundell
5 *
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of Philip Blundell not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. Philip Blundell makes no
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
15 *
16 * PHILIP BLUNDELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL PHILIP BLUNDELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
23 */
24
25 #ifndef XCALIBRATEPROTO_H
26 #define XCALIBRATEPROTO_H
27
28 /*
29 * requests and replies
30 */
31 typedef struct {
32 CARD8 reqType;
33 CARD8 xCalibrateReqType;
34 CARD16 length B16;
35 CARD32 majorVersion B32;
36 CARD32 minorVersion B32;
37 } xXCalibrateQueryVersionReq;
38
39 #define sz_xXCalibrateQueryVersionReq 12
40
41 typedef struct {
42 BYTE type; /* X_Reply */
43 BYTE pad1;
44 CARD16 sequenceNumber B16;
45 CARD32 length B32;
46 CARD32 majorVersion B32;
47 CARD32 minorVersion B32;
48 CARD32 pad2 B32;
49 CARD32 pad3 B32;
50 CARD32 pad4 B32;
51 CARD32 pad5 B32;
52 } xXCalibrateQueryVersionReply;
53
54 #define sz_xXCalibrateQueryVersionReply 32
55
56 typedef struct {
57 CARD8 reqType;
58 CARD8 xCalibrateReqType;
59 CARD16 length B16;
60 CARD16 on B16;
61 CARD16 pad B16;
62 } xXCalibrateRawModeReq;
63
64 #define sz_xXCalibrateRawModeReq 8
65
66 typedef struct {
67 BYTE type; /* X_Reply */
68 BYTE pad1;
69 CARD16 sequenceNumber B16;
70 CARD32 status;
71 CARD32 pad2 B32;
72 CARD32 pad3 B32;
73 CARD32 pad4 B32;
74 CARD32 pad5 B32;
75 CARD32 pad6 B32;
76 CARD32 pad7 B32;
77 } xXCalibrateRawModeReply;
78
79 #define sz_xXCalibrateRawModeReply 32
80
81 /* Events */
82
83 typedef struct {
84 CARD8 type;
85 CARD8 pad1;
86 CARD16 sequenceNumber B16;
87 CARD16 x;
88 CARD16 y;
89 CARD16 pressure;
90 CARD16 pad2;
91 } xXCalibrateRawTouchscreenEvent;
92
93 #define sz_xXCalibrateRawTouchscreenEvent 12
94
95 #endif