21 #define XCB_DPMS_MAJOR_VERSION 0 22 #define XCB_DPMS_MINOR_VERSION 0 30 unsigned int sequence;
34 #define XCB_DPMS_GET_VERSION 0 43 uint16_t client_major_version;
44 uint16_t client_minor_version;
51 uint8_t response_type;
55 uint16_t server_major_version;
56 uint16_t server_minor_version;
63 unsigned int sequence;
67 #define XCB_DPMS_CAPABLE 1 82 uint8_t response_type;
94 unsigned int sequence;
98 #define XCB_DPMS_GET_TIMEOUTS 2 104 uint8_t major_opcode;
105 uint8_t minor_opcode;
113 uint8_t response_type;
117 uint16_t standby_timeout;
118 uint16_t suspend_timeout;
119 uint16_t off_timeout;
124 #define XCB_DPMS_SET_TIMEOUTS 3 130 uint8_t major_opcode;
131 uint8_t minor_opcode;
133 uint16_t standby_timeout;
134 uint16_t suspend_timeout;
135 uint16_t off_timeout;
139 #define XCB_DPMS_ENABLE 4 145 uint8_t major_opcode;
146 uint8_t minor_opcode;
151 #define XCB_DPMS_DISABLE 5 157 uint8_t major_opcode;
158 uint8_t minor_opcode;
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;
170 #define XCB_DPMS_FORCE_LEVEL 6 176 uint8_t major_opcode;
177 uint8_t minor_opcode;
179 uint16_t power_level;
186 unsigned int sequence;
190 #define XCB_DPMS_INFO 7 196 uint8_t major_opcode;
197 uint8_t minor_opcode;
205 uint8_t response_type;
209 uint16_t power_level;
224 uint16_t client_major_version,
225 uint16_t client_minor_version);
240 uint16_t client_major_version,
241 uint16_t client_minor_version);
363 uint16_t standby_timeout,
364 uint16_t suspend_timeout,
365 uint16_t off_timeout);
377 uint16_t standby_timeout,
378 uint16_t suspend_timeout,
379 uint16_t off_timeout);
444 uint16_t power_level);
456 uint16_t power_level);
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_capable_cookie_t
Definition: dpms.h:62
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
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
xcb_dpms_get_timeouts_cookie_t
Definition: dpms.h:93
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_info_cookie_t
Definition: dpms.h:185
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
xcb_dpms_get_version_cookie_t
Definition: dpms.h:29
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
xcb_dpms_info_reply_t
Definition: dpms.h:204
Generic cookie.
Definition: xcb.h:187
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