summaryrefslogtreecommitdiff
path: root/gst/gststructure.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-06-22 19:22:34 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-06-22 19:22:34 +0000
commitc3efeeb64c0daf6bc9691c867373a3fb2d5b4940 (patch)
treecaa1d35231209b1562bfe61bd8f780359866d3bb /gst/gststructure.h
parent8952d2c571c0cfcce0d5d07ab7e69af93dd61708 (diff)
check/: copy over from 0.8, and add two with bitmasks specified with (int) 0xFF...
Original commit message from CVS: * check/Makefile.am: * check/gst/capslist.h: copy over from 0.8, and add two with bitmasks specified with (int) 0xFF... * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite): add test to parse everything from capslist.h * check/gst/gststructure.c: (START_TEST), (gst_value_suite), (main): add test for structure deserialization * check/gst/gstvalue.c: (START_TEST), (gst_value_suite): add tests for deserialization of strings to int types * gst/gststructure.c: (gst_structure_nth_field_name): * gst/gststructure.h: add a way to get the name of a field referenced by index * gst/gstvalue.c: (gst_value_deserialize_int_helper): instead of checking if the resulting long long lies between min and max, we check if the long long would fit into a number of bytes for the final type. This fixes cases where a string represents 2^32 - 1, which when cast to int would be the (valid) -1, but is bigger than G_MAXINT
Diffstat (limited to 'gst/gststructure.h')
-rw-r--r--gst/gststructure.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gststructure.h b/gst/gststructure.h
index 95d3fbf52f..f729c13872 100644
--- a/gst/gststructure.h
+++ b/gst/gststructure.h
@@ -109,6 +109,7 @@ gboolean gst_structure_map_in_place (GstStructure
GstStructureMapFunc func,
gpointer user_data);
gint gst_structure_n_fields (const GstStructure *structure);
+const gchar * gst_structure_nth_field_name (const GstStructure *structure, guint index);
gboolean gst_structure_has_field (const GstStructure *structure,
const gchar *fieldname);
gboolean gst_structure_has_field_typed (const GstStructure *structure,