Add gst_structure_get_type
authorJohan Dahlin <johan@gnome.org>
Mon, 29 Aug 2011 16:50:02 +0000 (13:50 -0300)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 19 Oct 2011 08:20:31 +0000 (10:20 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=657640

gst/gststructure.c
gst/gststructure.h
win32/common/libgstreamer.def

index ca16622..f561a50 100644 (file)
@@ -113,12 +113,14 @@ static gboolean gst_structure_parse_simple_string (gchar * s, gchar ** end);
 
 GType _gst_structure_type = 0;
 
+
+G_DEFINE_BOXED_TYPE (GstStructure, gst_structure,
+    gst_structure_copy_conditional, gst_structure_free);
+
 void
 _priv_gst_structure_initialize (void)
 {
-  _gst_structure_type = g_boxed_type_register_static ("GstStructure",
-      (GBoxedCopyFunc) gst_structure_copy_conditional,
-      (GBoxedFreeFunc) gst_structure_free);
+  _gst_structure_type = gst_structure_get_type ();
 
   g_value_register_transform_func (_gst_structure_type, G_TYPE_STRING,
       gst_structure_transform_to_string);
index 61e4253..49ce202 100644 (file)
@@ -83,6 +83,8 @@ struct _GstStructure {
   GQuark name;
 };
 
+GType                   gst_structure_get_type             (void);
+
 GstStructure *          gst_structure_empty_new            (const gchar *            name);
 GstStructure *          gst_structure_id_empty_new         (GQuark                   quark);
 GstStructure *          gst_structure_new                  (const gchar *            name,
index 346c081..7217393 100644 (file)
@@ -990,6 +990,7 @@ EXPORTS
        gst_structure_get_name
        gst_structure_get_name_id
        gst_structure_get_string
+       gst_structure_get_type
        gst_structure_get_uint
        gst_structure_get_valist
        gst_structure_get_value