summaryrefslogtreecommitdiff
path: root/json-glib/json-object.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-object.c')
-rw-r--r--json-glib/json-object.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index 96fcdbe..bbea83d 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -47,6 +47,19 @@ struct _JsonObject
volatile gint ref_count;
};
+GType
+json_object_get_type (void)
+{
+ static GType object_type = 0;
+
+ if (G_UNLIKELY (!object_type))
+ object_type = g_boxed_type_register_static ("JsonObject",
+ (GBoxedCopyFunc) json_object_ref,
+ (GBoxedFreeFunc) json_object_unref);
+
+ return object_type;
+}
+
/**
* json_object_new:
*