diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-04-25 09:47:10 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-04-25 20:19:23 +0200 |
commit | 772c58e255d8d0358ad21bb64b49fb49e6271bc7 (patch) | |
tree | 164741baeb36b0b618be9467b92cfd61350ad6e7 /gst/gstcontrolbinding.h | |
parent | 12eefc0442695fce2ace96ede3221b59068cd74c (diff) |
controller: expand the api to offer functions for plain and GValue arrays
Rename the _get_value_array() functions to _get_g_value_array() and reintroduce
the former to operate on plain unboxed c datatypes (like in 0.10). The _g_value
variants are for bindings while the _value ones are more suited to processing
in elements.
Diffstat (limited to 'gst/gstcontrolbinding.h')
-rw-r--r-- | gst/gstcontrolbinding.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/gstcontrolbinding.h b/gst/gstcontrolbinding.h index 96652fab5..7f83d3d19 100644 --- a/gst/gstcontrolbinding.h +++ b/gst/gstcontrolbinding.h @@ -93,7 +93,8 @@ struct _GstControlBindingClass /* virtual methods */ gboolean (* sync_values) (GstControlBinding *self, GstObject *object, GstClockTime timestamp, GstClockTime last_sync); GValue * (* get_value) (GstControlBinding *self, GstClockTime timestamp); - gboolean (* get_value_array) (GstControlBinding *self, GstClockTime timestamp,GstClockTime interval, guint n_values, GValue *values); + gboolean (* get_value_array) (GstControlBinding *self, GstClockTime timestamp,GstClockTime interval, guint n_values, gpointer values); + gboolean (* get_g_value_array) (GstControlBinding *self, GstClockTime timestamp,GstClockTime interval, guint n_values, GValue *values); /*< private >*/ gpointer _gst_reserved[GST_PADDING]; @@ -110,6 +111,8 @@ gboolean gst_control_binding_sync_values (GstControlBinding * GValue * gst_control_binding_get_value (GstControlBinding *binding, GstClockTime timestamp); gboolean gst_control_binding_get_value_array (GstControlBinding *binding, GstClockTime timestamp, + GstClockTime interval, guint n_values, gpointer values); +gboolean gst_control_binding_get_g_value_array (GstControlBinding *binding, GstClockTime timestamp, GstClockTime interval, guint n_values, GValue *values); void gst_control_binding_set_disabled (GstControlBinding * self, gboolean disabled); |