xref: /minix3/external/mit/xorg/lib/libxcb/files/xc_misc.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*971bb1a5SLionel Sambuc /*
2*971bb1a5SLionel Sambuc  * This file generated automatically from xc_misc.xml by c_client.py.
3*971bb1a5SLionel Sambuc  * Edit at your peril.
4*971bb1a5SLionel Sambuc  */
5*971bb1a5SLionel Sambuc 
6*971bb1a5SLionel Sambuc /**
7*971bb1a5SLionel Sambuc  * @defgroup XCB_XCMisc_API XCB XCMisc API
8*971bb1a5SLionel Sambuc  * @brief XCMisc XCB Protocol Implementation.
9*971bb1a5SLionel Sambuc  * @{
10*971bb1a5SLionel Sambuc  **/
11*971bb1a5SLionel Sambuc 
12*971bb1a5SLionel Sambuc #ifndef __XC_MISC_H
13*971bb1a5SLionel Sambuc #define __XC_MISC_H
14*971bb1a5SLionel Sambuc 
15*971bb1a5SLionel Sambuc #include "xcb.h"
16*971bb1a5SLionel Sambuc 
17*971bb1a5SLionel Sambuc #ifdef __cplusplus
18*971bb1a5SLionel Sambuc extern "C" {
19*971bb1a5SLionel Sambuc #endif
20*971bb1a5SLionel Sambuc 
21*971bb1a5SLionel Sambuc #define XCB_XCMISC_MAJOR_VERSION 1
22*971bb1a5SLionel Sambuc #define XCB_XCMISC_MINOR_VERSION 1
23*971bb1a5SLionel Sambuc 
24*971bb1a5SLionel Sambuc extern xcb_extension_t xcb_xc_misc_id;
25*971bb1a5SLionel Sambuc 
26*971bb1a5SLionel Sambuc /**
27*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_version_cookie_t
28*971bb1a5SLionel Sambuc  **/
29*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_version_cookie_t {
30*971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
31*971bb1a5SLionel Sambuc } xcb_xc_misc_get_version_cookie_t;
32*971bb1a5SLionel Sambuc 
33*971bb1a5SLionel Sambuc /** Opcode for xcb_xc_misc_get_version. */
34*971bb1a5SLionel Sambuc #define XCB_XC_MISC_GET_VERSION 0
35*971bb1a5SLionel Sambuc 
36*971bb1a5SLionel Sambuc /**
37*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_version_request_t
38*971bb1a5SLionel Sambuc  **/
39*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_version_request_t {
40*971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
41*971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
42*971bb1a5SLionel Sambuc     uint16_t length; /**<  */
43*971bb1a5SLionel Sambuc     uint16_t client_major_version; /**<  */
44*971bb1a5SLionel Sambuc     uint16_t client_minor_version; /**<  */
45*971bb1a5SLionel Sambuc } xcb_xc_misc_get_version_request_t;
46*971bb1a5SLionel Sambuc 
47*971bb1a5SLionel Sambuc /**
48*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_version_reply_t
49*971bb1a5SLionel Sambuc  **/
50*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_version_reply_t {
51*971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
52*971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
53*971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
54*971bb1a5SLionel Sambuc     uint32_t length; /**<  */
55*971bb1a5SLionel Sambuc     uint16_t server_major_version; /**<  */
56*971bb1a5SLionel Sambuc     uint16_t server_minor_version; /**<  */
57*971bb1a5SLionel Sambuc } xcb_xc_misc_get_version_reply_t;
58*971bb1a5SLionel Sambuc 
59*971bb1a5SLionel Sambuc /**
60*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_range_cookie_t
61*971bb1a5SLionel Sambuc  **/
62*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_range_cookie_t {
63*971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
64*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_range_cookie_t;
65*971bb1a5SLionel Sambuc 
66*971bb1a5SLionel Sambuc /** Opcode for xcb_xc_misc_get_xid_range. */
67*971bb1a5SLionel Sambuc #define XCB_XC_MISC_GET_XID_RANGE 1
68*971bb1a5SLionel Sambuc 
69*971bb1a5SLionel Sambuc /**
70*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_range_request_t
71*971bb1a5SLionel Sambuc  **/
72*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_range_request_t {
73*971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
74*971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
75*971bb1a5SLionel Sambuc     uint16_t length; /**<  */
76*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_range_request_t;
77*971bb1a5SLionel Sambuc 
78*971bb1a5SLionel Sambuc /**
79*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_range_reply_t
80*971bb1a5SLionel Sambuc  **/
81*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_range_reply_t {
82*971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
83*971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
84*971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
85*971bb1a5SLionel Sambuc     uint32_t length; /**<  */
86*971bb1a5SLionel Sambuc     uint32_t start_id; /**<  */
87*971bb1a5SLionel Sambuc     uint32_t count; /**<  */
88*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_range_reply_t;
89*971bb1a5SLionel Sambuc 
90*971bb1a5SLionel Sambuc /**
91*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_list_cookie_t
92*971bb1a5SLionel Sambuc  **/
93*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_list_cookie_t {
94*971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
95*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_list_cookie_t;
96*971bb1a5SLionel Sambuc 
97*971bb1a5SLionel Sambuc /** Opcode for xcb_xc_misc_get_xid_list. */
98*971bb1a5SLionel Sambuc #define XCB_XC_MISC_GET_XID_LIST 2
99*971bb1a5SLionel Sambuc 
100*971bb1a5SLionel Sambuc /**
101*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_list_request_t
102*971bb1a5SLionel Sambuc  **/
103*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_list_request_t {
104*971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
105*971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
106*971bb1a5SLionel Sambuc     uint16_t length; /**<  */
107*971bb1a5SLionel Sambuc     uint32_t count; /**<  */
108*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_list_request_t;
109*971bb1a5SLionel Sambuc 
110*971bb1a5SLionel Sambuc /**
111*971bb1a5SLionel Sambuc  * @brief xcb_xc_misc_get_xid_list_reply_t
112*971bb1a5SLionel Sambuc  **/
113*971bb1a5SLionel Sambuc typedef struct xcb_xc_misc_get_xid_list_reply_t {
114*971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
115*971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
116*971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
117*971bb1a5SLionel Sambuc     uint32_t length; /**<  */
118*971bb1a5SLionel Sambuc     uint32_t ids_len; /**<  */
119*971bb1a5SLionel Sambuc     uint8_t  pad1[20]; /**<  */
120*971bb1a5SLionel Sambuc } xcb_xc_misc_get_xid_list_reply_t;
121*971bb1a5SLionel Sambuc 
122*971bb1a5SLionel Sambuc /**
123*971bb1a5SLionel Sambuc  *
124*971bb1a5SLionel Sambuc  * @param c The connection
125*971bb1a5SLionel Sambuc  * @return A cookie
126*971bb1a5SLionel Sambuc  *
127*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
128*971bb1a5SLionel Sambuc  *
129*971bb1a5SLionel Sambuc  */
130*971bb1a5SLionel Sambuc xcb_xc_misc_get_version_cookie_t
131*971bb1a5SLionel Sambuc xcb_xc_misc_get_version (xcb_connection_t *c  /**< */,
132*971bb1a5SLionel Sambuc                          uint16_t          client_major_version  /**< */,
133*971bb1a5SLionel Sambuc                          uint16_t          client_minor_version  /**< */);
134*971bb1a5SLionel Sambuc 
135*971bb1a5SLionel Sambuc /**
136*971bb1a5SLionel Sambuc  *
137*971bb1a5SLionel Sambuc  * @param c The connection
138*971bb1a5SLionel Sambuc  * @return A cookie
139*971bb1a5SLionel Sambuc  *
140*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
141*971bb1a5SLionel Sambuc  *
142*971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
143*971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
144*971bb1a5SLionel Sambuc  * placed in the event queue.
145*971bb1a5SLionel Sambuc  */
146*971bb1a5SLionel Sambuc xcb_xc_misc_get_version_cookie_t
147*971bb1a5SLionel Sambuc xcb_xc_misc_get_version_unchecked (xcb_connection_t *c  /**< */,
148*971bb1a5SLionel Sambuc                                    uint16_t          client_major_version  /**< */,
149*971bb1a5SLionel Sambuc                                    uint16_t          client_minor_version  /**< */);
150*971bb1a5SLionel Sambuc 
151*971bb1a5SLionel Sambuc /**
152*971bb1a5SLionel Sambuc  * Return the reply
153*971bb1a5SLionel Sambuc  * @param c      The connection
154*971bb1a5SLionel Sambuc  * @param cookie The cookie
155*971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
156*971bb1a5SLionel Sambuc  *
157*971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
158*971bb1a5SLionel Sambuc  *
159*971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
160*971bb1a5SLionel Sambuc  * xcb_xc_misc_get_version_unchecked(). is used.
161*971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
162*971bb1a5SLionel Sambuc  *
163*971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
164*971bb1a5SLionel Sambuc  */
165*971bb1a5SLionel Sambuc xcb_xc_misc_get_version_reply_t *
166*971bb1a5SLionel Sambuc xcb_xc_misc_get_version_reply (xcb_connection_t                  *c  /**< */,
167*971bb1a5SLionel Sambuc                                xcb_xc_misc_get_version_cookie_t   cookie  /**< */,
168*971bb1a5SLionel Sambuc                                xcb_generic_error_t              **e  /**< */);
169*971bb1a5SLionel Sambuc 
170*971bb1a5SLionel Sambuc /**
171*971bb1a5SLionel Sambuc  *
172*971bb1a5SLionel Sambuc  * @param c The connection
173*971bb1a5SLionel Sambuc  * @return A cookie
174*971bb1a5SLionel Sambuc  *
175*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
176*971bb1a5SLionel Sambuc  *
177*971bb1a5SLionel Sambuc  */
178*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range_cookie_t
179*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range (xcb_connection_t *c  /**< */);
180*971bb1a5SLionel Sambuc 
181*971bb1a5SLionel Sambuc /**
182*971bb1a5SLionel Sambuc  *
183*971bb1a5SLionel Sambuc  * @param c The connection
184*971bb1a5SLionel Sambuc  * @return A cookie
185*971bb1a5SLionel Sambuc  *
186*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
187*971bb1a5SLionel Sambuc  *
188*971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
189*971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
190*971bb1a5SLionel Sambuc  * placed in the event queue.
191*971bb1a5SLionel Sambuc  */
192*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range_cookie_t
193*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c  /**< */);
194*971bb1a5SLionel Sambuc 
195*971bb1a5SLionel Sambuc /**
196*971bb1a5SLionel Sambuc  * Return the reply
197*971bb1a5SLionel Sambuc  * @param c      The connection
198*971bb1a5SLionel Sambuc  * @param cookie The cookie
199*971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
200*971bb1a5SLionel Sambuc  *
201*971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
202*971bb1a5SLionel Sambuc  *
203*971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
204*971bb1a5SLionel Sambuc  * xcb_xc_misc_get_xid_range_unchecked(). is used.
205*971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
206*971bb1a5SLionel Sambuc  *
207*971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
208*971bb1a5SLionel Sambuc  */
209*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range_reply_t *
210*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_range_reply (xcb_connection_t                    *c  /**< */,
211*971bb1a5SLionel Sambuc                                  xcb_xc_misc_get_xid_range_cookie_t   cookie  /**< */,
212*971bb1a5SLionel Sambuc                                  xcb_generic_error_t                **e  /**< */);
213*971bb1a5SLionel Sambuc 
214*971bb1a5SLionel Sambuc int
215*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_sizeof (const void  *_buffer  /**< */);
216*971bb1a5SLionel Sambuc 
217*971bb1a5SLionel Sambuc /**
218*971bb1a5SLionel Sambuc  *
219*971bb1a5SLionel Sambuc  * @param c The connection
220*971bb1a5SLionel Sambuc  * @return A cookie
221*971bb1a5SLionel Sambuc  *
222*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
223*971bb1a5SLionel Sambuc  *
224*971bb1a5SLionel Sambuc  */
225*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_cookie_t
226*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list (xcb_connection_t *c  /**< */,
227*971bb1a5SLionel Sambuc                           uint32_t          count  /**< */);
228*971bb1a5SLionel Sambuc 
229*971bb1a5SLionel Sambuc /**
230*971bb1a5SLionel Sambuc  *
231*971bb1a5SLionel Sambuc  * @param c The connection
232*971bb1a5SLionel Sambuc  * @return A cookie
233*971bb1a5SLionel Sambuc  *
234*971bb1a5SLionel Sambuc  * Delivers a request to the X server.
235*971bb1a5SLionel Sambuc  *
236*971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
237*971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
238*971bb1a5SLionel Sambuc  * placed in the event queue.
239*971bb1a5SLionel Sambuc  */
240*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_cookie_t
241*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c  /**< */,
242*971bb1a5SLionel Sambuc                                     uint32_t          count  /**< */);
243*971bb1a5SLionel Sambuc 
244*971bb1a5SLionel Sambuc uint32_t *
245*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R  /**< */);
246*971bb1a5SLionel Sambuc 
247*971bb1a5SLionel Sambuc int
248*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R  /**< */);
249*971bb1a5SLionel Sambuc 
250*971bb1a5SLionel Sambuc xcb_generic_iterator_t
251*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R  /**< */);
252*971bb1a5SLionel Sambuc 
253*971bb1a5SLionel Sambuc /**
254*971bb1a5SLionel Sambuc  * Return the reply
255*971bb1a5SLionel Sambuc  * @param c      The connection
256*971bb1a5SLionel Sambuc  * @param cookie The cookie
257*971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
258*971bb1a5SLionel Sambuc  *
259*971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
260*971bb1a5SLionel Sambuc  *
261*971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
262*971bb1a5SLionel Sambuc  * xcb_xc_misc_get_xid_list_unchecked(). is used.
263*971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
264*971bb1a5SLionel Sambuc  *
265*971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
266*971bb1a5SLionel Sambuc  */
267*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_reply_t *
268*971bb1a5SLionel Sambuc xcb_xc_misc_get_xid_list_reply (xcb_connection_t                   *c  /**< */,
269*971bb1a5SLionel Sambuc                                 xcb_xc_misc_get_xid_list_cookie_t   cookie  /**< */,
270*971bb1a5SLionel Sambuc                                 xcb_generic_error_t               **e  /**< */);
271*971bb1a5SLionel Sambuc 
272*971bb1a5SLionel Sambuc 
273*971bb1a5SLionel Sambuc #ifdef __cplusplus
274*971bb1a5SLionel Sambuc }
275*971bb1a5SLionel Sambuc #endif
276*971bb1a5SLionel Sambuc 
277*971bb1a5SLionel Sambuc #endif
278*971bb1a5SLionel Sambuc 
279*971bb1a5SLionel Sambuc /**
280*971bb1a5SLionel Sambuc  * @}
281*971bb1a5SLionel Sambuc  */
282