summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-10-19 09:49:05 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-10-19 09:49:05 +0100
commit80665415cd945f3dafed6925c9975f36b916a80f (patch)
treed5c8507c928274a6f8bfd408a21f9d0fcf5605e0 /json-glib/json-array.c
parent51e2eef48fabbee554193ee9eadfb8696ebb3ac7 (diff)
downloadjson-glib-80665415cd945f3dafed6925c9975f36b916a80f.tar.gz
Use G_DEFINE_BOXED_TYPE()
Diffstat (limited to 'json-glib/json-array.c')
-rw-r--r--json-glib/json-array.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index da26898..a51bf35 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -44,18 +44,7 @@
* To retrieve the length of the array, use json_array_get_length().
*/
-GType
-json_array_get_type (void)
-{
- static GType array_type = 0;
-
- if (G_UNLIKELY (!array_type))
- array_type = g_boxed_type_register_static (g_intern_static_string ("JsonArray"),
- (GBoxedCopyFunc) json_array_ref,
- (GBoxedFreeFunc) json_array_unref);
-
- return array_type;
-}
+G_DEFINE_BOXED_TYPE (JsonArray, json_array, json_array_ref, json_array_unref);
/**
* json_array_new: