etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / xc_misc.h
blob5df599f965bccca099d5d6f8d776aa2a54f08b87
1 /*
2 * This file generated automatically from xc_misc.xml by c_client.py.
3 * Edit at your peril.
4 */
6 /**
7 * @defgroup XCB_XCMisc_API XCB XCMisc API
8 * @brief XCMisc XCB Protocol Implementation.
9 * @{
10 **/
12 #ifndef __XC_MISC_H
13 #define __XC_MISC_H
15 #include "xcb.h"
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 #define XCB_XCMISC_MAJOR_VERSION 1
22 #define XCB_XCMISC_MINOR_VERSION 1
24 extern xcb_extension_t xcb_xc_misc_id;
26 /**
27 * @brief xcb_xc_misc_get_version_cookie_t
28 **/
29 typedef struct xcb_xc_misc_get_version_cookie_t {
30 unsigned int sequence; /**< */
31 } xcb_xc_misc_get_version_cookie_t;
33 /** Opcode for xcb_xc_misc_get_version. */
34 #define XCB_XC_MISC_GET_VERSION 0
36 /**
37 * @brief xcb_xc_misc_get_version_request_t
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;
47 /**
48 * @brief xcb_xc_misc_get_version_reply_t
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;
59 /**
60 * @brief xcb_xc_misc_get_xid_range_cookie_t
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;
66 /** Opcode for xcb_xc_misc_get_xid_range. */
67 #define XCB_XC_MISC_GET_XID_RANGE 1
69 /**
70 * @brief xcb_xc_misc_get_xid_range_request_t
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;
78 /**
79 * @brief xcb_xc_misc_get_xid_range_reply_t
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;
90 /**
91 * @brief xcb_xc_misc_get_xid_list_cookie_t
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;
97 /** Opcode for xcb_xc_misc_get_xid_list. */
98 #define XCB_XC_MISC_GET_XID_LIST 2
101 * @brief xcb_xc_misc_get_xid_list_request_t
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;
111 * @brief xcb_xc_misc_get_xid_list_reply_t
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;
124 * @param c The connection
125 * @return A cookie
127 * Delivers a request to the X server.
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 /**< */);
137 * @param c The connection
138 * @return A cookie
140 * Delivers a request to the X server.
142 * This form can be used only if the request will cause
143 * a reply to be generated. Any returned error will be
144 * placed in the event queue.
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 /**< */);
152 * Return the reply
153 * @param c The connection
154 * @param cookie The cookie
155 * @param e The xcb_generic_error_t supplied
157 * Returns the reply of the request asked by
159 * The parameter @p e supplied to this function must be NULL if
160 * xcb_xc_misc_get_version_unchecked(). is used.
161 * Otherwise, it stores the error if any.
163 * The returned value must be freed by the caller using free().
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 /**< */);
172 * @param c The connection
173 * @return A cookie
175 * Delivers a request to the X server.
178 xcb_xc_misc_get_xid_range_cookie_t
179 xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */);
183 * @param c The connection
184 * @return A cookie
186 * Delivers a request to the X server.
188 * This form can be used only if the request will cause
189 * a reply to be generated. Any returned error will be
190 * placed in the event queue.
192 xcb_xc_misc_get_xid_range_cookie_t
193 xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */);
196 * Return the reply
197 * @param c The connection
198 * @param cookie The cookie
199 * @param e The xcb_generic_error_t supplied
201 * Returns the reply of the request asked by
203 * The parameter @p e supplied to this function must be NULL if
204 * xcb_xc_misc_get_xid_range_unchecked(). is used.
205 * Otherwise, it stores the error if any.
207 * The returned value must be freed by the caller using free().
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 /**< */);
215 xcb_xc_misc_get_xid_list_sizeof (const void *_buffer /**< */);
219 * @param c The connection
220 * @return A cookie
222 * Delivers a request to the X server.
225 xcb_xc_misc_get_xid_list_cookie_t
226 xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */,
227 uint32_t count /**< */);
231 * @param c The connection
232 * @return A cookie
234 * Delivers a request to the X server.
236 * This form can be used only if the request will cause
237 * a reply to be generated. Any returned error will be
238 * placed in the event queue.
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 /**< */);
244 uint32_t *
245 xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
248 xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
250 xcb_generic_iterator_t
251 xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
254 * Return the reply
255 * @param c The connection
256 * @param cookie The cookie
257 * @param e The xcb_generic_error_t supplied
259 * Returns the reply of the request asked by
261 * The parameter @p e supplied to this function must be NULL if
262 * xcb_xc_misc_get_xid_list_unchecked(). is used.
263 * Otherwise, it stores the error if any.
265 * The returned value must be freed by the caller using free().
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 /**< */);
273 #ifdef __cplusplus
275 #endif
277 #endif
280 * @}