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-cookie.c | |
parent | 06f64f9db08ec4140b66c118f3fcf5edd6bdeec3 (diff) | |
download | libsoup-0d0b2f7717f88c8e837399548bfa2ebfc12c8587.tar.gz |
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Diffstat (limited to 'libsoup/soup-cookie.c')
-rwxr-xr-x | libsoup/soup-cookie.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libsoup/soup-cookie.c b/libsoup/soup-cookie.c index f148afa4..7d6b583f 100755 --- a/libsoup/soup-cookie.c +++ b/libsoup/soup-cookie.c @@ -74,20 +74,7 @@ * Since: 2.24 **/ -GType -soup_cookie_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 ("SoupCookie"), - (GBoxedCopyFunc) soup_cookie_copy, - (GBoxedFreeFunc) soup_cookie_free); - g_once_init_leave (&type_volatile, type); - } - return type_volatile; -} +G_DEFINE_BOXED_TYPE (SoupCookie, soup_cookie, soup_cookie_copy, soup_cookie_free) /** * soup_cookie_copy: |