mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
Add gst_structure_get_type
https://bugzilla.gnome.org/show_bug.cgi?id=657640
This commit is contained in:
parent
ef4b00c777
commit
22acd34c42
3 changed files with 8 additions and 3 deletions
|
@ -113,12 +113,14 @@ static gboolean gst_structure_parse_simple_string (gchar * s, gchar ** end);
|
||||||
|
|
||||||
GType _gst_structure_type = 0;
|
GType _gst_structure_type = 0;
|
||||||
|
|
||||||
|
|
||||||
|
G_DEFINE_BOXED_TYPE (GstStructure, gst_structure,
|
||||||
|
gst_structure_copy_conditional, gst_structure_free);
|
||||||
|
|
||||||
void
|
void
|
||||||
_priv_gst_structure_initialize (void)
|
_priv_gst_structure_initialize (void)
|
||||||
{
|
{
|
||||||
_gst_structure_type = g_boxed_type_register_static ("GstStructure",
|
_gst_structure_type = gst_structure_get_type ();
|
||||||
(GBoxedCopyFunc) gst_structure_copy_conditional,
|
|
||||||
(GBoxedFreeFunc) gst_structure_free);
|
|
||||||
|
|
||||||
g_value_register_transform_func (_gst_structure_type, G_TYPE_STRING,
|
g_value_register_transform_func (_gst_structure_type, G_TYPE_STRING,
|
||||||
gst_structure_transform_to_string);
|
gst_structure_transform_to_string);
|
||||||
|
|
|
@ -83,6 +83,8 @@ struct _GstStructure {
|
||||||
GQuark name;
|
GQuark name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GType gst_structure_get_type (void);
|
||||||
|
|
||||||
GstStructure * gst_structure_empty_new (const gchar * name);
|
GstStructure * gst_structure_empty_new (const gchar * name);
|
||||||
GstStructure * gst_structure_id_empty_new (GQuark quark);
|
GstStructure * gst_structure_id_empty_new (GQuark quark);
|
||||||
GstStructure * gst_structure_new (const gchar * name,
|
GstStructure * gst_structure_new (const gchar * name,
|
||||||
|
|
|
@ -990,6 +990,7 @@ EXPORTS
|
||||||
gst_structure_get_name
|
gst_structure_get_name
|
||||||
gst_structure_get_name_id
|
gst_structure_get_name_id
|
||||||
gst_structure_get_string
|
gst_structure_get_string
|
||||||
|
gst_structure_get_type
|
||||||
gst_structure_get_uint
|
gst_structure_get_uint
|
||||||
gst_structure_get_valist
|
gst_structure_get_valist
|
||||||
gst_structure_get_value
|
gst_structure_get_value
|
||||||
|
|
Loading…
Reference in a new issue