dpms.h

00001 /*
00002  * This file generated automatically from dpms.xml by c-client.xsl using XSLT.
00003  * Edit at your peril.
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  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
00212  ** 
00213  ** @param xcb_connection_t *c
00214  ** @param uint16_t          client_major_version
00215  ** @param uint16_t          client_minor_version
00216  ** @returns xcb_dpms_get_version_cookie_t
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  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
00240  ** 
00241  ** @param xcb_connection_t *c
00242  ** @param uint16_t          client_major_version
00243  ** @param uint16_t          client_minor_version
00244  ** @returns xcb_dpms_get_version_cookie_t
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  ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
00269  ** 
00270  ** @param xcb_connection_t               *c
00271  ** @param xcb_dpms_get_version_cookie_t   cookie
00272  ** @param xcb_generic_error_t           **e
00273  ** @returns xcb_dpms_get_version_reply_t *
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  ** xcb_dpms_capable_cookie_t xcb_dpms_capable
00294  ** 
00295  ** @param xcb_connection_t *c
00296  ** @returns xcb_dpms_capable_cookie_t
00297  **
00298  *****************************************************************************/
00299  
00300 xcb_dpms_capable_cookie_t
00301 xcb_dpms_capable (xcb_connection_t *c  );
00302 
00315 /*****************************************************************************
00316  **
00317  ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
00318  ** 
00319  ** @param xcb_connection_t *c
00320  ** @returns xcb_dpms_capable_cookie_t
00321  **
00322  *****************************************************************************/
00323  
00324 xcb_dpms_capable_cookie_t
00325 xcb_dpms_capable_unchecked (xcb_connection_t *c  );
00326 
00340 /*****************************************************************************
00341  **
00342  ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
00343  ** 
00344  ** @param xcb_connection_t           *c
00345  ** @param xcb_dpms_capable_cookie_t   cookie
00346  ** @param xcb_generic_error_t       **e
00347  ** @returns xcb_dpms_capable_reply_t *
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  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
00368  ** 
00369  ** @param xcb_connection_t *c
00370  ** @returns xcb_dpms_get_timeouts_cookie_t
00371  **
00372  *****************************************************************************/
00373  
00374 xcb_dpms_get_timeouts_cookie_t
00375 xcb_dpms_get_timeouts (xcb_connection_t *c  );
00376 
00389 /*****************************************************************************
00390  **
00391  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
00392  ** 
00393  ** @param xcb_connection_t *c
00394  ** @returns xcb_dpms_get_timeouts_cookie_t
00395  **
00396  *****************************************************************************/
00397  
00398 xcb_dpms_get_timeouts_cookie_t
00399 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c  );
00400 
00414 /*****************************************************************************
00415  **
00416  ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
00417  ** 
00418  ** @param xcb_connection_t                *c
00419  ** @param xcb_dpms_get_timeouts_cookie_t   cookie
00420  ** @param xcb_generic_error_t            **e
00421  ** @returns xcb_dpms_get_timeouts_reply_t *
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  ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
00445  ** 
00446  ** @param xcb_connection_t *c
00447  ** @param uint16_t          standby_timeout
00448  ** @param uint16_t          suspend_timeout
00449  ** @param uint16_t          off_timeout
00450  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_set_timeouts
00472  ** 
00473  ** @param xcb_connection_t *c
00474  ** @param uint16_t          standby_timeout
00475  ** @param uint16_t          suspend_timeout
00476  ** @param uint16_t          off_timeout
00477  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_enable_checked
00502  ** 
00503  ** @param xcb_connection_t *c
00504  ** @returns xcb_void_cookie_t
00505  **
00506  *****************************************************************************/
00507  
00508 xcb_void_cookie_t
00509 xcb_dpms_enable_checked (xcb_connection_t *c  );
00510 
00520 /*****************************************************************************
00521  **
00522  ** xcb_void_cookie_t xcb_dpms_enable
00523  ** 
00524  ** @param xcb_connection_t *c
00525  ** @returns xcb_void_cookie_t
00526  **
00527  *****************************************************************************/
00528  
00529 xcb_void_cookie_t
00530 xcb_dpms_enable (xcb_connection_t *c  );
00531 
00544 /*****************************************************************************
00545  **
00546  ** xcb_void_cookie_t xcb_dpms_disable_checked
00547  ** 
00548  ** @param xcb_connection_t *c
00549  ** @returns xcb_void_cookie_t
00550  **
00551  *****************************************************************************/
00552  
00553 xcb_void_cookie_t
00554 xcb_dpms_disable_checked (xcb_connection_t *c  );
00555 
00565 /*****************************************************************************
00566  **
00567  ** xcb_void_cookie_t xcb_dpms_disable
00568  ** 
00569  ** @param xcb_connection_t *c
00570  ** @returns xcb_void_cookie_t
00571  **
00572  *****************************************************************************/
00573  
00574 xcb_void_cookie_t
00575 xcb_dpms_disable (xcb_connection_t *c  );
00576 
00589 /*****************************************************************************
00590  **
00591  ** xcb_void_cookie_t xcb_dpms_force_level_checked
00592  ** 
00593  ** @param xcb_connection_t *c
00594  ** @param uint16_t          power_level
00595  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_force_level
00615  ** 
00616  ** @param xcb_connection_t *c
00617  ** @param uint16_t          power_level
00618  ** @returns xcb_void_cookie_t
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  ** xcb_dpms_info_cookie_t xcb_dpms_info
00638  ** 
00639  ** @param xcb_connection_t *c
00640  ** @returns xcb_dpms_info_cookie_t
00641  **
00642  *****************************************************************************/
00643  
00644 xcb_dpms_info_cookie_t
00645 xcb_dpms_info (xcb_connection_t *c  );
00646 
00659 /*****************************************************************************
00660  **
00661  ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
00662  ** 
00663  ** @param xcb_connection_t *c
00664  ** @returns xcb_dpms_info_cookie_t
00665  **
00666  *****************************************************************************/
00667  
00668 xcb_dpms_info_cookie_t
00669 xcb_dpms_info_unchecked (xcb_connection_t *c  );
00670 
00684 /*****************************************************************************
00685  **
00686  ** xcb_dpms_info_reply_t * xcb_dpms_info_reply
00687  ** 
00688  ** @param xcb_connection_t        *c
00689  ** @param xcb_dpms_info_cookie_t   cookie
00690  ** @param xcb_generic_error_t    **e
00691  ** @returns xcb_dpms_info_reply_t *
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 

Generated on Wed Feb 13 13:57:25 2008 for XCB by  doxygen 1.5.4