xref: /minix3/external/mit/xorg/lib/libxcb/files/dpms.c (revision 971bb1a5878d19f91739f74fd389e6c5108cb7fa)
1*971bb1a5SLionel Sambuc /*
2*971bb1a5SLionel Sambuc  * This file generated automatically from dpms.xml by c_client.py.
3*971bb1a5SLionel Sambuc  * Edit at your peril.
4*971bb1a5SLionel Sambuc  */
5*971bb1a5SLionel Sambuc 
6*971bb1a5SLionel Sambuc #ifdef HAVE_CONFIG_H
7*971bb1a5SLionel Sambuc #include "config.h"
8*971bb1a5SLionel Sambuc #endif
9*971bb1a5SLionel Sambuc #include <stdlib.h>
10*971bb1a5SLionel Sambuc #include <string.h>
11*971bb1a5SLionel Sambuc #include <assert.h>
12*971bb1a5SLionel Sambuc #include <stddef.h>  /* for offsetof() */
13*971bb1a5SLionel Sambuc #include "xcbext.h"
14*971bb1a5SLionel Sambuc #include "dpms.h"
15*971bb1a5SLionel Sambuc 
16*971bb1a5SLionel Sambuc #define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
17*971bb1a5SLionel Sambuc 
18*971bb1a5SLionel Sambuc xcb_extension_t xcb_dpms_id = { "DPMS", 0 };
19*971bb1a5SLionel Sambuc 
20*971bb1a5SLionel Sambuc 
21*971bb1a5SLionel Sambuc /*****************************************************************************
22*971bb1a5SLionel Sambuc  **
23*971bb1a5SLionel Sambuc  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
24*971bb1a5SLionel Sambuc  **
25*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
26*971bb1a5SLionel Sambuc  ** @param uint16_t          client_major_version
27*971bb1a5SLionel Sambuc  ** @param uint16_t          client_minor_version
28*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_version_cookie_t
29*971bb1a5SLionel Sambuc  **
30*971bb1a5SLionel Sambuc  *****************************************************************************/
31*971bb1a5SLionel Sambuc 
32*971bb1a5SLionel Sambuc xcb_dpms_get_version_cookie_t
33*971bb1a5SLionel Sambuc xcb_dpms_get_version (xcb_connection_t *c  /**< */,
34*971bb1a5SLionel Sambuc                       uint16_t          client_major_version  /**< */,
35*971bb1a5SLionel Sambuc                       uint16_t          client_minor_version  /**< */)
36*971bb1a5SLionel Sambuc {
37*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
38*971bb1a5SLionel Sambuc         /* count */ 2,
39*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
40*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_GET_VERSION,
41*971bb1a5SLionel Sambuc         /* isvoid */ 0
42*971bb1a5SLionel Sambuc     };
43*971bb1a5SLionel Sambuc 
44*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
45*971bb1a5SLionel Sambuc     xcb_dpms_get_version_cookie_t xcb_ret;
46*971bb1a5SLionel Sambuc     xcb_dpms_get_version_request_t xcb_out;
47*971bb1a5SLionel Sambuc 
48*971bb1a5SLionel Sambuc     xcb_out.client_major_version = client_major_version;
49*971bb1a5SLionel Sambuc     xcb_out.client_minor_version = client_minor_version;
50*971bb1a5SLionel Sambuc 
51*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
52*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
53*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
54*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
55*971bb1a5SLionel Sambuc 
56*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
57*971bb1a5SLionel Sambuc     return xcb_ret;
58*971bb1a5SLionel Sambuc }
59*971bb1a5SLionel Sambuc 
60*971bb1a5SLionel Sambuc 
61*971bb1a5SLionel Sambuc /*****************************************************************************
62*971bb1a5SLionel Sambuc  **
63*971bb1a5SLionel Sambuc  ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
64*971bb1a5SLionel Sambuc  **
65*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
66*971bb1a5SLionel Sambuc  ** @param uint16_t          client_major_version
67*971bb1a5SLionel Sambuc  ** @param uint16_t          client_minor_version
68*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_version_cookie_t
69*971bb1a5SLionel Sambuc  **
70*971bb1a5SLionel Sambuc  *****************************************************************************/
71*971bb1a5SLionel Sambuc 
72*971bb1a5SLionel Sambuc xcb_dpms_get_version_cookie_t
73*971bb1a5SLionel Sambuc xcb_dpms_get_version_unchecked (xcb_connection_t *c  /**< */,
74*971bb1a5SLionel Sambuc                                 uint16_t          client_major_version  /**< */,
75*971bb1a5SLionel Sambuc                                 uint16_t          client_minor_version  /**< */)
76*971bb1a5SLionel Sambuc {
77*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
78*971bb1a5SLionel Sambuc         /* count */ 2,
79*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
80*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_GET_VERSION,
81*971bb1a5SLionel Sambuc         /* isvoid */ 0
82*971bb1a5SLionel Sambuc     };
83*971bb1a5SLionel Sambuc 
84*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
85*971bb1a5SLionel Sambuc     xcb_dpms_get_version_cookie_t xcb_ret;
86*971bb1a5SLionel Sambuc     xcb_dpms_get_version_request_t xcb_out;
87*971bb1a5SLionel Sambuc 
88*971bb1a5SLionel Sambuc     xcb_out.client_major_version = client_major_version;
89*971bb1a5SLionel Sambuc     xcb_out.client_minor_version = client_minor_version;
90*971bb1a5SLionel Sambuc 
91*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
92*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
93*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
94*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
95*971bb1a5SLionel Sambuc 
96*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
97*971bb1a5SLionel Sambuc     return xcb_ret;
98*971bb1a5SLionel Sambuc }
99*971bb1a5SLionel Sambuc 
100*971bb1a5SLionel Sambuc 
101*971bb1a5SLionel Sambuc /*****************************************************************************
102*971bb1a5SLionel Sambuc  **
103*971bb1a5SLionel Sambuc  ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
104*971bb1a5SLionel Sambuc  **
105*971bb1a5SLionel Sambuc  ** @param xcb_connection_t               *c
106*971bb1a5SLionel Sambuc  ** @param xcb_dpms_get_version_cookie_t   cookie
107*971bb1a5SLionel Sambuc  ** @param xcb_generic_error_t           **e
108*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_version_reply_t *
109*971bb1a5SLionel Sambuc  **
110*971bb1a5SLionel Sambuc  *****************************************************************************/
111*971bb1a5SLionel Sambuc 
112*971bb1a5SLionel Sambuc xcb_dpms_get_version_reply_t *
113*971bb1a5SLionel Sambuc xcb_dpms_get_version_reply (xcb_connection_t               *c  /**< */,
114*971bb1a5SLionel Sambuc                             xcb_dpms_get_version_cookie_t   cookie  /**< */,
115*971bb1a5SLionel Sambuc                             xcb_generic_error_t           **e  /**< */)
116*971bb1a5SLionel Sambuc {
117*971bb1a5SLionel Sambuc     return (xcb_dpms_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
118*971bb1a5SLionel Sambuc }
119*971bb1a5SLionel Sambuc 
120*971bb1a5SLionel Sambuc 
121*971bb1a5SLionel Sambuc /*****************************************************************************
122*971bb1a5SLionel Sambuc  **
123*971bb1a5SLionel Sambuc  ** xcb_dpms_capable_cookie_t xcb_dpms_capable
124*971bb1a5SLionel Sambuc  **
125*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
126*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_capable_cookie_t
127*971bb1a5SLionel Sambuc  **
128*971bb1a5SLionel Sambuc  *****************************************************************************/
129*971bb1a5SLionel Sambuc 
130*971bb1a5SLionel Sambuc xcb_dpms_capable_cookie_t
131*971bb1a5SLionel Sambuc xcb_dpms_capable (xcb_connection_t *c  /**< */)
132*971bb1a5SLionel Sambuc {
133*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
134*971bb1a5SLionel Sambuc         /* count */ 2,
135*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
136*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_CAPABLE,
137*971bb1a5SLionel Sambuc         /* isvoid */ 0
138*971bb1a5SLionel Sambuc     };
139*971bb1a5SLionel Sambuc 
140*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
141*971bb1a5SLionel Sambuc     xcb_dpms_capable_cookie_t xcb_ret;
142*971bb1a5SLionel Sambuc     xcb_dpms_capable_request_t xcb_out;
143*971bb1a5SLionel Sambuc 
144*971bb1a5SLionel Sambuc 
145*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
146*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
147*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
148*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
149*971bb1a5SLionel Sambuc 
150*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
151*971bb1a5SLionel Sambuc     return xcb_ret;
152*971bb1a5SLionel Sambuc }
153*971bb1a5SLionel Sambuc 
154*971bb1a5SLionel Sambuc 
155*971bb1a5SLionel Sambuc /*****************************************************************************
156*971bb1a5SLionel Sambuc  **
157*971bb1a5SLionel Sambuc  ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
158*971bb1a5SLionel Sambuc  **
159*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
160*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_capable_cookie_t
161*971bb1a5SLionel Sambuc  **
162*971bb1a5SLionel Sambuc  *****************************************************************************/
163*971bb1a5SLionel Sambuc 
164*971bb1a5SLionel Sambuc xcb_dpms_capable_cookie_t
165*971bb1a5SLionel Sambuc xcb_dpms_capable_unchecked (xcb_connection_t *c  /**< */)
166*971bb1a5SLionel Sambuc {
167*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
168*971bb1a5SLionel Sambuc         /* count */ 2,
169*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
170*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_CAPABLE,
171*971bb1a5SLionel Sambuc         /* isvoid */ 0
172*971bb1a5SLionel Sambuc     };
173*971bb1a5SLionel Sambuc 
174*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
175*971bb1a5SLionel Sambuc     xcb_dpms_capable_cookie_t xcb_ret;
176*971bb1a5SLionel Sambuc     xcb_dpms_capable_request_t xcb_out;
177*971bb1a5SLionel Sambuc 
178*971bb1a5SLionel Sambuc 
179*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
180*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
181*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
182*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
183*971bb1a5SLionel Sambuc 
184*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
185*971bb1a5SLionel Sambuc     return xcb_ret;
186*971bb1a5SLionel Sambuc }
187*971bb1a5SLionel Sambuc 
188*971bb1a5SLionel Sambuc 
189*971bb1a5SLionel Sambuc /*****************************************************************************
190*971bb1a5SLionel Sambuc  **
191*971bb1a5SLionel Sambuc  ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
192*971bb1a5SLionel Sambuc  **
193*971bb1a5SLionel Sambuc  ** @param xcb_connection_t           *c
194*971bb1a5SLionel Sambuc  ** @param xcb_dpms_capable_cookie_t   cookie
195*971bb1a5SLionel Sambuc  ** @param xcb_generic_error_t       **e
196*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_capable_reply_t *
197*971bb1a5SLionel Sambuc  **
198*971bb1a5SLionel Sambuc  *****************************************************************************/
199*971bb1a5SLionel Sambuc 
200*971bb1a5SLionel Sambuc xcb_dpms_capable_reply_t *
201*971bb1a5SLionel Sambuc xcb_dpms_capable_reply (xcb_connection_t           *c  /**< */,
202*971bb1a5SLionel Sambuc                         xcb_dpms_capable_cookie_t   cookie  /**< */,
203*971bb1a5SLionel Sambuc                         xcb_generic_error_t       **e  /**< */)
204*971bb1a5SLionel Sambuc {
205*971bb1a5SLionel Sambuc     return (xcb_dpms_capable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
206*971bb1a5SLionel Sambuc }
207*971bb1a5SLionel Sambuc 
208*971bb1a5SLionel Sambuc 
209*971bb1a5SLionel Sambuc /*****************************************************************************
210*971bb1a5SLionel Sambuc  **
211*971bb1a5SLionel Sambuc  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
212*971bb1a5SLionel Sambuc  **
213*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
214*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_timeouts_cookie_t
215*971bb1a5SLionel Sambuc  **
216*971bb1a5SLionel Sambuc  *****************************************************************************/
217*971bb1a5SLionel Sambuc 
218*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts_cookie_t
219*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts (xcb_connection_t *c  /**< */)
220*971bb1a5SLionel Sambuc {
221*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
222*971bb1a5SLionel Sambuc         /* count */ 2,
223*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
224*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_GET_TIMEOUTS,
225*971bb1a5SLionel Sambuc         /* isvoid */ 0
226*971bb1a5SLionel Sambuc     };
227*971bb1a5SLionel Sambuc 
228*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
229*971bb1a5SLionel Sambuc     xcb_dpms_get_timeouts_cookie_t xcb_ret;
230*971bb1a5SLionel Sambuc     xcb_dpms_get_timeouts_request_t xcb_out;
231*971bb1a5SLionel Sambuc 
232*971bb1a5SLionel Sambuc 
233*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
234*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
235*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
236*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
237*971bb1a5SLionel Sambuc 
238*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
239*971bb1a5SLionel Sambuc     return xcb_ret;
240*971bb1a5SLionel Sambuc }
241*971bb1a5SLionel Sambuc 
242*971bb1a5SLionel Sambuc 
243*971bb1a5SLionel Sambuc /*****************************************************************************
244*971bb1a5SLionel Sambuc  **
245*971bb1a5SLionel Sambuc  ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
246*971bb1a5SLionel Sambuc  **
247*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
248*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_timeouts_cookie_t
249*971bb1a5SLionel Sambuc  **
250*971bb1a5SLionel Sambuc  *****************************************************************************/
251*971bb1a5SLionel Sambuc 
252*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts_cookie_t
253*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c  /**< */)
254*971bb1a5SLionel Sambuc {
255*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
256*971bb1a5SLionel Sambuc         /* count */ 2,
257*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
258*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_GET_TIMEOUTS,
259*971bb1a5SLionel Sambuc         /* isvoid */ 0
260*971bb1a5SLionel Sambuc     };
261*971bb1a5SLionel Sambuc 
262*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
263*971bb1a5SLionel Sambuc     xcb_dpms_get_timeouts_cookie_t xcb_ret;
264*971bb1a5SLionel Sambuc     xcb_dpms_get_timeouts_request_t xcb_out;
265*971bb1a5SLionel Sambuc 
266*971bb1a5SLionel Sambuc 
267*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
268*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
269*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
270*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
271*971bb1a5SLionel Sambuc 
272*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
273*971bb1a5SLionel Sambuc     return xcb_ret;
274*971bb1a5SLionel Sambuc }
275*971bb1a5SLionel Sambuc 
276*971bb1a5SLionel Sambuc 
277*971bb1a5SLionel Sambuc /*****************************************************************************
278*971bb1a5SLionel Sambuc  **
279*971bb1a5SLionel Sambuc  ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
280*971bb1a5SLionel Sambuc  **
281*971bb1a5SLionel Sambuc  ** @param xcb_connection_t                *c
282*971bb1a5SLionel Sambuc  ** @param xcb_dpms_get_timeouts_cookie_t   cookie
283*971bb1a5SLionel Sambuc  ** @param xcb_generic_error_t            **e
284*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_get_timeouts_reply_t *
285*971bb1a5SLionel Sambuc  **
286*971bb1a5SLionel Sambuc  *****************************************************************************/
287*971bb1a5SLionel Sambuc 
288*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts_reply_t *
289*971bb1a5SLionel Sambuc xcb_dpms_get_timeouts_reply (xcb_connection_t                *c  /**< */,
290*971bb1a5SLionel Sambuc                              xcb_dpms_get_timeouts_cookie_t   cookie  /**< */,
291*971bb1a5SLionel Sambuc                              xcb_generic_error_t            **e  /**< */)
292*971bb1a5SLionel Sambuc {
293*971bb1a5SLionel Sambuc     return (xcb_dpms_get_timeouts_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
294*971bb1a5SLionel Sambuc }
295*971bb1a5SLionel Sambuc 
296*971bb1a5SLionel Sambuc 
297*971bb1a5SLionel Sambuc /*****************************************************************************
298*971bb1a5SLionel Sambuc  **
299*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
300*971bb1a5SLionel Sambuc  **
301*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
302*971bb1a5SLionel Sambuc  ** @param uint16_t          standby_timeout
303*971bb1a5SLionel Sambuc  ** @param uint16_t          suspend_timeout
304*971bb1a5SLionel Sambuc  ** @param uint16_t          off_timeout
305*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
306*971bb1a5SLionel Sambuc  **
307*971bb1a5SLionel Sambuc  *****************************************************************************/
308*971bb1a5SLionel Sambuc 
309*971bb1a5SLionel Sambuc xcb_void_cookie_t
310*971bb1a5SLionel Sambuc xcb_dpms_set_timeouts_checked (xcb_connection_t *c  /**< */,
311*971bb1a5SLionel Sambuc                                uint16_t          standby_timeout  /**< */,
312*971bb1a5SLionel Sambuc                                uint16_t          suspend_timeout  /**< */,
313*971bb1a5SLionel Sambuc                                uint16_t          off_timeout  /**< */)
314*971bb1a5SLionel Sambuc {
315*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
316*971bb1a5SLionel Sambuc         /* count */ 2,
317*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
318*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_SET_TIMEOUTS,
319*971bb1a5SLionel Sambuc         /* isvoid */ 1
320*971bb1a5SLionel Sambuc     };
321*971bb1a5SLionel Sambuc 
322*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
323*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
324*971bb1a5SLionel Sambuc     xcb_dpms_set_timeouts_request_t xcb_out;
325*971bb1a5SLionel Sambuc 
326*971bb1a5SLionel Sambuc     xcb_out.standby_timeout = standby_timeout;
327*971bb1a5SLionel Sambuc     xcb_out.suspend_timeout = suspend_timeout;
328*971bb1a5SLionel Sambuc     xcb_out.off_timeout = off_timeout;
329*971bb1a5SLionel Sambuc 
330*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
331*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
332*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
333*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
334*971bb1a5SLionel Sambuc 
335*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
336*971bb1a5SLionel Sambuc     return xcb_ret;
337*971bb1a5SLionel Sambuc }
338*971bb1a5SLionel Sambuc 
339*971bb1a5SLionel Sambuc 
340*971bb1a5SLionel Sambuc /*****************************************************************************
341*971bb1a5SLionel Sambuc  **
342*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_set_timeouts
343*971bb1a5SLionel Sambuc  **
344*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
345*971bb1a5SLionel Sambuc  ** @param uint16_t          standby_timeout
346*971bb1a5SLionel Sambuc  ** @param uint16_t          suspend_timeout
347*971bb1a5SLionel Sambuc  ** @param uint16_t          off_timeout
348*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
349*971bb1a5SLionel Sambuc  **
350*971bb1a5SLionel Sambuc  *****************************************************************************/
351*971bb1a5SLionel Sambuc 
352*971bb1a5SLionel Sambuc xcb_void_cookie_t
353*971bb1a5SLionel Sambuc xcb_dpms_set_timeouts (xcb_connection_t *c  /**< */,
354*971bb1a5SLionel Sambuc                        uint16_t          standby_timeout  /**< */,
355*971bb1a5SLionel Sambuc                        uint16_t          suspend_timeout  /**< */,
356*971bb1a5SLionel Sambuc                        uint16_t          off_timeout  /**< */)
357*971bb1a5SLionel Sambuc {
358*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
359*971bb1a5SLionel Sambuc         /* count */ 2,
360*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
361*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_SET_TIMEOUTS,
362*971bb1a5SLionel Sambuc         /* isvoid */ 1
363*971bb1a5SLionel Sambuc     };
364*971bb1a5SLionel Sambuc 
365*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
366*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
367*971bb1a5SLionel Sambuc     xcb_dpms_set_timeouts_request_t xcb_out;
368*971bb1a5SLionel Sambuc 
369*971bb1a5SLionel Sambuc     xcb_out.standby_timeout = standby_timeout;
370*971bb1a5SLionel Sambuc     xcb_out.suspend_timeout = suspend_timeout;
371*971bb1a5SLionel Sambuc     xcb_out.off_timeout = off_timeout;
372*971bb1a5SLionel Sambuc 
373*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
374*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
375*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
376*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
377*971bb1a5SLionel Sambuc 
378*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
379*971bb1a5SLionel Sambuc     return xcb_ret;
380*971bb1a5SLionel Sambuc }
381*971bb1a5SLionel Sambuc 
382*971bb1a5SLionel Sambuc 
383*971bb1a5SLionel Sambuc /*****************************************************************************
384*971bb1a5SLionel Sambuc  **
385*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_enable_checked
386*971bb1a5SLionel Sambuc  **
387*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
388*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
389*971bb1a5SLionel Sambuc  **
390*971bb1a5SLionel Sambuc  *****************************************************************************/
391*971bb1a5SLionel Sambuc 
392*971bb1a5SLionel Sambuc xcb_void_cookie_t
393*971bb1a5SLionel Sambuc xcb_dpms_enable_checked (xcb_connection_t *c  /**< */)
394*971bb1a5SLionel Sambuc {
395*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
396*971bb1a5SLionel Sambuc         /* count */ 2,
397*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
398*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_ENABLE,
399*971bb1a5SLionel Sambuc         /* isvoid */ 1
400*971bb1a5SLionel Sambuc     };
401*971bb1a5SLionel Sambuc 
402*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
403*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
404*971bb1a5SLionel Sambuc     xcb_dpms_enable_request_t xcb_out;
405*971bb1a5SLionel Sambuc 
406*971bb1a5SLionel Sambuc 
407*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
408*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
409*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
410*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
411*971bb1a5SLionel Sambuc 
412*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
413*971bb1a5SLionel Sambuc     return xcb_ret;
414*971bb1a5SLionel Sambuc }
415*971bb1a5SLionel Sambuc 
416*971bb1a5SLionel Sambuc 
417*971bb1a5SLionel Sambuc /*****************************************************************************
418*971bb1a5SLionel Sambuc  **
419*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_enable
420*971bb1a5SLionel Sambuc  **
421*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
422*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
423*971bb1a5SLionel Sambuc  **
424*971bb1a5SLionel Sambuc  *****************************************************************************/
425*971bb1a5SLionel Sambuc 
426*971bb1a5SLionel Sambuc xcb_void_cookie_t
427*971bb1a5SLionel Sambuc xcb_dpms_enable (xcb_connection_t *c  /**< */)
428*971bb1a5SLionel Sambuc {
429*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
430*971bb1a5SLionel Sambuc         /* count */ 2,
431*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
432*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_ENABLE,
433*971bb1a5SLionel Sambuc         /* isvoid */ 1
434*971bb1a5SLionel Sambuc     };
435*971bb1a5SLionel Sambuc 
436*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
437*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
438*971bb1a5SLionel Sambuc     xcb_dpms_enable_request_t xcb_out;
439*971bb1a5SLionel Sambuc 
440*971bb1a5SLionel Sambuc 
441*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
442*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
443*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
444*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
445*971bb1a5SLionel Sambuc 
446*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
447*971bb1a5SLionel Sambuc     return xcb_ret;
448*971bb1a5SLionel Sambuc }
449*971bb1a5SLionel Sambuc 
450*971bb1a5SLionel Sambuc 
451*971bb1a5SLionel Sambuc /*****************************************************************************
452*971bb1a5SLionel Sambuc  **
453*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_disable_checked
454*971bb1a5SLionel Sambuc  **
455*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
456*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
457*971bb1a5SLionel Sambuc  **
458*971bb1a5SLionel Sambuc  *****************************************************************************/
459*971bb1a5SLionel Sambuc 
460*971bb1a5SLionel Sambuc xcb_void_cookie_t
461*971bb1a5SLionel Sambuc xcb_dpms_disable_checked (xcb_connection_t *c  /**< */)
462*971bb1a5SLionel Sambuc {
463*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
464*971bb1a5SLionel Sambuc         /* count */ 2,
465*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
466*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_DISABLE,
467*971bb1a5SLionel Sambuc         /* isvoid */ 1
468*971bb1a5SLionel Sambuc     };
469*971bb1a5SLionel Sambuc 
470*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
471*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
472*971bb1a5SLionel Sambuc     xcb_dpms_disable_request_t xcb_out;
473*971bb1a5SLionel Sambuc 
474*971bb1a5SLionel Sambuc 
475*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
476*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
477*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
478*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
479*971bb1a5SLionel Sambuc 
480*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
481*971bb1a5SLionel Sambuc     return xcb_ret;
482*971bb1a5SLionel Sambuc }
483*971bb1a5SLionel Sambuc 
484*971bb1a5SLionel Sambuc 
485*971bb1a5SLionel Sambuc /*****************************************************************************
486*971bb1a5SLionel Sambuc  **
487*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_disable
488*971bb1a5SLionel Sambuc  **
489*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
490*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
491*971bb1a5SLionel Sambuc  **
492*971bb1a5SLionel Sambuc  *****************************************************************************/
493*971bb1a5SLionel Sambuc 
494*971bb1a5SLionel Sambuc xcb_void_cookie_t
495*971bb1a5SLionel Sambuc xcb_dpms_disable (xcb_connection_t *c  /**< */)
496*971bb1a5SLionel Sambuc {
497*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
498*971bb1a5SLionel Sambuc         /* count */ 2,
499*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
500*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_DISABLE,
501*971bb1a5SLionel Sambuc         /* isvoid */ 1
502*971bb1a5SLionel Sambuc     };
503*971bb1a5SLionel Sambuc 
504*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
505*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
506*971bb1a5SLionel Sambuc     xcb_dpms_disable_request_t xcb_out;
507*971bb1a5SLionel Sambuc 
508*971bb1a5SLionel Sambuc 
509*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
510*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
511*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
512*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
513*971bb1a5SLionel Sambuc 
514*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
515*971bb1a5SLionel Sambuc     return xcb_ret;
516*971bb1a5SLionel Sambuc }
517*971bb1a5SLionel Sambuc 
518*971bb1a5SLionel Sambuc 
519*971bb1a5SLionel Sambuc /*****************************************************************************
520*971bb1a5SLionel Sambuc  **
521*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_force_level_checked
522*971bb1a5SLionel Sambuc  **
523*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
524*971bb1a5SLionel Sambuc  ** @param uint16_t          power_level
525*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
526*971bb1a5SLionel Sambuc  **
527*971bb1a5SLionel Sambuc  *****************************************************************************/
528*971bb1a5SLionel Sambuc 
529*971bb1a5SLionel Sambuc xcb_void_cookie_t
530*971bb1a5SLionel Sambuc xcb_dpms_force_level_checked (xcb_connection_t *c  /**< */,
531*971bb1a5SLionel Sambuc                               uint16_t          power_level  /**< */)
532*971bb1a5SLionel Sambuc {
533*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
534*971bb1a5SLionel Sambuc         /* count */ 2,
535*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
536*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_FORCE_LEVEL,
537*971bb1a5SLionel Sambuc         /* isvoid */ 1
538*971bb1a5SLionel Sambuc     };
539*971bb1a5SLionel Sambuc 
540*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
541*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
542*971bb1a5SLionel Sambuc     xcb_dpms_force_level_request_t xcb_out;
543*971bb1a5SLionel Sambuc 
544*971bb1a5SLionel Sambuc     xcb_out.power_level = power_level;
545*971bb1a5SLionel Sambuc 
546*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
547*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
548*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
549*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
550*971bb1a5SLionel Sambuc 
551*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
552*971bb1a5SLionel Sambuc     return xcb_ret;
553*971bb1a5SLionel Sambuc }
554*971bb1a5SLionel Sambuc 
555*971bb1a5SLionel Sambuc 
556*971bb1a5SLionel Sambuc /*****************************************************************************
557*971bb1a5SLionel Sambuc  **
558*971bb1a5SLionel Sambuc  ** xcb_void_cookie_t xcb_dpms_force_level
559*971bb1a5SLionel Sambuc  **
560*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
561*971bb1a5SLionel Sambuc  ** @param uint16_t          power_level
562*971bb1a5SLionel Sambuc  ** @returns xcb_void_cookie_t
563*971bb1a5SLionel Sambuc  **
564*971bb1a5SLionel Sambuc  *****************************************************************************/
565*971bb1a5SLionel Sambuc 
566*971bb1a5SLionel Sambuc xcb_void_cookie_t
567*971bb1a5SLionel Sambuc xcb_dpms_force_level (xcb_connection_t *c  /**< */,
568*971bb1a5SLionel Sambuc                       uint16_t          power_level  /**< */)
569*971bb1a5SLionel Sambuc {
570*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
571*971bb1a5SLionel Sambuc         /* count */ 2,
572*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
573*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_FORCE_LEVEL,
574*971bb1a5SLionel Sambuc         /* isvoid */ 1
575*971bb1a5SLionel Sambuc     };
576*971bb1a5SLionel Sambuc 
577*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
578*971bb1a5SLionel Sambuc     xcb_void_cookie_t xcb_ret;
579*971bb1a5SLionel Sambuc     xcb_dpms_force_level_request_t xcb_out;
580*971bb1a5SLionel Sambuc 
581*971bb1a5SLionel Sambuc     xcb_out.power_level = power_level;
582*971bb1a5SLionel Sambuc 
583*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
584*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
585*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
586*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
587*971bb1a5SLionel Sambuc 
588*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
589*971bb1a5SLionel Sambuc     return xcb_ret;
590*971bb1a5SLionel Sambuc }
591*971bb1a5SLionel Sambuc 
592*971bb1a5SLionel Sambuc 
593*971bb1a5SLionel Sambuc /*****************************************************************************
594*971bb1a5SLionel Sambuc  **
595*971bb1a5SLionel Sambuc  ** xcb_dpms_info_cookie_t xcb_dpms_info
596*971bb1a5SLionel Sambuc  **
597*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
598*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_info_cookie_t
599*971bb1a5SLionel Sambuc  **
600*971bb1a5SLionel Sambuc  *****************************************************************************/
601*971bb1a5SLionel Sambuc 
602*971bb1a5SLionel Sambuc xcb_dpms_info_cookie_t
603*971bb1a5SLionel Sambuc xcb_dpms_info (xcb_connection_t *c  /**< */)
604*971bb1a5SLionel Sambuc {
605*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
606*971bb1a5SLionel Sambuc         /* count */ 2,
607*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
608*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_INFO,
609*971bb1a5SLionel Sambuc         /* isvoid */ 0
610*971bb1a5SLionel Sambuc     };
611*971bb1a5SLionel Sambuc 
612*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
613*971bb1a5SLionel Sambuc     xcb_dpms_info_cookie_t xcb_ret;
614*971bb1a5SLionel Sambuc     xcb_dpms_info_request_t xcb_out;
615*971bb1a5SLionel Sambuc 
616*971bb1a5SLionel Sambuc 
617*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
618*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
619*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
620*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
621*971bb1a5SLionel Sambuc 
622*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
623*971bb1a5SLionel Sambuc     return xcb_ret;
624*971bb1a5SLionel Sambuc }
625*971bb1a5SLionel Sambuc 
626*971bb1a5SLionel Sambuc 
627*971bb1a5SLionel Sambuc /*****************************************************************************
628*971bb1a5SLionel Sambuc  **
629*971bb1a5SLionel Sambuc  ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
630*971bb1a5SLionel Sambuc  **
631*971bb1a5SLionel Sambuc  ** @param xcb_connection_t *c
632*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_info_cookie_t
633*971bb1a5SLionel Sambuc  **
634*971bb1a5SLionel Sambuc  *****************************************************************************/
635*971bb1a5SLionel Sambuc 
636*971bb1a5SLionel Sambuc xcb_dpms_info_cookie_t
637*971bb1a5SLionel Sambuc xcb_dpms_info_unchecked (xcb_connection_t *c  /**< */)
638*971bb1a5SLionel Sambuc {
639*971bb1a5SLionel Sambuc     static const xcb_protocol_request_t xcb_req = {
640*971bb1a5SLionel Sambuc         /* count */ 2,
641*971bb1a5SLionel Sambuc         /* ext */ &xcb_dpms_id,
642*971bb1a5SLionel Sambuc         /* opcode */ XCB_DPMS_INFO,
643*971bb1a5SLionel Sambuc         /* isvoid */ 0
644*971bb1a5SLionel Sambuc     };
645*971bb1a5SLionel Sambuc 
646*971bb1a5SLionel Sambuc     struct iovec xcb_parts[4];
647*971bb1a5SLionel Sambuc     xcb_dpms_info_cookie_t xcb_ret;
648*971bb1a5SLionel Sambuc     xcb_dpms_info_request_t xcb_out;
649*971bb1a5SLionel Sambuc 
650*971bb1a5SLionel Sambuc 
651*971bb1a5SLionel Sambuc     xcb_parts[2].iov_base = (char *) &xcb_out;
652*971bb1a5SLionel Sambuc     xcb_parts[2].iov_len = sizeof(xcb_out);
653*971bb1a5SLionel Sambuc     xcb_parts[3].iov_base = 0;
654*971bb1a5SLionel Sambuc     xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
655*971bb1a5SLionel Sambuc 
656*971bb1a5SLionel Sambuc     xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
657*971bb1a5SLionel Sambuc     return xcb_ret;
658*971bb1a5SLionel Sambuc }
659*971bb1a5SLionel Sambuc 
660*971bb1a5SLionel Sambuc 
661*971bb1a5SLionel Sambuc /*****************************************************************************
662*971bb1a5SLionel Sambuc  **
663*971bb1a5SLionel Sambuc  ** xcb_dpms_info_reply_t * xcb_dpms_info_reply
664*971bb1a5SLionel Sambuc  **
665*971bb1a5SLionel Sambuc  ** @param xcb_connection_t        *c
666*971bb1a5SLionel Sambuc  ** @param xcb_dpms_info_cookie_t   cookie
667*971bb1a5SLionel Sambuc  ** @param xcb_generic_error_t    **e
668*971bb1a5SLionel Sambuc  ** @returns xcb_dpms_info_reply_t *
669*971bb1a5SLionel Sambuc  **
670*971bb1a5SLionel Sambuc  *****************************************************************************/
671*971bb1a5SLionel Sambuc 
672*971bb1a5SLionel Sambuc xcb_dpms_info_reply_t *
673*971bb1a5SLionel Sambuc xcb_dpms_info_reply (xcb_connection_t        *c  /**< */,
674*971bb1a5SLionel Sambuc                      xcb_dpms_info_cookie_t   cookie  /**< */,
675*971bb1a5SLionel Sambuc                      xcb_generic_error_t    **e  /**< */)
676*971bb1a5SLionel Sambuc {
677*971bb1a5SLionel Sambuc     return (xcb_dpms_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
678*971bb1a5SLionel Sambuc }
679*971bb1a5SLionel Sambuc 
680