1xcb_query_extension(3)           XCB Requests           xcb_query_extension(3)
2
3
4

NAME

6       xcb_query_extension - check if extension is present
7

SYNOPSIS

9       #include <xcb/xproto.h>
10
11   Request function
12       xcb_query_extension_cookie_t
13              xcb_query_extension(xcb_connection_t *conn, uint16_t name_len,
14              const char *name);
15
16   Reply datastructure
17       typedef struct xcb_query_extension_reply_t {
18           uint8_t  response_type;
19           uint8_t  pad0;
20           uint16_t sequence;
21           uint32_t length;
22           uint8_t  present;
23           uint8_t  major_opcode;
24           uint8_t  first_event;
25           uint8_t  first_error;
26       } xcb_query_extension_reply_t;
27
28   Reply function
29       xcb_query_extension_reply_t
30              *xcb_query_extension_reply(xcb_connection_t *conn,
31              xcb_query_extension_cookie_t cookie, xcb_generic_error_t **e);
32

REQUEST ARGUMENTS

34       conn      The XCB connection to X11.
35
36       name_len  The length of name in bytes.
37
38       name      The name of the extension to query, for example "RANDR". This
39                 is case sensitive!
40

REPLY FIELDS

42       response_type
43                 The type of this reply, in this case XCB_QUERY_EXTENSION.
44                 This field is also present in the xcb_generic_reply_t and can
45                 be used to tell replies apart from each other.
46
47       sequence  The sequence number of the last request processed by the X11
48                 server.
49
50       length    The length of the reply, in words (a word is 4 bytes).
51
52       present   Whether the extension is present on this X11 server.
53
54       major_opcode
55                 The major opcode for requests.
56
57       first_event
58                 The first event code, if any.
59
60       first_error
61                 The first error code, if any.
62

DESCRIPTION

64       Determines if the specified extension is present on this X11 server.
65
66       Every extension has a unique major_opcode to identify requests, the mi‐
67       nor opcodes and request formats are extension-specific. If the exten‐
68       sion provides events and errors, the first_event and first_error fields
69       in the reply are set accordingly.
70
71       There should rarely be a need to use this request directly, XCB pro‐
72       vides the xcb_get_extension_data function instead.
73

RETURN VALUE

75       Returns an xcb_query_extension_cookie_t. Errors have to be handled when
76       calling the reply function xcb_query_extension_reply.
77
78       If you want to handle errors in the event loop instead, use
79       xcb_query_extension_unchecked. See xcb-requests(3) for details.
80

ERRORS

82       This request does never generate any errors.
83

SEE ALSO

85       xcb-requests(3), xcb_get_extension_data(3), xdpyinfo(1)
86

AUTHOR

88       Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
89       rections and improvements.
90
91
92
93X Version 11                      libxcb 1.12           xcb_query_extension(3)
Impressum