mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 04:36:17 +01:00
Use G_DEFINE_QUARK for quarks in GIO
This commit is contained in:
parent
b7d1518ce9
commit
60d2cb665e
@ -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:
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user