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 
00200 
00201 /*****************************************************************************
00202  **
00203  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
00204  ** 
00205  ** @param xcb_connection_t *c
00206  ** @param uint16_t          client_major_version
00207  ** @param uint16_t          client_minor_version
00208  ** @returns xcb_dpms_get_version_cookie_t
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  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
00221  ** 
00222  ** @param xcb_connection_t *c
00223  ** @param uint16_t          client_major_version
00224  ** @param uint16_t          client_minor_version
00225  ** @returns xcb_dpms_get_version_cookie_t
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  ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
00238  ** 
00239  ** @param xcb_connection_t               *c
00240  ** @param xcb_dpms_get_version_cookie_t   cookie
00241  ** @param xcb_generic_error_t           **e
00242  ** @returns xcb_dpms_get_version_reply_t *
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  ** xcb_dpms_capable_cookie_t xcb_dpms_capable
00255  ** 
00256  ** @param xcb_connection_t *c
00257  ** @returns xcb_dpms_capable_cookie_t
00258  **
00259  *****************************************************************************/
00260  
00261 xcb_dpms_capable_cookie_t
00262 xcb_dpms_capable (xcb_connection_t *c  );
00263 
00264 
00265 /*****************************************************************************
00266  **
00267  ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
00268  ** 
00269  ** @param xcb_connection_t *c
00270  ** @returns xcb_dpms_capable_cookie_t
00271  **
00272  *****************************************************************************/
00273  
00274 xcb_dpms_capable_cookie_t
00275 xcb_dpms_capable_unchecked (xcb_connection_t *c  );
00276 
00277 
00278 /*****************************************************************************
00279  **
00280  ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
00281  ** 
00282  ** @param xcb_connection_t           *c
00283  ** @param xcb_dpms_capable_cookie_t   cookie
00284  ** @param xcb_generic_error_t       **e
00285  ** @returns xcb_dpms_capable_reply_t *
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  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
00298  ** 
00299  ** @param xcb_connection_t *c
00300  ** @returns xcb_dpms_get_timeouts_cookie_t
00301  **
00302  *****************************************************************************/
00303  
00304 xcb_dpms_get_timeouts_cookie_t
00305 xcb_dpms_get_timeouts (xcb_connection_t *c  );
00306 
00307 
00308 /*****************************************************************************
00309  **
00310  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
00311  ** 
00312  ** @param xcb_connection_t *c
00313  ** @returns xcb_dpms_get_timeouts_cookie_t
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  ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
00324  ** 
00325  ** @param xcb_connection_t                *c
00326  ** @param xcb_dpms_get_timeouts_cookie_t   cookie
00327  ** @param xcb_generic_error_t            **e
00328  ** @returns xcb_dpms_get_timeouts_reply_t *
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  ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
00341  ** 
00342  ** @param xcb_connection_t *c
00343  ** @param uint16_t          standby_timeout
00344  ** @param uint16_t          suspend_timeout
00345  ** @param uint16_t          off_timeout
00346  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_set_timeouts
00360  ** 
00361  ** @param xcb_connection_t *c
00362  ** @param uint16_t          standby_timeout
00363  ** @param uint16_t          suspend_timeout
00364  ** @param uint16_t          off_timeout
00365  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_enable_checked
00379  ** 
00380  ** @param xcb_connection_t *c
00381  ** @returns xcb_void_cookie_t
00382  **
00383  *****************************************************************************/
00384  
00385 xcb_void_cookie_t
00386 xcb_dpms_enable_checked (xcb_connection_t *c  );
00387 
00388 
00389 /*****************************************************************************
00390  **
00391  ** xcb_void_cookie_t xcb_dpms_enable
00392  ** 
00393  ** @param xcb_connection_t *c
00394  ** @returns xcb_void_cookie_t
00395  **
00396  *****************************************************************************/
00397  
00398 xcb_void_cookie_t
00399 xcb_dpms_enable (xcb_connection_t *c  );
00400 
00401 
00402 /*****************************************************************************
00403  **
00404  ** xcb_void_cookie_t xcb_dpms_disable_checked
00405  ** 
00406  ** @param xcb_connection_t *c
00407  ** @returns xcb_void_cookie_t
00408  **
00409  *****************************************************************************/
00410  
00411 xcb_void_cookie_t
00412 xcb_dpms_disable_checked (xcb_connection_t *c  );
00413 
00414 
00415 /*****************************************************************************
00416  **
00417  ** xcb_void_cookie_t xcb_dpms_disable
00418  ** 
00419  ** @param xcb_connection_t *c
00420  ** @returns xcb_void_cookie_t
00421  **
00422  *****************************************************************************/
00423  
00424 xcb_void_cookie_t
00425 xcb_dpms_disable (xcb_connection_t *c  );
00426 
00427 
00428 /*****************************************************************************
00429  **
00430  ** xcb_void_cookie_t xcb_dpms_force_level_checked
00431  ** 
00432  ** @param xcb_connection_t *c
00433  ** @param uint16_t          power_level
00434  ** @returns xcb_void_cookie_t
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  ** xcb_void_cookie_t xcb_dpms_force_level
00446  ** 
00447  ** @param xcb_connection_t *c
00448  ** @param uint16_t          power_level
00449  ** @returns xcb_void_cookie_t
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  ** xcb_dpms_info_cookie_t xcb_dpms_info
00461  ** 
00462  ** @param xcb_connection_t *c
00463  ** @returns xcb_dpms_info_cookie_t
00464  **
00465  *****************************************************************************/
00466  
00467 xcb_dpms_info_cookie_t
00468 xcb_dpms_info (xcb_connection_t *c  );
00469 
00470 
00471 /*****************************************************************************
00472  **
00473  ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
00474  ** 
00475  ** @param xcb_connection_t *c
00476  ** @returns xcb_dpms_info_cookie_t
00477  **
00478  *****************************************************************************/
00479  
00480 xcb_dpms_info_cookie_t
00481 xcb_dpms_info_unchecked (xcb_connection_t *c  );
00482 
00483 
00484 /*****************************************************************************
00485  **
00486  ** xcb_dpms_info_reply_t * xcb_dpms_info_reply
00487  ** 
00488  ** @param xcb_connection_t        *c
00489  ** @param xcb_dpms_info_cookie_t   cookie
00490  ** @param xcb_generic_error_t    **e
00491  ** @returns xcb_dpms_info_reply_t *
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 

Generated on Tue Aug 14 02:13:02 2007 for XCB by  doxygen 1.5.2