mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
jack: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
9f494290d5
commit
f4841754ec
2 changed files with 6 additions and 31 deletions
|
@ -32,15 +32,9 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_JACK_AUDIO_SINK (gst_jack_audio_sink_get_type())
|
||||
#define GST_JACK_AUDIO_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_JACK_AUDIO_SINK,GstJackAudioSink))
|
||||
#define GST_JACK_AUDIO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_JACK_AUDIO_SINK,GstJackAudioSinkClass))
|
||||
#define GST_JACK_AUDIO_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),GST_TYPE_JACK_AUDIO_SINK,GstJackAudioSinkClass))
|
||||
#define GST_IS_JACK_AUDIO_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_JACK_AUDIO_SINK))
|
||||
#define GST_IS_JACK_AUDIO_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_JACK_AUDIO_SINK))
|
||||
|
||||
typedef struct _GstJackAudioSink GstJackAudioSink;
|
||||
typedef struct _GstJackAudioSinkClass GstJackAudioSinkClass;
|
||||
#define GST_TYPE_JACK_AUDIO_SINK (gst_jack_audio_sink_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstJackAudioSink, gst_jack_audio_sink,
|
||||
GST, JACK_AUDIO_SINK, GstAudioBaseSink)
|
||||
|
||||
/**
|
||||
* GstJackAudioSink:
|
||||
|
@ -71,12 +65,6 @@ struct _GstJackAudioSink {
|
|||
sample_t **buffers;
|
||||
};
|
||||
|
||||
struct _GstJackAudioSinkClass {
|
||||
GstAudioBaseSinkClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_jack_audio_sink_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_JACK_AUDIO_SINK_H__ */
|
||||
|
|
|
@ -53,15 +53,9 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_JACK_AUDIO_SRC (gst_jack_audio_src_get_type())
|
||||
#define GST_JACK_AUDIO_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_JACK_AUDIO_SRC,GstJackAudioSrc))
|
||||
#define GST_JACK_AUDIO_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_JACK_AUDIO_SRC,GstJackAudioSrcClass))
|
||||
#define GST_JACK_AUDIO_SRC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),GST_TYPE_JACK_AUDIO_SRC,GstJackAudioSrcClass))
|
||||
#define GST_IS_JACK_AUDIO_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_JACK_AUDIO_SRC))
|
||||
#define GST_IS_JACK_AUDIO_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_JACK_AUDIO_SRC))
|
||||
|
||||
typedef struct _GstJackAudioSrc GstJackAudioSrc;
|
||||
typedef struct _GstJackAudioSrcClass GstJackAudioSrcClass;
|
||||
#define GST_TYPE_JACK_AUDIO_SRC (gst_jack_audio_src_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstJackAudioSrc, gst_jack_audio_src,
|
||||
GST, JACK_AUDIO_SRC, GstAudioBaseSrc)
|
||||
|
||||
struct _GstJackAudioSrc
|
||||
{
|
||||
|
@ -88,13 +82,6 @@ struct _GstJackAudioSrc
|
|||
sample_t **buffers;
|
||||
};
|
||||
|
||||
struct _GstJackAudioSrcClass
|
||||
{
|
||||
GstAudioBaseSrcClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_jack_audio_src_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_JACK_AUDIO_SRC_H__ */
|
||||
|
|
Loading…
Reference in a new issue