00001
00002
00003
00004
00005
00012 #ifndef __XC_MISC_H
00013 #define __XC_MISC_H
00014
00015 #include "xcb.h"
00016
00017 #define XCB_XCMISC_MAJOR_VERSION 1
00018 #define XCB_XCMISC_MINOR_VERSION 1
00019
00020 extern xcb_extension_t xcb_xc_misc_id;
00021
00025 typedef struct xcb_xc_misc_get_version_cookie_t {
00026 unsigned int sequence;
00027 } xcb_xc_misc_get_version_cookie_t;
00028
00030 #define XCB_XC_MISC_GET_VERSION 0
00031
00035 typedef struct xcb_xc_misc_get_version_request_t {
00036 uint8_t major_opcode;
00037 uint8_t minor_opcode;
00038 uint16_t length;
00039 uint16_t client_major_version;
00040 uint16_t client_minor_version;
00041 } xcb_xc_misc_get_version_request_t;
00042
00046 typedef struct xcb_xc_misc_get_version_reply_t {
00047 uint8_t response_type;
00048 uint8_t pad0;
00049 uint16_t sequence;
00050 uint32_t length;
00051 uint16_t server_major_version;
00052 uint16_t server_minor_version;
00053 } xcb_xc_misc_get_version_reply_t;
00054
00058 typedef struct xcb_xc_misc_get_xid_range_cookie_t {
00059 unsigned int sequence;
00060 } xcb_xc_misc_get_xid_range_cookie_t;
00061
00063 #define XCB_XC_MISC_GET_XID_RANGE 1
00064
00068 typedef struct xcb_xc_misc_get_xid_range_request_t {
00069 uint8_t major_opcode;
00070 uint8_t minor_opcode;
00071 uint16_t length;
00072 } xcb_xc_misc_get_xid_range_request_t;
00073
00077 typedef struct xcb_xc_misc_get_xid_range_reply_t {
00078 uint8_t response_type;
00079 uint8_t pad0;
00080 uint16_t sequence;
00081 uint32_t length;
00082 uint32_t start_id;
00083 uint32_t count;
00084 } xcb_xc_misc_get_xid_range_reply_t;
00085
00089 typedef struct xcb_xc_misc_get_xid_list_cookie_t {
00090 unsigned int sequence;
00091 } xcb_xc_misc_get_xid_list_cookie_t;
00092
00094 #define XCB_XC_MISC_GET_XID_LIST 2
00095
00099 typedef struct xcb_xc_misc_get_xid_list_request_t {
00100 uint8_t major_opcode;
00101 uint8_t minor_opcode;
00102 uint16_t length;
00103 uint32_t count;
00104 } xcb_xc_misc_get_xid_list_request_t;
00105
00109 typedef struct xcb_xc_misc_get_xid_list_reply_t {
00110 uint8_t response_type;
00111 uint8_t pad0;
00112 uint16_t sequence;
00113 uint32_t length;
00114 uint32_t ids_len;
00115 uint8_t pad1[20];
00116 } xcb_xc_misc_get_xid_list_reply_t;
00117
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138 xcb_xc_misc_get_version_cookie_t
00139 xcb_xc_misc_get_version (xcb_connection_t *c ,
00140 uint16_t client_major_version ,
00141 uint16_t client_minor_version );
00142
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166 xcb_xc_misc_get_version_cookie_t
00167 xcb_xc_misc_get_version_unchecked (xcb_connection_t *c ,
00168 uint16_t client_major_version ,
00169 uint16_t client_minor_version );
00170
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195 xcb_xc_misc_get_version_reply_t *
00196 xcb_xc_misc_get_version_reply (xcb_connection_t *c ,
00197 xcb_xc_misc_get_version_cookie_t cookie ,
00198 xcb_generic_error_t **e );
00199
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218 xcb_xc_misc_get_xid_range_cookie_t
00219 xcb_xc_misc_get_xid_range (xcb_connection_t *c );
00220
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242 xcb_xc_misc_get_xid_range_cookie_t
00243 xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c );
00244
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269 xcb_xc_misc_get_xid_range_reply_t *
00270 xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c ,
00271 xcb_xc_misc_get_xid_range_cookie_t cookie ,
00272 xcb_generic_error_t **e );
00273
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293 xcb_xc_misc_get_xid_list_cookie_t
00294 xcb_xc_misc_get_xid_list (xcb_connection_t *c ,
00295 uint32_t count );
00296
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319 xcb_xc_misc_get_xid_list_cookie_t
00320 xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c ,
00321 uint32_t count );
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333 uint32_t *
00334 xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R );
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346 int
00347 xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R );
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359 xcb_generic_iterator_t
00360 xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R );
00361
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386 xcb_xc_misc_get_xid_list_reply_t *
00387 xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c ,
00388 xcb_xc_misc_get_xid_list_cookie_t cookie ,
00389 xcb_generic_error_t **e );
00390
00391
00392 #endif
00393