Version functions

Version functions — functions to get library version.

Synopsis

int                 mnt_parse_version_string            (const char *ver_string);
int                 mnt_get_library_version             (const char **ver_string);
int                 mnt_get_library_features            (const char ***features);
#define             LIBMOUNT_VERSION

Description

Details

mnt_parse_version_string ()

int                 mnt_parse_version_string            (const char *ver_string);

ver_string :

version string (e.g "2.18.0")

Returns :

release version code.

mnt_get_library_version ()

int                 mnt_get_library_version             (const char **ver_string);

ver_string :

return pointer to the static library version string if not NULL

Returns :

release version number.

mnt_get_library_features ()

int                 mnt_get_library_features            (const char ***features);

features :

returns pointer to the static array of strings, the array is terminated by NULL.

Returns :

number of items in the features array not including the last NULL, or less then zero in case of error Example:
1
2
3
4
const char *features;
mnt_get_library_features(&features);
while (features && *features)
printf("%s\n", *features++);

LIBMOUNT_VERSION

#define LIBMOUNT_VERSION   "2.21.0"