Function

AppStreamget_license_name

Declaration [src]

gchar*
as_get_license_name (
  const gchar* license
)

Description [src]

Get a translated license name for the given SPDX ID.

Available since:1.0.0

Parameters

license const gchar*
 

The SPDX license ID.

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

Return value

Returns: gchar*
 

The license name, or NULL if none found.

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