Commit e337a6f7 authored by Claudio Saavedra's avatar Claudio Saavedra

Use G_DEFINE_QUARK() for the SOUP_HTTP_ERROR error domain

Also move the documentation together with the definition.
parent 9963cb87
Pipeline #107315 passed with stage
in 1 minute and 4 seconds
......@@ -160,14 +160,6 @@
* have always had the names they have now.
**/
/**
* SOUP_HTTP_ERROR:
*
* A #GError domain representing an HTTP status. Use a #SoupStatus for
* the <structfield>code</structfield> value.
**/
/* The reason_phrases are not localized because:
*
* 1. Only ASCII can be used portably in the HTTP Status-Line, so we
......@@ -312,11 +304,4 @@ soup_status_proxify (guint status_code)
return status_code;
}
GQuark
soup_http_error_quark (void)
{
static GQuark error;
if (!error)
error = g_quark_from_static_string ("soup_http_error_quark");
return error;
}
G_DEFINE_QUARK (soup-http-error-quark, soup_http_error)
......@@ -98,7 +98,13 @@ const char *soup_status_get_phrase (guint status_code);
SOUP_AVAILABLE_IN_2_26
guint soup_status_proxify (guint status_code);
#define SOUP_HTTP_ERROR soup_http_error_quark()
/**
* SOUP_HTTP_ERROR:
*
* A #GError domain representing an HTTP status. Use a #SoupStatus for
* the <structfield>code</structfield> value.
**/
#define SOUP_HTTP_ERROR (soup_http_error_quark())
SOUP_AVAILABLE_IN_2_4
GQuark soup_http_error_quark (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment