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
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130 xcb_xc_misc_get_version_cookie_t
00131 xcb_xc_misc_get_version (xcb_connection_t *c ,
00132 uint16_t client_major_version ,
00133 uint16_t client_minor_version );
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147 xcb_xc_misc_get_version_cookie_t
00148 xcb_xc_misc_get_version_unchecked (xcb_connection_t *c ,
00149 uint16_t client_major_version ,
00150 uint16_t client_minor_version );
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164 xcb_xc_misc_get_version_reply_t *
00165 xcb_xc_misc_get_version_reply (xcb_connection_t *c ,
00166 xcb_xc_misc_get_version_cookie_t cookie ,
00167 xcb_generic_error_t **e );
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179 xcb_xc_misc_get_xid_range_cookie_t
00180 xcb_xc_misc_get_xid_range (xcb_connection_t *c );
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192 xcb_xc_misc_get_xid_range_cookie_t
00193 xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c );
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207 xcb_xc_misc_get_xid_range_reply_t *
00208 xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c ,
00209 xcb_xc_misc_get_xid_range_cookie_t cookie ,
00210 xcb_generic_error_t **e );
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223 xcb_xc_misc_get_xid_list_cookie_t
00224 xcb_xc_misc_get_xid_list (xcb_connection_t *c ,
00225 uint32_t count );
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238 xcb_xc_misc_get_xid_list_cookie_t
00239 xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c ,
00240 uint32_t count );
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252 uint32_t *
00253 xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R );
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265 int
00266 xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R );
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278 xcb_generic_iterator_t
00279 xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R );
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293 xcb_xc_misc_get_xid_list_reply_t *
00294 xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c ,
00295 xcb_xc_misc_get_xid_list_cookie_t cookie ,
00296 xcb_generic_error_t **e );
00297
00298
00299 #endif
00300