| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | #ifndef __XC_MISC_H |
| 13 | #define __XC_MISC_H |
| 14 | |
| 15 | #include "xcb.h" |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | #define XCB_XCMISC_MAJOR_VERSION 1 |
| 22 | #define XCB_XCMISC_MINOR_VERSION 1 |
| 23 | |
| 24 | extern xcb_extension_t xcb_xc_misc_id; |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | typedef struct xcb_xc_misc_get_version_cookie_t { |
| 30 | unsigned int sequence; |
| 31 | } xcb_xc_misc_get_version_cookie_t; |
| 32 | |
| 33 | |
| 34 | #define XCB_XC_MISC_GET_VERSION 0 |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | typedef struct xcb_xc_misc_get_version_request_t { |
| 40 | uint8_t major_opcode; |
| 41 | uint8_t minor_opcode; |
| 42 | uint16_t length; |
| 43 | uint16_t client_major_version; |
| 44 | uint16_t client_minor_version; |
| 45 | } xcb_xc_misc_get_version_request_t; |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | typedef struct xcb_xc_misc_get_version_reply_t { |
| 51 | uint8_t response_type; |
| 52 | uint8_t pad0; |
| 53 | uint16_t sequence; |
| 54 | uint32_t length; |
| 55 | uint16_t server_major_version; |
| 56 | uint16_t server_minor_version; |
| 57 | } xcb_xc_misc_get_version_reply_t; |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | typedef struct xcb_xc_misc_get_xid_range_cookie_t { |
| 63 | unsigned int sequence; |
| 64 | } xcb_xc_misc_get_xid_range_cookie_t; |
| 65 | |
| 66 | |
| 67 | #define XCB_XC_MISC_GET_XID_RANGE 1 |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | typedef struct xcb_xc_misc_get_xid_range_request_t { |
| 73 | uint8_t major_opcode; |
| 74 | uint8_t minor_opcode; |
| 75 | uint16_t length; |
| 76 | } xcb_xc_misc_get_xid_range_request_t; |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | typedef struct xcb_xc_misc_get_xid_range_reply_t { |
| 82 | uint8_t response_type; |
| 83 | uint8_t pad0; |
| 84 | uint16_t sequence; |
| 85 | uint32_t length; |
| 86 | uint32_t start_id; |
| 87 | uint32_t count; |
| 88 | } xcb_xc_misc_get_xid_range_reply_t; |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | typedef struct xcb_xc_misc_get_xid_list_cookie_t { |
| 94 | unsigned int sequence; |
| 95 | } xcb_xc_misc_get_xid_list_cookie_t; |
| 96 | |
| 97 | |
| 98 | #define XCB_XC_MISC_GET_XID_LIST 2 |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | typedef struct xcb_xc_misc_get_xid_list_request_t { |
| 104 | uint8_t major_opcode; |
| 105 | uint8_t minor_opcode; |
| 106 | uint16_t length; |
| 107 | uint32_t count; |
| 108 | } xcb_xc_misc_get_xid_list_request_t; |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | typedef struct xcb_xc_misc_get_xid_list_reply_t { |
| 114 | uint8_t response_type; |
| 115 | uint8_t pad0; |
| 116 | uint16_t sequence; |
| 117 | uint32_t length; |
| 118 | uint32_t ids_len; |
| 119 | uint8_t pad1[20]; |
| 120 | } xcb_xc_misc_get_xid_list_reply_t; |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | xcb_xc_misc_get_version_cookie_t |
| 131 | xcb_xc_misc_get_version (xcb_connection_t *c, |
| 132 | uint16_t client_major_version, |
| 133 | uint16_t client_minor_version); |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | xcb_xc_misc_get_version_cookie_t |
| 147 | xcb_xc_misc_get_version_unchecked (xcb_connection_t *c, |
| 148 | uint16_t client_major_version, |
| 149 | uint16_t client_minor_version); |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | xcb_xc_misc_get_version_reply_t * |
| 166 | xcb_xc_misc_get_version_reply (xcb_connection_t *c, |
| 167 | xcb_xc_misc_get_version_cookie_t cookie , |
| 168 | xcb_generic_error_t **e); |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | xcb_xc_misc_get_xid_range_cookie_t |
| 179 | xcb_xc_misc_get_xid_range (xcb_connection_t *c); |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | xcb_xc_misc_get_xid_range_cookie_t |
| 193 | xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c); |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | xcb_xc_misc_get_xid_range_reply_t * |
| 210 | xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c, |
| 211 | xcb_xc_misc_get_xid_range_cookie_t cookie , |
| 212 | xcb_generic_error_t **e); |
| 213 | |
| 214 | int |
| 215 | xcb_xc_misc_get_xid_list_sizeof (const void *_buffer); |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | xcb_xc_misc_get_xid_list_cookie_t |
| 226 | xcb_xc_misc_get_xid_list (xcb_connection_t *c, |
| 227 | uint32_t count); |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | xcb_xc_misc_get_xid_list_cookie_t |
| 241 | xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c, |
| 242 | uint32_t count); |
| 243 | |
| 244 | uint32_t * |
| 245 | xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R); |
| 246 | |
| 247 | int |
| 248 | xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R); |
| 249 | |
| 250 | xcb_generic_iterator_t |
| 251 | xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R); |
| 252 | |
| 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | xcb_xc_misc_get_xid_list_reply_t * |
| 268 | xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c, |
| 269 | xcb_xc_misc_get_xid_list_cookie_t cookie , |
| 270 | xcb_generic_error_t **e); |
| 271 | |
| 272 | |
| 273 | #ifdef __cplusplus |
| 274 | } |
| 275 | #endif |
| 276 | |
| 277 | #endif |
| 278 | |
| 279 | |
| 280 | |
| 281 | |