XCB  1.12
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 
xcb_void_cookie_t xcb_dpms_set_timeouts(xcb_connection_t *c, uint16_t standby_timeout, uint16_t suspend_timeout, uint16_t off_timeout)
Definition: dpms.c:227
Generic error.
Definition: xcb.h:170
xcb_dpms_info_request_t
Definition: dpms.h:195
xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply(xcb_connection_t *c, xcb_dpms_get_timeouts_cookie_t cookie, xcb_generic_error_t **e)
Definition: dpms.c:189
xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked(xcb_connection_t *c, uint16_t client_major_version, uint16_t client_minor_version)
Definition: dpms.c:49
struct xcb_dpms_info_cookie_t xcb_dpms_info_cookie_t
xcb_dpms_info_cookie_t
xcb_dpms_get_version_cookie_t xcb_dpms_get_version(xcb_connection_t *c, uint16_t client_major_version, uint16_t client_minor_version)
Definition: dpms.c:21
xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked(xcb_connection_t *c)
Definition: dpms.c:109
xcb_dpms_capable_reply_t
Definition: dpms.h:81
xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply(xcb_connection_t *c, xcb_dpms_get_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: dpms.c:77
xcb_dpms_capable_cookie_t xcb_dpms_capable(xcb_connection_t *c)
Definition: dpms.c:85
struct xcb_dpms_capable_cookie_t xcb_dpms_capable_cookie_t
xcb_dpms_capable_cookie_t
xcb_dpms_get_timeouts_request_t
Definition: dpms.h:103
Definition: xcbext.h:39
xcb_dpms_capable_reply_t * xcb_dpms_capable_reply(xcb_connection_t *c, xcb_dpms_capable_cookie_t cookie, xcb_generic_error_t **e)
Definition: dpms.c:133
struct xcb_dpms_disable_request_t xcb_dpms_disable_request_t
xcb_dpms_disable_request_t
struct xcb_dpms_info_request_t xcb_dpms_info_request_t
xcb_dpms_info_request_t
xcb_dpms_force_level_request_t
Definition: dpms.h:175
xcb_dpms_get_timeouts_reply_t
Definition: dpms.h:112
xcb_dpms_disable_request_t
Definition: dpms.h:156
xcb_void_cookie_t xcb_dpms_set_timeouts_checked(xcb_connection_t *c, uint16_t standby_timeout, uint16_t suspend_timeout, uint16_t off_timeout)
Definition: dpms.c:197
xcb_void_cookie_t xcb_dpms_enable_checked(xcb_connection_t *c)
Definition: dpms.c:257
struct xcb_dpms_get_version_cookie_t xcb_dpms_get_version_cookie_t
xcb_dpms_get_version_cookie_t
struct xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_cookie_t
xcb_dpms_get_timeouts_cookie_t
struct xcb_dpms_capable_reply_t xcb_dpms_capable_reply_t
xcb_dpms_capable_reply_t
xcb_dpms_info_reply_t * xcb_dpms_info_reply(xcb_connection_t *c, xcb_dpms_info_cookie_t cookie, xcb_generic_error_t **e)
Definition: dpms.c:453
struct xcb_dpms_get_version_request_t xcb_dpms_get_version_request_t
xcb_dpms_get_version_request_t
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts(xcb_connection_t *c)
Definition: dpms.c:141
struct xcb_dpms_enable_request_t xcb_dpms_enable_request_t
xcb_dpms_enable_request_t
xcb_dpms_get_version_request_t
Definition: dpms.h:39
xcb_void_cookie_t xcb_dpms_enable(xcb_connection_t *c)
Definition: dpms.c:281
xcb_dpms_enable_request_t
Definition: dpms.h:144
xcb_void_cookie_t xcb_dpms_force_level(xcb_connection_t *c, uint16_t power_level)
Definition: dpms.c:379
xcb_dpms_set_timeouts_request_t
Definition: dpms.h:129
xcb_dpms_info_cookie_t xcb_dpms_info_unchecked(xcb_connection_t *c)
Definition: dpms.c:429
struct xcb_dpms_set_timeouts_request_t xcb_dpms_set_timeouts_request_t
xcb_dpms_set_timeouts_request_t
xcb_void_cookie_t xcb_dpms_force_level_checked(xcb_connection_t *c, uint16_t power_level)
Definition: dpms.c:353
xcb_dpms_get_version_reply_t
Definition: dpms.h:50
struct xcb_dpms_info_reply_t xcb_dpms_info_reply_t
xcb_dpms_info_reply_t
struct xcb_dpms_capable_request_t xcb_dpms_capable_request_t
xcb_dpms_capable_request_t
struct xcb_dpms_get_timeouts_reply_t xcb_dpms_get_timeouts_reply_t
xcb_dpms_get_timeouts_reply_t
struct xcb_dpms_get_timeouts_request_t xcb_dpms_get_timeouts_request_t
xcb_dpms_get_timeouts_request_t
xcb_dpms_info_cookie_t xcb_dpms_info(xcb_connection_t *c)
Definition: dpms.c:405
struct xcb_dpms_get_version_reply_t xcb_dpms_get_version_reply_t
xcb_dpms_get_version_reply_t
xcb_dpms_capable_request_t
Definition: dpms.h:72
xcb_void_cookie_t xcb_dpms_disable_checked(xcb_connection_t *c)
Definition: dpms.c:305
Definition: xcbint.h:198
xcb_dpms_info_reply_t
Definition: dpms.h:204
struct xcb_dpms_force_level_request_t xcb_dpms_force_level_request_t
xcb_dpms_force_level_request_t
xcb_void_cookie_t xcb_dpms_disable(xcb_connection_t *c)
Definition: dpms.c:329
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked(xcb_connection_t *c)
Definition: dpms.c:165