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
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277 xcb_dpms_get_version_reply_t *
00278 xcb_dpms_get_version_reply (xcb_connection_t *c ,
00279 xcb_dpms_get_version_cookie_t cookie ,
00280 xcb_generic_error_t **e );
00281
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300 xcb_dpms_capable_cookie_t
00301 xcb_dpms_capable (xcb_connection_t *c );
00302
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324 xcb_dpms_capable_cookie_t
00325 xcb_dpms_capable_unchecked (xcb_connection_t *c );
00326
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351 xcb_dpms_capable_reply_t *
00352 xcb_dpms_capable_reply (xcb_connection_t *c ,
00353 xcb_dpms_capable_cookie_t cookie ,
00354 xcb_generic_error_t **e );
00355
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374 xcb_dpms_get_timeouts_cookie_t
00375 xcb_dpms_get_timeouts (xcb_connection_t *c );
00376
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398 xcb_dpms_get_timeouts_cookie_t
00399 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c );
00400
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425 xcb_dpms_get_timeouts_reply_t *
00426 xcb_dpms_get_timeouts_reply (xcb_connection_t *c ,
00427 xcb_dpms_get_timeouts_cookie_t cookie ,
00428 xcb_generic_error_t **e );
00429
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454 xcb_void_cookie_t
00455 xcb_dpms_set_timeouts_checked (xcb_connection_t *c ,
00456 uint16_t standby_timeout ,
00457 uint16_t suspend_timeout ,
00458 uint16_t off_timeout );
00459
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481 xcb_void_cookie_t
00482 xcb_dpms_set_timeouts (xcb_connection_t *c ,
00483 uint16_t standby_timeout ,
00484 uint16_t suspend_timeout ,
00485 uint16_t off_timeout );
00486
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508 xcb_void_cookie_t
00509 xcb_dpms_enable_checked (xcb_connection_t *c );
00510
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529 xcb_void_cookie_t
00530 xcb_dpms_enable (xcb_connection_t *c );
00531
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553 xcb_void_cookie_t
00554 xcb_dpms_disable_checked (xcb_connection_t *c );
00555
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574 xcb_void_cookie_t
00575 xcb_dpms_disable (xcb_connection_t *c );
00576
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599 xcb_void_cookie_t
00600 xcb_dpms_force_level_checked (xcb_connection_t *c ,
00601 uint16_t power_level );
00602
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622 xcb_void_cookie_t
00623 xcb_dpms_force_level (xcb_connection_t *c ,
00624 uint16_t power_level );
00625
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644 xcb_dpms_info_cookie_t
00645 xcb_dpms_info (xcb_connection_t *c );
00646
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668 xcb_dpms_info_cookie_t
00669 xcb_dpms_info_unchecked (xcb_connection_t *c );
00670
00684
00685
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695 xcb_dpms_info_reply_t *
00696 xcb_dpms_info_reply (xcb_connection_t *c ,
00697 xcb_dpms_info_cookie_t cookie ,
00698 xcb_generic_error_t **e );
00699
00700
00701 #endif
00702