XCB: dpms.h Source File

XCB 1.17.0

dpms.h
1/*
2 * This file generated automatically from dpms.xml by c_client.py.
3 * Edit at your peril.
4 */
5
11
12#ifndef __DPMS_H
13#define __DPMS_H
14
15#include "xcb.h"
16#include "xproto.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define XCB_DPMS_MAJOR_VERSION 1
23#define XCB_DPMS_MINOR_VERSION 2
24
25extern xcb_extension_t xcb_dpms_id;
26
30 typedef struct xcb_dpms_get_version_cookie_t {
31 unsigned int sequence;
32} xcb_dpms_get_version_cookie_t;
33
35#define XCB_DPMS_GET_VERSION 0
36
40 typedef struct xcb_dpms_get_version_request_t {
41 uint8_t major_opcode;
42 uint8_t minor_opcode;
43 uint16_t length;
44 uint16_t client_major_version;
45 uint16_t client_minor_version;
46} xcb_dpms_get_version_request_t;
47
51 typedef struct xcb_dpms_get_version_reply_t {
52 uint8_t response_type;
53 uint8_t pad0;
54 uint16_t sequence;
55 uint32_t length;
56 uint16_t server_major_version;
57 uint16_t server_minor_version;
58} xcb_dpms_get_version_reply_t;
59
63 typedef struct xcb_dpms_capable_cookie_t {
64 unsigned int sequence;
65} xcb_dpms_capable_cookie_t;
66
68#define XCB_DPMS_CAPABLE 1
69
73 typedef struct xcb_dpms_capable_request_t {
74 uint8_t major_opcode;
75 uint8_t minor_opcode;
76 uint16_t length;
77} xcb_dpms_capable_request_t;
78
82 typedef struct xcb_dpms_capable_reply_t {
83 uint8_t response_type;
84 uint8_t pad0;
85 uint16_t sequence;
86 uint32_t length;
87 uint8_t capable;
88 uint8_t pad1[23];
89} xcb_dpms_capable_reply_t;
90
94 typedef struct xcb_dpms_get_timeouts_cookie_t {
95 unsigned int sequence;
96} xcb_dpms_get_timeouts_cookie_t;
97
99#define XCB_DPMS_GET_TIMEOUTS 2
100
104 typedef struct xcb_dpms_get_timeouts_request_t {
105 uint8_t major_opcode;
106 uint8_t minor_opcode;
107 uint16_t length;
108} xcb_dpms_get_timeouts_request_t;
109
113 typedef struct xcb_dpms_get_timeouts_reply_t {
114 uint8_t response_type;
115 uint8_t pad0;
116 uint16_t sequence;
117 uint32_t length;
118 uint16_t standby_timeout;
119 uint16_t suspend_timeout;
120 uint16_t off_timeout;
121 uint8_t pad1[18];
122} xcb_dpms_get_timeouts_reply_t;
123
125#define XCB_DPMS_SET_TIMEOUTS 3
126
130 typedef struct xcb_dpms_set_timeouts_request_t {
131 uint8_t major_opcode;
132 uint8_t minor_opcode;
133 uint16_t length;
134 uint16_t standby_timeout;
135 uint16_t suspend_timeout;
136 uint16_t off_timeout;
137} xcb_dpms_set_timeouts_request_t;
138
140#define XCB_DPMS_ENABLE 4
141
145 typedef struct xcb_dpms_enable_request_t {
146 uint8_t major_opcode;
147 uint8_t minor_opcode;
148 uint16_t length;
149} xcb_dpms_enable_request_t;
150
152#define XCB_DPMS_DISABLE 5
153
157 typedef struct xcb_dpms_disable_request_t {
158 uint8_t major_opcode;
159 uint8_t minor_opcode;
160 uint16_t length;
161} xcb_dpms_disable_request_t;
162
163typedef enum xcb_dpms_dpms_mode_t {
164 XCB_DPMS_DPMS_MODE_ON = 0,
165 XCB_DPMS_DPMS_MODE_STANDBY = 1,
166 XCB_DPMS_DPMS_MODE_SUSPEND = 2,
167 XCB_DPMS_DPMS_MODE_OFF = 3
168} xcb_dpms_dpms_mode_t;
169
171#define XCB_DPMS_FORCE_LEVEL 6
172
176 typedef struct xcb_dpms_force_level_request_t {
177 uint8_t major_opcode;
178 uint8_t minor_opcode;
179 uint16_t length;
180 uint16_t power_level;
181} xcb_dpms_force_level_request_t;
182
186 typedef struct xcb_dpms_info_cookie_t {
187 unsigned int sequence;
188} xcb_dpms_info_cookie_t;
189
191#define XCB_DPMS_INFO 7
192
196 typedef struct xcb_dpms_info_request_t {
197 uint8_t major_opcode;
198 uint8_t minor_opcode;
199 uint16_t length;
200} xcb_dpms_info_request_t;
201
205 typedef struct xcb_dpms_info_reply_t {
206 uint8_t response_type;
207 uint8_t pad0;
208 uint16_t sequence;
209 uint32_t length;
210 uint16_t power_level;
211 uint8_t state;
212 uint8_t pad1[21];
213} xcb_dpms_info_reply_t;
214
215typedef enum xcb_dpms_event_mask_t {
216 XCB_DPMS_EVENT_MASK_INFO_NOTIFY = 1
217} xcb_dpms_event_mask_t;
218
220#define XCB_DPMS_SELECT_INPUT 8
221
225 typedef struct xcb_dpms_select_input_request_t {
226 uint8_t major_opcode;
227 uint8_t minor_opcode;
228 uint16_t length;
229 uint32_t event_mask;
230} xcb_dpms_select_input_request_t;
231
233#define XCB_DPMS_INFO_NOTIFY 0
234
238 typedef struct xcb_dpms_info_notify_event_t {
239 uint8_t response_type;
240 uint8_t extension;
241 uint16_t sequence;
242 uint32_t length;
243 uint16_t event_type;
244 uint8_t pad0[2];
245 xcb_timestamp_t timestamp;
246 uint16_t power_level;
247 uint8_t state;
248 uint8_t pad1[21];
249} xcb_dpms_info_notify_event_t;
250
259 xcb_dpms_get_version_cookie_t
260 xcb_dpms_get_version (xcb_connection_t *c,
261 uint16_t client_major_version,
262 uint16_t client_minor_version);
263
275 xcb_dpms_get_version_cookie_t
276 xcb_dpms_get_version_unchecked (xcb_connection_t *c,
277 uint16_t client_major_version,
278 uint16_t client_minor_version);
279
294 xcb_dpms_get_version_reply_t *
295 xcb_dpms_get_version_reply (xcb_connection_t *c,
296 xcb_dpms_get_version_cookie_t cookie ,
297 xcb_generic_error_t **e);
298
307 xcb_dpms_capable_cookie_t
308 xcb_dpms_capable (xcb_connection_t *c);
309
321 xcb_dpms_capable_cookie_t
322 xcb_dpms_capable_unchecked (xcb_connection_t *c);
323
338 xcb_dpms_capable_reply_t *
339 xcb_dpms_capable_reply (xcb_connection_t *c,
340 xcb_dpms_capable_cookie_t cookie ,
341 xcb_generic_error_t **e);
342
351 xcb_dpms_get_timeouts_cookie_t
352 xcb_dpms_get_timeouts (xcb_connection_t *c);
353
365 xcb_dpms_get_timeouts_cookie_t
366 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c);
367
382 xcb_dpms_get_timeouts_reply_t *
383 xcb_dpms_get_timeouts_reply (xcb_connection_t *c,
384 xcb_dpms_get_timeouts_cookie_t cookie ,
385 xcb_generic_error_t **e);
386
398 xcb_void_cookie_t
399 xcb_dpms_set_timeouts_checked (xcb_connection_t *c,
400 uint16_t standby_timeout,
401 uint16_t suspend_timeout,
402 uint16_t off_timeout);
403
412 xcb_void_cookie_t
413 xcb_dpms_set_timeouts (xcb_connection_t *c,
414 uint16_t standby_timeout,
415 uint16_t suspend_timeout,
416 uint16_t off_timeout);
417
429 xcb_void_cookie_t
430 xcb_dpms_enable_checked (xcb_connection_t *c);
431
440 xcb_void_cookie_t
441 xcb_dpms_enable (xcb_connection_t *c);
442
454 xcb_void_cookie_t
455 xcb_dpms_disable_checked (xcb_connection_t *c);
456
465 xcb_void_cookie_t
466 xcb_dpms_disable (xcb_connection_t *c);
467
479 xcb_void_cookie_t
480 xcb_dpms_force_level_checked (xcb_connection_t *c,
481 uint16_t power_level);
482
491 xcb_void_cookie_t
492 xcb_dpms_force_level (xcb_connection_t *c,
493 uint16_t power_level);
494
503 xcb_dpms_info_cookie_t
504 xcb_dpms_info (xcb_connection_t *c);
505
517 xcb_dpms_info_cookie_t
518 xcb_dpms_info_unchecked (xcb_connection_t *c);
519
534 xcb_dpms_info_reply_t *
535 xcb_dpms_info_reply (xcb_connection_t *c,
536 xcb_dpms_info_cookie_t cookie ,
537 xcb_generic_error_t **e);
538
550 xcb_void_cookie_t
551 xcb_dpms_select_input_checked (xcb_connection_t *c,
552 uint32_t event_mask);
553
562 xcb_void_cookie_t
563 xcb_dpms_select_input (xcb_connection_t *c,
564 uint32_t event_mask);
565
566
567#ifdef __cplusplus
568}
569#endif
570
571#endif
572
xcb_dpms_enable
xcb_void_cookie_t xcb_dpms_enable(xcb_connection_t *c)
Definition dpms.c:282
xcb_dpms_get_timeouts
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts(xcb_connection_t *c)
Definition dpms.c:142
xcb_dpms_disable
xcb_void_cookie_t xcb_dpms_disable(xcb_connection_t *c)
Definition dpms.c:330
xcb_dpms_select_input
xcb_void_cookie_t xcb_dpms_select_input(xcb_connection_t *c, uint32_t event_mask)
Definition dpms.c:488
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:454
xcb_dpms_select_input_checked
xcb_void_cookie_t xcb_dpms_select_input_checked(xcb_connection_t *c, uint32_t event_mask)
Definition dpms.c:462
xcb_dpms_enable_checked
xcb_void_cookie_t xcb_dpms_enable_checked(xcb_connection_t *c)
Definition dpms.c:258
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:22
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:354
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:190
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:228
xcb_dpms_disable_checked
xcb_void_cookie_t xcb_dpms_disable_checked(xcb_connection_t *c)
Definition dpms.c:306
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:198
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:78
xcb_dpms_capable_unchecked
xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked(xcb_connection_t *c)
Definition dpms.c:110
xcb_dpms_info
xcb_dpms_info_cookie_t xcb_dpms_info(xcb_connection_t *c)
Definition dpms.c:406
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:134
xcb_dpms_force_level
xcb_void_cookie_t xcb_dpms_force_level(xcb_connection_t *c, uint16_t power_level)
Definition dpms.c:380
xcb_dpms_capable
xcb_dpms_capable_cookie_t xcb_dpms_capable(xcb_connection_t *c)
Definition dpms.c:86
xcb_dpms_info_unchecked
xcb_dpms_info_cookie_t xcb_dpms_info_unchecked(xcb_connection_t *c)
Definition dpms.c:430
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:50
xcb_dpms_get_timeouts_unchecked
xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked(xcb_connection_t *c)
Definition dpms.c:166
xcb_connection_t
Definition xcbint.h:208
xcb_dpms_capable_cookie_t
xcb_dpms_capable_cookie_t
Definition dpms.h:63
xcb_dpms_capable_reply_t
xcb_dpms_capable_reply_t
Definition dpms.h:82
xcb_dpms_capable_request_t
xcb_dpms_capable_request_t
Definition dpms.h:73
xcb_dpms_disable_request_t
xcb_dpms_disable_request_t
Definition dpms.h:157
xcb_dpms_enable_request_t
xcb_dpms_enable_request_t
Definition dpms.h:145
xcb_dpms_force_level_request_t
xcb_dpms_force_level_request_t
Definition dpms.h:176
xcb_dpms_get_timeouts_cookie_t
xcb_dpms_get_timeouts_cookie_t
Definition dpms.h:94
xcb_dpms_get_timeouts_reply_t
xcb_dpms_get_timeouts_reply_t
Definition dpms.h:113
xcb_dpms_get_timeouts_request_t
xcb_dpms_get_timeouts_request_t
Definition dpms.h:104
xcb_dpms_get_version_cookie_t
xcb_dpms_get_version_cookie_t
Definition dpms.h:30
xcb_dpms_get_version_reply_t
xcb_dpms_get_version_reply_t
Definition dpms.h:51
xcb_dpms_get_version_request_t
xcb_dpms_get_version_request_t
Definition dpms.h:40
xcb_dpms_info_cookie_t
xcb_dpms_info_cookie_t
Definition dpms.h:186
xcb_dpms_info_notify_event_t
xcb_dpms_info_notify_event_t
Definition dpms.h:238
xcb_dpms_info_reply_t
xcb_dpms_info_reply_t
Definition dpms.h:205
xcb_dpms_info_request_t
xcb_dpms_info_request_t
Definition dpms.h:196
xcb_dpms_select_input_request_t
xcb_dpms_select_input_request_t
Definition dpms.h:225
xcb_dpms_set_timeouts_request_t
xcb_dpms_set_timeouts_request_t
Definition dpms.h:130
xcb_extension_t
Definition xcbext.h:39
xcb_generic_error_t
Generic error.
Definition xcb.h:186
xcb_void_cookie_t
Generic cookie.
Definition xcb.h:203
xcb.h