From 34515af7bb1d69317b9e52d0ced92beaf6770e7d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 16 Oct 2007 23:19:35 +0100 Subject: We need the actual implementation of the JsonSerializable GType function A placeholder, while syntactically correct, won't do. --- json-glib/json-gobject.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'json-glib/json-gobject.c') 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; } -- cgit v1.2.1