1971bb1a5SLionel Sambuc /* 2971bb1a5SLionel Sambuc * This file generated automatically from xevie.xml by c_client.py. 3971bb1a5SLionel Sambuc * Edit at your peril. 4971bb1a5SLionel Sambuc */ 5971bb1a5SLionel Sambuc 6971bb1a5SLionel Sambuc /** 7971bb1a5SLionel Sambuc * @defgroup XCB_Xevie_API XCB Xevie API 8971bb1a5SLionel Sambuc * @brief Xevie XCB Protocol Implementation. 9971bb1a5SLionel Sambuc * @{ 10971bb1a5SLionel Sambuc **/ 11971bb1a5SLionel Sambuc 12971bb1a5SLionel Sambuc #ifndef __XEVIE_H 13971bb1a5SLionel Sambuc #define __XEVIE_H 14971bb1a5SLionel Sambuc 15971bb1a5SLionel Sambuc #include "xcb.h" 16971bb1a5SLionel Sambuc 17971bb1a5SLionel Sambuc #ifdef __cplusplus 18971bb1a5SLionel Sambuc extern "C" { 19971bb1a5SLionel Sambuc #endif 20971bb1a5SLionel Sambuc 21971bb1a5SLionel Sambuc #define XCB_XEVIE_MAJOR_VERSION 1 22971bb1a5SLionel Sambuc #define XCB_XEVIE_MINOR_VERSION 0 23971bb1a5SLionel Sambuc 24971bb1a5SLionel Sambuc extern xcb_extension_t xcb_xevie_id; 25971bb1a5SLionel Sambuc 26971bb1a5SLionel Sambuc /** 27971bb1a5SLionel Sambuc * @brief xcb_xevie_query_version_cookie_t 28971bb1a5SLionel Sambuc **/ 29971bb1a5SLionel Sambuc typedef struct xcb_xevie_query_version_cookie_t { 30971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 31971bb1a5SLionel Sambuc } xcb_xevie_query_version_cookie_t; 32971bb1a5SLionel Sambuc 33971bb1a5SLionel Sambuc /** Opcode for xcb_xevie_query_version. */ 34971bb1a5SLionel Sambuc #define XCB_XEVIE_QUERY_VERSION 0 35971bb1a5SLionel Sambuc 36971bb1a5SLionel Sambuc /** 37971bb1a5SLionel Sambuc * @brief xcb_xevie_query_version_request_t 38971bb1a5SLionel Sambuc **/ 39971bb1a5SLionel Sambuc typedef struct xcb_xevie_query_version_request_t { 40971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 41971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 42971bb1a5SLionel Sambuc uint16_t length; /**< */ 43971bb1a5SLionel Sambuc uint16_t client_major_version; /**< */ 44971bb1a5SLionel Sambuc uint16_t client_minor_version; /**< */ 45971bb1a5SLionel Sambuc } xcb_xevie_query_version_request_t; 46971bb1a5SLionel Sambuc 47971bb1a5SLionel Sambuc /** 48971bb1a5SLionel Sambuc * @brief xcb_xevie_query_version_reply_t 49971bb1a5SLionel Sambuc **/ 50971bb1a5SLionel Sambuc typedef struct xcb_xevie_query_version_reply_t { 51971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 52971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 53971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 54971bb1a5SLionel Sambuc uint32_t length; /**< */ 55971bb1a5SLionel Sambuc uint16_t server_major_version; /**< */ 56971bb1a5SLionel Sambuc uint16_t server_minor_version; /**< */ 57971bb1a5SLionel Sambuc uint8_t pad1[20]; /**< */ 58971bb1a5SLionel Sambuc } xcb_xevie_query_version_reply_t; 59971bb1a5SLionel Sambuc 60971bb1a5SLionel Sambuc /** 61971bb1a5SLionel Sambuc * @brief xcb_xevie_start_cookie_t 62971bb1a5SLionel Sambuc **/ 63971bb1a5SLionel Sambuc typedef struct xcb_xevie_start_cookie_t { 64971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 65971bb1a5SLionel Sambuc } xcb_xevie_start_cookie_t; 66971bb1a5SLionel Sambuc 67971bb1a5SLionel Sambuc /** Opcode for xcb_xevie_start. */ 68971bb1a5SLionel Sambuc #define XCB_XEVIE_START 1 69971bb1a5SLionel Sambuc 70971bb1a5SLionel Sambuc /** 71971bb1a5SLionel Sambuc * @brief xcb_xevie_start_request_t 72971bb1a5SLionel Sambuc **/ 73971bb1a5SLionel Sambuc typedef struct xcb_xevie_start_request_t { 74971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 75971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 76971bb1a5SLionel Sambuc uint16_t length; /**< */ 77971bb1a5SLionel Sambuc uint32_t screen; /**< */ 78971bb1a5SLionel Sambuc } xcb_xevie_start_request_t; 79971bb1a5SLionel Sambuc 80971bb1a5SLionel Sambuc /** 81971bb1a5SLionel Sambuc * @brief xcb_xevie_start_reply_t 82971bb1a5SLionel Sambuc **/ 83971bb1a5SLionel Sambuc typedef struct xcb_xevie_start_reply_t { 84971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 85971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 86971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 87971bb1a5SLionel Sambuc uint32_t length; /**< */ 88971bb1a5SLionel Sambuc uint8_t pad1[24]; /**< */ 89971bb1a5SLionel Sambuc } xcb_xevie_start_reply_t; 90971bb1a5SLionel Sambuc 91971bb1a5SLionel Sambuc /** 92971bb1a5SLionel Sambuc * @brief xcb_xevie_end_cookie_t 93971bb1a5SLionel Sambuc **/ 94971bb1a5SLionel Sambuc typedef struct xcb_xevie_end_cookie_t { 95971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 96971bb1a5SLionel Sambuc } xcb_xevie_end_cookie_t; 97971bb1a5SLionel Sambuc 98971bb1a5SLionel Sambuc /** Opcode for xcb_xevie_end. */ 99971bb1a5SLionel Sambuc #define XCB_XEVIE_END 2 100971bb1a5SLionel Sambuc 101971bb1a5SLionel Sambuc /** 102971bb1a5SLionel Sambuc * @brief xcb_xevie_end_request_t 103971bb1a5SLionel Sambuc **/ 104971bb1a5SLionel Sambuc typedef struct xcb_xevie_end_request_t { 105971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 106971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 107971bb1a5SLionel Sambuc uint16_t length; /**< */ 108971bb1a5SLionel Sambuc uint32_t cmap; /**< */ 109971bb1a5SLionel Sambuc } xcb_xevie_end_request_t; 110971bb1a5SLionel Sambuc 111971bb1a5SLionel Sambuc /** 112971bb1a5SLionel Sambuc * @brief xcb_xevie_end_reply_t 113971bb1a5SLionel Sambuc **/ 114971bb1a5SLionel Sambuc typedef struct xcb_xevie_end_reply_t { 115971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 116971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 117971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 118971bb1a5SLionel Sambuc uint32_t length; /**< */ 119971bb1a5SLionel Sambuc uint8_t pad1[24]; /**< */ 120971bb1a5SLionel Sambuc } xcb_xevie_end_reply_t; 121971bb1a5SLionel Sambuc 122971bb1a5SLionel Sambuc typedef enum xcb_xevie_datatype_t { 123*0a6a1f1dSLionel Sambuc XCB_XEVIE_DATATYPE_UNMODIFIED = 0, 124*0a6a1f1dSLionel Sambuc XCB_XEVIE_DATATYPE_MODIFIED = 1 125971bb1a5SLionel Sambuc } xcb_xevie_datatype_t; 126971bb1a5SLionel Sambuc 127971bb1a5SLionel Sambuc /** 128971bb1a5SLionel Sambuc * @brief xcb_xevie_event_t 129971bb1a5SLionel Sambuc **/ 130971bb1a5SLionel Sambuc typedef struct xcb_xevie_event_t { 131971bb1a5SLionel Sambuc uint8_t pad0[32]; /**< */ 132971bb1a5SLionel Sambuc } xcb_xevie_event_t; 133971bb1a5SLionel Sambuc 134971bb1a5SLionel Sambuc /** 135971bb1a5SLionel Sambuc * @brief xcb_xevie_event_iterator_t 136971bb1a5SLionel Sambuc **/ 137971bb1a5SLionel Sambuc typedef struct xcb_xevie_event_iterator_t { 138971bb1a5SLionel Sambuc xcb_xevie_event_t *data; /**< */ 139971bb1a5SLionel Sambuc int rem; /**< */ 140971bb1a5SLionel Sambuc int index; /**< */ 141971bb1a5SLionel Sambuc } xcb_xevie_event_iterator_t; 142971bb1a5SLionel Sambuc 143971bb1a5SLionel Sambuc /** 144971bb1a5SLionel Sambuc * @brief xcb_xevie_send_cookie_t 145971bb1a5SLionel Sambuc **/ 146971bb1a5SLionel Sambuc typedef struct xcb_xevie_send_cookie_t { 147971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 148971bb1a5SLionel Sambuc } xcb_xevie_send_cookie_t; 149971bb1a5SLionel Sambuc 150971bb1a5SLionel Sambuc /** Opcode for xcb_xevie_send. */ 151971bb1a5SLionel Sambuc #define XCB_XEVIE_SEND 3 152971bb1a5SLionel Sambuc 153971bb1a5SLionel Sambuc /** 154971bb1a5SLionel Sambuc * @brief xcb_xevie_send_request_t 155971bb1a5SLionel Sambuc **/ 156971bb1a5SLionel Sambuc typedef struct xcb_xevie_send_request_t { 157971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 158971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 159971bb1a5SLionel Sambuc uint16_t length; /**< */ 160971bb1a5SLionel Sambuc xcb_xevie_event_t event; /**< */ 161971bb1a5SLionel Sambuc uint32_t data_type; /**< */ 162971bb1a5SLionel Sambuc uint8_t pad0[64]; /**< */ 163971bb1a5SLionel Sambuc } xcb_xevie_send_request_t; 164971bb1a5SLionel Sambuc 165971bb1a5SLionel Sambuc /** 166971bb1a5SLionel Sambuc * @brief xcb_xevie_send_reply_t 167971bb1a5SLionel Sambuc **/ 168971bb1a5SLionel Sambuc typedef struct xcb_xevie_send_reply_t { 169971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 170971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 171971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 172971bb1a5SLionel Sambuc uint32_t length; /**< */ 173971bb1a5SLionel Sambuc uint8_t pad1[24]; /**< */ 174971bb1a5SLionel Sambuc } xcb_xevie_send_reply_t; 175971bb1a5SLionel Sambuc 176971bb1a5SLionel Sambuc /** 177971bb1a5SLionel Sambuc * @brief xcb_xevie_select_input_cookie_t 178971bb1a5SLionel Sambuc **/ 179971bb1a5SLionel Sambuc typedef struct xcb_xevie_select_input_cookie_t { 180971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 181971bb1a5SLionel Sambuc } xcb_xevie_select_input_cookie_t; 182971bb1a5SLionel Sambuc 183971bb1a5SLionel Sambuc /** Opcode for xcb_xevie_select_input. */ 184971bb1a5SLionel Sambuc #define XCB_XEVIE_SELECT_INPUT 4 185971bb1a5SLionel Sambuc 186971bb1a5SLionel Sambuc /** 187971bb1a5SLionel Sambuc * @brief xcb_xevie_select_input_request_t 188971bb1a5SLionel Sambuc **/ 189971bb1a5SLionel Sambuc typedef struct xcb_xevie_select_input_request_t { 190971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 191971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 192971bb1a5SLionel Sambuc uint16_t length; /**< */ 193971bb1a5SLionel Sambuc uint32_t event_mask; /**< */ 194971bb1a5SLionel Sambuc } xcb_xevie_select_input_request_t; 195971bb1a5SLionel Sambuc 196971bb1a5SLionel Sambuc /** 197971bb1a5SLionel Sambuc * @brief xcb_xevie_select_input_reply_t 198971bb1a5SLionel Sambuc **/ 199971bb1a5SLionel Sambuc typedef struct xcb_xevie_select_input_reply_t { 200971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 201971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 202971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 203971bb1a5SLionel Sambuc uint32_t length; /**< */ 204971bb1a5SLionel Sambuc uint8_t pad1[24]; /**< */ 205971bb1a5SLionel Sambuc } xcb_xevie_select_input_reply_t; 206971bb1a5SLionel Sambuc 207971bb1a5SLionel Sambuc /** 208971bb1a5SLionel Sambuc * 209971bb1a5SLionel Sambuc * @param c The connection 210971bb1a5SLionel Sambuc * @return A cookie 211971bb1a5SLionel Sambuc * 212971bb1a5SLionel Sambuc * Delivers a request to the X server. 213971bb1a5SLionel Sambuc * 214971bb1a5SLionel Sambuc */ 215971bb1a5SLionel Sambuc xcb_xevie_query_version_cookie_t 216971bb1a5SLionel Sambuc xcb_xevie_query_version (xcb_connection_t *c /**< */, 217971bb1a5SLionel Sambuc uint16_t client_major_version /**< */, 218971bb1a5SLionel Sambuc uint16_t client_minor_version /**< */); 219971bb1a5SLionel Sambuc 220971bb1a5SLionel Sambuc /** 221971bb1a5SLionel Sambuc * 222971bb1a5SLionel Sambuc * @param c The connection 223971bb1a5SLionel Sambuc * @return A cookie 224971bb1a5SLionel Sambuc * 225971bb1a5SLionel Sambuc * Delivers a request to the X server. 226971bb1a5SLionel Sambuc * 227971bb1a5SLionel Sambuc * This form can be used only if the request will cause 228971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 229971bb1a5SLionel Sambuc * placed in the event queue. 230971bb1a5SLionel Sambuc */ 231971bb1a5SLionel Sambuc xcb_xevie_query_version_cookie_t 232971bb1a5SLionel Sambuc xcb_xevie_query_version_unchecked (xcb_connection_t *c /**< */, 233971bb1a5SLionel Sambuc uint16_t client_major_version /**< */, 234971bb1a5SLionel Sambuc uint16_t client_minor_version /**< */); 235971bb1a5SLionel Sambuc 236971bb1a5SLionel Sambuc /** 237971bb1a5SLionel Sambuc * Return the reply 238971bb1a5SLionel Sambuc * @param c The connection 239971bb1a5SLionel Sambuc * @param cookie The cookie 240971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 241971bb1a5SLionel Sambuc * 242971bb1a5SLionel Sambuc * Returns the reply of the request asked by 243971bb1a5SLionel Sambuc * 244971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 245971bb1a5SLionel Sambuc * xcb_xevie_query_version_unchecked(). is used. 246971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 247971bb1a5SLionel Sambuc * 248971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 249971bb1a5SLionel Sambuc */ 250971bb1a5SLionel Sambuc xcb_xevie_query_version_reply_t * 251971bb1a5SLionel Sambuc xcb_xevie_query_version_reply (xcb_connection_t *c /**< */, 252971bb1a5SLionel Sambuc xcb_xevie_query_version_cookie_t cookie /**< */, 253971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 254971bb1a5SLionel Sambuc 255971bb1a5SLionel Sambuc /** 256971bb1a5SLionel Sambuc * 257971bb1a5SLionel Sambuc * @param c The connection 258971bb1a5SLionel Sambuc * @return A cookie 259971bb1a5SLionel Sambuc * 260971bb1a5SLionel Sambuc * Delivers a request to the X server. 261971bb1a5SLionel Sambuc * 262971bb1a5SLionel Sambuc */ 263971bb1a5SLionel Sambuc xcb_xevie_start_cookie_t 264971bb1a5SLionel Sambuc xcb_xevie_start (xcb_connection_t *c /**< */, 265971bb1a5SLionel Sambuc uint32_t screen /**< */); 266971bb1a5SLionel Sambuc 267971bb1a5SLionel Sambuc /** 268971bb1a5SLionel Sambuc * 269971bb1a5SLionel Sambuc * @param c The connection 270971bb1a5SLionel Sambuc * @return A cookie 271971bb1a5SLionel Sambuc * 272971bb1a5SLionel Sambuc * Delivers a request to the X server. 273971bb1a5SLionel Sambuc * 274971bb1a5SLionel Sambuc * This form can be used only if the request will cause 275971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 276971bb1a5SLionel Sambuc * placed in the event queue. 277971bb1a5SLionel Sambuc */ 278971bb1a5SLionel Sambuc xcb_xevie_start_cookie_t 279971bb1a5SLionel Sambuc xcb_xevie_start_unchecked (xcb_connection_t *c /**< */, 280971bb1a5SLionel Sambuc uint32_t screen /**< */); 281971bb1a5SLionel Sambuc 282971bb1a5SLionel Sambuc /** 283971bb1a5SLionel Sambuc * Return the reply 284971bb1a5SLionel Sambuc * @param c The connection 285971bb1a5SLionel Sambuc * @param cookie The cookie 286971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 287971bb1a5SLionel Sambuc * 288971bb1a5SLionel Sambuc * Returns the reply of the request asked by 289971bb1a5SLionel Sambuc * 290971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 291971bb1a5SLionel Sambuc * xcb_xevie_start_unchecked(). is used. 292971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 293971bb1a5SLionel Sambuc * 294971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 295971bb1a5SLionel Sambuc */ 296971bb1a5SLionel Sambuc xcb_xevie_start_reply_t * 297971bb1a5SLionel Sambuc xcb_xevie_start_reply (xcb_connection_t *c /**< */, 298971bb1a5SLionel Sambuc xcb_xevie_start_cookie_t cookie /**< */, 299971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 300971bb1a5SLionel Sambuc 301971bb1a5SLionel Sambuc /** 302971bb1a5SLionel Sambuc * 303971bb1a5SLionel Sambuc * @param c The connection 304971bb1a5SLionel Sambuc * @return A cookie 305971bb1a5SLionel Sambuc * 306971bb1a5SLionel Sambuc * Delivers a request to the X server. 307971bb1a5SLionel Sambuc * 308971bb1a5SLionel Sambuc */ 309971bb1a5SLionel Sambuc xcb_xevie_end_cookie_t 310971bb1a5SLionel Sambuc xcb_xevie_end (xcb_connection_t *c /**< */, 311971bb1a5SLionel Sambuc uint32_t cmap /**< */); 312971bb1a5SLionel Sambuc 313971bb1a5SLionel Sambuc /** 314971bb1a5SLionel Sambuc * 315971bb1a5SLionel Sambuc * @param c The connection 316971bb1a5SLionel Sambuc * @return A cookie 317971bb1a5SLionel Sambuc * 318971bb1a5SLionel Sambuc * Delivers a request to the X server. 319971bb1a5SLionel Sambuc * 320971bb1a5SLionel Sambuc * This form can be used only if the request will cause 321971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 322971bb1a5SLionel Sambuc * placed in the event queue. 323971bb1a5SLionel Sambuc */ 324971bb1a5SLionel Sambuc xcb_xevie_end_cookie_t 325971bb1a5SLionel Sambuc xcb_xevie_end_unchecked (xcb_connection_t *c /**< */, 326971bb1a5SLionel Sambuc uint32_t cmap /**< */); 327971bb1a5SLionel Sambuc 328971bb1a5SLionel Sambuc /** 329971bb1a5SLionel Sambuc * Return the reply 330971bb1a5SLionel Sambuc * @param c The connection 331971bb1a5SLionel Sambuc * @param cookie The cookie 332971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 333971bb1a5SLionel Sambuc * 334971bb1a5SLionel Sambuc * Returns the reply of the request asked by 335971bb1a5SLionel Sambuc * 336971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 337971bb1a5SLionel Sambuc * xcb_xevie_end_unchecked(). is used. 338971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 339971bb1a5SLionel Sambuc * 340971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 341971bb1a5SLionel Sambuc */ 342971bb1a5SLionel Sambuc xcb_xevie_end_reply_t * 343971bb1a5SLionel Sambuc xcb_xevie_end_reply (xcb_connection_t *c /**< */, 344971bb1a5SLionel Sambuc xcb_xevie_end_cookie_t cookie /**< */, 345971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 346971bb1a5SLionel Sambuc 347971bb1a5SLionel Sambuc /** 348971bb1a5SLionel Sambuc * Get the next element of the iterator 349971bb1a5SLionel Sambuc * @param i Pointer to a xcb_xevie_event_iterator_t 350971bb1a5SLionel Sambuc * 351971bb1a5SLionel Sambuc * Get the next element in the iterator. The member rem is 352971bb1a5SLionel Sambuc * decreased by one. The member data points to the next 353971bb1a5SLionel Sambuc * element. The member index is increased by sizeof(xcb_xevie_event_t) 354971bb1a5SLionel Sambuc */ 355971bb1a5SLionel Sambuc void 356971bb1a5SLionel Sambuc xcb_xevie_event_next (xcb_xevie_event_iterator_t *i /**< */); 357971bb1a5SLionel Sambuc 358971bb1a5SLionel Sambuc /** 359971bb1a5SLionel Sambuc * Return the iterator pointing to the last element 360971bb1a5SLionel Sambuc * @param i An xcb_xevie_event_iterator_t 361971bb1a5SLionel Sambuc * @return The iterator pointing to the last element 362971bb1a5SLionel Sambuc * 363971bb1a5SLionel Sambuc * Set the current element in the iterator to the last element. 364971bb1a5SLionel Sambuc * The member rem is set to 0. The member data points to the 365971bb1a5SLionel Sambuc * last element. 366971bb1a5SLionel Sambuc */ 367971bb1a5SLionel Sambuc xcb_generic_iterator_t 368971bb1a5SLionel Sambuc xcb_xevie_event_end (xcb_xevie_event_iterator_t i /**< */); 369971bb1a5SLionel Sambuc 370971bb1a5SLionel Sambuc /** 371971bb1a5SLionel Sambuc * 372971bb1a5SLionel Sambuc * @param c The connection 373971bb1a5SLionel Sambuc * @return A cookie 374971bb1a5SLionel Sambuc * 375971bb1a5SLionel Sambuc * Delivers a request to the X server. 376971bb1a5SLionel Sambuc * 377971bb1a5SLionel Sambuc */ 378971bb1a5SLionel Sambuc xcb_xevie_send_cookie_t 379971bb1a5SLionel Sambuc xcb_xevie_send (xcb_connection_t *c /**< */, 380971bb1a5SLionel Sambuc xcb_xevie_event_t event /**< */, 381971bb1a5SLionel Sambuc uint32_t data_type /**< */); 382971bb1a5SLionel Sambuc 383971bb1a5SLionel Sambuc /** 384971bb1a5SLionel Sambuc * 385971bb1a5SLionel Sambuc * @param c The connection 386971bb1a5SLionel Sambuc * @return A cookie 387971bb1a5SLionel Sambuc * 388971bb1a5SLionel Sambuc * Delivers a request to the X server. 389971bb1a5SLionel Sambuc * 390971bb1a5SLionel Sambuc * This form can be used only if the request will cause 391971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 392971bb1a5SLionel Sambuc * placed in the event queue. 393971bb1a5SLionel Sambuc */ 394971bb1a5SLionel Sambuc xcb_xevie_send_cookie_t 395971bb1a5SLionel Sambuc xcb_xevie_send_unchecked (xcb_connection_t *c /**< */, 396971bb1a5SLionel Sambuc xcb_xevie_event_t event /**< */, 397971bb1a5SLionel Sambuc uint32_t data_type /**< */); 398971bb1a5SLionel Sambuc 399971bb1a5SLionel Sambuc /** 400971bb1a5SLionel Sambuc * Return the reply 401971bb1a5SLionel Sambuc * @param c The connection 402971bb1a5SLionel Sambuc * @param cookie The cookie 403971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 404971bb1a5SLionel Sambuc * 405971bb1a5SLionel Sambuc * Returns the reply of the request asked by 406971bb1a5SLionel Sambuc * 407971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 408971bb1a5SLionel Sambuc * xcb_xevie_send_unchecked(). is used. 409971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 410971bb1a5SLionel Sambuc * 411971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 412971bb1a5SLionel Sambuc */ 413971bb1a5SLionel Sambuc xcb_xevie_send_reply_t * 414971bb1a5SLionel Sambuc xcb_xevie_send_reply (xcb_connection_t *c /**< */, 415971bb1a5SLionel Sambuc xcb_xevie_send_cookie_t cookie /**< */, 416971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 417971bb1a5SLionel Sambuc 418971bb1a5SLionel Sambuc /** 419971bb1a5SLionel Sambuc * 420971bb1a5SLionel Sambuc * @param c The connection 421971bb1a5SLionel Sambuc * @return A cookie 422971bb1a5SLionel Sambuc * 423971bb1a5SLionel Sambuc * Delivers a request to the X server. 424971bb1a5SLionel Sambuc * 425971bb1a5SLionel Sambuc */ 426971bb1a5SLionel Sambuc xcb_xevie_select_input_cookie_t 427971bb1a5SLionel Sambuc xcb_xevie_select_input (xcb_connection_t *c /**< */, 428971bb1a5SLionel Sambuc uint32_t event_mask /**< */); 429971bb1a5SLionel Sambuc 430971bb1a5SLionel Sambuc /** 431971bb1a5SLionel Sambuc * 432971bb1a5SLionel Sambuc * @param c The connection 433971bb1a5SLionel Sambuc * @return A cookie 434971bb1a5SLionel Sambuc * 435971bb1a5SLionel Sambuc * Delivers a request to the X server. 436971bb1a5SLionel Sambuc * 437971bb1a5SLionel Sambuc * This form can be used only if the request will cause 438971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 439971bb1a5SLionel Sambuc * placed in the event queue. 440971bb1a5SLionel Sambuc */ 441971bb1a5SLionel Sambuc xcb_xevie_select_input_cookie_t 442971bb1a5SLionel Sambuc xcb_xevie_select_input_unchecked (xcb_connection_t *c /**< */, 443971bb1a5SLionel Sambuc uint32_t event_mask /**< */); 444971bb1a5SLionel Sambuc 445971bb1a5SLionel Sambuc /** 446971bb1a5SLionel Sambuc * Return the reply 447971bb1a5SLionel Sambuc * @param c The connection 448971bb1a5SLionel Sambuc * @param cookie The cookie 449971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 450971bb1a5SLionel Sambuc * 451971bb1a5SLionel Sambuc * Returns the reply of the request asked by 452971bb1a5SLionel Sambuc * 453971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 454971bb1a5SLionel Sambuc * xcb_xevie_select_input_unchecked(). is used. 455971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 456971bb1a5SLionel Sambuc * 457971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 458971bb1a5SLionel Sambuc */ 459971bb1a5SLionel Sambuc xcb_xevie_select_input_reply_t * 460971bb1a5SLionel Sambuc xcb_xevie_select_input_reply (xcb_connection_t *c /**< */, 461971bb1a5SLionel Sambuc xcb_xevie_select_input_cookie_t cookie /**< */, 462971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 463971bb1a5SLionel Sambuc 464971bb1a5SLionel Sambuc 465971bb1a5SLionel Sambuc #ifdef __cplusplus 466971bb1a5SLionel Sambuc } 467971bb1a5SLionel Sambuc #endif 468971bb1a5SLionel Sambuc 469971bb1a5SLionel Sambuc #endif 470971bb1a5SLionel Sambuc 471971bb1a5SLionel Sambuc /** 472971bb1a5SLionel Sambuc * @} 473971bb1a5SLionel Sambuc */ 474