master
ブランチ master
ShaderPlayground / deps / xlibre / include / xcb / ge.h
2.9 KB、117行 生 Blame 履歴
1/*
2 * This file generated automatically from ge.xml by c_client.py.
3 * Edit at your peril.
4 */
5
6/**
7 * @defgroup XCB_GenericEvent_API XCB GenericEvent API
8 * @brief GenericEvent XCB Protocol Implementation.
9 * @{
10 **/
11
12#ifndef __GE_H
13#define __GE_H
14
15#include "xcb.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define XCB_GENERICEVENT_MAJOR_VERSION 1
22#define XCB_GENERICEVENT_MINOR_VERSION 0
23
24extern xcb_extension_t xcb_genericevent_id;
25
26/**
27 * @brief xcb_genericevent_query_version_cookie_t
28 **/
29typedef struct xcb_genericevent_query_version_cookie_t {
30 unsigned int sequence;
31} xcb_genericevent_query_version_cookie_t;
32
33/** Opcode for xcb_genericevent_query_version. */
34#define XCB_GENERICEVENT_QUERY_VERSION 0
35
36/**
37 * @brief xcb_genericevent_query_version_request_t
38 **/
39typedef struct xcb_genericevent_query_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_genericevent_query_version_request_t;
46
47/**
48 * @brief xcb_genericevent_query_version_reply_t
49 **/
50typedef struct xcb_genericevent_query_version_reply_t {
51 uint8_t response_type;
52 uint8_t pad0;
53 uint16_t sequence;
54 uint32_t length;
55 uint16_t major_version;
56 uint16_t minor_version;
57 uint8_t pad1[20];
58} xcb_genericevent_query_version_reply_t;
59
60/**
61 *
62 * @param c The connection
63 * @return A cookie
64 *
65 * Delivers a request to the X server.
66 *
67 */
68xcb_genericevent_query_version_cookie_t
69xcb_genericevent_query_version (xcb_connection_t *c,
70 uint16_t client_major_version,
71 uint16_t client_minor_version);
72
73/**
74 *
75 * @param c The connection
76 * @return A cookie
77 *
78 * Delivers a request to the X server.
79 *
80 * This form can be used only if the request will cause
81 * a reply to be generated. Any returned error will be
82 * placed in the event queue.
83 */
84xcb_genericevent_query_version_cookie_t
85xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
86 uint16_t client_major_version,
87 uint16_t client_minor_version);
88
89/**
90 * Return the reply
91 * @param c The connection
92 * @param cookie The cookie
93 * @param e The xcb_generic_error_t supplied
94 *
95 * Returns the reply of the request asked by
96 *
97 * The parameter @p e supplied to this function must be NULL if
98 * xcb_genericevent_query_version_unchecked(). is used.
99 * Otherwise, it stores the error if any.
100 *
101 * The returned value must be freed by the caller using free().
102 */
103xcb_genericevent_query_version_reply_t *
104xcb_genericevent_query_version_reply (xcb_connection_t *c,
105 xcb_genericevent_query_version_cookie_t cookie /**< */,
106 xcb_generic_error_t **e);
107
108
109#ifdef __cplusplus
110}
111#endif
112
113#endif
114
115/**
116 * @}
117 */