]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/saverproto.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / include / extensions / saverproto.h
1 /*
2  * $XConsortium: saverproto.h,v 1.5 94/04/17 20:59:33 keith Exp $
3  *
4 Copyright (c) 1992  X Consortium
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
26  *
27  * Author:  Keith Packard, MIT X Consortium
28  */
29
30 #ifndef _SAVERPROTO_H_
31 #define _SAVERPROTO_H_
32 #include "saver.h"
33
34 #define X_ScreenSaverQueryVersion   0
35
36 typedef struct _ScreenSaverQueryVersion {
37     CARD8 reqType;              /* always ScreenSaverReqCode */
38     CARD8 saverReqType;         /* always X_ScreenSaverQueryVersion */
39     CARD16 length B16;
40     CARD8 clientMajor;
41     CARD8 clientMinor;
42     CARD16 unused B16;  
43 } xScreenSaverQueryVersionReq;
44 #define sz_xScreenSaverQueryVersionReq  8
45
46 typedef struct {
47     CARD8 type;                 /* X_Reply */
48     CARD8 unused;                       /* not used */
49     CARD16 sequenceNumber B16;
50     CARD32 length B32;
51     CARD16 majorVersion B16;    /* major version of protocol */
52     CARD16 minorVersion B16;    /* minor version of protocol */
53     CARD32 pad0 B32;
54     CARD32 pad1 B32;
55     CARD32 pad2 B32;
56     CARD32 pad3 B32;
57     CARD32 pad4 B32;
58 } xScreenSaverQueryVersionReply;
59 #define sz_xScreenSaverQueryVersionReply        32
60
61 #define X_ScreenSaverQueryInfo   1
62
63 typedef struct _ScreenSaverQueryInfo {
64     CARD8 reqType;              /* always ScreenSaverReqCode */
65     CARD8 saverReqType;         /* always X_ScreenSaverQueryInfo */
66     CARD16 length B16;
67     Drawable drawable B32;
68 } xScreenSaverQueryInfoReq;
69 #define sz_xScreenSaverQueryInfoReq     8
70
71 typedef struct {
72     CARD8 type;                 /* X_Reply */
73     BYTE state;                 /* Off, On */
74     CARD16 sequenceNumber B16;
75     CARD32 length B32;
76     Window window B32;
77     CARD32 tilOrSince B32;
78     CARD32 idle B32;
79     CARD32 eventMask B32;
80     BYTE kind;                  /* Blanked, Internal, External */
81     CARD8 pad0;
82     CARD16 pad1 B16;
83     CARD32 pad2 B32;
84 } xScreenSaverQueryInfoReply;
85 #define sz_xScreenSaverQueryInfoReply   32
86
87 #define X_ScreenSaverSelectInput   2
88
89 typedef struct _ScreenSaverSelectInput {
90     CARD8 reqType;              /* always ScreenSaverReqCode */
91     CARD8 saverReqType;         /* always X_ScreenSaverSelectInput */
92     CARD16 length B16;
93     Drawable drawable B32;
94     CARD32 eventMask B32;
95 } xScreenSaverSelectInputReq;
96 #define sz_xScreenSaverSelectInputReq   12
97
98 #define X_ScreenSaverSetAttributes   3
99
100 typedef struct _ScreenSaverSetAttributes {
101     CARD8 reqType;              /* always ScreenSaverReqCode */
102     CARD8 saverReqType;         /* always X_ScreenSaverSetAttributes */
103     CARD16 length B16;
104     Drawable drawable B32;
105     INT16 x B16, y B16;
106     CARD16 width B16, height B16, borderWidth B16;
107     BYTE c_class;
108     CARD8 depth;
109     VisualID visualID B32;
110     CARD32 mask B32;
111 } xScreenSaverSetAttributesReq;
112 #define sz_xScreenSaverSetAttributesReq 28
113
114 #define X_ScreenSaverUnsetAttributes   4
115
116 typedef struct _ScreenSaverUnsetAttributes {
117     CARD8 reqType;              /* always ScreenSaverReqCode */
118     CARD8 saverReqType;         /* always X_ScreenSaverUnsetAttributes */
119     CARD16 length B16;
120     Drawable drawable B32;
121 } xScreenSaverUnsetAttributesReq;
122 #define sz_xScreenSaverUnsetAttributesReq       8
123
124 typedef struct _ScreenSaverNotify {
125     CARD8 type;                 /* always eventBase + ScreenSaverNotify */
126     BYTE state;                 /* off, on, cycle */
127     CARD16 sequenceNumber B16;
128     Time timestamp B32;
129     Window root B32;
130     Window window B32;          /* screen saver window */
131     BYTE kind;                  /* blanked, internal, external */
132     BYTE forced;
133     CARD16 pad0 B16;
134     CARD32 pad1 B32;
135     CARD32 pad2 B32;
136     CARD32 pad3 B32;
137 } xScreenSaverNotifyEvent;
138 #define sz_xScreenSaverNotifyEvent      32
139
140 #endif /* _SAVERPROTO_H_ */