interfaces: API: Add gst_color_balance_get_balance_type()

This is a convenience function that returns the balance_type
of the interface struct.
This commit is contained in:
Sebastian Dröge 2009-05-07 06:14:18 +02:00
parent b6c3567b41
commit e1875bf25f
2 changed files with 11 additions and 0 deletions

View 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

View 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,