Function

GLibErrornew_valist

Declaration

GError*
g_error_new_valist (
  GQuark domain,
  gint code,
  const gchar* format,
  va_list args
)

Description

Creates a new GError with the given domain and code, and a message formatted with format.

Available since:2.22

Parameters

domain GQuark
 

Error domain.

code gint
 

Error code.

format const gchar*
 

Printf()-style format for error message.

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

va_list of parameters for the message format.

Return value

Returns: GError
 

A new GError.

 The caller of the function takes ownership of the data, and is responsible for freeing it.