00001
00002
00003
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 } xcb_dpms_capable_reply_t;
00088
00092 typedef struct xcb_dpms_get_timeouts_cookie_t {
00093 unsigned int sequence;
00094 } xcb_dpms_get_timeouts_cookie_t;
00095
00097 #define XCB_DPMS_GET_TIMEOUTS 2
00098
00102 typedef struct xcb_dpms_get_timeouts_request_t {
00103 uint8_t major_opcode;
00104 uint8_t minor_opcode;
00105 uint16_t length;
00106 } xcb_dpms_get_timeouts_request_t;
00107
00111 typedef struct xcb_dpms_get_timeouts_reply_t {
00112 uint8_t response_type;
00113 uint8_t pad0;
00114 uint16_t sequence;
00115 uint32_t length;
00116 uint16_t standby_timeout;
00117 uint16_t suspend_timeout;
00118 uint16_t off_timeout;
00119 } xcb_dpms_get_timeouts_reply_t;
00120
00122 #define XCB_DPMS_SET_TIMEOUTS 3
00123
00127 typedef struct xcb_dpms_set_timeouts_request_t {
00128 uint8_t major_opcode;
00129 uint8_t minor_opcode;
00130 uint16_t length;
00131 uint16_t standby_timeout;
00132 uint16_t suspend_timeout;
00133 uint16_t off_timeout;
00134 } xcb_dpms_set_timeouts_request_t;
00135
00137 #define XCB_DPMS_ENABLE 4
00138
00142 typedef struct xcb_dpms_enable_request_t {
00143 uint8_t major_opcode;
00144 uint8_t minor_opcode;
00145 uint16_t length;
00146 } xcb_dpms_enable_request_t;
00147
00149 #define XCB_DPMS_DISABLE 5
00150
00154 typedef struct xcb_dpms_disable_request_t {
00155 uint8_t major_opcode;
00156 uint8_t minor_opcode;
00157 uint16_t length;
00158 } xcb_dpms_disable_request_t;
00159
00161 #define XCB_DPMS_FORCE_LEVEL 6
00162
00166 typedef struct xcb_dpms_force_level_request_t {
00167 uint8_t major_opcode;
00168 uint8_t minor_opcode;
00169 uint16_t length;
00170 uint16_t power_level;
00171 } xcb_dpms_force_level_request_t;
00172
00176 typedef struct xcb_dpms_info_cookie_t {
00177 unsigned int sequence;
00178 } xcb_dpms_info_cookie_t;
00179
00181 #define XCB_DPMS_INFO 7
00182
00186 typedef struct xcb_dpms_info_request_t {
00187 uint8_t major_opcode;
00188 uint8_t minor_opcode;
00189 uint16_t length;
00190 } xcb_dpms_info_request_t;
00191
00195 typedef struct xcb_dpms_info_reply_t {
00196 uint8_t response_type;
00197 uint8_t pad0;
00198 uint16_t sequence;
00199 uint32_t length;
00200 uint16_t power_level;
00201 uint8_t state;
00202 } xcb_dpms_info_reply_t;
00203
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224 xcb_dpms_get_version_cookie_t
00225 xcb_dpms_get_version (xcb_connection_t *c ,
00226 uint16_t client_major_version ,
00227 uint16_t client_minor_version );
00228
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252 xcb_dpms_get_version_cookie_t
00253 xcb_dpms_get_version_unchecked (xcb_connection_t *c ,
00254 uint16_t client_major_version ,
00255 uint16_t client_minor_version );
00256
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283 xcb_dpms_get_version_reply_t *
00284 xcb_dpms_get_version_reply (xcb_connection_t *c ,
00285 xcb_dpms_get_version_cookie_t cookie ,
00286 xcb_generic_error_t **e );
00287
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306 xcb_dpms_capable_cookie_t
00307 xcb_dpms_capable (xcb_connection_t *c );
00308
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330 xcb_dpms_capable_cookie_t
00331 xcb_dpms_capable_unchecked (xcb_connection_t *c );
00332
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359 xcb_dpms_capable_reply_t *
00360 xcb_dpms_capable_reply (xcb_connection_t *c ,
00361 xcb_dpms_capable_cookie_t cookie ,
00362 xcb_generic_error_t **e );
00363
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382 xcb_dpms_get_timeouts_cookie_t
00383 xcb_dpms_get_timeouts (xcb_connection_t *c );
00384
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406 xcb_dpms_get_timeouts_cookie_t
00407 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c );
00408
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435 xcb_dpms_get_timeouts_reply_t *
00436 xcb_dpms_get_timeouts_reply (xcb_connection_t *c ,
00437 xcb_dpms_get_timeouts_cookie_t cookie ,
00438 xcb_generic_error_t **e );
00439
00452
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463
00464 xcb_void_cookie_t
00465 xcb_dpms_set_timeouts_checked (xcb_connection_t *c ,
00466 uint16_t standby_timeout ,
00467 uint16_t suspend_timeout ,
00468 uint16_t off_timeout );
00469
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491 xcb_void_cookie_t
00492 xcb_dpms_set_timeouts (xcb_connection_t *c ,
00493 uint16_t standby_timeout ,
00494 uint16_t suspend_timeout ,
00495 uint16_t off_timeout );
00496
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518 xcb_void_cookie_t
00519 xcb_dpms_enable_checked (xcb_connection_t *c );
00520
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539 xcb_void_cookie_t
00540 xcb_dpms_enable (xcb_connection_t *c );
00541
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563 xcb_void_cookie_t
00564 xcb_dpms_disable_checked (xcb_connection_t *c );
00565
00575
00576
00577
00578
00579
00580
00581
00582
00583
00584 xcb_void_cookie_t
00585 xcb_dpms_disable (xcb_connection_t *c );
00586
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609 xcb_void_cookie_t
00610 xcb_dpms_force_level_checked (xcb_connection_t *c ,
00611 uint16_t power_level );
00612
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632 xcb_void_cookie_t
00633 xcb_dpms_force_level (xcb_connection_t *c ,
00634 uint16_t power_level );
00635
00645
00646
00647
00648
00649
00650
00651
00652
00653
00654 xcb_dpms_info_cookie_t
00655 xcb_dpms_info (xcb_connection_t *c );
00656
00669
00670
00671
00672
00673
00674
00675
00676
00677
00678 xcb_dpms_info_cookie_t
00679 xcb_dpms_info_unchecked (xcb_connection_t *c );
00680
00696
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706
00707 xcb_dpms_info_reply_t *
00708 xcb_dpms_info_reply (xcb_connection_t *c ,
00709 xcb_dpms_info_cookie_t cookie ,
00710 xcb_generic_error_t **e );
00711
00712
00713 #ifdef __cplusplus
00714 }
00715 #endif
00716
00717 #endif
00718