Add gst_structure_get_type

https://bugzilla.gnome.org/show_bug.cgi?id=657640
This commit is contained in:
Johan Dahlin 2011-08-29 13:50:02 -03:00 committed by Edward Hervey
parent ef4b00c777
commit 22acd34c42
3 changed files with 8 additions and 3 deletions

View 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);

View 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,

View 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