Function

FwupdPlugincommon_version_ensure_semver

Declaration [src]

gchar*
fu_common_version_ensure_semver (
  const gchar* version
)

Description [src]

Builds a semver from the possibly crazy version number.

Available since:1.2.9

Parameters

version const gchar*
 

A version number, e.g. V1.2.3

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

Return value

Returns: gchar*
 

A version number, e.g. 1.2.3, or NULL if the version was not valid.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.