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
29 typedef struct xcb_dpms_get_version_cookie_t {
30 unsigned int sequence;
31 } xcb_dpms_get_version_cookie_t;
32
34 #define XCB_DPMS_GET_VERSION 0
35
39 typedef struct xcb_dpms_get_version_request_t {
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;
45 } xcb_dpms_get_version_request_t;
46
50 typedef struct xcb_dpms_get_version_reply_t {
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;
57 } xcb_dpms_get_version_reply_t;
58
62 typedef struct xcb_dpms_capable_cookie_t {
63 unsigned int sequence;
64 } xcb_dpms_capable_cookie_t;
65
67 #define XCB_DPMS_CAPABLE 1
68
72 typedef struct xcb_dpms_capable_request_t {
73 uint8_t major_opcode;
74 uint8_t minor_opcode;
75 uint16_t length;
76 } xcb_dpms_capable_request_t;
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];
88 } xcb_dpms_capable_reply_t;
89
93 typedef struct xcb_dpms_get_timeouts_cookie_t {
94 unsigned int sequence;
95 } xcb_dpms_get_timeouts_cookie_t;
96
98 #define XCB_DPMS_GET_TIMEOUTS 2
99
103 typedef struct xcb_dpms_get_timeouts_request_t {
104 uint8_t major_opcode;
105 uint8_t minor_opcode;
106 uint16_t length;
107 } xcb_dpms_get_timeouts_request_t;
108
112 typedef struct xcb_dpms_get_timeouts_reply_t {
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];
121 } xcb_dpms_get_timeouts_reply_t;
122
124 #define XCB_DPMS_SET_TIMEOUTS 3
125
129 typedef struct xcb_dpms_set_timeouts_request_t {
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;
136 } xcb_dpms_set_timeouts_request_t;
137
139 #define XCB_DPMS_ENABLE 4
140
144 typedef struct xcb_dpms_enable_request_t {
145 uint8_t major_opcode;
146 uint8_t minor_opcode;
147 uint16_t length;
148 } xcb_dpms_enable_request_t;
149
151 #define XCB_DPMS_DISABLE 5
152
156 typedef struct xcb_dpms_disable_request_t {
157 uint8_t major_opcode;
158 uint8_t minor_opcode;
159 uint16_t length;
160 } xcb_dpms_disable_request_t;
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
175 typedef struct xcb_dpms_force_level_request_t {
176 uint8_t major_opcode;
177 uint8_t minor_opcode;
178 uint16_t length;
179 uint16_t power_level;
180 } xcb_dpms_force_level_request_t;
181
185 typedef struct xcb_dpms_info_cookie_t {
186 unsigned int sequence;
187 } xcb_dpms_info_cookie_t;
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;
199 } xcb_dpms_info_request_t;
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];
212 } xcb_dpms_info_reply_t;
213
222 xcb_dpms_get_version_cookie_t
223 xcb_dpms_get_version (xcb_connection_t *c,
224 uint16_t client_major_version,
225 uint16_t client_minor_version);
226
238 xcb_dpms_get_version_cookie_t
239 xcb_dpms_get_version_unchecked (xcb_connection_t *c,
240 uint16_t client_major_version,
241 uint16_t client_minor_version);
242
257 xcb_dpms_get_version_reply_t *
258 xcb_dpms_get_version_reply (xcb_connection_t *c,
259 xcb_dpms_get_version_cookie_t cookie ,
260 xcb_generic_error_t **e);
261
270 xcb_dpms_capable_cookie_t
271 xcb_dpms_capable (xcb_connection_t *c);
272
284 xcb_dpms_capable_cookie_t
285 xcb_dpms_capable_unchecked (xcb_connection_t *c);
286
301 xcb_dpms_capable_reply_t *
302 xcb_dpms_capable_reply (xcb_connection_t *c,
303 xcb_dpms_capable_cookie_t cookie ,
304 xcb_generic_error_t **e);
305
314 xcb_dpms_get_timeouts_cookie_t
315 xcb_dpms_get_timeouts (xcb_connection_t *c);
316
328 xcb_dpms_get_timeouts_cookie_t
329 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c);
330
345 xcb_dpms_get_timeouts_reply_t *
346 xcb_dpms_get_timeouts_reply (xcb_connection_t *c,
347 xcb_dpms_get_timeouts_cookie_t cookie ,
348 xcb_generic_error_t **e);
349
361 xcb_void_cookie_t
362 xcb_dpms_set_timeouts_checked (xcb_connection_t *c,
363 uint16_t standby_timeout,
364 uint16_t suspend_timeout,
365 uint16_t off_timeout);
366
375 xcb_void_cookie_t
376 xcb_dpms_set_timeouts (xcb_connection_t *c,
377 uint16_t standby_timeout,
378 uint16_t suspend_timeout,
379 uint16_t off_timeout);
380
392 xcb_void_cookie_t
393 xcb_dpms_enable_checked (xcb_connection_t *c);
394
403 xcb_void_cookie_t
404 xcb_dpms_enable (xcb_connection_t *c);
405
417 xcb_void_cookie_t
418 xcb_dpms_disable_checked (xcb_connection_t *c);
419
428 xcb_void_cookie_t
429 xcb_dpms_disable (xcb_connection_t *c);
430
442 xcb_void_cookie_t
443 xcb_dpms_force_level_checked (xcb_connection_t *c,
444 uint16_t power_level);
445
454 xcb_void_cookie_t
455 xcb_dpms_force_level (xcb_connection_t *c,
456 uint16_t power_level);
457
466 xcb_dpms_info_cookie_t
467 xcb_dpms_info (xcb_connection_t *c);
468
480 xcb_dpms_info_cookie_t
481 xcb_dpms_info_unchecked (xcb_connection_t *c);
482
497 xcb_dpms_info_reply_t *
498 xcb_dpms_info_reply (xcb_connection_t *c,
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_dpms_set_timeouts
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
xcb_generic_error_t
Generic error.
Definition: xcb.h:170
xcb_dpms_capable_cookie_t
xcb_dpms_capable_cookie_t
Definition: dpms.h:62
xcb_dpms_info_request_t
xcb_dpms_info_request_t
Definition: dpms.h:195
xcb_dpms_get_timeouts_reply
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_unchecked
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
xcb_dpms_info_cookie_t
struct xcb_dpms_info_cookie_t xcb_dpms_info_cookie_t
xcb_dpms_info_cookie_t
xcb_dpms_get_version
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_unchecked
xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked(xcb_connection_t *c)
Definition: dpms.c:109
xcb_dpms_capable_reply_t
xcb_dpms_capable_reply_t
Definition: dpms.h:81
xcb_dpms_get_version_reply
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
xcb_dpms_capable_cookie_t xcb_dpms_capable(xcb_connection_t *c)
Definition: dpms.c:85
xcb_dpms_capable_cookie_t
struct xcb_dpms_capable_cookie_t xcb_dpms_capable_cookie_t
xcb_dpms_capable_cookie_t
xcb_dpms_get_timeouts_request_t
xcb_dpms_get_timeouts_request_t
Definition: dpms.h:103
xcb_extension_t
Definition: xcbext.h:39
xcb_dpms_capable_reply
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
xcb_dpms_disable_request_t
struct xcb_dpms_disable_request_t xcb_dpms_disable_request_t
xcb_dpms_disable_request_t
xcb_dpms_info_request_t
struct xcb_dpms_info_request_t xcb_dpms_info_request_t
xcb_dpms_info_request_t
xcb_dpms_force_level_request_t
xcb_dpms_force_level_request_t
Definition: dpms.h:175
xcb_dpms_get_timeouts_reply_t
xcb_dpms_get_timeouts_reply_t
Definition: dpms.h:112
xcb_dpms_disable_request_t
xcb_dpms_disable_request_t
Definition: dpms.h:156
xcb_dpms_set_timeouts_checked
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_dpms_enable_checked
xcb_void_cookie_t xcb_dpms_enable_checked(xcb_connection_t *c)
Definition: dpms.c:257
xcb_dpms_get_version_cookie_t
struct xcb_dpms_get_version_cookie_t xcb_dpms_get_version_cookie_t
xcb_dpms_get_version_cookie_t
xcb_dpms_get_timeouts_cookie_t
xcb_dpms_get_timeouts_cookie_t
Definition: dpms.h:93
xcb_dpms_get_timeouts_cookie_t
struct xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_cookie_t
xcb_dpms_get_timeouts_cookie_t
xcb_dpms_capable_reply_t
struct xcb_dpms_capable_reply_t xcb_dpms_capable_reply_t
xcb_dpms_capable_reply_t
xcb_dpms_info_reply
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
xcb_dpms_get_version_request_t
struct xcb_dpms_get_version_request_t xcb_dpms_get_version_request_t
xcb_dpms_get_version_request_t
xcb_dpms_get_timeouts
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts(xcb_connection_t *c)
Definition: dpms.c:141
xcb_dpms_enable_request_t
struct xcb_dpms_enable_request_t xcb_dpms_enable_request_t
xcb_dpms_enable_request_t
xcb_dpms_get_version_request_t
xcb_dpms_get_version_request_t
Definition: dpms.h:39
xcb_dpms_enable
xcb_void_cookie_t xcb_dpms_enable(xcb_connection_t *c)
Definition: dpms.c:281
xcb_dpms_info_cookie_t
xcb_dpms_info_cookie_t
Definition: dpms.h:185
xcb_dpms_enable_request_t
xcb_dpms_enable_request_t
Definition: dpms.h:144
xcb_dpms_force_level
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
xcb_dpms_set_timeouts_request_t
Definition: dpms.h:129
xcb_dpms_info_unchecked
xcb_dpms_info_cookie_t xcb_dpms_info_unchecked(xcb_connection_t *c)
Definition: dpms.c:429
xcb_dpms_set_timeouts_request_t
struct xcb_dpms_set_timeouts_request_t xcb_dpms_set_timeouts_request_t
xcb_dpms_set_timeouts_request_t
xcb_dpms_force_level_checked
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
xcb_dpms_get_version_reply_t
Definition: dpms.h:50
xcb_dpms_info_reply_t
struct xcb_dpms_info_reply_t xcb_dpms_info_reply_t
xcb_dpms_info_reply_t
xcb_dpms_capable_request_t
struct xcb_dpms_capable_request_t xcb_dpms_capable_request_t
xcb_dpms_capable_request_t
xcb_dpms_get_timeouts_reply_t
struct xcb_dpms_get_timeouts_reply_t xcb_dpms_get_timeouts_reply_t
xcb_dpms_get_timeouts_reply_t
xcb_dpms_get_version_cookie_t
xcb_dpms_get_version_cookie_t
Definition: dpms.h:29
xcb_dpms_get_timeouts_request_t
struct xcb_dpms_get_timeouts_request_t xcb_dpms_get_timeouts_request_t
xcb_dpms_get_timeouts_request_t
xcb_dpms_info
xcb_dpms_info_cookie_t xcb_dpms_info(xcb_connection_t *c)
Definition: dpms.c:405
xcb_dpms_get_version_reply_t
struct xcb_dpms_get_version_reply_t xcb_dpms_get_version_reply_t
xcb_dpms_get_version_reply_t
xcb_dpms_capable_request_t
xcb_dpms_capable_request_t
Definition: dpms.h:72
xcb_dpms_disable_checked
xcb_void_cookie_t xcb_dpms_disable_checked(xcb_connection_t *c)
Definition: dpms.c:305
xcb.h
xcb_connection_t
Definition: xcbint.h:195
xcb_dpms_info_reply_t
xcb_dpms_info_reply_t
Definition: dpms.h:204
xcb_void_cookie_t
Generic cookie.
Definition: xcb.h:187
xcb_dpms_force_level_request_t
struct xcb_dpms_force_level_request_t xcb_dpms_force_level_request_t
xcb_dpms_force_level_request_t
xcb_dpms_disable
xcb_void_cookie_t xcb_dpms_disable(xcb_connection_t *c)
Definition: dpms.c:329
xcb_dpms_get_timeouts_unchecked
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked(xcb_connection_t *c)
Definition: dpms.c:165