interfaces: API: Add gst_color_balance_get_balance_type()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 7 May 2009 04:14:18 +0000 (06:14 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 May 2009 07:03:22 +0000 (09:03 +0200)
This is a convenience function that returns the balance_type
of the interface struct.

gst-libs/gst/interfaces/colorbalance.c
gst-libs/gst/interfaces/colorbalance.h

index 1982f78..8843595 100644 (file)
@@ -184,6 +184,14 @@ gst_color_balance_get_value (GstColorBalance * balance,
   return channel->min_value;
 }
 
+GstColorBalanceType
+gst_color_balance_get_balance_type (GstColorBalance * balance)
+{
+  GstColorBalanceClass *klass = GST_COLOR_BALANCE_GET_CLASS (balance);
+
+  return klass->balance_type;
+}
+
 /**
  * gst_color_balance_value_changed:
  * @balance: A #GstColorBalance instance
index 6884133..dc9f599 100644 (file)
@@ -99,6 +99,9 @@ void    gst_color_balance_set_value     (GstColorBalance        *balance,
 gint    gst_color_balance_get_value     (GstColorBalance        *balance,
                                          GstColorBalanceChannel *channel);
 
+GstColorBalanceType
+        gst_color_balance_get_balance_type (GstColorBalance        *balance);
+
 /* trigger signal */
 void    gst_color_balance_value_changed (GstColorBalance        *balance,
                                          GstColorBalanceChannel *channel,