From 014fbbc3a487f387de4fa9db11833b55fc4ed064 Mon Sep 17 00:00:00 2001 From: Owen Fraser-Green Date: Tue, 1 Jun 2004 20:08:52 +0000 Subject: Added property accessors for mixertrack and mixeroptions. Original commit message from CVS: Added property accessors for mixertrack and mixeroptions. --- gst-libs/gst/mixer/mixeroptions.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'gst-libs/gst/mixer/mixeroptions.c') diff --git a/gst-libs/gst/mixer/mixeroptions.c b/gst-libs/gst/mixer/mixeroptions.c index 5e79a414..35d8ceba 100644 --- a/gst-libs/gst/mixer/mixeroptions.c +++ b/gst-libs/gst/mixer/mixeroptions.c @@ -84,11 +84,30 @@ gst_mixer_options_class_init (GstMixerOptionsClass * klass) } static void -gst_mixer_options_init (GstMixerOptions * channel) +gst_mixer_options_init (GstMixerOptions * mixer_options) { - channel->values = NULL; + mixer_options->values = NULL; } +/** + * gst_mixer_options_get_values: + * @mixer_optnios: The #GstMixerOptions item that owns the values. + * + * Get the values for the mixer option. + * + * Returns: A list of all the possible values for the mixer option. + */ + +GList * +gst_mixer_options_get_values (GstMixerOptions * mixer_options) +{ + if (!mixer_options->values) + return NULL; + + return (GList *) mixer_options->values; +} + + static void gst_mixer_options_dispose (GObject * object) { -- cgit v1.2.1