1XIQUERYVERSION(3)               [FIXME: manual]              XIQUERYVERSION(3)
2
3
4

NAME

6       XIQueryVersion - announce and query the support XI2 version.
7

SYNOPSIS

9       #include <X11/extensions/XInput2.h>
10
11       Status XIQueryVersion( Display *display,
12                              int *major_version_inout,
13                              int *minor_version_inout);
14
15       display
16              Specifies the connection to the X server.
17
18       major_version_inout
19              Specifies the client´s supported XI2 version, and
20              returns the server´s supported version.
21
22       minor_version_inout
23              Specifies the client´s supported XI2 version, and
24              returns the server´s supported version.
25

DESCRIPTION

27           XIQueryVersion announces the client´s supported XI2 version to
28           the server and returns server´s supported X Input version. Clients
29           are required to use XIQueryVersion instead of XGetExtensionVersion
30           if they use XI2 calls. The server may treat a client differently
31           depending on the supported version announced by the client.
32           The major_version_inout must be 2 or greater, otherwise a BadValue
33           error occurs.
34
35           If the server does not support XI2, XIQueryVersion returns BadRequest
36           to the client. Otherwise, XIQueryVersion returns Success. In both
37           cases major_version_inout and minor_version_inout are set to the
38           server´s supported version.
39
40           XIQueryVersion can generate a BadValue error.
41

EXAMPLES

43           int rc;
44           int major = 2;
45           int minor = 0;
46
47           rc = XIQueryVersion(dpy, &major, &minor);
48           if (rc == Success)
49               printf("XI2 supported. (%d.%d)\n", major, minor);
50           else if (rc == BadRequest)
51               printf("No XI2 support. (%d.%d only)\n", major, minor);
52           else
53               printf("Internal error\n");
54

DIAGNOSTICS

56           BadValue
57                  A value is outside of the permitted range.
58
59
60
61[FIXME: source]                   08/04/2010                 XIQUERYVERSION(3)
Impressum