Method
IpuzGuessesset_puzzle_data
Declaration [src]
void
ipuz_guesses_set_puzzle_data (
IpuzGuesses* guesses,
const gchar* key,
const gchar* data
)
Description [src]
Sets a puzzle-wide data string to be associated with key. This
string will be saved to disk with
ipuz_guesses_save_to_file() under the
org.libipuz:puzzle-data namespace.
The interpretation of this string is left up to the application. For example, this could be used to store a timer value or a score.
if data is NULL then the value is cleared.
Parameters
key-
Type:
const gchar*The key to associate
datawith.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. data-
Type:
const gchar*The data to associate with
key, orNULL.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.