Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:30

0001 /*
0002 Copyright (c) 1992  X Consortium
0003 
0004 Permission is hereby granted, free of charge, to any person obtaining a copy
0005 of this software and associated documentation files (the "Software"), to deal
0006 in the Software without restriction, including without limitation the rights
0007 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008 copies of the Software, and to permit persons to whom the Software is
0009 furnished to do so, subject to the following conditions:
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of the X Consortium shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from the X Consortium.
0024  *
0025  * Author:  Keith Packard, MIT X Consortium
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;      /* always ScreenSaverReqCode */
0050     CARD8 saverReqType;     /* always X_ScreenSaverQueryVersion */
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;         /* X_Reply */
0060     CARD8 unused;           /* not used */
0061     CARD16 sequenceNumber B16;
0062     CARD32 length B32;
0063     CARD16 majorVersion B16;    /* major version of protocol */
0064     CARD16 minorVersion B16;    /* minor version of protocol */
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;      /* always ScreenSaverReqCode */
0077     CARD8 saverReqType;     /* always X_ScreenSaverQueryInfo */
0078     CARD16 length B16;
0079     Drawable drawable B32;
0080 } xScreenSaverQueryInfoReq;
0081 #define sz_xScreenSaverQueryInfoReq 8
0082 
0083 typedef struct {
0084     CARD8 type;         /* X_Reply */
0085     BYTE state;         /* Off, On */
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;          /* Blanked, Internal, External */
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;      /* always ScreenSaverReqCode */
0103     CARD8 saverReqType;     /* always X_ScreenSaverSelectInput */
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;      /* always ScreenSaverReqCode */
0114     CARD8 saverReqType;     /* always X_ScreenSaverSetAttributes */
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;      /* always ScreenSaverReqCode */
0130     CARD8 saverReqType;     /* always X_ScreenSaverUnsetAttributes */
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;         /* always eventBase + ScreenSaverNotify */
0148     BYTE state;         /* off, on, cycle */
0149     CARD16 sequenceNumber B16;
0150     Time timestamp B32;
0151     Window root B32;
0152     Window window B32;      /* screen saver window */
0153     BYTE kind;          /* blanked, internal, external */
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 /* _SAVERPROTO_H_ */