Function

GPluginversion_compare

Declaration [src]

gint
gplugin_version_compare (
  const gchar* v1,
  const gchar* v2
)

Description [src]

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

Parameters

v1

Type: const gchar*

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 gchar*

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: gint

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.