XCB  1.11
dpms.h
1 /*
2  * This file generated automatically from dpms.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __DPMS_H
13 #define __DPMS_H
14 
15 #include "xcb.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #define XCB_DPMS_MAJOR_VERSION 0
22 #define XCB_DPMS_MINOR_VERSION 0
23 
24 extern xcb_extension_t xcb_dpms_id;
25 
30  unsigned int sequence;
32 
34 #define XCB_DPMS_GET_VERSION 0
35 
40  uint8_t major_opcode;
41  uint8_t minor_opcode;
42  uint16_t length;
43  uint16_t client_major_version;
44  uint16_t client_minor_version;
46 
51  uint8_t response_type;
52  uint8_t pad0;
53  uint16_t sequence;
54  uint32_t length;
55  uint16_t server_major_version;
56  uint16_t server_minor_version;
58 
62 typedef struct xcb_dpms_capable_cookie_t {
63  unsigned int sequence;
65 
67 #define XCB_DPMS_CAPABLE 1
68 
73  uint8_t major_opcode;
74  uint8_t minor_opcode;
75  uint16_t length;
77 
81 typedef struct xcb_dpms_capable_reply_t {
82  uint8_t response_type;
83  uint8_t pad0;
84  uint16_t sequence;
85  uint32_t length;
86  uint8_t capable;
87  uint8_t pad1[23];
89 
94  unsigned int sequence;
96 
98 #define XCB_DPMS_GET_TIMEOUTS 2
99 
104  uint8_t major_opcode;
105  uint8_t minor_opcode;
106  uint16_t length;
108 
113  uint8_t response_type;
114  uint8_t pad0;
115  uint16_t sequence;
116  uint32_t length;
117  uint16_t standby_timeout;
118  uint16_t suspend_timeout;
119  uint16_t off_timeout;
120  uint8_t pad1[18];
122 
124 #define XCB_DPMS_SET_TIMEOUTS 3
125 
130  uint8_t major_opcode;
131  uint8_t minor_opcode;
132  uint16_t length;
133  uint16_t standby_timeout;
134  uint16_t suspend_timeout;
135  uint16_t off_timeout;
137 
139 #define XCB_DPMS_ENABLE 4
140 
145  uint8_t major_opcode;
146  uint8_t minor_opcode;
147  uint16_t length;
149 
151 #define XCB_DPMS_DISABLE 5
152 
157  uint8_t major_opcode;
158  uint8_t minor_opcode;
159  uint16_t length;
161 
162 typedef enum xcb_dpms_dpms_mode_t {
163  XCB_DPMS_DPMS_MODE_ON = 0,
164  XCB_DPMS_DPMS_MODE_STANDBY = 1,
165  XCB_DPMS_DPMS_MODE_SUSPEND = 2,
166  XCB_DPMS_DPMS_MODE_OFF = 3
167 } xcb_dpms_dpms_mode_t;
168 
170 #define XCB_DPMS_FORCE_LEVEL 6
171 
176  uint8_t major_opcode;
177  uint8_t minor_opcode;
178  uint16_t length;
179  uint16_t power_level;
181 
185 typedef struct xcb_dpms_info_cookie_t {
186  unsigned int sequence;
188 
190 #define XCB_DPMS_INFO 7
191 
195 typedef struct xcb_dpms_info_request_t {
196  uint8_t major_opcode;
197  uint8_t minor_opcode;
198  uint16_t length;
200 
204 typedef struct xcb_dpms_info_reply_t {
205  uint8_t response_type;
206  uint8_t pad0;
207  uint16_t sequence;
208  uint32_t length;
209  uint16_t power_level;
210  uint8_t state;
211  uint8_t pad1[21];
213 
224  uint16_t client_major_version ,
225  uint16_t client_minor_version );
226 
240  uint16_t client_major_version ,
241  uint16_t client_minor_version );
242 
260  xcb_generic_error_t **e );
261 
272 
286 
304  xcb_generic_error_t **e );
305 
316 
330 
348  xcb_generic_error_t **e );
349 
363  uint16_t standby_timeout ,
364  uint16_t suspend_timeout ,
365  uint16_t off_timeout );
366 
377  uint16_t standby_timeout ,
378  uint16_t suspend_timeout ,
379  uint16_t off_timeout );
380 
394 
405 
419 
430 
444  uint16_t power_level );
445 
456  uint16_t power_level );
457 
468 
482 
499  xcb_dpms_info_cookie_t cookie ,
500  xcb_generic_error_t **e );
501 
502 
503 #ifdef __cplusplus
504 }
505 #endif
506 
507 #endif
508