diff options
author | Dan Winship <danw@gnome.org> | 2012-07-04 12:44:37 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-07-13 14:18:36 -0400 |
commit | 0d0b2f7717f88c8e837399548bfa2ebfc12c8587 (patch) | |
tree | 36236d0f3cfb0a64a1f2e4b8d8fc1c07a6a340b4 /libsoup/soup-uri.c | |
parent | 06f64f9db08ec4140b66c118f3fcf5edd6bdeec3 (diff) | |
download | libsoup-0d0b2f7717f88c8e837399548bfa2ebfc12c8587.tar.gz |
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Diffstat (limited to 'libsoup/soup-uri.c')
-rw-r--r-- | libsoup/soup-uri.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index 24cd6b0a..c2fc4342 100644 --- a/libsoup/soup-uri.c +++ b/libsoup/soup-uri.c @@ -1220,18 +1220,4 @@ soup_uri_host_equal (gconstpointer v1, gconstpointer v2) return g_ascii_strcasecmp (one->host, two->host) == 0; } - -GType -soup_uri_get_type (void) -{ - static volatile gsize type_volatile = 0; - - if (g_once_init_enter (&type_volatile)) { - GType type = g_boxed_type_register_static ( - g_intern_static_string ("SoupURI"), - (GBoxedCopyFunc) soup_uri_copy, - (GBoxedFreeFunc) soup_uri_free); - g_once_init_leave (&type_volatile, type); - } - return type_volatile; -} +G_DEFINE_BOXED_TYPE (SoupURI, soup_uri, soup_uri_copy, soup_uri_free) |