return gst_pulsemixer_ctrl_get_mixer_flags (this->mixer); \
} \
static void \
-interface_as_function ## _mixer_interface_init (GstMixerClass * klass) \
+interface_as_function ## _mixer_interface_init (GstMixerInterface * iface) \
{ \
- GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE; \
+ GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE; \
\
- klass->list_tracks = interface_as_function ## _list_tracks; \
- klass->set_volume = interface_as_function ## _set_volume; \
- klass->get_volume = interface_as_function ## _get_volume; \
- klass->set_mute = interface_as_function ## _set_mute; \
- klass->set_record = interface_as_function ## _set_record; \
- klass->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
+ iface->list_tracks = interface_as_function ## _list_tracks; \
+ iface->set_volume = interface_as_function ## _set_volume; \
+ iface->get_volume = interface_as_function ## _get_volume; \
+ iface->set_mute = interface_as_function ## _set_mute; \
+ iface->set_record = interface_as_function ## _set_record; \
+ iface->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
}
G_END_DECLS
"I420, YV12, IYUV, Y41B }"))
);
-static void gst_video_balance_colorbalance_init (GstColorBalanceClass * iface);
+static void gst_video_balance_colorbalance_init (GstColorBalanceInterface *
+ iface);
static void gst_video_balance_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
}
static void
-gst_video_balance_colorbalance_init (GstColorBalanceClass * iface)
+gst_video_balance_colorbalance_init (GstColorBalanceInterface * iface)
{
GST_COLOR_BALANCE_TYPE (iface) = GST_COLOR_BALANCE_SOFTWARE;
iface->list_channels = gst_video_balance_colorbalance_list_channels;
static void
gst_directsound_sink_implements_interface_init (GstImplementsInterfaceClass *
iface);
-static void gst_directsound_sink_mixer_interface_init (GstMixerClass * iface);
+static void gst_directsound_sink_mixer_interface_init (GstMixerInterface *
+ iface);
static GstStaticPadTemplate directsoundsink_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink",
}
static void
-gst_directsound_sink_mixer_interface_init (GstMixerClass * iface)
+gst_directsound_sink_mixer_interface_init (GstMixerInterface * iface)
{
/* the mixer interface requires a definition of the mixer type:
* hardware or software? */
} \
\
static void \
-interface_as_function ## _interface_init (GstMixerClass * klass) \
+interface_as_function ## _interface_init (GstMixerInterface * iface) \
{ \
- GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE; \
+ GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE; \
\
/* set up the interface hooks */ \
- klass->list_tracks = interface_as_function ## _list_tracks; \
- klass->set_volume = interface_as_function ## _set_volume; \
- klass->get_volume = interface_as_function ## _get_volume; \
- klass->set_mute = interface_as_function ## _set_mute; \
- klass->set_record = interface_as_function ## _set_record; \
+ iface->list_tracks = interface_as_function ## _list_tracks; \
+ iface->set_volume = interface_as_function ## _set_volume; \
+ iface->get_volume = interface_as_function ## _get_volume; \
+ iface->set_mute = interface_as_function ## _set_mute; \
+ iface->set_record = interface_as_function ## _set_record; \
}
}
static void
-gst_oss4_mixer_interface_init (GstMixerClass * klass)
+gst_oss4_mixer_interface_init (GstMixerInterface * iface)
{
- GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE;
-
- klass->list_tracks = gst_oss4_mixer_list_tracks;
- klass->set_volume = gst_oss4_mixer_set_volume;
- klass->get_volume = gst_oss4_mixer_get_volume;
- klass->set_mute = gst_oss4_mixer_set_mute;
- klass->set_record = gst_oss4_mixer_set_record;
- klass->set_option = gst_oss4_mixer_set_option;
- klass->get_option = gst_oss4_mixer_get_option;
- klass->get_mixer_flags = gst_oss4_mixer_get_mixer_flags;
+ GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE;
+
+ iface->list_tracks = gst_oss4_mixer_list_tracks;
+ iface->set_volume = gst_oss4_mixer_set_volume;
+ iface->get_volume = gst_oss4_mixer_get_volume;
+ iface->set_mute = gst_oss4_mixer_set_mute;
+ iface->set_record = gst_oss4_mixer_set_record;
+ iface->set_option = gst_oss4_mixer_set_option;
+ iface->get_option = gst_oss4_mixer_get_option;
+ iface->get_mixer_flags = gst_oss4_mixer_get_mixer_flags;
}
/* Implement the horror that is GstImplementsInterface */
}
static void
-gst_oss4_source_mixer_interface_init (GstMixerClass * klass)
+gst_oss4_source_mixer_interface_init (GstMixerInterface * iface)
{
- GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE;
+ GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE;
- klass->list_tracks = gst_oss4_source_mixer_list_tracks;
- klass->set_volume = gst_oss4_source_mixer_set_volume;
- klass->get_volume = gst_oss4_source_mixer_get_volume;
- klass->set_mute = gst_oss4_source_mixer_set_mute;
- klass->set_record = gst_oss4_source_mixer_set_record;
+ iface->list_tracks = gst_oss4_source_mixer_list_tracks;
+ iface->set_volume = gst_oss4_source_mixer_set_volume;
+ iface->get_volume = gst_oss4_source_mixer_get_volume;
+ iface->set_mute = gst_oss4_source_mixer_set_mute;
+ iface->set_record = gst_oss4_source_mixer_set_record;
}
/* Implement the horror that is GstImplementsInterface */
#include "gstosxaudioelement.h"
static void
-gst_osx_audio_element_class_init (GstOsxAudioElementInterface * klass);
+gst_osx_audio_element_interface_init (GstOsxAudioElementInterface * iface);
GType
gst_osx_audio_element_get_type (void)
if (!gst_osxaudioelement_type) {
static const GTypeInfo gst_osxaudioelement_info = {
sizeof (GstOsxAudioElementInterface),
- (GBaseInitFunc) gst_osx_audio_element_class_init,
+ (GBaseInitFunc) gst_osx_audio_element_interface_init,
NULL,
NULL,
NULL,
}
static void
-gst_osx_audio_element_class_init (GstOsxAudioElementInterface * klass)
+gst_osx_audio_element_interface_init (GstOsxAudioElementInterface * iface)
{
static gboolean initialized = FALSE;
}
/* default virtual functions */
- klass->io_proc = NULL;
+ iface->io_proc = NULL;
}
} \
\
static void \
-interface_as_function ## _interface_init (GstMixerClass * klass) \
+interface_as_function ## _interface_init (GstMixerInterface * iface) \
{ \
- GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE; \
+ GST_MIXER_TYPE (iface) = GST_MIXER_HARDWARE; \
\
/* set up the interface hooks */ \
- klass->list_tracks = interface_as_function ## _list_tracks; \
- klass->set_volume = interface_as_function ## _set_volume; \
- klass->get_volume = interface_as_function ## _get_volume; \
- klass->set_mute = interface_as_function ## _set_mute; \
- klass->set_record = interface_as_function ## _set_record; \
- klass->get_option = interface_as_function ## _get_option; \
- klass->set_option = interface_as_function ## _set_option; \
- klass->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
+ iface->list_tracks = interface_as_function ## _list_tracks; \
+ iface->set_volume = interface_as_function ## _set_volume; \
+ iface->get_volume = interface_as_function ## _get_volume; \
+ iface->set_mute = interface_as_function ## _set_mute; \
+ iface->set_record = interface_as_function ## _set_record; \
+ iface->get_option = interface_as_function ## _get_option; \
+ iface->set_option = interface_as_function ## _set_option; \
+ iface->get_mixer_flags = interface_as_function ## _get_mixer_flags; \
}
G_END_DECLS
} \
\
static void \
-interface_as_function ## _color_balance_interface_init (GstColorBalanceClass * klass) \
+interface_as_function ## _color_balance_interface_init (GstColorBalanceInterface * iface) \
{ \
- GST_COLOR_BALANCE_TYPE (klass) = GST_COLOR_BALANCE_HARDWARE; \
+ GST_COLOR_BALANCE_TYPE (iface) = GST_COLOR_BALANCE_HARDWARE; \
\
/* default virtual functions */ \
- klass->list_channels = interface_as_function ## _color_balance_list_channels; \
- klass->set_value = interface_as_function ## _color_balance_set_value; \
- klass->get_value = interface_as_function ## _color_balance_get_value; \
+ iface->list_channels = interface_as_function ## _color_balance_list_channels; \
+ iface->set_value = interface_as_function ## _color_balance_set_value; \
+ iface->get_value = interface_as_function ## _color_balance_get_value; \
} \
#endif /* __GST_V4L2_COLOR_BALANCE_H__ */
gpointer iface_data);
static void
-gst_v4l2radio_tuner_interface_reinit (GstTunerClass * iface)
+gst_v4l2radio_tuner_interface_reinit (GstTunerInterface * iface)
{
gst_v4l2radio_tuner_interface_init (iface);
}
} \
\
static void \
-interface_as_function ## _tuner_interface_init (GstTunerClass * klass) \
+interface_as_function ## _tuner_interface_init (GstTunerInterface * iface) \
{ \
/* default virtual functions */ \
- klass->list_channels = interface_as_function ## _tuner_list_channels; \
- klass->set_channel = interface_as_function ## _tuner_set_channel; \
- klass->get_channel = interface_as_function ## _tuner_get_channel; \
+ iface->list_channels = interface_as_function ## _tuner_list_channels; \
+ iface->set_channel = interface_as_function ## _tuner_set_channel; \
+ iface->get_channel = interface_as_function ## _tuner_get_channel; \
\
- klass->list_norms = interface_as_function ## _tuner_list_norms; \
- klass->set_norm = interface_as_function ## _tuner_set_norm_and_notify; \
- klass->get_norm = interface_as_function ## _tuner_get_norm; \
+ iface->list_norms = interface_as_function ## _tuner_list_norms; \
+ iface->set_norm = interface_as_function ## _tuner_set_norm_and_notify; \
+ iface->get_norm = interface_as_function ## _tuner_get_norm; \
\
- klass->set_frequency = interface_as_function ## _tuner_set_frequency_and_notify; \
- klass->get_frequency = interface_as_function ## _tuner_get_frequency; \
- klass->signal_strength = interface_as_function ## _tuner_signal_strength; \
+ iface->set_frequency = interface_as_function ## _tuner_set_frequency_and_notify; \
+ iface->get_frequency = interface_as_function ## _tuner_get_frequency; \
+ iface->signal_strength = interface_as_function ## _tuner_signal_strength; \
} \
#endif /* __GST_V4L2_TUNER_H__ */
#define GST_CAT_DEFAULT v4l2xv_debug
void
-gst_v4l2_video_overlay_interface_init (GstVideoOverlayIface * klass)
+gst_v4l2_video_overlay_interface_init (GstVideoOverlayInterface * iface)
{
GST_DEBUG_CATEGORY_INIT (v4l2xv_debug, "v4l2xv", 0,
"V4L2 GstVideoOverlay interface debugging");
gboolean gst_v4l2_video_overlay_get_render_rect (GstV4l2Object *v4l2object,
GstVideoRectangle *rect);
-void gst_v4l2_video_overlay_interface_init (GstVideoOverlayIface * iface);
+void gst_v4l2_video_overlay_interface_init (GstVideoOverlayInterface * iface);
void gst_v4l2_video_overlay_set_window_handle (GstV4l2Object * v4l2object,
guintptr id);
void gst_v4l2_video_overlay_prepare_window_handle (GstV4l2Object * v4l2object,
} \
\
static void \
-interface_as_function ## _video_overlay_interface_init (GstVideoOverlayIface * iface) \
+interface_as_function ## _video_overlay_interface_init (GstVideoOverlayInterface * iface) \
{ \
/* default virtual functions */ \
iface->set_window_handle = interface_as_function ## _video_overlay_set_window_handle; \
#endif
void
-gst_v4l2_video_orientation_interface_init (GstVideoOrientationInterface * klass)
+gst_v4l2_video_orientation_interface_init (GstVideoOrientationInterface * iface)
{
GST_DEBUG_CATEGORY_INIT (v4l2vo_debug, "v4l2vo", 0,
"V4L2 VideoOrientation interface debugging");
G_BEGIN_DECLS
-void gst_v4l2_video_orientation_interface_init (GstVideoOrientationInterface * klass);
+void gst_v4l2_video_orientation_interface_init (GstVideoOrientationInterface * iface);
gboolean gst_v4l2_video_orientation_get_hflip (GstV4l2Object *v4l2object, gboolean *flip);
gboolean gst_v4l2_video_orientation_get_vflip (GstV4l2Object *v4l2object, gboolean *flip);
} \
\
static void \
- interface_as_function ## _video_orientation_interface_init (GstVideoOrientationInterface * klass) \
+ interface_as_function ## _video_orientation_interface_init (GstVideoOrientationInterface * iface) \
{ \
/* default virtual functions */ \
- klass->get_hflip = interface_as_function ## _video_orientation_get_hflip; \
- klass->get_vflip = interface_as_function ## _video_orientation_get_vflip; \
- klass->get_hcenter = interface_as_function ## _video_orientation_get_hcenter; \
- klass->get_vcenter = interface_as_function ## _video_orientation_get_vcenter; \
- klass->set_hflip = interface_as_function ## _video_orientation_set_hflip; \
- klass->set_vflip = interface_as_function ## _video_orientation_set_vflip; \
- klass->set_hcenter = interface_as_function ## _video_orientation_set_hcenter; \
- klass->set_vcenter = interface_as_function ## _video_orientation_set_vcenter; \
+ iface->get_hflip = interface_as_function ## _video_orientation_get_hflip; \
+ iface->get_vflip = interface_as_function ## _video_orientation_get_vflip; \
+ iface->get_hcenter = interface_as_function ## _video_orientation_get_hcenter; \
+ iface->get_vcenter = interface_as_function ## _video_orientation_get_vcenter; \
+ iface->set_hflip = interface_as_function ## _video_orientation_set_hflip; \
+ iface->set_vflip = interface_as_function ## _video_orientation_set_vflip; \
+ iface->set_hcenter = interface_as_function ## _video_orientation_set_hcenter; \
+ iface->set_vcenter = interface_as_function ## _video_orientation_set_vcenter; \
}
#endif /* __GST_V4L2_VIDORIENT_H__ */