summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-10-16 23:19:35 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-10-16 23:19:35 +0100
commit34515af7bb1d69317b9e52d0ced92beaf6770e7d (patch)
tree81ee89977621971e3ab527be0996c8ee64d647e3 /json-glib/json-gobject.c
parent0656c4bee8e14c375481c89a62f0e6e95be758ce (diff)
downloadjson-glib-34515af7bb1d69317b9e52d0ced92beaf6770e7d.tar.gz
We need the actual implementation of the JsonSerializable GType function
A placeholder, while syntactically correct, won't do.
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;
}