Method

IpuzPuzzleset_license

Declaration [src]

void
ipuz_puzzle_set_license (
  IpuzPuzzle* self,
  const gchar* license
)

Description [src]

Sets the license of the puzzle.

The license string 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.

Sets propertyIpuz.Puzzle:license

Parameters

license

Type: const gchar*

The license of the puzzle.

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