expand tabs
[platform/upstream/gstreamer.git] / gst-libs / gst / interfaces / mixeroptions.h
1 /* GStreamer Mixer
2  * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * mixeroptions.h: mixer track options object
5  * This should be a subclass of MixerItem, along with MixerOptions,
6  * but that's not possible because of API/ABI in 0.8.x. FIXME.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GST_MIXER_OPTIONS_H__
25 #define __GST_MIXER_OPTIONS_H__
26
27 #include <gst/gst.h>
28 #include <gst/interfaces/mixertrack.h>
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_MIXER_OPTIONS \
33   (gst_mixer_options_get_type ())
34 #define GST_MIXER_OPTIONS(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_MIXER_OPTIONS, \
36                                GstMixerOptions))
37 #define GST_MIXER_OPTIONS_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_MIXER_OPTIONS, \
39                             GstMixerOptionsClass))
40 #define GST_IS_MIXER_OPTIONS(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MIXER_OPTIONS))
42 #define GST_IS_MIXER_OPTIONS_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MIXER_OPTIONS))
44
45 typedef struct _GstMixerOptions GstMixerOptions;
46 typedef struct _GstMixerOptionsClass GstMixerOptionsClass;
47
48 struct _GstMixerOptions {
49   GstMixerTrack parent;
50
51   /* list of strings */
52   GList        *values;
53
54   gpointer _gst_reserved[GST_PADDING];
55 };
56
57 struct _GstMixerOptionsClass {
58   GstMixerTrackClass parent;
59
60   /* signals */
61   void (* option_changed) (GstMixerOptions *opts,
62                            gchar           *value);
63
64   gpointer _gst_reserved[GST_PADDING];
65 };
66
67 GType           gst_mixer_options_get_type      (void);
68
69 GList * gst_mixer_options_get_values (GstMixerOptions *mixer_options);
70
71 G_END_DECLS
72
73 #endif /* __GST_MIXER_OPTIONS_H__ */