![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GI_IS_ERROR_DOMAIN_INFO (info) typedef GIErrorDomainInfo; const gchar * g_error_domain_info_get_quark (GIErrorDomainInfo *info
); GIInterfaceInfo * g_error_domain_info_get_codes (GIErrorDomainInfo *info
);
A GIErrorDomainInfo struct represents a domain of a GError. An error domain is associated with a GQuark and contains a pointer to an enum with all the error codes.
const gchar * g_error_domain_info_get_quark (GIErrorDomainInfo *info
);
Obtain a string representing the quark for this error domain.
NULL
will be returned if the type tag is wrong or if a quark is
missing in the typelib.
|
a GIErrorDomainInfo |
Returns : |
the quark represented as a string or NULL
|
GIInterfaceInfo * g_error_domain_info_get_codes (GIErrorDomainInfo *info
);
Obtain the enum containing all the error codes for this error domain.
The return value will have a GIInfoType of GI_INFO_TYPE_ERROR_DOMAIN
|
a GIErrorDomainInfo |
Returns : |
the error domain or NULL if type tag is wrong,
free the struct with g_base_info_unref() when done. [transfer full]
|