Method

IpuzPuzzleget_license

Declaration [src]

const gchar*
ipuz_puzzle_get_license (
  IpuzPuzzle* self
)

Description [src]

Returns the license of the puzzle.

The license is expected to be a recognized description of a well-known license, and not the full license text. The description should come from the SPDX License List when applicable. Otherwise, a URL is recommended for a custom or proprietary license.

Example license strings:

"CC-BY-SA-2.0"
"https://www.example.com/licensing.html"

This is a libipuz-only extension to the ipuz spec.

Gets propertyIpuz.Puzzle:license

Return value

Type: const gchar*

The license of the puzzle.

The data is owned by the instance.
The value is a NUL terminated UTF-8 string.