Function

GLibErrordomain_register

Declaration

GQuark
g_error_domain_register (
  const char* error_type_name,
  gsize error_type_private_size,
  GErrorInitFunc error_type_init,
  GErrorCopyFunc error_type_copy,
  GErrorClearFunc error_type_clear
)

Description

This function registers an extended GError domain. error_type_name will be duplicated. Otherwise does the same as g_error_domain_register_static().

Available since:2.68

Parameters

error_type_name const char*
 

String to create a GQuark from.

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

Size of the private error data in bytes.

error_type_init GErrorInitFunc
 

Function initializing fields of the private error data.

error_type_copy GErrorCopyFunc
 

Function copying fields of the private error data.

error_type_clear GErrorClearFunc
 

Function freeing fields of the private error data.

Return value

Returns: GQuark
 

GQuark representing the error domain.