Function

AppStreamget_license_name

since: 1.0.0

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

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

Type: 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.