1 /* 2 * This file generated automatically from dpms.xml by c-client.xsl using XSLT. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_DPMS_API XCB DPMS API 8 * @brief DPMS XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 13 module std.c.linux.X11.xcb.dpms; 14 15 import std.c.linux.X11.xcb.xcb; 16 17 const int XCB_DPMS_MAJOR_VERSION =0; 18 const int XCB_DPMS_MINOR_VERSION =0; 19 20 extern(C) extern xcb_extension_t xcb_dpms_id; 21 22 /** 23 * @brief xcb_dpms_get_version_cookie_t 24 **/ 25 struct xcb_dpms_get_version_cookie_t { 26 uint sequence; /**< */ 27 } ; 28 29 /** Opcode for xcb_dpms_get_version. */ 30 const uint XCB_DPMS_GET_VERSION = 0; 31 32 /** 33 * @brief xcb_dpms_get_version_request_t 34 **/ 35 struct xcb_dpms_get_version_request_t { 36 ubyte major_opcode; /**< */ 37 ubyte minor_opcode; /**< */ 38 ushort length; /**< */ 39 ushort client_major_version; /**< */ 40 ushort client_minor_version; /**< */ 41 } ; 42 43 /** 44 * @brief xcb_dpms_get_version_reply_t 45 **/ 46 struct xcb_dpms_get_version_reply_t { 47 ubyte response_type; /**< */ 48 ubyte pad0; /**< */ 49 ushort sequence; /**< */ 50 uint length; /**< */ 51 ushort server_major_version; /**< */ 52 ushort server_minor_version; /**< */ 53 } ; 54 55 /** 56 * @brief xcb_dpms_capable_cookie_t 57 **/ 58 struct xcb_dpms_capable_cookie_t { 59 uint sequence; /**< */ 60 } ; 61 62 /** Opcode for xcb_dpms_capable. */ 63 const uint XCB_DPMS_CAPABLE = 1; 64 65 /** 66 * @brief xcb_dpms_capable_request_t 67 **/ 68 struct xcb_dpms_capable_request_t { 69 ubyte major_opcode; /**< */ 70 ubyte minor_opcode; /**< */ 71 ushort length; /**< */ 72 } ; 73 74 /** 75 * @brief xcb_dpms_capable_reply_t 76 **/ 77 struct xcb_dpms_capable_reply_t { 78 ubyte response_type; /**< */ 79 ubyte pad0; /**< */ 80 ushort sequence; /**< */ 81 uint length; /**< */ 82 bool capable; /**< */ 83 } ; 84 85 /** 86 * @brief xcb_dpms_get_timeouts_cookie_t 87 **/ 88 struct xcb_dpms_get_timeouts_cookie_t { 89 uint sequence; /**< */ 90 } ; 91 92 /** Opcode for xcb_dpms_get_timeouts. */ 93 const uint XCB_DPMS_GET_TIMEOUTS = 2; 94 95 /** 96 * @brief xcb_dpms_get_timeouts_request_t 97 **/ 98 struct xcb_dpms_get_timeouts_request_t { 99 ubyte major_opcode; /**< */ 100 ubyte minor_opcode; /**< */ 101 ushort length; /**< */ 102 } ; 103 104 /** 105 * @brief xcb_dpms_get_timeouts_reply_t 106 **/ 107 struct xcb_dpms_get_timeouts_reply_t { 108 ubyte response_type; /**< */ 109 ubyte pad0; /**< */ 110 ushort sequence; /**< */ 111 uint length; /**< */ 112 ushort standby_timeout; /**< */ 113 ushort suspend_timeout; /**< */ 114 ushort off_timeout; /**< */ 115 } ; 116 117 /** Opcode for xcb_dpms_set_timeouts. */ 118 const uint XCB_DPMS_SET_TIMEOUTS = 3; 119 120 /** 121 * @brief xcb_dpms_set_timeouts_request_t 122 **/ 123 struct xcb_dpms_set_timeouts_request_t { 124 ubyte major_opcode; /**< */ 125 ubyte minor_opcode; /**< */ 126 ushort length; /**< */ 127 ushort standby_timeout; /**< */ 128 ushort suspend_timeout; /**< */ 129 ushort off_timeout; /**< */ 130 } ; 131 132 /** Opcode for xcb_dpms_enable. */ 133 const uint XCB_DPMS_ENABLE = 4; 134 135 /** 136 * @brief xcb_dpms_enable_request_t 137 **/ 138 struct xcb_dpms_enable_request_t { 139 ubyte major_opcode; /**< */ 140 ubyte minor_opcode; /**< */ 141 ushort length; /**< */ 142 } ; 143 144 /** Opcode for xcb_dpms_disable. */ 145 const uint XCB_DPMS_DISABLE = 5; 146 147 /** 148 * @brief xcb_dpms_disable_request_t 149 **/ 150 struct xcb_dpms_disable_request_t { 151 ubyte major_opcode; /**< */ 152 ubyte minor_opcode; /**< */ 153 ushort length; /**< */ 154 } ; 155 156 /** Opcode for xcb_dpms_force_level. */ 157 const uint XCB_DPMS_FORCE_LEVEL = 6; 158 159 /** 160 * @brief xcb_dpms_force_level_request_t 161 **/ 162 struct xcb_dpms_force_level_request_t { 163 ubyte major_opcode; /**< */ 164 ubyte minor_opcode; /**< */ 165 ushort length; /**< */ 166 ushort power_level; /**< */ 167 } ; 168 169 /** 170 * @brief xcb_dpms_info_cookie_t 171 **/ 172 struct xcb_dpms_info_cookie_t { 173 uint sequence; /**< */ 174 } ; 175 176 /** Opcode for xcb_dpms_info. */ 177 const uint XCB_DPMS_INFO = 7; 178 179 /** 180 * @brief xcb_dpms_info_request_t 181 **/ 182 struct xcb_dpms_info_request_t { 183 ubyte major_opcode; /**< */ 184 ubyte minor_opcode; /**< */ 185 ushort length; /**< */ 186 } ; 187 188 /** 189 * @brief xcb_dpms_info_reply_t 190 **/ 191 struct xcb_dpms_info_reply_t { 192 ubyte response_type; /**< */ 193 ubyte pad0; /**< */ 194 ushort sequence; /**< */ 195 uint length; /**< */ 196 ushort power_level; /**< */ 197 bool state; /**< */ 198 } ; 199 200 201 /***************************************************************************** 202 ** 203 ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version 204 ** 205 ** @param xcb_connection_t *c 206 ** @param ushort client_major_version 207 ** @param ushort client_minor_version 208 ** @returns xcb_dpms_get_version_cookie_t 209 ** 210 *****************************************************************************/ 211 212 extern(C) xcb_dpms_get_version_cookie_t 213 xcb_dpms_get_version (xcb_connection_t *c /**< */, 214 ushort client_major_version /**< */, 215 ushort client_minor_version /**< */); 216 217 218 /***************************************************************************** 219 ** 220 ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked 221 ** 222 ** @param xcb_connection_t *c 223 ** @param ushort client_major_version 224 ** @param ushort client_minor_version 225 ** @returns xcb_dpms_get_version_cookie_t 226 ** 227 *****************************************************************************/ 228 229 extern(C) xcb_dpms_get_version_cookie_t 230 xcb_dpms_get_version_unchecked (xcb_connection_t *c /**< */, 231 ushort client_major_version /**< */, 232 ushort client_minor_version /**< */); 233 234 235 /***************************************************************************** 236 ** 237 ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply 238 ** 239 ** @param xcb_connection_t *c 240 ** @param xcb_dpms_get_version_cookie_t cookie 241 ** @param xcb_generic_error_t **e 242 ** @returns xcb_dpms_get_version_reply_t * 243 ** 244 *****************************************************************************/ 245 246 extern(C) xcb_dpms_get_version_reply_t * 247 xcb_dpms_get_version_reply (xcb_connection_t *c /**< */, 248 xcb_dpms_get_version_cookie_t cookie /**< */, 249 xcb_generic_error_t **e /**< */); 250 251 252 /***************************************************************************** 253 ** 254 ** xcb_dpms_capable_cookie_t xcb_dpms_capable 255 ** 256 ** @param xcb_connection_t *c 257 ** @returns xcb_dpms_capable_cookie_t 258 ** 259 *****************************************************************************/ 260 261 extern(C) xcb_dpms_capable_cookie_t 262 xcb_dpms_capable (xcb_connection_t *c /**< */); 263 264 265 /***************************************************************************** 266 ** 267 ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked 268 ** 269 ** @param xcb_connection_t *c 270 ** @returns xcb_dpms_capable_cookie_t 271 ** 272 *****************************************************************************/ 273 274 extern(C) xcb_dpms_capable_cookie_t 275 xcb_dpms_capable_unchecked (xcb_connection_t *c /**< */); 276 277 278 /***************************************************************************** 279 ** 280 ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply 281 ** 282 ** @param xcb_connection_t *c 283 ** @param xcb_dpms_capable_cookie_t cookie 284 ** @param xcb_generic_error_t **e 285 ** @returns xcb_dpms_capable_reply_t * 286 ** 287 *****************************************************************************/ 288 289 extern(C) xcb_dpms_capable_reply_t * 290 xcb_dpms_capable_reply (xcb_connection_t *c /**< */, 291 xcb_dpms_capable_cookie_t cookie /**< */, 292 xcb_generic_error_t **e /**< */); 293 294 295 /***************************************************************************** 296 ** 297 ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts 298 ** 299 ** @param xcb_connection_t *c 300 ** @returns xcb_dpms_get_timeouts_cookie_t 301 ** 302 *****************************************************************************/ 303 304 extern(C) xcb_dpms_get_timeouts_cookie_t 305 xcb_dpms_get_timeouts (xcb_connection_t *c /**< */); 306 307 308 /***************************************************************************** 309 ** 310 ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked 311 ** 312 ** @param xcb_connection_t *c 313 ** @returns xcb_dpms_get_timeouts_cookie_t 314 ** 315 *****************************************************************************/ 316 317 extern(C) xcb_dpms_get_timeouts_cookie_t 318 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c /**< */); 319 320 321 /***************************************************************************** 322 ** 323 ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply 324 ** 325 ** @param xcb_connection_t *c 326 ** @param xcb_dpms_get_timeouts_cookie_t cookie 327 ** @param xcb_generic_error_t **e 328 ** @returns xcb_dpms_get_timeouts_reply_t * 329 ** 330 *****************************************************************************/ 331 332 extern(C) xcb_dpms_get_timeouts_reply_t * 333 xcb_dpms_get_timeouts_reply (xcb_connection_t *c /**< */, 334 xcb_dpms_get_timeouts_cookie_t cookie /**< */, 335 xcb_generic_error_t **e /**< */); 336 337 338 /***************************************************************************** 339 ** 340 ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked 341 ** 342 ** @param xcb_connection_t *c 343 ** @param ushort standby_timeout 344 ** @param ushort suspend_timeout 345 ** @param ushort off_timeout 346 ** @returns xcb_void_cookie_t 347 ** 348 *****************************************************************************/ 349 350 extern(C) xcb_void_cookie_t 351 xcb_dpms_set_timeouts_checked (xcb_connection_t *c /**< */, 352 ushort standby_timeout /**< */, 353 ushort suspend_timeout /**< */, 354 ushort off_timeout /**< */); 355 356 357 /***************************************************************************** 358 ** 359 ** xcb_void_cookie_t xcb_dpms_set_timeouts 360 ** 361 ** @param xcb_connection_t *c 362 ** @param ushort standby_timeout 363 ** @param ushort suspend_timeout 364 ** @param ushort off_timeout 365 ** @returns xcb_void_cookie_t 366 ** 367 *****************************************************************************/ 368 369 extern(C) xcb_void_cookie_t 370 xcb_dpms_set_timeouts (xcb_connection_t *c /**< */, 371 ushort standby_timeout /**< */, 372 ushort suspend_timeout /**< */, 373 ushort off_timeout /**< */); 374 375 376 /***************************************************************************** 377 ** 378 ** xcb_void_cookie_t xcb_dpms_enable_checked 379 ** 380 ** @param xcb_connection_t *c 381 ** @returns xcb_void_cookie_t 382 ** 383 *****************************************************************************/ 384 385 extern(C) xcb_void_cookie_t 386 xcb_dpms_enable_checked (xcb_connection_t *c /**< */); 387 388 389 /***************************************************************************** 390 ** 391 ** xcb_void_cookie_t xcb_dpms_enable 392 ** 393 ** @param xcb_connection_t *c 394 ** @returns xcb_void_cookie_t 395 ** 396 *****************************************************************************/ 397 398 extern(C) xcb_void_cookie_t 399 xcb_dpms_enable (xcb_connection_t *c /**< */); 400 401 402 /***************************************************************************** 403 ** 404 ** xcb_void_cookie_t xcb_dpms_disable_checked 405 ** 406 ** @param xcb_connection_t *c 407 ** @returns xcb_void_cookie_t 408 ** 409 *****************************************************************************/ 410 411 extern(C) xcb_void_cookie_t 412 xcb_dpms_disable_checked (xcb_connection_t *c /**< */); 413 414 415 /***************************************************************************** 416 ** 417 ** xcb_void_cookie_t xcb_dpms_disable 418 ** 419 ** @param xcb_connection_t *c 420 ** @returns xcb_void_cookie_t 421 ** 422 *****************************************************************************/ 423 424 extern(C) xcb_void_cookie_t 425 xcb_dpms_disable (xcb_connection_t *c /**< */); 426 427 428 /***************************************************************************** 429 ** 430 ** xcb_void_cookie_t xcb_dpms_force_level_checked 431 ** 432 ** @param xcb_connection_t *c 433 ** @param ushort power_level 434 ** @returns xcb_void_cookie_t 435 ** 436 *****************************************************************************/ 437 438 extern(C) xcb_void_cookie_t 439 xcb_dpms_force_level_checked (xcb_connection_t *c /**< */, 440 ushort power_level /**< */); 441 442 443 /***************************************************************************** 444 ** 445 ** xcb_void_cookie_t xcb_dpms_force_level 446 ** 447 ** @param xcb_connection_t *c 448 ** @param ushort power_level 449 ** @returns xcb_void_cookie_t 450 ** 451 *****************************************************************************/ 452 453 extern(C) xcb_void_cookie_t 454 xcb_dpms_force_level (xcb_connection_t *c /**< */, 455 ushort power_level /**< */); 456 457 458 /***************************************************************************** 459 ** 460 ** xcb_dpms_info_cookie_t xcb_dpms_info 461 ** 462 ** @param xcb_connection_t *c 463 ** @returns xcb_dpms_info_cookie_t 464 ** 465 *****************************************************************************/ 466 467 extern(C) xcb_dpms_info_cookie_t 468 xcb_dpms_info (xcb_connection_t *c /**< */); 469 470 471 /***************************************************************************** 472 ** 473 ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked 474 ** 475 ** @param xcb_connection_t *c 476 ** @returns xcb_dpms_info_cookie_t 477 ** 478 *****************************************************************************/ 479 480 extern(C) xcb_dpms_info_cookie_t 481 xcb_dpms_info_unchecked (xcb_connection_t *c /**< */); 482 483 484 /***************************************************************************** 485 ** 486 ** xcb_dpms_info_reply_t * xcb_dpms_info_reply 487 ** 488 ** @param xcb_connection_t *c 489 ** @param xcb_dpms_info_cookie_t cookie 490 ** @param xcb_generic_error_t **e 491 ** @returns xcb_dpms_info_reply_t * 492 ** 493 *****************************************************************************/ 494 495 extern(C) xcb_dpms_info_reply_t * 496 xcb_dpms_info_reply (xcb_connection_t *c /**< */, 497 xcb_dpms_info_cookie_t cookie /**< */, 498 xcb_generic_error_t **e /**< */); 499 500 501 502 /** 503 * @} 504 */