1
XIQUERYVERSION(libmansuffix)
2
============================
7
XIQueryVersion - announce and query the support XI2 version.
12
#include <X11/extensions/XInput2.h>
14
Status XIQueryVersion( Display *display,
15
int *major_version_inout,
16
int *minor_version_inout);
19
Specifies the connection to the X server.
22
Specifies the client's supported XI2 version, and
23
returns the server's supported version.
26
Specifies the client's supported XI2 version, and
27
returns the server's supported version.
32
XIQueryVersion announces the client's supported XI2 version to
33
the server and returns server's supported X Input version. Clients
34
are required to use XIQueryVersion instead of XGetExtensionVersion
35
if they use XI2 calls. The server may treat a client differently
36
depending on the supported version announced by the client.
37
The major_version_inout must be 2 or greater, otherwise a BadValue
40
If the server does not support XI2, XIQueryVersion returns BadRequest
41
to the client. Otherwise, XIQueryVersion returns Success. In both
42
cases major_version_inout and minor_version_inout are set to the
43
server's supported version.
45
XIQueryVersion can generate a BadValue error.
55
rc = XIQueryVersion(dpy, &major, &minor);
57
printf("XI2 supported. (%d.%d)\n", major, minor);
58
else if (rc == BadRequest)
59
printf("No XI2 support. (%d.%d only)\n", major, minor);
61
printf("Internal error\n");
67
A value is outside of the permitted range.