mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
Adjust API based on comments from other developers
Original commit message from CVS: Adjust API based on comments from other developers
This commit is contained in:
parent
32eac40ddb
commit
25e993e571
2 changed files with 15 additions and 8 deletions
|
@ -75,7 +75,7 @@ void _gst_structure_initialize(void)
|
||||||
&structure_info, 0);
|
&structure_info, 0);
|
||||||
#if 0
|
#if 0
|
||||||
_gst_structure_type = g_boxed_type_register_static("GstStructure",
|
_gst_structure_type = g_boxed_type_register_static("GstStructure",
|
||||||
(GBoxedCopyFunc) gst_structure_dup,
|
(GBoxedCopyFunc) gst_structure_copy,
|
||||||
(GBoxedFreeFunc) gst_structure_free);
|
(GBoxedFreeFunc) gst_structure_free);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -160,14 +160,14 @@ GstStructure *gst_structure_new_valist(const gchar *name,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_structure_dup:
|
* gst_structure_copy:
|
||||||
* @structure: a #GstStructure to duplicate
|
* @structure: a #GstStructure to duplicate
|
||||||
*
|
*
|
||||||
* Duplicates a #GstStructure and all its fields and values.
|
* Duplicates a #GstStructure and all its fields and values.
|
||||||
*
|
*
|
||||||
* Returns: a new #GstStructure.
|
* Returns: a new #GstStructure.
|
||||||
*/
|
*/
|
||||||
GstStructure *gst_structure_dup(GstStructure *structure)
|
GstStructure *gst_structure_copy(GstStructure *structure)
|
||||||
{
|
{
|
||||||
GstStructure *new_structure;
|
GstStructure *new_structure;
|
||||||
GstStructureField *field;
|
GstStructureField *field;
|
||||||
|
@ -462,7 +462,7 @@ gst_structure_get_field(GstStructure *structure, const gchar *fieldname)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_structure_get:
|
* gst_structure_get_value:
|
||||||
* @structure: a #GstStructure
|
* @structure: a #GstStructure
|
||||||
* @fieldname: the name of the field to get
|
* @fieldname: the name of the field to get
|
||||||
*
|
*
|
||||||
|
@ -471,7 +471,7 @@ gst_structure_get_field(GstStructure *structure, const gchar *fieldname)
|
||||||
* Returns: the #GValue corresponding to the field with the given name.
|
* Returns: the #GValue corresponding to the field with the given name.
|
||||||
*/
|
*/
|
||||||
const GValue *
|
const GValue *
|
||||||
gst_structure_get(GstStructure *structure, const gchar *fieldname)
|
gst_structure_get_value(GstStructure *structure, const gchar *fieldname)
|
||||||
{
|
{
|
||||||
GstStructureField *field;
|
GstStructureField *field;
|
||||||
|
|
||||||
|
@ -484,6 +484,13 @@ gst_structure_get(GstStructure *structure, const gchar *fieldname)
|
||||||
return &field->value;
|
return &field->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
void gst_structure_get(GstStructure *structure, const gchar *fieldname, ...)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_structure_remove_field:
|
* gst_structure_remove_field:
|
||||||
* @structure: a #GstStructure
|
* @structure: a #GstStructure
|
||||||
|
@ -843,7 +850,7 @@ static void _gst_structure_value_free (GValue *value)
|
||||||
|
|
||||||
static void _gst_structure_value_copy (const GValue *src, GValue *dest)
|
static void _gst_structure_value_copy (const GValue *src, GValue *dest)
|
||||||
{
|
{
|
||||||
dest->data[0].v_pointer = gst_structure_dup(src->data[0].v_pointer);
|
dest->data[0].v_pointer = gst_structure_copy(src->data[0].v_pointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gpointer _gst_structure_value_peek_pointer (const GValue *value)
|
static gpointer _gst_structure_value_peek_pointer (const GValue *value)
|
||||||
|
|
|
@ -52,7 +52,7 @@ GstStructure *gst_structure_new(const gchar *name,
|
||||||
const gchar *firstfield, ...);
|
const gchar *firstfield, ...);
|
||||||
GstStructure *gst_structure_new_valist(const gchar *name,
|
GstStructure *gst_structure_new_valist(const gchar *name,
|
||||||
const gchar *firstfield, va_list varargs);
|
const gchar *firstfield, va_list varargs);
|
||||||
GstStructure *gst_structure_dup(GstStructure *structure);
|
GstStructure *gst_structure_copy(GstStructure *structure);
|
||||||
void gst_structure_free(GstStructure *structure);
|
void gst_structure_free(GstStructure *structure);
|
||||||
|
|
||||||
const gchar *gst_structure_get_name(GstStructure *structure);
|
const gchar *gst_structure_get_name(GstStructure *structure);
|
||||||
|
@ -67,7 +67,7 @@ void gst_structure_set_value(GstStructure *structure, const gchar *field,
|
||||||
void gst_structure_set(GstStructure *structure, const gchar *field, ...);
|
void gst_structure_set(GstStructure *structure, const gchar *field, ...);
|
||||||
void gst_structure_set_valist(GstStructure *structure, const gchar *field,
|
void gst_structure_set_valist(GstStructure *structure, const gchar *field,
|
||||||
va_list varargs);
|
va_list varargs);
|
||||||
const GValue *gst_structure_get(GstStructure *structure, const gchar *field);
|
const GValue *gst_structure_get_value(GstStructure *structure, const gchar *field);
|
||||||
GstStructureField *gst_structure_get_field(GstStructure *structure,
|
GstStructureField *gst_structure_get_field(GstStructure *structure,
|
||||||
const gchar *fieldname);
|
const gchar *fieldname);
|
||||||
GstStructureField *gst_structure_id_get_field(GstStructure *structure,
|
GstStructureField *gst_structure_id_get_field(GstStructure *structure,
|
||||||
|
|
Loading…
Reference in a new issue