Function

GPluginversion_compare

Declaration [src]

int
gplugin_version_compare (
  const char* v1,
  const char* v2
)

Description [src]

A semantic version checker which ignores any characters after the micro version.

Parameters

v1

Type: const char*

The first version to compare.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
v2

Type: const char*

The second version to compare.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: int

Less than 0 if v1 is less than v2, 0 if v1 is equal to v1, and greater than 0 if v1 is greater than v2.