github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xkbcommon/include/X11/extensions/dpmsproto.h (about) 1 /***************************************************************** 2 3 Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts. 4 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 of this software and associated documentation files (the "Software"), to deal 7 in the Software without restriction, including without limitation the rights 8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 copies of the Software. 10 11 The above copyright notice and this permission notice shall be included in 12 all copies or substantial portions of the Software. 13 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING, 18 BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY, 19 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 20 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 22 Except as contained in this notice, the name of Digital Equipment Corporation 23 shall not be used in advertising or otherwise to promote the sale, use or other 24 dealings in this Software without prior written authorization from Digital 25 Equipment Corporation. 26 27 ******************************************************************/ 28 29 #ifndef _DPMSPROTO_H_ 30 #define _DPMSPROTO_H_ 31 32 #include <X11/extensions/dpmsconst.h> 33 34 #define X_DPMSGetVersion 0 35 #define X_DPMSCapable 1 36 #define X_DPMSGetTimeouts 2 37 #define X_DPMSSetTimeouts 3 38 #define X_DPMSEnable 4 39 #define X_DPMSDisable 5 40 #define X_DPMSForceLevel 6 41 #define X_DPMSInfo 7 42 #define X_DPMSSelectInput 8 43 44 #define DPMSNumberEvents 0 45 46 #define DPMSNumberErrors 0 47 48 49 typedef struct { 50 CARD8 reqType; /* always DPMSCode */ 51 CARD8 dpmsReqType; /* always X_DPMSGetVersion */ 52 CARD16 length; 53 CARD16 majorVersion; 54 CARD16 minorVersion; 55 } xDPMSGetVersionReq; 56 #define sz_xDPMSGetVersionReq 8 57 58 typedef struct { 59 BYTE type; /* X_Reply */ 60 CARD8 pad0; 61 CARD16 sequenceNumber; 62 CARD32 length; 63 CARD16 majorVersion; 64 CARD16 minorVersion; 65 CARD32 pad1; 66 CARD32 pad2; 67 CARD32 pad3; 68 CARD32 pad4; 69 CARD32 pad5; 70 } xDPMSGetVersionReply; 71 #define sz_xDPMSGetVersionReply 32 72 73 typedef struct { 74 CARD8 reqType; /* always DPMSCode */ 75 CARD8 dpmsReqType; /* always X_DPMSCapable */ 76 CARD16 length; 77 } xDPMSCapableReq; 78 #define sz_xDPMSCapableReq 4 79 80 typedef struct { 81 BYTE type; /* X_Reply */ 82 CARD8 pad0; 83 CARD16 sequenceNumber; 84 CARD32 length; 85 BOOL capable; 86 CARD8 pad1; 87 CARD16 pad2; 88 CARD32 pad3; 89 CARD32 pad4; 90 CARD32 pad5; 91 CARD32 pad6; 92 CARD32 pad7; 93 } xDPMSCapableReply; 94 #define sz_xDPMSCapableReply 32 95 96 typedef struct { 97 CARD8 reqType; /* always DPMSCode */ 98 CARD8 dpmsReqType; /* always X_DPMSGetTimeouts */ 99 CARD16 length; 100 } xDPMSGetTimeoutsReq; 101 #define sz_xDPMSGetTimeoutsReq 4 102 103 typedef struct { 104 BYTE type; /* X_Reply */ 105 CARD8 pad0; 106 CARD16 sequenceNumber; 107 CARD32 length; 108 CARD16 standby; 109 CARD16 suspend; 110 CARD16 off; 111 CARD16 pad1; 112 CARD32 pad2; 113 CARD32 pad3; 114 CARD32 pad4; 115 CARD32 pad5; 116 } xDPMSGetTimeoutsReply; 117 #define sz_xDPMSGetTimeoutsReply 32 118 119 typedef struct { 120 CARD8 reqType; /* always DPMSCode */ 121 CARD8 dpmsReqType; /* always X_DPMSSetTimeouts */ 122 CARD16 length; 123 CARD16 standby; 124 CARD16 suspend; 125 CARD16 off; 126 CARD16 pad0; 127 } xDPMSSetTimeoutsReq; 128 #define sz_xDPMSSetTimeoutsReq 12 129 130 typedef struct { 131 CARD8 reqType; /* always DPMSCode */ 132 CARD8 dpmsReqType; /* always X_DPMSEnable */ 133 CARD16 length; 134 } xDPMSEnableReq; 135 #define sz_xDPMSEnableReq 4 136 137 typedef struct { 138 CARD8 reqType; /* always DPMSCode */ 139 CARD8 dpmsReqType; /* always X_DPMSDisable */ 140 CARD16 length; 141 } xDPMSDisableReq; 142 #define sz_xDPMSDisableReq 4 143 144 typedef struct { 145 CARD8 reqType; /* always DPMSCode */ 146 CARD8 dpmsReqType; /* always X_DPMSForceLevel */ 147 CARD16 length; 148 CARD16 level; /* power level requested */ 149 CARD16 pad0; 150 } xDPMSForceLevelReq; 151 #define sz_xDPMSForceLevelReq 8 152 153 typedef struct { 154 CARD8 reqType; /* always DPMSCode */ 155 CARD8 dpmsReqType; /* always X_DPMSInfo */ 156 CARD16 length; 157 } xDPMSInfoReq; 158 #define sz_xDPMSInfoReq 4 159 160 typedef struct { 161 BYTE type; /* X_Reply */ 162 CARD8 pad0; 163 CARD16 sequenceNumber; 164 CARD32 length; 165 CARD16 power_level; 166 BOOL state; 167 CARD8 pad1; 168 CARD32 pad2; 169 CARD32 pad3; 170 CARD32 pad4; 171 CARD32 pad5; 172 CARD32 pad6; 173 } xDPMSInfoReply; 174 #define sz_xDPMSInfoReply 32 175 176 typedef struct { 177 CARD8 reqType; /* always DPMSCode */ 178 CARD8 dpmsReqType; /* always X_DPMSSelectInput */ 179 CARD16 length B16; 180 CARD32 eventMask B32; 181 } xDPMSSelectInputReq; 182 #define sz_xDPMSSelectInputReq 8 183 184 typedef struct { 185 CARD8 type; 186 CARD8 extension; 187 CARD16 sequenceNumber B16; 188 CARD32 length; 189 CARD16 evtype B16; 190 CARD16 pad0 B16; 191 Time timestamp B32; 192 CARD16 power_level B16; 193 BOOL state; 194 CARD8 pad1; 195 CARD32 pad2 B32; 196 CARD32 pad3 B32; 197 CARD32 pad4 B32; 198 } xDPMSInfoNotifyEvent; 199 #define sz_xDPMSInfoNotifyEvent 32 200 201 #endif /* _DPMSPROTO_H_ */