Declaration [src]

g_set_error (
  GError** err,
  GQuark domain,
  gint code,
  const gchar* format,

Description [src]

Does nothing if err is NULL; if err is non-NULL, then err must be NULL. A new GError is created and assigned to err.


err GError

A return location for a GError.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
domain GQuark

Error domain.

code gint

Error code.

format const gchar*

Printf()-style format.

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

Args for format.