summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index d02a7bf..f6f8b57 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -46,6 +46,12 @@ json_serializable_get_type (void)
{
static GType iface_type = 0;
+ if (!iface_type)
+ iface_type =
+ g_type_register_static_simple (G_TYPE_INTERFACE, "JsonSerializable",
+ sizeof (JsonSerializableIface),
+ NULL, 0, NULL, 0);
+
return iface_type;
}