ErrorG.domainRegister

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

class ErrorG
static
GQuark
domainRegister
(,,
GErrorInitFunc errorTypeInit
,
GErrorCopyFunc errorTypeCopy
,
GErrorClearFunc errorTypeClear
)

Parameters

errorTypeName string

string to create a #GQuark from

errorTypePrivateSize size_t

size of the private error data in bytes

errorTypeInit GErrorInitFunc

function initializing fields of the private error data

errorTypeCopy GErrorCopyFunc

function copying fields of the private error data

errorTypeClear GErrorClearFunc

function freeing fields of the private error data

Return Value

Type: GQuark

#GQuark representing the error domain

Meta

Since

2.68