diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-05-01 21:37:51 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-05-01 21:37:51 +0000 |
commit | ee5f475e6715035be373b358d079c8e87efcbb56 (patch) | |
tree | fffb271fa79fc313ee7d0589d00ced529545d670 /sys/v4l2/gstv4l2colorbalance.c | |
parent | 8d58b030d62888b25efa032fb7dba368730704b0 (diff) |
Few improvements to move to good.
Original commit message from CVS:
Few improvements to move to good.
Diffstat (limited to 'sys/v4l2/gstv4l2colorbalance.c')
-rw-r--r-- | sys/v4l2/gstv4l2colorbalance.c | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/sys/v4l2/gstv4l2colorbalance.c b/sys/v4l2/gstv4l2colorbalance.c index cfb3d578..7a0378f7 100644 --- a/sys/v4l2/gstv4l2colorbalance.c +++ b/sys/v4l2/gstv4l2colorbalance.c @@ -27,12 +27,6 @@ #include "gstv4l2colorbalance.h" #include "gstv4l2element.h" -static void -gst_v4l2_color_balance_channel_class_init (GstV4l2ColorBalanceChannelClass * - klass); -static void gst_v4l2_color_balance_channel_init (GstV4l2ColorBalanceChannel * - channel); - static const GList *gst_v4l2_color_balance_list_channels (GstColorBalance * balance); static void gst_v4l2_color_balance_set_value (GstColorBalance * balance, @@ -40,44 +34,27 @@ static void gst_v4l2_color_balance_set_value (GstColorBalance * balance, static gint gst_v4l2_color_balance_get_value (GstColorBalance * balance, GstColorBalanceChannel * channel); -static GstColorBalanceChannelClass *parent_class = NULL; -GType -gst_v4l2_color_balance_channel_get_type (void) +GST_BOILERPLATE (GstV4l2ColorBalanceChannel, + gst_v4l2_color_balance_channel, + GstColorBalanceChannel, GST_TYPE_COLOR_BALANCE_CHANNEL); + + +static void +gst_v4l2_color_balance_channel_base_init (gpointer g_class) { - static GType gst_v4l2_color_balance_channel_type = 0; - - if (!gst_v4l2_color_balance_channel_type) { - static const GTypeInfo v4l2_tuner_channel_info = { - sizeof (GstV4l2ColorBalanceChannelClass), - NULL, - NULL, - (GClassInitFunc) gst_v4l2_color_balance_channel_class_init, - NULL, - NULL, - sizeof (GstV4l2ColorBalanceChannel), - 0, - (GInstanceInitFunc) gst_v4l2_color_balance_channel_init, - NULL - }; - - gst_v4l2_color_balance_channel_type = - g_type_register_static (GST_TYPE_COLOR_BALANCE_CHANNEL, - "GstV4l2ColorBalanceChannel", &v4l2_tuner_channel_info, 0); - } - - return gst_v4l2_color_balance_channel_type; } + static void gst_v4l2_color_balance_channel_class_init (GstV4l2ColorBalanceChannelClass * klass) { - parent_class = g_type_class_peek_parent (klass); } static void -gst_v4l2_color_balance_channel_init (GstV4l2ColorBalanceChannel * channel) +gst_v4l2_color_balance_channel_init (GstV4l2ColorBalanceChannel * channel, + GstV4l2ColorBalanceChannelClass * klass) { channel->id = (guint32) - 1; } |