1xcb_sync_query_counter(3) XCB Requests xcb_sync_query_counter(3)
2
3
4
6 xcb_sync_query_counter -
7
9 #include <xcb/sync.h>
10
11 Request function
12 xcb_sync_query_counter_cookie_t
13 xcb_sync_query_counter(xcb_connection_t *conn,
14 xcb_sync_counter_t counter);
15
16 Reply datastructure
17 typedef struct xcb_sync_query_counter_reply_t {
18 uint8_t response_type;
19 uint8_t pad0;
20 uint16_t sequence;
21 uint32_t length;
22 xcb_sync_int64_t counter_value;
23 } xcb_sync_query_counter_reply_t;
24
25 Reply function
26 xcb_sync_query_counter_reply_t
27 *xcb_sync_query_counter_reply(xcb_connection_t *conn,
28 xcb_sync_query_counter_cookie_t cookie,
29 xcb_generic_error_t **e);
30
32 conn The XCB connection to X11.
33
34 counter TODO: NOT YET DOCUMENTED.
35
37 response_type
38 The type of this reply, in this case XCB_SYNC_QUERY_COUNTER.
39 This field is also present in the xcb_generic_reply_t and can
40 be used to tell replies apart from each other.
41
42 sequence The sequence number of the last request processed by the X11
43 server.
44
45 length The length of the reply, in words (a word is 4 bytes).
46
47 counter_value
48 TODO: NOT YET DOCUMENTED.
49
52 Returns an xcb_sync_query_counter_cookie_t. Errors have to be handled
53 when calling the reply function xcb_sync_query_counter_reply.
54
55 If you want to handle errors in the event loop instead, use
56 xcb_sync_query_counter_unchecked. See xcb-requests(3) for details.
57
59 This request does never generate any errors.
60
63 Generated from sync.xml. Contact xcb@lists.freedesktop.org for correcā
64 tions and improvements.
65
66
67
68X Version 11 libxcb 1.13 xcb_sync_query_counter(3)