flax: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-13 18:42:38 +01:00
parent 51448ea5f1
commit 9fa9ea2162
3 changed files with 3 additions and 40 deletions

View file

@ -31,13 +31,7 @@
G_BEGIN_DECLS
#define GST_TYPE_FLAC_DEC gst_flac_dec_get_type()
#define GST_FLAC_DEC(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, GST_TYPE_FLAC_DEC, GstFlacDec)
#define GST_FLAC_DEC_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, GST_TYPE_FLAC_DEC, GstFlacDecClass)
#define GST_IS_FLAC_DEC(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, GST_TYPE_FLAC_DEC)
#define GST_IS_FLAC_DEC_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(klass, GST_TYPE_FLAC_DEC)
typedef struct _GstFlacDec GstFlacDec;
typedef struct _GstFlacDecClass GstFlacDecClass;
G_DECLARE_FINAL_TYPE (GstFlacDec, gst_flac_dec, GST, FLAC_DEC, GstAudioDecoder)
struct _GstFlacDec {
GstAudioDecoder audiodecoder;
@ -63,12 +57,6 @@ struct _GstFlacDec {
gint error_count;
};
struct _GstFlacDecClass {
GstAudioDecoderClass audiodecoder;
};
GType gst_flac_dec_get_type (void);
G_END_DECLS
#endif /* __GST_FLAC_DEC_H__ */

View file

@ -29,13 +29,7 @@
G_BEGIN_DECLS
#define GST_TYPE_FLAC_ENC (gst_flac_enc_get_type())
#define GST_FLAC_ENC(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, GST_TYPE_FLAC_ENC, GstFlacEnc)
#define GST_FLAC_ENC_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, GST_TYPE_FLAC_ENC, GstFlacEncClass)
#define GST_IS_FLAC_ENC(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, GST_TYPE_FLAC_ENC)
#define GST_IS_FLAC_ENC_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(klass, GST_TYPE_FLAC_ENC)
typedef struct _GstFlacEnc GstFlacEnc;
typedef struct _GstFlacEncClass GstFlacEncClass;
G_DECLARE_FINAL_TYPE (GstFlacEnc, gst_flac_enc, GST, FLAC_ENC, GstAudioEncoder)
struct _GstFlacEnc {
GstAudioEncoder element;
@ -69,12 +63,6 @@ struct _GstFlacEnc {
gint channel_reorder_map[8];
};
struct _GstFlacEncClass {
GstAudioEncoderClass parent_class;
};
GType gst_flac_enc_get_type(void);
G_END_DECLS
#endif /* __GST_FLAC_ENC_H__ */

View file

@ -28,13 +28,7 @@
#include <gst/base/gstadapter.h>
#define GST_TYPE_FLAC_TAG (gst_flac_tag_get_type())
#define GST_FLAC_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FLAC_TAG, GstFlacTag))
#define GST_FLAC_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FLAC_TAG, GstFlacTag))
#define GST_IS_FLAC_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FLAC_TAG))
#define GST_IS_FLAC_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FLAC_TAG))
typedef struct _GstFlacTag GstFlacTag;
typedef struct _GstFlacTagClass GstFlacTagClass;
G_DECLARE_FINAL_TYPE (GstFlacTag, gst_flac_tag, GST, FLAC_TAG, GstElement)
typedef enum
{
@ -68,11 +62,4 @@ struct _GstFlacTag
gboolean metadata_last_block;
};
struct _GstFlacTagClass
{
GstElementClass parent_class;
};
GType gst_flac_tag_get_type (void);
#endif /* GST_FLAC_TAG_H */