TS_LIBVERSION(3) | tslib | TS_LIBVERSION(3) |
ts_libversion - get version information on the currently running tslib
#include <tslib.h> struct ts_lib_version_data *ts_libversion();
ts_libversion() This function returns a pointer to a static copy of the version info struct:
struct ts_lib_version_data {
const char *package_version;
int version_num;
unsigned int features; };
package_version is just the string containing the tarball release number, e.g. "1.10".
version_num is a 24 bit number created like this: <8 bits major number> | <8 bits minor number> | <8 bits patch number> of the library libts. Version 0.7.1 is therefore returned as 0x000701.
features can have one or more bits set. The currently defined bits are:
This function returns a pointer to a static copy of the version info struct.