summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-array.c')
-rw-r--r--json-glib/json-array.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index 4b17825..e9727e8 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -44,6 +44,19 @@ struct _JsonArray
volatile gint ref_count;
};
+GType
+json_array_get_type (void)
+{
+ static GType array_type = 0;
+
+ if (G_UNLIKELY (!array_type))
+ array_type = g_boxed_type_register_static ("JsonArray",
+ (GBoxedCopyFunc) json_array_ref,
+ (GBoxedFreeFunc) json_array_unref);
+
+ return array_type;
+}
+
/**
* json_array_new:
*