1XkbLibraryVersion(3)             XKB FUNCTIONS            XkbLibraryVersion(3)
2
3
4

NAME

6       XkbLibraryVersion  -  Determines the compatibility of a library at run‐
7       time.
8

SYNOPSIS

10       Bool XkbLibraryVersion (int *lib_major_in_out, int *lib_minor_in_out);
11

ARGUMENTS

13       lib_major_in_out
14              Specifies and returns the major Xkb library version.
15
16       lib_minor_in_out
17              Specifies and returns the minor Xkb library version.
18

DESCRIPTION

20       If an application is dynamically linked, both  the  X  server  and  the
21       client-side  X  library must contain the Xkb extension in order for the
22       client to use the Xkb extension capabilities. Therefore  a  dynamically
23       linked  application must check both the library and the server for com‐
24       patibility before using Xkb function calls. A properly written  program
25       must  check  for  compatibility  between the version of the Xkb library
26       that is dynamically loaded and the one used when  the  application  was
27       built. It must then check the server version for compatibility with the
28       version of Xkb in the library.
29
30       If your application is statically linked,  you  must  still  check  for
31       server compatibility and may check library compatibility. (It is possi‐
32       ble to compile against one set of header files and link against a  dif‐
33       ferent,  incompatible, version of the library, although this should not
34       normally occur.)
35
36       Pass the symbolic value XkbMajorVersion in lib_major_in_out and  XkbMi‐
37       norVersion  in lib_minor_in_out.  These arguments represent the version
38       of the library used at compile  time.  The  XkbLibraryVersion  function
39       backfills  the  major  and minor version numbers of the library used at
40       run time in lib_major_in_out and lib_minor_in_out.  If the versions  of
41       the  compile time and run time libraries are compatible, XkbLibraryVer‐
42       sion returns True, otherwise, it returns False.
43
44       In addition, in order to use the Xkb extension, you  must  ensure  that
45       the extension is present in the server and that the server supports the
46       version of the extension expected by the client. Use  XkbQueryExtension
47       to do this, as described in the next section.
48

RETURN VALUES

50       True           The  XkbLibraryVersion  returns  True if the versions of
51                      the compile time and run time libraries are compatible.
52
53       False          The XkbLibraryVersion returns False if the  versions  of
54                      the compile time and run time libraries are not compati‐
55                      ble.
56

SEE ALSO

58       XkbMajorVersion(3), XkbMinorVersion(3), XkbQueryExtension(3)
59
60
61
62X Version 11                     libX11 1.6.12            XkbLibraryVersion(3)
Impressum