1 /* 2 * This file generated automatically from xc_misc.xml by d_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_XCMisc_API XCB XCMisc API 8 * @brief XCMisc XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 module xcb.xc_misc; 13 14 import xcb.xcb; 15 16 extern (C): 17 18 enum int XCB_XCMISC_MAJOR_VERSION = 1; 19 enum int XCB_XCMISC_MINOR_VERSION = 1; 20 21 extern (C) __gshared extern xcb_extension_t xcb_xc_misc_id; 22 23 /** 24 * @brief xcb_xc_misc_get_version_cookie_t 25 **/ 26 struct xcb_xc_misc_get_version_cookie_t { 27 uint sequence; /**< */ 28 } 29 30 /** Opcode for xcb_xc_misc_get_version. */ 31 enum XCB_XC_MISC_GET_VERSION = 0; 32 33 /** 34 * @brief xcb_xc_misc_get_version_request_t 35 **/ 36 struct xcb_xc_misc_get_version_request_t { 37 ubyte major_opcode; /**< */ 38 ubyte minor_opcode; /**< */ 39 ushort length; /**< */ 40 ushort client_major_version; /**< */ 41 ushort client_minor_version; /**< */ 42 } 43 44 /** 45 * @brief xcb_xc_misc_get_version_reply_t 46 **/ 47 struct xcb_xc_misc_get_version_reply_t { 48 ubyte response_type; /**< */ 49 ubyte pad0; /**< */ 50 ushort sequence; /**< */ 51 uint length; /**< */ 52 ushort server_major_version; /**< */ 53 ushort server_minor_version; /**< */ 54 } 55 56 /** 57 * @brief xcb_xc_misc_get_xid_range_cookie_t 58 **/ 59 struct xcb_xc_misc_get_xid_range_cookie_t { 60 uint sequence; /**< */ 61 } 62 63 /** Opcode for xcb_xc_misc_get_xid_range. */ 64 enum XCB_XC_MISC_GET_XID_RANGE = 1; 65 66 /** 67 * @brief xcb_xc_misc_get_xid_range_request_t 68 **/ 69 struct xcb_xc_misc_get_xid_range_request_t { 70 ubyte major_opcode; /**< */ 71 ubyte minor_opcode; /**< */ 72 ushort length; /**< */ 73 } 74 75 /** 76 * @brief xcb_xc_misc_get_xid_range_reply_t 77 **/ 78 struct xcb_xc_misc_get_xid_range_reply_t { 79 ubyte response_type; /**< */ 80 ubyte pad0; /**< */ 81 ushort sequence; /**< */ 82 uint length; /**< */ 83 uint start_id; /**< */ 84 uint count; /**< */ 85 } 86 87 /** 88 * @brief xcb_xc_misc_get_xid_list_cookie_t 89 **/ 90 struct xcb_xc_misc_get_xid_list_cookie_t { 91 uint sequence; /**< */ 92 } 93 94 /** Opcode for xcb_xc_misc_get_xid_list. */ 95 enum XCB_XC_MISC_GET_XID_LIST = 2; 96 97 /** 98 * @brief xcb_xc_misc_get_xid_list_request_t 99 **/ 100 struct xcb_xc_misc_get_xid_list_request_t { 101 ubyte major_opcode; /**< */ 102 ubyte minor_opcode; /**< */ 103 ushort length; /**< */ 104 uint count; /**< */ 105 } 106 107 /** 108 * @brief xcb_xc_misc_get_xid_list_reply_t 109 **/ 110 struct xcb_xc_misc_get_xid_list_reply_t { 111 ubyte response_type; /**< */ 112 ubyte pad0; /**< */ 113 ushort sequence; /**< */ 114 uint length; /**< */ 115 uint ids_len; /**< */ 116 ubyte[20] pad1; /**< */ 117 } 118 119 /** 120 * 121 * @param c The connection 122 * @return A cookie 123 * 124 * Delivers a request to the X server. 125 * 126 */ 127 xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version(xcb_connection_t* c /**< */ , ushort client_major_version /**< */ , 128 ushort client_minor_version /**< */ ); 129 130 /** 131 * 132 * @param c The connection 133 * @return A cookie 134 * 135 * Delivers a request to the X server. 136 * 137 * This form can be used only if the request will cause 138 * a reply to be generated. Any returned error will be 139 * placed in the event queue. 140 */ 141 xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version_unchecked(xcb_connection_t* c /**< */ , 142 ushort client_major_version /**< */ , ushort client_minor_version /**< */ ); 143 144 /** 145 * Return the reply 146 * @param c The connection 147 * @param cookie The cookie 148 * @param e The xcb_generic_error_t supplied 149 * 150 * Returns the reply of the request asked by 151 * 152 * The parameter @p e supplied to this function must be NULL if 153 * xcb_xc_misc_get_version_unchecked(). is used. 154 * Otherwise, it stores the error if any. 155 * 156 * The returned value must be freed by the caller using free(). 157 */ 158 xcb_xc_misc_get_version_reply_t* xcb_xc_misc_get_version_reply(xcb_connection_t* c /**< */ , 159 xcb_xc_misc_get_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 160 161 /** 162 * 163 * @param c The connection 164 * @return A cookie 165 * 166 * Delivers a request to the X server. 167 * 168 */ 169 xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range(xcb_connection_t* c /**< */ ); 170 171 /** 172 * 173 * @param c The connection 174 * @return A cookie 175 * 176 * Delivers a request to the X server. 177 * 178 * This form can be used only if the request will cause 179 * a reply to be generated. Any returned error will be 180 * placed in the event queue. 181 */ 182 xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range_unchecked(xcb_connection_t* c /**< */ ); 183 184 /** 185 * Return the reply 186 * @param c The connection 187 * @param cookie The cookie 188 * @param e The xcb_generic_error_t supplied 189 * 190 * Returns the reply of the request asked by 191 * 192 * The parameter @p e supplied to this function must be NULL if 193 * xcb_xc_misc_get_xid_range_unchecked(). is used. 194 * Otherwise, it stores the error if any. 195 * 196 * The returned value must be freed by the caller using free(). 197 */ 198 xcb_xc_misc_get_xid_range_reply_t* xcb_xc_misc_get_xid_range_reply(xcb_connection_t* c /**< */ , 199 xcb_xc_misc_get_xid_range_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 200 201 int xcb_xc_misc_get_xid_list_sizeof(const void* _buffer /**< */ ); 202 203 /** 204 * 205 * @param c The connection 206 * @return A cookie 207 * 208 * Delivers a request to the X server. 209 * 210 */ 211 xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list(xcb_connection_t* c /**< */ , uint count /**< */ ); 212 213 /** 214 * 215 * @param c The connection 216 * @return A cookie 217 * 218 * Delivers a request to the X server. 219 * 220 * This form can be used only if the request will cause 221 * a reply to be generated. Any returned error will be 222 * placed in the event queue. 223 */ 224 xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list_unchecked(xcb_connection_t* c /**< */ , uint count /**< */ ); 225 226 uint* xcb_xc_misc_get_xid_list_ids(const xcb_xc_misc_get_xid_list_reply_t* R /**< */ ); 227 228 int xcb_xc_misc_get_xid_list_ids_length(const xcb_xc_misc_get_xid_list_reply_t* R /**< */ ); 229 230 xcb_generic_iterator_t xcb_xc_misc_get_xid_list_ids_end(const xcb_xc_misc_get_xid_list_reply_t* R /**< */ ); 231 232 /** 233 * Return the reply 234 * @param c The connection 235 * @param cookie The cookie 236 * @param e The xcb_generic_error_t supplied 237 * 238 * Returns the reply of the request asked by 239 * 240 * The parameter @p e supplied to this function must be NULL if 241 * xcb_xc_misc_get_xid_list_unchecked(). is used. 242 * Otherwise, it stores the error if any. 243 * 244 * The returned value must be freed by the caller using free(). 245 */ 246 xcb_xc_misc_get_xid_list_reply_t* xcb_xc_misc_get_xid_list_reply(xcb_connection_t* c /**< */ , 247 xcb_xc_misc_get_xid_list_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 248 249 /** 250 * @} 251 */