summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-07-16 17:33:38 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-07-16 17:33:38 +0200
commit88ec06f4330a5b83d87b9a9d93b3b5cf45eec152 (patch)
tree5d3e47d12b60352514e25ef6649a5b3d5c3ac8bd /gst
parentbe77e8d6e1205f3737df6995843901fb90b484a1 (diff)
structure: Use a const GstStructure * as parameter for some more gst_structure_get variants
Diffstat (limited to 'gst')
-rw-r--r--gst/gststructure.c12
-rw-r--r--gst/gststructure.h8
2 files changed, 11 insertions, 9 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index 8a3aa6f7c5..8ae21cfd46 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -2533,7 +2533,7 @@ G_STMT_START { \
* Since: 0.10.24
*/
gboolean
-gst_structure_get_valist (GstStructure * structure,
+gst_structure_get_valist (const GstStructure * structure,
const char *first_fieldname, va_list args)
{
const char *field_name;
@@ -2602,8 +2602,8 @@ wrong_type:
* Since: 0.10.24
*/
gboolean
-gst_structure_id_get_valist (GstStructure * structure, GQuark first_field_id,
- va_list args)
+gst_structure_id_get_valist (const GstStructure * structure,
+ GQuark first_field_id, va_list args)
{
GQuark field_id;
GType expected_type = G_TYPE_INVALID;
@@ -2680,7 +2680,8 @@ wrong_type:
* Since: 0.10.24
*/
gboolean
-gst_structure_get (GstStructure * structure, const char *first_fieldname, ...)
+gst_structure_get (const GstStructure * structure, const char *first_fieldname,
+ ...)
{
gboolean ret;
va_list args;
@@ -2724,7 +2725,8 @@ gst_structure_get (GstStructure * structure, const char *first_fieldname, ...)
* Since: 0.10.24
*/
gboolean
-gst_structure_id_get (GstStructure * structure, GQuark first_field_id, ...)
+gst_structure_id_get (const GstStructure * structure, GQuark first_field_id,
+ ...)
{
gboolean ret;
va_list args;
diff --git a/gst/gststructure.h b/gst/gststructure.h
index bbb89360b7..05dc976d01 100644
--- a/gst/gststructure.h
+++ b/gst/gststructure.h
@@ -132,19 +132,19 @@ void gst_structure_id_set_valist (GstStructure
GQuark fieldname,
va_list varargs);
-gboolean gst_structure_get_valist (GstStructure *structure,
+gboolean gst_structure_get_valist (const GstStructure *structure,
const char *first_fieldname,
va_list args);
-gboolean gst_structure_get (GstStructure *structure,
+gboolean gst_structure_get (const GstStructure *structure,
const char *first_fieldname,
...) G_GNUC_NULL_TERMINATED;
-gboolean gst_structure_id_get_valist (GstStructure *structure,
+gboolean gst_structure_id_get_valist (const GstStructure *structure,
GQuark first_field_id,
va_list args);
-gboolean gst_structure_id_get (GstStructure *structure,
+gboolean gst_structure_id_get (const GstStructure *structure,
GQuark first_field_id,
...) G_GNUC_NULL_TERMINATED;