XCB 1.9
dpms.h
00001 /*
00002  * This file generated automatically from dpms.xml by c_client.py.
00003  * Edit at your peril.
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     uint8_t  pad1[23]; 
00088 } xcb_dpms_capable_reply_t;
00089 
00093 typedef struct xcb_dpms_get_timeouts_cookie_t {
00094     unsigned int sequence; 
00095 } xcb_dpms_get_timeouts_cookie_t;
00096 
00098 #define XCB_DPMS_GET_TIMEOUTS 2
00099 
00103 typedef struct xcb_dpms_get_timeouts_request_t {
00104     uint8_t  major_opcode; 
00105     uint8_t  minor_opcode; 
00106     uint16_t length; 
00107 } xcb_dpms_get_timeouts_request_t;
00108 
00112 typedef struct xcb_dpms_get_timeouts_reply_t {
00113     uint8_t  response_type; 
00114     uint8_t  pad0; 
00115     uint16_t sequence; 
00116     uint32_t length; 
00117     uint16_t standby_timeout; 
00118     uint16_t suspend_timeout; 
00119     uint16_t off_timeout; 
00120     uint8_t  pad1[18]; 
00121 } xcb_dpms_get_timeouts_reply_t;
00122 
00124 #define XCB_DPMS_SET_TIMEOUTS 3
00125 
00129 typedef struct xcb_dpms_set_timeouts_request_t {
00130     uint8_t  major_opcode; 
00131     uint8_t  minor_opcode; 
00132     uint16_t length; 
00133     uint16_t standby_timeout; 
00134     uint16_t suspend_timeout; 
00135     uint16_t off_timeout; 
00136 } xcb_dpms_set_timeouts_request_t;
00137 
00139 #define XCB_DPMS_ENABLE 4
00140 
00144 typedef struct xcb_dpms_enable_request_t {
00145     uint8_t  major_opcode; 
00146     uint8_t  minor_opcode; 
00147     uint16_t length; 
00148 } xcb_dpms_enable_request_t;
00149 
00151 #define XCB_DPMS_DISABLE 5
00152 
00156 typedef struct xcb_dpms_disable_request_t {
00157     uint8_t  major_opcode; 
00158     uint8_t  minor_opcode; 
00159     uint16_t length; 
00160 } xcb_dpms_disable_request_t;
00161 
00162 typedef enum xcb_dpms_dpms_mode_t {
00163     XCB_DPMS_DPMS_MODE_ON,
00164     XCB_DPMS_DPMS_MODE_STANDBY,
00165     XCB_DPMS_DPMS_MODE_SUSPEND,
00166     XCB_DPMS_DPMS_MODE_OFF
00167 } xcb_dpms_dpms_mode_t;
00168 
00170 #define XCB_DPMS_FORCE_LEVEL 6
00171 
00175 typedef struct xcb_dpms_force_level_request_t {
00176     uint8_t  major_opcode; 
00177     uint8_t  minor_opcode; 
00178     uint16_t length; 
00179     uint16_t power_level; 
00180 } xcb_dpms_force_level_request_t;
00181 
00185 typedef struct xcb_dpms_info_cookie_t {
00186     unsigned int sequence; 
00187 } xcb_dpms_info_cookie_t;
00188 
00190 #define XCB_DPMS_INFO 7
00191 
00195 typedef struct xcb_dpms_info_request_t {
00196     uint8_t  major_opcode; 
00197     uint8_t  minor_opcode; 
00198     uint16_t length; 
00199 } xcb_dpms_info_request_t;
00200 
00204 typedef struct xcb_dpms_info_reply_t {
00205     uint8_t  response_type; 
00206     uint8_t  pad0; 
00207     uint16_t sequence; 
00208     uint32_t length; 
00209     uint16_t power_level; 
00210     uint8_t  state; 
00211     uint8_t  pad1[21]; 
00212 } xcb_dpms_info_reply_t;
00213 
00223 /*****************************************************************************
00224  **
00225  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
00226  ** 
00227  ** @param xcb_connection_t *c
00228  ** @param uint16_t          client_major_version
00229  ** @param uint16_t          client_minor_version
00230  ** @returns xcb_dpms_get_version_cookie_t
00231  **
00232  *****************************************************************************/
00233  
00234 xcb_dpms_get_version_cookie_t
00235 xcb_dpms_get_version (xcb_connection_t *c  ,
00236                       uint16_t          client_major_version  ,
00237                       uint16_t          client_minor_version  );
00238 
00251 /*****************************************************************************
00252  **
00253  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
00254  ** 
00255  ** @param xcb_connection_t *c
00256  ** @param uint16_t          client_major_version
00257  ** @param uint16_t          client_minor_version
00258  ** @returns xcb_dpms_get_version_cookie_t
00259  **
00260  *****************************************************************************/
00261  
00262 xcb_dpms_get_version_cookie_t
00263 xcb_dpms_get_version_unchecked (xcb_connection_t *c  ,
00264                                 uint16_t          client_major_version  ,
00265                                 uint16_t          client_minor_version  );
00266 
00282 /*****************************************************************************
00283  **
00284  ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
00285  ** 
00286  ** @param xcb_connection_t               *c
00287  ** @param xcb_dpms_get_version_cookie_t   cookie
00288  ** @param xcb_generic_error_t           **e
00289  ** @returns xcb_dpms_get_version_reply_t *
00290  **
00291  *****************************************************************************/
00292  
00293 xcb_dpms_get_version_reply_t *
00294 xcb_dpms_get_version_reply (xcb_connection_t               *c  ,
00295                             xcb_dpms_get_version_cookie_t   cookie  ,
00296                             xcb_generic_error_t           **e  );
00297 
00307 /*****************************************************************************
00308  **
00309  ** xcb_dpms_capable_cookie_t xcb_dpms_capable
00310  ** 
00311  ** @param xcb_connection_t *c
00312  ** @returns xcb_dpms_capable_cookie_t
00313  **
00314  *****************************************************************************/
00315  
00316 xcb_dpms_capable_cookie_t
00317 xcb_dpms_capable (xcb_connection_t *c  );
00318 
00331 /*****************************************************************************
00332  **
00333  ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
00334  ** 
00335  ** @param xcb_connection_t *c
00336  ** @returns xcb_dpms_capable_cookie_t
00337  **
00338  *****************************************************************************/
00339  
00340 xcb_dpms_capable_cookie_t
00341 xcb_dpms_capable_unchecked (xcb_connection_t *c  );
00342 
00358 /*****************************************************************************
00359  **
00360  ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
00361  ** 
00362  ** @param xcb_connection_t           *c
00363  ** @param xcb_dpms_capable_cookie_t   cookie
00364  ** @param xcb_generic_error_t       **e
00365  ** @returns xcb_dpms_capable_reply_t *
00366  **
00367  *****************************************************************************/
00368  
00369 xcb_dpms_capable_reply_t *
00370 xcb_dpms_capable_reply (xcb_connection_t           *c  ,
00371                         xcb_dpms_capable_cookie_t   cookie  ,
00372                         xcb_generic_error_t       **e  );
00373 
00383 /*****************************************************************************
00384  **
00385  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
00386  ** 
00387  ** @param xcb_connection_t *c
00388  ** @returns xcb_dpms_get_timeouts_cookie_t
00389  **
00390  *****************************************************************************/
00391  
00392 xcb_dpms_get_timeouts_cookie_t
00393 xcb_dpms_get_timeouts (xcb_connection_t *c  );
00394 
00407 /*****************************************************************************
00408  **
00409  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
00410  ** 
00411  ** @param xcb_connection_t *c
00412  ** @returns xcb_dpms_get_timeouts_cookie_t
00413  **
00414  *****************************************************************************/
00415  
00416 xcb_dpms_get_timeouts_cookie_t
00417 xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c  );
00418 
00434 /*****************************************************************************
00435  **
00436  ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
00437  ** 
00438  ** @param xcb_connection_t                *c
00439  ** @param xcb_dpms_get_timeouts_cookie_t   cookie
00440  ** @param xcb_generic_error_t            **e
00441  ** @returns xcb_dpms_get_timeouts_reply_t *
00442  **
00443  *****************************************************************************/
00444  
00445 xcb_dpms_get_timeouts_reply_t *
00446 xcb_dpms_get_timeouts_reply (xcb_connection_t                *c  ,
00447                              xcb_dpms_get_timeouts_cookie_t   cookie  ,
00448                              xcb_generic_error_t            **e  );
00449 
00462 /*****************************************************************************
00463  **
00464  ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
00465  ** 
00466  ** @param xcb_connection_t *c
00467  ** @param uint16_t          standby_timeout
00468  ** @param uint16_t          suspend_timeout
00469  ** @param uint16_t          off_timeout
00470  ** @returns xcb_void_cookie_t
00471  **
00472  *****************************************************************************/
00473  
00474 xcb_void_cookie_t
00475 xcb_dpms_set_timeouts_checked (xcb_connection_t *c  ,
00476                                uint16_t          standby_timeout  ,
00477                                uint16_t          suspend_timeout  ,
00478                                uint16_t          off_timeout  );
00479 
00489 /*****************************************************************************
00490  **
00491  ** xcb_void_cookie_t xcb_dpms_set_timeouts
00492  ** 
00493  ** @param xcb_connection_t *c
00494  ** @param uint16_t          standby_timeout
00495  ** @param uint16_t          suspend_timeout
00496  ** @param uint16_t          off_timeout
00497  ** @returns xcb_void_cookie_t
00498  **
00499  *****************************************************************************/
00500  
00501 xcb_void_cookie_t
00502 xcb_dpms_set_timeouts (xcb_connection_t *c  ,
00503                        uint16_t          standby_timeout  ,
00504                        uint16_t          suspend_timeout  ,
00505                        uint16_t          off_timeout  );
00506 
00519 /*****************************************************************************
00520  **
00521  ** xcb_void_cookie_t xcb_dpms_enable_checked
00522  ** 
00523  ** @param xcb_connection_t *c
00524  ** @returns xcb_void_cookie_t
00525  **
00526  *****************************************************************************/
00527  
00528 xcb_void_cookie_t
00529 xcb_dpms_enable_checked (xcb_connection_t *c  );
00530 
00540 /*****************************************************************************
00541  **
00542  ** xcb_void_cookie_t xcb_dpms_enable
00543  ** 
00544  ** @param xcb_connection_t *c
00545  ** @returns xcb_void_cookie_t
00546  **
00547  *****************************************************************************/
00548  
00549 xcb_void_cookie_t
00550 xcb_dpms_enable (xcb_connection_t *c  );
00551 
00564 /*****************************************************************************
00565  **
00566  ** xcb_void_cookie_t xcb_dpms_disable_checked
00567  ** 
00568  ** @param xcb_connection_t *c
00569  ** @returns xcb_void_cookie_t
00570  **
00571  *****************************************************************************/
00572  
00573 xcb_void_cookie_t
00574 xcb_dpms_disable_checked (xcb_connection_t *c  );
00575 
00585 /*****************************************************************************
00586  **
00587  ** xcb_void_cookie_t xcb_dpms_disable
00588  ** 
00589  ** @param xcb_connection_t *c
00590  ** @returns xcb_void_cookie_t
00591  **
00592  *****************************************************************************/
00593  
00594 xcb_void_cookie_t
00595 xcb_dpms_disable (xcb_connection_t *c  );
00596 
00609 /*****************************************************************************
00610  **
00611  ** xcb_void_cookie_t xcb_dpms_force_level_checked
00612  ** 
00613  ** @param xcb_connection_t *c
00614  ** @param uint16_t          power_level
00615  ** @returns xcb_void_cookie_t
00616  **
00617  *****************************************************************************/
00618  
00619 xcb_void_cookie_t
00620 xcb_dpms_force_level_checked (xcb_connection_t *c  ,
00621                               uint16_t          power_level  );
00622 
00632 /*****************************************************************************
00633  **
00634  ** xcb_void_cookie_t xcb_dpms_force_level
00635  ** 
00636  ** @param xcb_connection_t *c
00637  ** @param uint16_t          power_level
00638  ** @returns xcb_void_cookie_t
00639  **
00640  *****************************************************************************/
00641  
00642 xcb_void_cookie_t
00643 xcb_dpms_force_level (xcb_connection_t *c  ,
00644                       uint16_t          power_level  );
00645 
00655 /*****************************************************************************
00656  **
00657  ** xcb_dpms_info_cookie_t xcb_dpms_info
00658  ** 
00659  ** @param xcb_connection_t *c
00660  ** @returns xcb_dpms_info_cookie_t
00661  **
00662  *****************************************************************************/
00663  
00664 xcb_dpms_info_cookie_t
00665 xcb_dpms_info (xcb_connection_t *c  );
00666 
00679 /*****************************************************************************
00680  **
00681  ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
00682  ** 
00683  ** @param xcb_connection_t *c
00684  ** @returns xcb_dpms_info_cookie_t
00685  **
00686  *****************************************************************************/
00687  
00688 xcb_dpms_info_cookie_t
00689 xcb_dpms_info_unchecked (xcb_connection_t *c  );
00690 
00706 /*****************************************************************************
00707  **
00708  ** xcb_dpms_info_reply_t * xcb_dpms_info_reply
00709  ** 
00710  ** @param xcb_connection_t        *c
00711  ** @param xcb_dpms_info_cookie_t   cookie
00712  ** @param xcb_generic_error_t    **e
00713  ** @returns xcb_dpms_info_reply_t *
00714  **
00715  *****************************************************************************/
00716  
00717 xcb_dpms_info_reply_t *
00718 xcb_dpms_info_reply (xcb_connection_t        *c  ,
00719                      xcb_dpms_info_cookie_t   cookie  ,
00720                      xcb_generic_error_t    **e  );
00721 
00722 
00723 #ifdef __cplusplus
00724 }
00725 #endif
00726 
00727 #endif
00728