Use G_DEFINE_QUARK for quarks in GIO

This commit is contained in:
Matthias Clasen 2012-08-27 23:42:12 -04:00
parent b7d1518ce9
commit 60d2cb665e
4 changed files with 5 additions and 23 deletions

View File

@ -35,16 +35,12 @@
/**
* g_io_error_quark:
*
*
* Gets the GIO Error Quark.
*
* Return value: a #GQuark.
**/
GQuark
g_io_error_quark (void)
{
return g_quark_from_static_string ("g-io-error-quark");
}
G_DEFINE_QUARK ("g-io-error-quark", g_io_error)
/**
* g_io_error_from_errno:

View File

@ -874,12 +874,7 @@ g_resolver_lookup_records_finish (GResolver *resolver,
*
* Since: 2.22
*/
GQuark
g_resolver_error_quark (void)
{
return g_quark_from_static_string ("g-resolver-error-quark");
}
G_DEFINE_QUARK ("g-resolver-error-quark", g_resolver_error)
static GResolverError
g_resolver_error_from_addrinfo_error (gint err)

View File

@ -138,11 +138,7 @@ G_DEFINE_BOXED_TYPE (GResource, g_resource, g_resource_ref, g_resource_unref)
*
* Since: 2.32
*/
GQuark
g_resource_error_quark (void)
{
return g_quark_from_static_string ("g-resource-error-quark");
}
G_DEFINE_QUARK ("g-resource-error-quark", g_resource_error)
/**
* g_resource_ref:

View File

@ -831,12 +831,7 @@ g_tls_connection_handshake_finish (GTlsConnection *conn,
*
* Since: 2.28
*/
GQuark
g_tls_error_quark (void)
{
return g_quark_from_static_string ("g-tls-error-quark");
}
G_DEFINE_QUARK ("g-tls-error-quark", g_tls_error)
/**
* g_tls_connection_emit_accept_certificate: