00001
00002
00003
00004
00005
00012 #ifndef __XC_MISC_H
00013 #define __XC_MISC_H
00014
00015 #include "xcb.h"
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00021 #define XCB_XCMISC_MAJOR_VERSION 1
00022 #define XCB_XCMISC_MINOR_VERSION 1
00023
00024 extern xcb_extension_t xcb_xc_misc_id;
00025
00029 typedef struct xcb_xc_misc_get_version_cookie_t {
00030 unsigned int sequence;
00031 } xcb_xc_misc_get_version_cookie_t;
00032
00034 #define XCB_XC_MISC_GET_VERSION 0
00035
00039 typedef struct xcb_xc_misc_get_version_request_t {
00040 uint8_t major_opcode;
00041 uint8_t minor_opcode;
00042 uint16_t length;
00043 uint16_t client_major_version;
00044 uint16_t client_minor_version;
00045 } xcb_xc_misc_get_version_request_t;
00046
00050 typedef struct xcb_xc_misc_get_version_reply_t {
00051 uint8_t response_type;
00052 uint8_t pad0;
00053 uint16_t sequence;
00054 uint32_t length;
00055 uint16_t server_major_version;
00056 uint16_t server_minor_version;
00057 } xcb_xc_misc_get_version_reply_t;
00058
00062 typedef struct xcb_xc_misc_get_xid_range_cookie_t {
00063 unsigned int sequence;
00064 } xcb_xc_misc_get_xid_range_cookie_t;
00065
00067 #define XCB_XC_MISC_GET_XID_RANGE 1
00068
00072 typedef struct xcb_xc_misc_get_xid_range_request_t {
00073 uint8_t major_opcode;
00074 uint8_t minor_opcode;
00075 uint16_t length;
00076 } xcb_xc_misc_get_xid_range_request_t;
00077
00081 typedef struct xcb_xc_misc_get_xid_range_reply_t {
00082 uint8_t response_type;
00083 uint8_t pad0;
00084 uint16_t sequence;
00085 uint32_t length;
00086 uint32_t start_id;
00087 uint32_t count;
00088 } xcb_xc_misc_get_xid_range_reply_t;
00089
00093 typedef struct xcb_xc_misc_get_xid_list_cookie_t {
00094 unsigned int sequence;
00095 } xcb_xc_misc_get_xid_list_cookie_t;
00096
00098 #define XCB_XC_MISC_GET_XID_LIST 2
00099
00103 typedef struct xcb_xc_misc_get_xid_list_request_t {
00104 uint8_t major_opcode;
00105 uint8_t minor_opcode;
00106 uint16_t length;
00107 uint32_t count;
00108 } xcb_xc_misc_get_xid_list_request_t;
00109
00113 typedef struct xcb_xc_misc_get_xid_list_reply_t {
00114 uint8_t response_type;
00115 uint8_t pad0;
00116 uint16_t sequence;
00117 uint32_t length;
00118 uint32_t ids_len;
00119 uint8_t pad1[20];
00120 } xcb_xc_misc_get_xid_list_reply_t;
00121
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142 xcb_xc_misc_get_version_cookie_t
00143 xcb_xc_misc_get_version (xcb_connection_t *c ,
00144 uint16_t client_major_version ,
00145 uint16_t client_minor_version );
00146
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170 xcb_xc_misc_get_version_cookie_t
00171 xcb_xc_misc_get_version_unchecked (xcb_connection_t *c ,
00172 uint16_t client_major_version ,
00173 uint16_t client_minor_version );
00174
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201 xcb_xc_misc_get_version_reply_t *
00202 xcb_xc_misc_get_version_reply (xcb_connection_t *c ,
00203 xcb_xc_misc_get_version_cookie_t cookie ,
00204 xcb_generic_error_t **e );
00205
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224 xcb_xc_misc_get_xid_range_cookie_t
00225 xcb_xc_misc_get_xid_range (xcb_connection_t *c );
00226
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248 xcb_xc_misc_get_xid_range_cookie_t
00249 xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c );
00250
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277 xcb_xc_misc_get_xid_range_reply_t *
00278 xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c ,
00279 xcb_xc_misc_get_xid_range_cookie_t cookie ,
00280 xcb_generic_error_t **e );
00281
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301 xcb_xc_misc_get_xid_list_cookie_t
00302 xcb_xc_misc_get_xid_list (xcb_connection_t *c ,
00303 uint32_t count );
00304
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327 xcb_xc_misc_get_xid_list_cookie_t
00328 xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c ,
00329 uint32_t count );
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341 uint32_t *
00342 xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R );
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354 int
00355 xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R );
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367 xcb_generic_iterator_t
00368 xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R );
00369
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396 xcb_xc_misc_get_xid_list_reply_t *
00397 xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c ,
00398 xcb_xc_misc_get_xid_list_cookie_t cookie ,
00399 xcb_generic_error_t **e );
00400
00401
00402 #ifdef __cplusplus
00403 }
00404 #endif
00405
00406 #endif
00407