summaryrefslogtreecommitdiff
path: root/gst/gststructure.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-08 23:43:16 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-10 09:39:12 +0100
commitcdd47a37e9b11604ab626907d43aa510a0b5d614 (patch)
tree9113a16072d7b4d7df99d72e10f177bd6b904bb1 /gst/gststructure.h
parent26b201273a81be10cb47fc2031ea15f6546e607f (diff)
structure: add gst_structure_*_get*() vararg functions
Add a bunch of vararg getter convenience functions to complement the vararg setter functions, and a basic unit test. Fixes #534208. API: gst_structure_get() API: gst_structure_id_get() API: gst_structure_get_valist() API: gst_structure_id_get_valist()
Diffstat (limited to 'gst/gststructure.h')
-rw-r--r--gst/gststructure.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gst/gststructure.h b/gst/gststructure.h
index ecefea284c..aa3aa5d6b5 100644
--- a/gst/gststructure.h
+++ b/gst/gststructure.h
@@ -132,6 +132,21 @@ void gst_structure_id_set_valist (GstStructure
GQuark fieldname,
va_list varargs);
+gboolean gst_structure_get_valist (GstStructure *structure,
+ const char *first_fieldname,
+ va_list args);
+
+gboolean gst_structure_get (GstStructure *structure,
+ const char *first_fieldname,
+ ...) G_GNUC_NULL_TERMINATED;
+
+gboolean gst_structure_id_get_valist (GstStructure *structure,
+ GQuark first_field_id,
+ va_list args);
+
+gboolean gst_structure_id_get (GstStructure *structure,
+ GQuark first_field_id,
+ ...) G_GNUC_NULL_TERMINATED;
G_CONST_RETURN GValue * gst_structure_id_get_value (const GstStructure *structure,
GQuark field);