1 /* 2 * This file generated automatically from bigreq.xml by d_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_BigRequests_API XCB BigRequests API 8 * @brief BigRequests XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 module xcb.bigreq; 13 14 import xcb.xcb; 15 16 extern (C): 17 18 enum int XCB_BIGREQUESTS_MAJOR_VERSION = 0; 19 enum int XCB_BIGREQUESTS_MINOR_VERSION = 0; 20 21 extern (C) __gshared extern xcb_extension_t xcb_big_requests_id; 22 23 /** 24 * @brief xcb_big_requests_enable_cookie_t 25 **/ 26 struct xcb_big_requests_enable_cookie_t { 27 uint sequence; /**< */ 28 } 29 30 /** Opcode for xcb_big_requests_enable. */ 31 enum XCB_BIG_REQUESTS_ENABLE = 0; 32 33 /** 34 * @brief xcb_big_requests_enable_request_t 35 **/ 36 struct xcb_big_requests_enable_request_t { 37 ubyte major_opcode; /**< */ 38 ubyte minor_opcode; /**< */ 39 ushort length; /**< */ 40 } 41 42 /** 43 * @brief xcb_big_requests_enable_reply_t 44 **/ 45 struct xcb_big_requests_enable_reply_t { 46 ubyte response_type; /**< */ 47 ubyte pad0; /**< */ 48 ushort sequence; /**< */ 49 uint length; /**< */ 50 uint maximum_request_length; /**< */ 51 } 52 53 /** 54 * 55 * @param c The connection 56 * @return A cookie 57 * 58 * Delivers a request to the X server. 59 * 60 */ 61 xcb_big_requests_enable_cookie_t xcb_big_requests_enable(xcb_connection_t* c /**< */ ); 62 63 /** 64 * 65 * @param c The connection 66 * @return A cookie 67 * 68 * Delivers a request to the X server. 69 * 70 * This form can be used only if the request will cause 71 * a reply to be generated. Any returned error will be 72 * placed in the event queue. 73 */ 74 xcb_big_requests_enable_cookie_t xcb_big_requests_enable_unchecked(xcb_connection_t* c /**< */ ); 75 76 /** 77 * Return the reply 78 * @param c The connection 79 * @param cookie The cookie 80 * @param e The xcb_generic_error_t supplied 81 * 82 * Returns the reply of the request asked by 83 * 84 * The parameter @p e supplied to this function must be NULL if 85 * xcb_big_requests_enable_unchecked(). is used. 86 * Otherwise, it stores the error if any. 87 * 88 * The returned value must be freed by the caller using free(). 89 */ 90 xcb_big_requests_enable_reply_t* xcb_big_requests_enable_reply(xcb_connection_t* c /**< */ , 91 xcb_big_requests_enable_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 92 93 /** 94 * @} 95 */