dpms.h revision 1.1
1/*
2 * This file generated automatically from dpms.xml by c_client.py.
3 * Edit at your peril.
4 */
5
6/**
7 * @defgroup XCB_DPMS_API XCB DPMS API
8 * @brief DPMS XCB Protocol Implementation.
9 * @{
10 **/
11
12#ifndef __DPMS_H
13#define __DPMS_H
14
15#include "xcb.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define XCB_DPMS_MAJOR_VERSION 0
22#define XCB_DPMS_MINOR_VERSION 0
23
24extern xcb_extension_t xcb_dpms_id;
25
26/**
27 * @brief xcb_dpms_get_version_cookie_t
28 **/
29typedef struct xcb_dpms_get_version_cookie_t {
30    unsigned int sequence; /**<  */
31} xcb_dpms_get_version_cookie_t;
32
33/** Opcode for xcb_dpms_get_version. */
34#define XCB_DPMS_GET_VERSION 0
35
36/**
37 * @brief xcb_dpms_get_version_request_t
38 **/
39typedef struct xcb_dpms_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_dpms_get_version_request_t;
46
47/**
48 * @brief xcb_dpms_get_version_reply_t
49 **/
50typedef struct xcb_dpms_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_dpms_get_version_reply_t;
58
59/**
60 * @brief xcb_dpms_capable_cookie_t
61 **/
62typedef struct xcb_dpms_capable_cookie_t {
63    unsigned int sequence; /**<  */
64} xcb_dpms_capable_cookie_t;
65
66/** Opcode for xcb_dpms_capable. */
67#define XCB_DPMS_CAPABLE 1
68
69/**
70 * @brief xcb_dpms_capable_request_t
71 **/
72typedef struct xcb_dpms_capable_request_t {
73    uint8_t  major_opcode; /**<  */
74    uint8_t  minor_opcode; /**<  */
75    uint16_t length; /**<  */
76} xcb_dpms_capable_request_t;
77
78/**
79 * @brief xcb_dpms_capable_reply_t
80 **/
81typedef struct xcb_dpms_capable_reply_t {
82    uint8_t  response_type; /**<  */
83    uint8_t  pad0; /**<  */
84    uint16_t sequence; /**<  */
85    uint32_t length; /**<  */
86    uint8_t  capable; /**<  */
87    uint8_t  pad1[23]; /**<  */
88} xcb_dpms_capable_reply_t;
89
90/**
91 * @brief xcb_dpms_get_timeouts_cookie_t
92 **/
93typedef struct xcb_dpms_get_timeouts_cookie_t {
94    unsigned int sequence; /**<  */
95} xcb_dpms_get_timeouts_cookie_t;
96
97/** Opcode for xcb_dpms_get_timeouts. */
98#define XCB_DPMS_GET_TIMEOUTS 2
99
100/**
101 * @brief xcb_dpms_get_timeouts_request_t
102 **/
103typedef struct xcb_dpms_get_timeouts_request_t {
104    uint8_t  major_opcode; /**<  */
105    uint8_t  minor_opcode; /**<  */
106    uint16_t length; /**<  */
107} xcb_dpms_get_timeouts_request_t;
108
109/**
110 * @brief xcb_dpms_get_timeouts_reply_t
111 **/
112typedef struct xcb_dpms_get_timeouts_reply_t {
113    uint8_t  response_type; /**<  */
114    uint8_t  pad0; /**<  */
115    uint16_t sequence; /**<  */
116    uint32_t length; /**<  */
117    uint16_t standby_timeout; /**<  */
118    uint16_t suspend_timeout; /**<  */
119    uint16_t off_timeout; /**<  */
120    uint8_t  pad1[18]; /**<  */
121} xcb_dpms_get_timeouts_reply_t;
122
123/** Opcode for xcb_dpms_set_timeouts. */
124#define XCB_DPMS_SET_TIMEOUTS 3
125
126/**
127 * @brief xcb_dpms_set_timeouts_request_t
128 **/
129typedef struct xcb_dpms_set_timeouts_request_t {
130    uint8_t  major_opcode; /**<  */
131    uint8_t  minor_opcode; /**<  */
132    uint16_t length; /**<  */
133    uint16_t standby_timeout; /**<  */
134    uint16_t suspend_timeout; /**<  */
135    uint16_t off_timeout; /**<  */
136} xcb_dpms_set_timeouts_request_t;
137
138/** Opcode for xcb_dpms_enable. */
139#define XCB_DPMS_ENABLE 4
140
141/**
142 * @brief xcb_dpms_enable_request_t
143 **/
144typedef struct xcb_dpms_enable_request_t {
145    uint8_t  major_opcode; /**<  */
146    uint8_t  minor_opcode; /**<  */
147    uint16_t length; /**<  */
148} xcb_dpms_enable_request_t;
149
150/** Opcode for xcb_dpms_disable. */
151#define XCB_DPMS_DISABLE 5
152
153/**
154 * @brief xcb_dpms_disable_request_t
155 **/
156typedef struct xcb_dpms_disable_request_t {
157    uint8_t  major_opcode; /**<  */
158    uint8_t  minor_opcode; /**<  */
159    uint16_t length; /**<  */
160} xcb_dpms_disable_request_t;
161
162typedef enum xcb_dpms_dpms_mode_t {
163    XCB_DPMS_DPMS_MODE_ON,
164    XCB_DPMS_DPMS_MODE_STANDBY,
165    XCB_DPMS_DPMS_MODE_SUSPEND,
166    XCB_DPMS_DPMS_MODE_OFF
167} xcb_dpms_dpms_mode_t;
168
169/** Opcode for xcb_dpms_force_level. */
170#define XCB_DPMS_FORCE_LEVEL 6
171
172/**
173 * @brief xcb_dpms_force_level_request_t
174 **/
175typedef struct xcb_dpms_force_level_request_t {
176    uint8_t  major_opcode; /**<  */
177    uint8_t  minor_opcode; /**<  */
178    uint16_t length; /**<  */
179    uint16_t power_level; /**<  */
180} xcb_dpms_force_level_request_t;
181
182/**
183 * @brief xcb_dpms_info_cookie_t
184 **/
185typedef struct xcb_dpms_info_cookie_t {
186    unsigned int sequence; /**<  */
187} xcb_dpms_info_cookie_t;
188
189/** Opcode for xcb_dpms_info. */
190#define XCB_DPMS_INFO 7
191
192/**
193 * @brief xcb_dpms_info_request_t
194 **/
195typedef struct xcb_dpms_info_request_t {
196    uint8_t  major_opcode; /**<  */
197    uint8_t  minor_opcode; /**<  */
198    uint16_t length; /**<  */
199} xcb_dpms_info_request_t;
200
201/**
202 * @brief xcb_dpms_info_reply_t
203 **/
204typedef struct xcb_dpms_info_reply_t {
205    uint8_t  response_type; /**<  */
206    uint8_t  pad0; /**<  */
207    uint16_t sequence; /**<  */
208    uint32_t length; /**<  */
209    uint16_t power_level; /**<  */
210    uint8_t  state; /**<  */
211    uint8_t  pad1[21]; /**<  */
212} xcb_dpms_info_reply_t;
213
214/**
215 * Delivers a request to the X server
216 * @param c The connection
217 * @return A cookie
218 *
219 * Delivers a request to the X server.
220 *
221 */
222
223/*****************************************************************************
224 **
225 ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
226 **
227 ** @param xcb_connection_t *c
228 ** @param uint16_t          client_major_version
229 ** @param uint16_t          client_minor_version
230 ** @returns xcb_dpms_get_version_cookie_t
231 **
232 *****************************************************************************/
233
234xcb_dpms_get_version_cookie_t
235xcb_dpms_get_version (xcb_connection_t *c  /**< */,
236                      uint16_t          client_major_version  /**< */,
237                      uint16_t          client_minor_version  /**< */);
238
239/**
240 * Delivers a request to the X server
241 * @param c The connection
242 * @return A cookie
243 *
244 * Delivers a request to the X server.
245 *
246 * This form can be used only if the request will cause
247 * a reply to be generated. Any returned error will be
248 * placed in the event queue.
249 */
250
251/*****************************************************************************
252 **
253 ** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
254 **
255 ** @param xcb_connection_t *c
256 ** @param uint16_t          client_major_version
257 ** @param uint16_t          client_minor_version
258 ** @returns xcb_dpms_get_version_cookie_t
259 **
260 *****************************************************************************/
261
262xcb_dpms_get_version_cookie_t
263xcb_dpms_get_version_unchecked (xcb_connection_t *c  /**< */,
264                                uint16_t          client_major_version  /**< */,
265                                uint16_t          client_minor_version  /**< */);
266
267/**
268 * Return the reply
269 * @param c      The connection
270 * @param cookie The cookie
271 * @param e      The xcb_generic_error_t supplied
272 *
273 * Returns the reply of the request asked by
274 *
275 * The parameter @p e supplied to this function must be NULL if
276 * xcb_dpms_get_version_unchecked(). is used.
277 * Otherwise, it stores the error if any.
278 *
279 * The returned value must be freed by the caller using free().
280 */
281
282/*****************************************************************************
283 **
284 ** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
285 **
286 ** @param xcb_connection_t               *c
287 ** @param xcb_dpms_get_version_cookie_t   cookie
288 ** @param xcb_generic_error_t           **e
289 ** @returns xcb_dpms_get_version_reply_t *
290 **
291 *****************************************************************************/
292
293xcb_dpms_get_version_reply_t *
294xcb_dpms_get_version_reply (xcb_connection_t               *c  /**< */,
295                            xcb_dpms_get_version_cookie_t   cookie  /**< */,
296                            xcb_generic_error_t           **e  /**< */);
297
298/**
299 * Delivers a request to the X server
300 * @param c The connection
301 * @return A cookie
302 *
303 * Delivers a request to the X server.
304 *
305 */
306
307/*****************************************************************************
308 **
309 ** xcb_dpms_capable_cookie_t xcb_dpms_capable
310 **
311 ** @param xcb_connection_t *c
312 ** @returns xcb_dpms_capable_cookie_t
313 **
314 *****************************************************************************/
315
316xcb_dpms_capable_cookie_t
317xcb_dpms_capable (xcb_connection_t *c  /**< */);
318
319/**
320 * Delivers a request to the X server
321 * @param c The connection
322 * @return A cookie
323 *
324 * Delivers a request to the X server.
325 *
326 * This form can be used only if the request will cause
327 * a reply to be generated. Any returned error will be
328 * placed in the event queue.
329 */
330
331/*****************************************************************************
332 **
333 ** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
334 **
335 ** @param xcb_connection_t *c
336 ** @returns xcb_dpms_capable_cookie_t
337 **
338 *****************************************************************************/
339
340xcb_dpms_capable_cookie_t
341xcb_dpms_capable_unchecked (xcb_connection_t *c  /**< */);
342
343/**
344 * Return the reply
345 * @param c      The connection
346 * @param cookie The cookie
347 * @param e      The xcb_generic_error_t supplied
348 *
349 * Returns the reply of the request asked by
350 *
351 * The parameter @p e supplied to this function must be NULL if
352 * xcb_dpms_capable_unchecked(). is used.
353 * Otherwise, it stores the error if any.
354 *
355 * The returned value must be freed by the caller using free().
356 */
357
358/*****************************************************************************
359 **
360 ** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
361 **
362 ** @param xcb_connection_t           *c
363 ** @param xcb_dpms_capable_cookie_t   cookie
364 ** @param xcb_generic_error_t       **e
365 ** @returns xcb_dpms_capable_reply_t *
366 **
367 *****************************************************************************/
368
369xcb_dpms_capable_reply_t *
370xcb_dpms_capable_reply (xcb_connection_t           *c  /**< */,
371                        xcb_dpms_capable_cookie_t   cookie  /**< */,
372                        xcb_generic_error_t       **e  /**< */);
373
374/**
375 * Delivers a request to the X server
376 * @param c The connection
377 * @return A cookie
378 *
379 * Delivers a request to the X server.
380 *
381 */
382
383/*****************************************************************************
384 **
385 ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
386 **
387 ** @param xcb_connection_t *c
388 ** @returns xcb_dpms_get_timeouts_cookie_t
389 **
390 *****************************************************************************/
391
392xcb_dpms_get_timeouts_cookie_t
393xcb_dpms_get_timeouts (xcb_connection_t *c  /**< */);
394
395/**
396 * Delivers a request to the X server
397 * @param c The connection
398 * @return A cookie
399 *
400 * Delivers a request to the X server.
401 *
402 * This form can be used only if the request will cause
403 * a reply to be generated. Any returned error will be
404 * placed in the event queue.
405 */
406
407/*****************************************************************************
408 **
409 ** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
410 **
411 ** @param xcb_connection_t *c
412 ** @returns xcb_dpms_get_timeouts_cookie_t
413 **
414 *****************************************************************************/
415
416xcb_dpms_get_timeouts_cookie_t
417xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c  /**< */);
418
419/**
420 * Return the reply
421 * @param c      The connection
422 * @param cookie The cookie
423 * @param e      The xcb_generic_error_t supplied
424 *
425 * Returns the reply of the request asked by
426 *
427 * The parameter @p e supplied to this function must be NULL if
428 * xcb_dpms_get_timeouts_unchecked(). is used.
429 * Otherwise, it stores the error if any.
430 *
431 * The returned value must be freed by the caller using free().
432 */
433
434/*****************************************************************************
435 **
436 ** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
437 **
438 ** @param xcb_connection_t                *c
439 ** @param xcb_dpms_get_timeouts_cookie_t   cookie
440 ** @param xcb_generic_error_t            **e
441 ** @returns xcb_dpms_get_timeouts_reply_t *
442 **
443 *****************************************************************************/
444
445xcb_dpms_get_timeouts_reply_t *
446xcb_dpms_get_timeouts_reply (xcb_connection_t                *c  /**< */,
447                             xcb_dpms_get_timeouts_cookie_t   cookie  /**< */,
448                             xcb_generic_error_t            **e  /**< */);
449
450/**
451 * Delivers a request to the X server
452 * @param c The connection
453 * @return A cookie
454 *
455 * Delivers a request to the X server.
456 *
457 * This form can be used only if the request will not cause
458 * a reply to be generated. Any returned error will be
459 * saved for handling by xcb_request_check().
460 */
461
462/*****************************************************************************
463 **
464 ** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
465 **
466 ** @param xcb_connection_t *c
467 ** @param uint16_t          standby_timeout
468 ** @param uint16_t          suspend_timeout
469 ** @param uint16_t          off_timeout
470 ** @returns xcb_void_cookie_t
471 **
472 *****************************************************************************/
473
474xcb_void_cookie_t
475xcb_dpms_set_timeouts_checked (xcb_connection_t *c  /**< */,
476                               uint16_t          standby_timeout  /**< */,
477                               uint16_t          suspend_timeout  /**< */,
478                               uint16_t          off_timeout  /**< */);
479
480/**
481 * Delivers a request to the X server
482 * @param c The connection
483 * @return A cookie
484 *
485 * Delivers a request to the X server.
486 *
487 */
488
489/*****************************************************************************
490 **
491 ** xcb_void_cookie_t xcb_dpms_set_timeouts
492 **
493 ** @param xcb_connection_t *c
494 ** @param uint16_t          standby_timeout
495 ** @param uint16_t          suspend_timeout
496 ** @param uint16_t          off_timeout
497 ** @returns xcb_void_cookie_t
498 **
499 *****************************************************************************/
500
501xcb_void_cookie_t
502xcb_dpms_set_timeouts (xcb_connection_t *c  /**< */,
503                       uint16_t          standby_timeout  /**< */,
504                       uint16_t          suspend_timeout  /**< */,
505                       uint16_t          off_timeout  /**< */);
506
507/**
508 * Delivers a request to the X server
509 * @param c The connection
510 * @return A cookie
511 *
512 * Delivers a request to the X server.
513 *
514 * This form can be used only if the request will not cause
515 * a reply to be generated. Any returned error will be
516 * saved for handling by xcb_request_check().
517 */
518
519/*****************************************************************************
520 **
521 ** xcb_void_cookie_t xcb_dpms_enable_checked
522 **
523 ** @param xcb_connection_t *c
524 ** @returns xcb_void_cookie_t
525 **
526 *****************************************************************************/
527
528xcb_void_cookie_t
529xcb_dpms_enable_checked (xcb_connection_t *c  /**< */);
530
531/**
532 * Delivers a request to the X server
533 * @param c The connection
534 * @return A cookie
535 *
536 * Delivers a request to the X server.
537 *
538 */
539
540/*****************************************************************************
541 **
542 ** xcb_void_cookie_t xcb_dpms_enable
543 **
544 ** @param xcb_connection_t *c
545 ** @returns xcb_void_cookie_t
546 **
547 *****************************************************************************/
548
549xcb_void_cookie_t
550xcb_dpms_enable (xcb_connection_t *c  /**< */);
551
552/**
553 * Delivers a request to the X server
554 * @param c The connection
555 * @return A cookie
556 *
557 * Delivers a request to the X server.
558 *
559 * This form can be used only if the request will not cause
560 * a reply to be generated. Any returned error will be
561 * saved for handling by xcb_request_check().
562 */
563
564/*****************************************************************************
565 **
566 ** xcb_void_cookie_t xcb_dpms_disable_checked
567 **
568 ** @param xcb_connection_t *c
569 ** @returns xcb_void_cookie_t
570 **
571 *****************************************************************************/
572
573xcb_void_cookie_t
574xcb_dpms_disable_checked (xcb_connection_t *c  /**< */);
575
576/**
577 * Delivers a request to the X server
578 * @param c The connection
579 * @return A cookie
580 *
581 * Delivers a request to the X server.
582 *
583 */
584
585/*****************************************************************************
586 **
587 ** xcb_void_cookie_t xcb_dpms_disable
588 **
589 ** @param xcb_connection_t *c
590 ** @returns xcb_void_cookie_t
591 **
592 *****************************************************************************/
593
594xcb_void_cookie_t
595xcb_dpms_disable (xcb_connection_t *c  /**< */);
596
597/**
598 * Delivers a request to the X server
599 * @param c The connection
600 * @return A cookie
601 *
602 * Delivers a request to the X server.
603 *
604 * This form can be used only if the request will not cause
605 * a reply to be generated. Any returned error will be
606 * saved for handling by xcb_request_check().
607 */
608
609/*****************************************************************************
610 **
611 ** xcb_void_cookie_t xcb_dpms_force_level_checked
612 **
613 ** @param xcb_connection_t *c
614 ** @param uint16_t          power_level
615 ** @returns xcb_void_cookie_t
616 **
617 *****************************************************************************/
618
619xcb_void_cookie_t
620xcb_dpms_force_level_checked (xcb_connection_t *c  /**< */,
621                              uint16_t          power_level  /**< */);
622
623/**
624 * Delivers a request to the X server
625 * @param c The connection
626 * @return A cookie
627 *
628 * Delivers a request to the X server.
629 *
630 */
631
632/*****************************************************************************
633 **
634 ** xcb_void_cookie_t xcb_dpms_force_level
635 **
636 ** @param xcb_connection_t *c
637 ** @param uint16_t          power_level
638 ** @returns xcb_void_cookie_t
639 **
640 *****************************************************************************/
641
642xcb_void_cookie_t
643xcb_dpms_force_level (xcb_connection_t *c  /**< */,
644                      uint16_t          power_level  /**< */);
645
646/**
647 * Delivers a request to the X server
648 * @param c The connection
649 * @return A cookie
650 *
651 * Delivers a request to the X server.
652 *
653 */
654
655/*****************************************************************************
656 **
657 ** xcb_dpms_info_cookie_t xcb_dpms_info
658 **
659 ** @param xcb_connection_t *c
660 ** @returns xcb_dpms_info_cookie_t
661 **
662 *****************************************************************************/
663
664xcb_dpms_info_cookie_t
665xcb_dpms_info (xcb_connection_t *c  /**< */);
666
667/**
668 * Delivers a request to the X server
669 * @param c The connection
670 * @return A cookie
671 *
672 * Delivers a request to the X server.
673 *
674 * This form can be used only if the request will cause
675 * a reply to be generated. Any returned error will be
676 * placed in the event queue.
677 */
678
679/*****************************************************************************
680 **
681 ** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
682 **
683 ** @param xcb_connection_t *c
684 ** @returns xcb_dpms_info_cookie_t
685 **
686 *****************************************************************************/
687
688xcb_dpms_info_cookie_t
689xcb_dpms_info_unchecked (xcb_connection_t *c  /**< */);
690
691/**
692 * Return the reply
693 * @param c      The connection
694 * @param cookie The cookie
695 * @param e      The xcb_generic_error_t supplied
696 *
697 * Returns the reply of the request asked by
698 *
699 * The parameter @p e supplied to this function must be NULL if
700 * xcb_dpms_info_unchecked(). is used.
701 * Otherwise, it stores the error if any.
702 *
703 * The returned value must be freed by the caller using free().
704 */
705
706/*****************************************************************************
707 **
708 ** xcb_dpms_info_reply_t * xcb_dpms_info_reply
709 **
710 ** @param xcb_connection_t        *c
711 ** @param xcb_dpms_info_cookie_t   cookie
712 ** @param xcb_generic_error_t    **e
713 ** @returns xcb_dpms_info_reply_t *
714 **
715 *****************************************************************************/
716
717xcb_dpms_info_reply_t *
718xcb_dpms_info_reply (xcb_connection_t        *c  /**< */,
719                     xcb_dpms_info_cookie_t   cookie  /**< */,
720                     xcb_generic_error_t    **e  /**< */);
721
722
723#ifdef __cplusplus
724}
725#endif
726
727#endif
728
729/**
730 * @}
731 */
732