File indexing completed on 2025-01-30 10:26:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #ifndef _SAVERPROTO_H_
0029 #define _SAVERPROTO_H_
0030
0031 #include <X11/extensions/saver.h>
0032
0033 #define Window CARD32
0034 #define Drawable CARD32
0035 #define Font CARD32
0036 #define Pixmap CARD32
0037 #define Cursor CARD32
0038 #define Colormap CARD32
0039 #define GContext CARD32
0040 #define Atom CARD32
0041 #define VisualID CARD32
0042 #define Time CARD32
0043 #define KeyCode CARD8
0044 #define KeySym CARD32
0045
0046 #define X_ScreenSaverQueryVersion 0
0047
0048 typedef struct _ScreenSaverQueryVersion {
0049 CARD8 reqType;
0050 CARD8 saverReqType;
0051 CARD16 length B16;
0052 CARD8 clientMajor;
0053 CARD8 clientMinor;
0054 CARD16 unused B16;
0055 } xScreenSaverQueryVersionReq;
0056 #define sz_xScreenSaverQueryVersionReq 8
0057
0058 typedef struct {
0059 CARD8 type;
0060 CARD8 unused;
0061 CARD16 sequenceNumber B16;
0062 CARD32 length B32;
0063 CARD16 majorVersion B16;
0064 CARD16 minorVersion B16;
0065 CARD32 pad0 B32;
0066 CARD32 pad1 B32;
0067 CARD32 pad2 B32;
0068 CARD32 pad3 B32;
0069 CARD32 pad4 B32;
0070 } xScreenSaverQueryVersionReply;
0071 #define sz_xScreenSaverQueryVersionReply 32
0072
0073 #define X_ScreenSaverQueryInfo 1
0074
0075 typedef struct _ScreenSaverQueryInfo {
0076 CARD8 reqType;
0077 CARD8 saverReqType;
0078 CARD16 length B16;
0079 Drawable drawable B32;
0080 } xScreenSaverQueryInfoReq;
0081 #define sz_xScreenSaverQueryInfoReq 8
0082
0083 typedef struct {
0084 CARD8 type;
0085 BYTE state;
0086 CARD16 sequenceNumber B16;
0087 CARD32 length B32;
0088 Window window B32;
0089 CARD32 tilOrSince B32;
0090 CARD32 idle B32;
0091 CARD32 eventMask B32;
0092 BYTE kind;
0093 CARD8 pad0;
0094 CARD16 pad1 B16;
0095 CARD32 pad2 B32;
0096 } xScreenSaverQueryInfoReply;
0097 #define sz_xScreenSaverQueryInfoReply 32
0098
0099 #define X_ScreenSaverSelectInput 2
0100
0101 typedef struct _ScreenSaverSelectInput {
0102 CARD8 reqType;
0103 CARD8 saverReqType;
0104 CARD16 length B16;
0105 Drawable drawable B32;
0106 CARD32 eventMask B32;
0107 } xScreenSaverSelectInputReq;
0108 #define sz_xScreenSaverSelectInputReq 12
0109
0110 #define X_ScreenSaverSetAttributes 3
0111
0112 typedef struct _ScreenSaverSetAttributes {
0113 CARD8 reqType;
0114 CARD8 saverReqType;
0115 CARD16 length B16;
0116 Drawable drawable B32;
0117 INT16 x B16, y B16;
0118 CARD16 width B16, height B16, borderWidth B16;
0119 BYTE c_class;
0120 CARD8 depth;
0121 VisualID visualID B32;
0122 CARD32 mask B32;
0123 } xScreenSaverSetAttributesReq;
0124 #define sz_xScreenSaverSetAttributesReq 28
0125
0126 #define X_ScreenSaverUnsetAttributes 4
0127
0128 typedef struct _ScreenSaverUnsetAttributes {
0129 CARD8 reqType;
0130 CARD8 saverReqType;
0131 CARD16 length B16;
0132 Drawable drawable B32;
0133 } xScreenSaverUnsetAttributesReq;
0134 #define sz_xScreenSaverUnsetAttributesReq 8
0135
0136 #define X_ScreenSaverSuspend 5
0137
0138 typedef struct _ScreenSaverSuspend {
0139 CARD8 reqType;
0140 CARD8 saverReqType;
0141 CARD16 length B16;
0142 Bool suspend B32;
0143 } xScreenSaverSuspendReq;
0144 #define sz_xScreenSaverSuspendReq 8
0145
0146 typedef struct _ScreenSaverNotify {
0147 CARD8 type;
0148 BYTE state;
0149 CARD16 sequenceNumber B16;
0150 Time timestamp B32;
0151 Window root B32;
0152 Window window B32;
0153 BYTE kind;
0154 BYTE forced;
0155 CARD16 pad0 B16;
0156 CARD32 pad1 B32;
0157 CARD32 pad2 B32;
0158 CARD32 pad3 B32;
0159 } xScreenSaverNotifyEvent;
0160 #define sz_xScreenSaverNotifyEvent 32
0161
0162 #undef Window
0163 #undef Drawable
0164 #undef Font
0165 #undef Pixmap
0166 #undef Cursor
0167 #undef Colormap
0168 #undef GContext
0169 #undef Atom
0170 #undef VisualID
0171 #undef Time
0172 #undef KeyCode
0173 #undef KeySym
0174
0175 #endif