Function

FwupdPlugincommon_version_from_uint64

Declaration [src]

gchar*
fu_common_version_from_uint64 (
  guint64 val,
  FwupdVersionFormat kind
)

Description [src]

Returns a dotted decimal version string from a 64 bit number.

Available since:1.3.6

Parameters

val guint64
 

A raw version number.

kind FwupdVersionFormat
 

Version kind used for formatting, e.g. FWUPD_VERSION_FORMAT_QUAD.

Return value

Returns: gchar*
 

A version number, e.g. 1.2.3.4, or NULL if not supported.

 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.