1TS_LIBVERSION(3)                     tslib                    TS_LIBVERSION(3)
2
3
4

NAME

6       ts_libversion - get version information on the currently running tslib
7

SYNOPSIS

9       #include <tslib.h>
10
11       struct ts_lib_version_data *ts_libversion();
12
13
14

DESCRIPTION

16       ts_libversion() This function returns a pointer to a static copy of the
17       version info struct:
18
19       struct ts_lib_version_data {
20               const char      *package_version;
21               int             version_num;
22               unsigned int    features;
23       };
24
25       package_version is just the string containing the tarball release  num‐
26       ber, e.g. "1.10".
27
28       version_num is a 24 bit number created like this: <8 bits major number>
29       | <8 bits minor number> | <8 bits patch number> of the  library  libts.
30       Version 0.7.1 is therefore returned as 0x000701.
31
32       features can have one or more bits set. The currently defined bits are:
33           TSLIB_VERSION_MT  tslib filters support multitouch ts_read_mt() and
34           there is at least one raw access module  supporting  it  (currently
35           evdev  input)  TSLIB_VERSION_OPEN_RESTRICTED ts_open_restricted and
36           ts_close_restricted function pointers are  available  to  implement
37           TSLIB_VERSION_EVENTPATH ts_get_eventpath() is available since tslib
38           can auto-detect a device  TSLIB_VERSION_VERSION  simple  tslib_ver‐
39           sion() and ts_print_ascii_logo() are available
40

RETURN VALUE

42       This  function  returns  a pointer to a static copy of the version info
43       struct.
44
45

SEE ALSO

47       ts_setup(3), ts_read(3), ts.conf(5)
48
49
50
51                                                              TS_LIBVERSION(3)
Impressum