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
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212 xcb_dpms_get_version_cookie_t
00213 xcb_dpms_get_version (xcb_connection_t *c ,
00214 uint16_t client_major_version ,
00215 uint16_t client_minor_version );
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229 xcb_dpms_get_version_cookie_t
00230 xcb_dpms_get_version_unchecked (xcb_connection_t *c ,
00231 uint16_t client_major_version ,
00232 uint16_t client_minor_version );
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246 xcb_dpms_get_version_reply_t *
00247 xcb_dpms_get_version_reply (xcb_connection_t *c ,
00248 xcb_dpms_get_version_cookie_t cookie ,
00249 xcb_generic_error_t **e );
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261 xcb_dpms_capable_cookie_t
00262 xcb_dpms_capable (xcb_connection_t *c );
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274 xcb_dpms_capable_cookie_t
00275 xcb_dpms_capable_unchecked (xcb_connection_t *c );
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289 xcb_dpms_capable_reply_t *
00290 xcb_dpms_capable_reply (xcb_connection_t *c ,
00291 xcb_dpms_capable_cookie_t cookie ,
00292 xcb_generic_error_t **e );
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304 xcb_dpms_get_timeouts_cookie_t
00305 xcb_dpms_get_timeouts (xcb_connection_t *c );
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317 xcb_dpms_get_timeouts_cookie_t
00318 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c );
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332 xcb_dpms_get_timeouts_reply_t *
00333 xcb_dpms_get_timeouts_reply (xcb_connection_t *c ,
00334 xcb_dpms_get_timeouts_cookie_t cookie ,
00335 xcb_generic_error_t **e );
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350 xcb_void_cookie_t
00351 xcb_dpms_set_timeouts_checked (xcb_connection_t *c ,
00352 uint16_t standby_timeout ,
00353 uint16_t suspend_timeout ,
00354 uint16_t off_timeout );
00355
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369 xcb_void_cookie_t
00370 xcb_dpms_set_timeouts (xcb_connection_t *c ,
00371 uint16_t standby_timeout ,
00372 uint16_t suspend_timeout ,
00373 uint16_t off_timeout );
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385 xcb_void_cookie_t
00386 xcb_dpms_enable_checked (xcb_connection_t *c );
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398 xcb_void_cookie_t
00399 xcb_dpms_enable (xcb_connection_t *c );
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411 xcb_void_cookie_t
00412 xcb_dpms_disable_checked (xcb_connection_t *c );
00413
00414
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424 xcb_void_cookie_t
00425 xcb_dpms_disable (xcb_connection_t *c );
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438 xcb_void_cookie_t
00439 xcb_dpms_force_level_checked (xcb_connection_t *c ,
00440 uint16_t power_level );
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453 xcb_void_cookie_t
00454 xcb_dpms_force_level (xcb_connection_t *c ,
00455 uint16_t power_level );
00456
00457
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467 xcb_dpms_info_cookie_t
00468 xcb_dpms_info (xcb_connection_t *c );
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480 xcb_dpms_info_cookie_t
00481 xcb_dpms_info_unchecked (xcb_connection_t *c );
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495 xcb_dpms_info_reply_t *
00496 xcb_dpms_info_reply (xcb_connection_t *c ,
00497 xcb_dpms_info_cookie_t cookie ,
00498 xcb_generic_error_t **e );
00499
00500
00501 #endif
00502