From e1875bf25f6fe7ab897c02d953599bfa262dcf76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 7 May 2009 06:14:18 +0200 Subject: [PATCH] interfaces: API: Add gst_color_balance_get_balance_type() This is a convenience function that returns the balance_type of the interface struct. --- gst-libs/gst/interfaces/colorbalance.c | 8 ++++++++ gst-libs/gst/interfaces/colorbalance.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/gst-libs/gst/interfaces/colorbalance.c b/gst-libs/gst/interfaces/colorbalance.c index 1982f78..8843595 100644 --- a/gst-libs/gst/interfaces/colorbalance.c +++ b/gst-libs/gst/interfaces/colorbalance.c @@ -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 diff --git a/gst-libs/gst/interfaces/colorbalance.h b/gst-libs/gst/interfaces/colorbalance.h index 6884133..dc9f599 100644 --- a/gst-libs/gst/interfaces/colorbalance.h +++ b/gst-libs/gst/interfaces/colorbalance.h @@ -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, -- 2.7.4