Method

AppStreamRelationversion_compare

Declaration [src]

gboolean
as_relation_version_compare (
  AsRelation* relation,
  const gchar* version,
  GError** error
)

Description [src]

Tests whether the version number of this AsRelation is fulfilled by version. Whether the given version is sufficient to fulfill the version requirement of this AsRelation is determined by its comparison resraint.

Available since:0.12.0

Parameters

version const gchar*
 

A version number, e.g. 1.2.0

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the version from the parameter is sufficient.