XCB
1.11.1
|
00001 /* 00002 * This file generated automatically from dpms.xml by c_client.py. 00003 * Edit at your peril. 00004 */ 00005 00012 #ifndef __DPMS_H 00013 #define __DPMS_H 00014 00015 #include "xcb.h" 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00021 #define XCB_DPMS_MAJOR_VERSION 0 00022 #define XCB_DPMS_MINOR_VERSION 0 00023 00024 extern xcb_extension_t xcb_dpms_id; 00025 00029 typedef struct xcb_dpms_get_version_cookie_t { 00030 unsigned int sequence; 00031 } xcb_dpms_get_version_cookie_t; 00032 00034 #define XCB_DPMS_GET_VERSION 0 00035 00039 typedef struct xcb_dpms_get_version_request_t { 00040 uint8_t major_opcode; 00041 uint8_t minor_opcode; 00042 uint16_t length; 00043 uint16_t client_major_version; 00044 uint16_t client_minor_version; 00045 } xcb_dpms_get_version_request_t; 00046 00050 typedef struct xcb_dpms_get_version_reply_t { 00051 uint8_t response_type; 00052 uint8_t pad0; 00053 uint16_t sequence; 00054 uint32_t length; 00055 uint16_t server_major_version; 00056 uint16_t server_minor_version; 00057 } xcb_dpms_get_version_reply_t; 00058 00062 typedef struct xcb_dpms_capable_cookie_t { 00063 unsigned int sequence; 00064 } xcb_dpms_capable_cookie_t; 00065 00067 #define XCB_DPMS_CAPABLE 1 00068 00072 typedef struct xcb_dpms_capable_request_t { 00073 uint8_t major_opcode; 00074 uint8_t minor_opcode; 00075 uint16_t length; 00076 } xcb_dpms_capable_request_t; 00077 00081 typedef struct xcb_dpms_capable_reply_t { 00082 uint8_t response_type; 00083 uint8_t pad0; 00084 uint16_t sequence; 00085 uint32_t length; 00086 uint8_t capable; 00087 uint8_t pad1[23]; 00088 } xcb_dpms_capable_reply_t; 00089 00093 typedef struct xcb_dpms_get_timeouts_cookie_t { 00094 unsigned int sequence; 00095 } xcb_dpms_get_timeouts_cookie_t; 00096 00098 #define XCB_DPMS_GET_TIMEOUTS 2 00099 00103 typedef struct xcb_dpms_get_timeouts_request_t { 00104 uint8_t major_opcode; 00105 uint8_t minor_opcode; 00106 uint16_t length; 00107 } xcb_dpms_get_timeouts_request_t; 00108 00112 typedef struct xcb_dpms_get_timeouts_reply_t { 00113 uint8_t response_type; 00114 uint8_t pad0; 00115 uint16_t sequence; 00116 uint32_t length; 00117 uint16_t standby_timeout; 00118 uint16_t suspend_timeout; 00119 uint16_t off_timeout; 00120 uint8_t pad1[18]; 00121 } xcb_dpms_get_timeouts_reply_t; 00122 00124 #define XCB_DPMS_SET_TIMEOUTS 3 00125 00129 typedef struct xcb_dpms_set_timeouts_request_t { 00130 uint8_t major_opcode; 00131 uint8_t minor_opcode; 00132 uint16_t length; 00133 uint16_t standby_timeout; 00134 uint16_t suspend_timeout; 00135 uint16_t off_timeout; 00136 } xcb_dpms_set_timeouts_request_t; 00137 00139 #define XCB_DPMS_ENABLE 4 00140 00144 typedef struct xcb_dpms_enable_request_t { 00145 uint8_t major_opcode; 00146 uint8_t minor_opcode; 00147 uint16_t length; 00148 } xcb_dpms_enable_request_t; 00149 00151 #define XCB_DPMS_DISABLE 5 00152 00156 typedef struct xcb_dpms_disable_request_t { 00157 uint8_t major_opcode; 00158 uint8_t minor_opcode; 00159 uint16_t length; 00160 } xcb_dpms_disable_request_t; 00161 00162 typedef enum xcb_dpms_dpms_mode_t { 00163 XCB_DPMS_DPMS_MODE_ON = 0, 00164 XCB_DPMS_DPMS_MODE_STANDBY = 1, 00165 XCB_DPMS_DPMS_MODE_SUSPEND = 2, 00166 XCB_DPMS_DPMS_MODE_OFF = 3 00167 } xcb_dpms_dpms_mode_t; 00168 00170 #define XCB_DPMS_FORCE_LEVEL 6 00171 00175 typedef struct xcb_dpms_force_level_request_t { 00176 uint8_t major_opcode; 00177 uint8_t minor_opcode; 00178 uint16_t length; 00179 uint16_t power_level; 00180 } xcb_dpms_force_level_request_t; 00181 00185 typedef struct xcb_dpms_info_cookie_t { 00186 unsigned int sequence; 00187 } xcb_dpms_info_cookie_t; 00188 00190 #define XCB_DPMS_INFO 7 00191 00195 typedef struct xcb_dpms_info_request_t { 00196 uint8_t major_opcode; 00197 uint8_t minor_opcode; 00198 uint16_t length; 00199 } xcb_dpms_info_request_t; 00200 00204 typedef struct xcb_dpms_info_reply_t { 00205 uint8_t response_type; 00206 uint8_t pad0; 00207 uint16_t sequence; 00208 uint32_t length; 00209 uint16_t power_level; 00210 uint8_t state; 00211 uint8_t pad1[21]; 00212 } xcb_dpms_info_reply_t; 00213 00222 xcb_dpms_get_version_cookie_t 00223 xcb_dpms_get_version (xcb_connection_t *c , 00224 uint16_t client_major_version , 00225 uint16_t client_minor_version ); 00226 00238 xcb_dpms_get_version_cookie_t 00239 xcb_dpms_get_version_unchecked (xcb_connection_t *c , 00240 uint16_t client_major_version , 00241 uint16_t client_minor_version ); 00242 00257 xcb_dpms_get_version_reply_t * 00258 xcb_dpms_get_version_reply (xcb_connection_t *c , 00259 xcb_dpms_get_version_cookie_t cookie , 00260 xcb_generic_error_t **e ); 00261 00270 xcb_dpms_capable_cookie_t 00271 xcb_dpms_capable (xcb_connection_t *c ); 00272 00284 xcb_dpms_capable_cookie_t 00285 xcb_dpms_capable_unchecked (xcb_connection_t *c ); 00286 00301 xcb_dpms_capable_reply_t * 00302 xcb_dpms_capable_reply (xcb_connection_t *c , 00303 xcb_dpms_capable_cookie_t cookie , 00304 xcb_generic_error_t **e ); 00305 00314 xcb_dpms_get_timeouts_cookie_t 00315 xcb_dpms_get_timeouts (xcb_connection_t *c ); 00316 00328 xcb_dpms_get_timeouts_cookie_t 00329 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c ); 00330 00345 xcb_dpms_get_timeouts_reply_t * 00346 xcb_dpms_get_timeouts_reply (xcb_connection_t *c , 00347 xcb_dpms_get_timeouts_cookie_t cookie , 00348 xcb_generic_error_t **e ); 00349 00361 xcb_void_cookie_t 00362 xcb_dpms_set_timeouts_checked (xcb_connection_t *c , 00363 uint16_t standby_timeout , 00364 uint16_t suspend_timeout , 00365 uint16_t off_timeout ); 00366 00375 xcb_void_cookie_t 00376 xcb_dpms_set_timeouts (xcb_connection_t *c , 00377 uint16_t standby_timeout , 00378 uint16_t suspend_timeout , 00379 uint16_t off_timeout ); 00380 00392 xcb_void_cookie_t 00393 xcb_dpms_enable_checked (xcb_connection_t *c ); 00394 00403 xcb_void_cookie_t 00404 xcb_dpms_enable (xcb_connection_t *c ); 00405 00417 xcb_void_cookie_t 00418 xcb_dpms_disable_checked (xcb_connection_t *c ); 00419 00428 xcb_void_cookie_t 00429 xcb_dpms_disable (xcb_connection_t *c ); 00430 00442 xcb_void_cookie_t 00443 xcb_dpms_force_level_checked (xcb_connection_t *c , 00444 uint16_t power_level ); 00445 00454 xcb_void_cookie_t 00455 xcb_dpms_force_level (xcb_connection_t *c , 00456 uint16_t power_level ); 00457 00466 xcb_dpms_info_cookie_t 00467 xcb_dpms_info (xcb_connection_t *c ); 00468 00480 xcb_dpms_info_cookie_t 00481 xcb_dpms_info_unchecked (xcb_connection_t *c ); 00482 00497 xcb_dpms_info_reply_t * 00498 xcb_dpms_info_reply (xcb_connection_t *c , 00499 xcb_dpms_info_cookie_t cookie , 00500 xcb_generic_error_t **e ); 00501 00502 00503 #ifdef __cplusplus 00504 } 00505 #endif 00506 00507 #endif 00508