Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:37

0001 /*
0002  * This file generated automatically from ge.xml by c_client.py.
0003  * Edit at your peril.
0004  */
0005 
0006 /**
0007  * @defgroup XCB_GenericEvent_API XCB GenericEvent API
0008  * @brief GenericEvent XCB Protocol Implementation.
0009  * @{
0010  **/
0011 
0012 #ifndef __GE_H
0013 #define __GE_H
0014 
0015 #include "xcb.h"
0016 
0017 #ifdef __cplusplus
0018 extern "C" {
0019 #endif
0020 
0021 #define XCB_GENERICEVENT_MAJOR_VERSION 1
0022 #define XCB_GENERICEVENT_MINOR_VERSION 0
0023 
0024 extern xcb_extension_t xcb_genericevent_id;
0025 
0026 /**
0027  * @brief xcb_genericevent_query_version_cookie_t
0028  **/
0029 typedef struct xcb_genericevent_query_version_cookie_t {
0030     unsigned int sequence;
0031 } xcb_genericevent_query_version_cookie_t;
0032 
0033 /** Opcode for xcb_genericevent_query_version. */
0034 #define XCB_GENERICEVENT_QUERY_VERSION 0
0035 
0036 /**
0037  * @brief xcb_genericevent_query_version_request_t
0038  **/
0039 typedef struct xcb_genericevent_query_version_request_t {
0040     uint8_t  major_opcode;
0041     uint8_t  minor_opcode;
0042     uint16_t length;
0043     uint16_t client_major_version;
0044     uint16_t client_minor_version;
0045 } xcb_genericevent_query_version_request_t;
0046 
0047 /**
0048  * @brief xcb_genericevent_query_version_reply_t
0049  **/
0050 typedef struct xcb_genericevent_query_version_reply_t {
0051     uint8_t  response_type;
0052     uint8_t  pad0;
0053     uint16_t sequence;
0054     uint32_t length;
0055     uint16_t major_version;
0056     uint16_t minor_version;
0057     uint8_t  pad1[20];
0058 } xcb_genericevent_query_version_reply_t;
0059 
0060 /**
0061  *
0062  * @param c The connection
0063  * @return A cookie
0064  *
0065  * Delivers a request to the X server.
0066  *
0067  */
0068 xcb_genericevent_query_version_cookie_t
0069 xcb_genericevent_query_version (xcb_connection_t *c,
0070                                 uint16_t          client_major_version,
0071                                 uint16_t          client_minor_version);
0072 
0073 /**
0074  *
0075  * @param c The connection
0076  * @return A cookie
0077  *
0078  * Delivers a request to the X server.
0079  *
0080  * This form can be used only if the request will cause
0081  * a reply to be generated. Any returned error will be
0082  * placed in the event queue.
0083  */
0084 xcb_genericevent_query_version_cookie_t
0085 xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
0086                                           uint16_t          client_major_version,
0087                                           uint16_t          client_minor_version);
0088 
0089 /**
0090  * Return the reply
0091  * @param c      The connection
0092  * @param cookie The cookie
0093  * @param e      The xcb_generic_error_t supplied
0094  *
0095  * Returns the reply of the request asked by
0096  *
0097  * The parameter @p e supplied to this function must be NULL if
0098  * xcb_genericevent_query_version_unchecked(). is used.
0099  * Otherwise, it stores the error if any.
0100  *
0101  * The returned value must be freed by the caller using free().
0102  */
0103 xcb_genericevent_query_version_reply_t *
0104 xcb_genericevent_query_version_reply (xcb_connection_t                         *c,
0105                                       xcb_genericevent_query_version_cookie_t   cookie  /**< */,
0106                                       xcb_generic_error_t                     **e);
0107 
0108 
0109 #ifdef __cplusplus
0110 }
0111 #endif
0112 
0113 #endif
0114 
0115 /**
0116  * @}
0117  */