Version functions

Version functions — functions to get the library version.

Functions

Types and Values

Description

Functions

mnt_parse_version_string ()

int
mnt_parse_version_string (const char *ver_string);

Parameters

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);

Parameters

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);

Parameters

features

returns a 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 than 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++);

Types and Values

LIBMOUNT_MAJOR_VERSION

#define LIBMOUNT_MAJOR_VERSION   2

LIBMOUNT_MINOR_VERSION

#define LIBMOUNT_MINOR_VERSION   27

LIBMOUNT_PATCH_VERSION

#define LIBMOUNT_PATCH_VERSION   0

LIBMOUNT_VERSION

#define LIBMOUNT_VERSION   "2.27.0"