00001
00002
00003
00004
00005
00012 #ifndef __DPMS_H
00013 #define __DPMS_H
00014
00015 #include "xcb.h"
00016
00017 #define XCB_DPMS_MAJOR_VERSION 0
00018 #define XCB_DPMS_MINOR_VERSION 0
00019
00020 extern xcb_extension_t xcb_dpms_id;
00021
00025 typedef struct xcb_dpms_get_version_cookie_t {
00026 unsigned int sequence;
00027 } xcb_dpms_get_version_cookie_t;
00028
00030 #define XCB_DPMS_GET_VERSION 0
00031
00035 typedef struct xcb_dpms_get_version_request_t {
00036 uint8_t major_opcode;
00037 uint8_t minor_opcode;
00038 uint16_t length;
00039 uint16_t client_major_version;
00040 uint16_t client_minor_version;
00041 } xcb_dpms_get_version_request_t;
00042
00046 typedef struct xcb_dpms_get_version_reply_t {
00047 uint8_t response_type;
00048 uint8_t pad0;
00049 uint16_t sequence;
00050 uint32_t length;
00051 uint16_t server_major_version;
00052 uint16_t server_minor_version;
00053 } xcb_dpms_get_version_reply_t;
00054
00058 typedef struct xcb_dpms_capable_cookie_t {
00059 unsigned int sequence;
00060 } xcb_dpms_capable_cookie_t;
00061
00063 #define XCB_DPMS_CAPABLE 1
00064
00068 typedef struct xcb_dpms_capable_request_t {
00069 uint8_t major_opcode;
00070 uint8_t minor_opcode;
00071 uint16_t length;
00072 } xcb_dpms_capable_request_t;
00073
00077 typedef struct xcb_dpms_capable_reply_t {
00078 uint8_t response_type;
00079 uint8_t pad0;
00080 uint16_t sequence;
00081 uint32_t length;
00082 uint8_t capable;
00083 } xcb_dpms_capable_reply_t;
00084
00088 typedef struct xcb_dpms_get_timeouts_cookie_t {
00089 unsigned int sequence;
00090 } xcb_dpms_get_timeouts_cookie_t;
00091
00093 #define XCB_DPMS_GET_TIMEOUTS 2
00094
00098 typedef struct xcb_dpms_get_timeouts_request_t {
00099 uint8_t major_opcode;
00100 uint8_t minor_opcode;
00101 uint16_t length;
00102 } xcb_dpms_get_timeouts_request_t;
00103
00107 typedef struct xcb_dpms_get_timeouts_reply_t {
00108 uint8_t response_type;
00109 uint8_t pad0;
00110 uint16_t sequence;
00111 uint32_t length;
00112 uint16_t standby_timeout;
00113 uint16_t suspend_timeout;
00114 uint16_t off_timeout;
00115 } xcb_dpms_get_timeouts_reply_t;
00116
00118 #define XCB_DPMS_SET_TIMEOUTS 3
00119
00123 typedef struct xcb_dpms_set_timeouts_request_t {
00124 uint8_t major_opcode;
00125 uint8_t minor_opcode;
00126 uint16_t length;
00127 uint16_t standby_timeout;
00128 uint16_t suspend_timeout;
00129 uint16_t off_timeout;
00130 } xcb_dpms_set_timeouts_request_t;
00131
00133 #define XCB_DPMS_ENABLE 4
00134
00138 typedef struct xcb_dpms_enable_request_t {
00139 uint8_t major_opcode;
00140 uint8_t minor_opcode;
00141 uint16_t length;
00142 } xcb_dpms_enable_request_t;
00143
00145 #define XCB_DPMS_DISABLE 5
00146
00150 typedef struct xcb_dpms_disable_request_t {
00151 uint8_t major_opcode;
00152 uint8_t minor_opcode;
00153 uint16_t length;
00154 } xcb_dpms_disable_request_t;
00155
00157 #define XCB_DPMS_FORCE_LEVEL 6
00158
00162 typedef struct xcb_dpms_force_level_request_t {
00163 uint8_t major_opcode;
00164 uint8_t minor_opcode;
00165 uint16_t length;
00166 uint16_t power_level;
00167 } xcb_dpms_force_level_request_t;
00168
00172 typedef struct xcb_dpms_info_cookie_t {
00173 unsigned int sequence;
00174 } xcb_dpms_info_cookie_t;
00175
00177 #define XCB_DPMS_INFO 7
00178
00182 typedef struct xcb_dpms_info_request_t {
00183 uint8_t major_opcode;
00184 uint8_t minor_opcode;
00185 uint16_t length;
00186 } xcb_dpms_info_request_t;
00187
00191 typedef struct xcb_dpms_info_reply_t {
00192 uint8_t response_type;
00193 uint8_t pad0;
00194 uint16_t sequence;
00195 uint32_t length;
00196 uint16_t power_level;
00197 uint8_t state;
00198 } xcb_dpms_info_reply_t;
00199
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220 xcb_dpms_get_version_cookie_t
00221 xcb_dpms_get_version (xcb_connection_t *c ,
00222 uint16_t client_major_version ,
00223 uint16_t client_minor_version );
00224
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248 xcb_dpms_get_version_cookie_t
00249 xcb_dpms_get_version_unchecked (xcb_connection_t *c ,
00250 uint16_t client_major_version ,
00251 uint16_t client_minor_version );
00252
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279 xcb_dpms_get_version_reply_t *
00280 xcb_dpms_get_version_reply (xcb_connection_t *c ,
00281 xcb_dpms_get_version_cookie_t cookie ,
00282 xcb_generic_error_t **e );
00283
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302 xcb_dpms_capable_cookie_t
00303 xcb_dpms_capable (xcb_connection_t *c );
00304
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326 xcb_dpms_capable_cookie_t
00327 xcb_dpms_capable_unchecked (xcb_connection_t *c );
00328
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355 xcb_dpms_capable_reply_t *
00356 xcb_dpms_capable_reply (xcb_connection_t *c ,
00357 xcb_dpms_capable_cookie_t cookie ,
00358 xcb_generic_error_t **e );
00359
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378 xcb_dpms_get_timeouts_cookie_t
00379 xcb_dpms_get_timeouts (xcb_connection_t *c );
00380
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402 xcb_dpms_get_timeouts_cookie_t
00403 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c );
00404
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431 xcb_dpms_get_timeouts_reply_t *
00432 xcb_dpms_get_timeouts_reply (xcb_connection_t *c ,
00433 xcb_dpms_get_timeouts_cookie_t cookie ,
00434 xcb_generic_error_t **e );
00435
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460 xcb_void_cookie_t
00461 xcb_dpms_set_timeouts_checked (xcb_connection_t *c ,
00462 uint16_t standby_timeout ,
00463 uint16_t suspend_timeout ,
00464 uint16_t off_timeout );
00465
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487 xcb_void_cookie_t
00488 xcb_dpms_set_timeouts (xcb_connection_t *c ,
00489 uint16_t standby_timeout ,
00490 uint16_t suspend_timeout ,
00491 uint16_t off_timeout );
00492
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514 xcb_void_cookie_t
00515 xcb_dpms_enable_checked (xcb_connection_t *c );
00516
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535 xcb_void_cookie_t
00536 xcb_dpms_enable (xcb_connection_t *c );
00537
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559 xcb_void_cookie_t
00560 xcb_dpms_disable_checked (xcb_connection_t *c );
00561
00571
00572
00573
00574
00575
00576
00577
00578
00579
00580 xcb_void_cookie_t
00581 xcb_dpms_disable (xcb_connection_t *c );
00582
00595
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605 xcb_void_cookie_t
00606 xcb_dpms_force_level_checked (xcb_connection_t *c ,
00607 uint16_t power_level );
00608
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628 xcb_void_cookie_t
00629 xcb_dpms_force_level (xcb_connection_t *c ,
00630 uint16_t power_level );
00631
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650 xcb_dpms_info_cookie_t
00651 xcb_dpms_info (xcb_connection_t *c );
00652
00665
00666
00667
00668
00669
00670
00671
00672
00673
00674 xcb_dpms_info_cookie_t
00675 xcb_dpms_info_unchecked (xcb_connection_t *c );
00676
00692
00693
00694
00695
00696
00697
00698
00699
00700
00701
00702
00703 xcb_dpms_info_reply_t *
00704 xcb_dpms_info_reply (xcb_connection_t *c ,
00705 xcb_dpms_info_cookie_t cookie ,
00706 xcb_generic_error_t **e );
00707
00708
00709 #endif
00710