summaryrefslogtreecommitdiff
path: root/libsoup/soup-password-manager.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-07-04 12:44:37 -0400
committerDan Winship <danw@gnome.org>2012-07-13 14:18:36 -0400
commit0d0b2f7717f88c8e837399548bfa2ebfc12c8587 (patch)
tree36236d0f3cfb0a64a1f2e4b8d8fc1c07a6a340b4 /libsoup/soup-password-manager.c
parent06f64f9db08ec4140b66c118f3fcf5edd6bdeec3 (diff)
downloadlibsoup-0d0b2f7717f88c8e837399548bfa2ebfc12c8587.tar.gz
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Diffstat (limited to 'libsoup/soup-password-manager.c')
-rw-r--r--libsoup/soup-password-manager.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/libsoup/soup-password-manager.c b/libsoup/soup-password-manager.c
index 5f629eeb..fed0156b 100644
--- a/libsoup/soup-password-manager.c
+++ b/libsoup/soup-password-manager.c
@@ -14,25 +14,13 @@
#include "soup-password-manager.h"
#include "soup-session-feature.h"
-GType
-soup_password_manager_get_type (void)
+G_DEFINE_INTERFACE_WITH_CODE (SoupPasswordManager, soup_password_manager, G_TYPE_OBJECT,
+ g_type_interface_add_prerequisite (g_define_type_id, SOUP_TYPE_SESSION_FEATURE);
+ )
+
+static void
+soup_password_manager_default_init (SoupPasswordManagerInterface *iface)
{
- static volatile gsize g_define_type_id__volatile = 0;
- if (g_once_init_enter (&g_define_type_id__volatile))
- {
- GType g_define_type_id =
- g_type_register_static_simple (G_TYPE_INTERFACE,
- g_intern_static_string ("SoupPasswordManager"),
- sizeof (SoupPasswordManagerInterface),
- (GClassInitFunc)NULL,
- 0,
- (GInstanceInitFunc)NULL,
- (GTypeFlags) 0);
- g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_OBJECT);
- g_type_interface_add_prerequisite (g_define_type_id, SOUP_TYPE_SESSION_FEATURE);
- g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
- }
- return g_define_type_id__volatile;
}
/**