diff options
| author | Patrick Griffis <pgriffis@igalia.com> | 2020-10-21 16:43:22 -0500 |
|---|---|---|
| committer | Patrick Griffis <pgriffis@igalia.com> | 2020-10-21 16:43:22 -0500 |
| commit | 06b2a619bbf1e2c619b96b655093d406469d58e4 (patch) | |
| tree | 0bb1b22b53f7f33df1c36dd155ba91ed58a54e64 /libsoup/websocket | |
| parent | b5024563c92d8dd4802d0458e176a8114fee6ac8 (diff) | |
| download | libsoup-06b2a619bbf1e2c619b96b655093d406469d58e4.tar.gz | |
Consistently use G_DEFINE_QUARK
As well as rename soup_websocket_error_get_quark() to follow convention.
Diffstat (limited to 'libsoup/websocket')
| -rw-r--r-- | libsoup/websocket/soup-websocket.c | 6 | ||||
| -rw-r--r-- | libsoup/websocket/soup-websocket.h | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/libsoup/websocket/soup-websocket.c b/libsoup/websocket/soup-websocket.c index 48f9a7bd..3ef71759 100644 --- a/libsoup/websocket/soup-websocket.c +++ b/libsoup/websocket/soup-websocket.c @@ -155,11 +155,7 @@ * Since: 2.50 */ -GQuark -soup_websocket_error_get_quark (void) -{ - return g_quark_from_static_string ("web-socket-error-quark"); -} +G_DEFINE_QUARK (soup-websocket-error-quark, soup_websocket_error) static gboolean validate_key (const char *key) diff --git a/libsoup/websocket/soup-websocket.h b/libsoup/websocket/soup-websocket.h index d347c213..c447b664 100644 --- a/libsoup/websocket/soup-websocket.h +++ b/libsoup/websocket/soup-websocket.h @@ -24,9 +24,9 @@ G_BEGIN_DECLS -#define SOUP_WEBSOCKET_ERROR (soup_websocket_error_get_quark ()) +#define SOUP_WEBSOCKET_ERROR (soup_websocket_error_quark ()) SOUP_AVAILABLE_IN_2_50 -GQuark soup_websocket_error_get_quark (void) G_GNUC_CONST; +GQuark soup_websocket_error_quark (void) G_GNUC_CONST; typedef enum { SOUP_WEBSOCKET_ERROR_FAILED, |
