mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
flax: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
51448ea5f1
commit
9fa9ea2162
3 changed files with 3 additions and 40 deletions
|
@ -31,13 +31,7 @@
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_FLAC_DEC gst_flac_dec_get_type()
|
#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)
|
G_DECLARE_FINAL_TYPE (GstFlacDec, gst_flac_dec, GST, FLAC_DEC, GstAudioDecoder)
|
||||||
#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;
|
|
||||||
|
|
||||||
struct _GstFlacDec {
|
struct _GstFlacDec {
|
||||||
GstAudioDecoder audiodecoder;
|
GstAudioDecoder audiodecoder;
|
||||||
|
@ -63,12 +57,6 @@ struct _GstFlacDec {
|
||||||
gint error_count;
|
gint error_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstFlacDecClass {
|
|
||||||
GstAudioDecoderClass audiodecoder;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_flac_dec_get_type (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_FLAC_DEC_H__ */
|
#endif /* __GST_FLAC_DEC_H__ */
|
||||||
|
|
|
@ -29,13 +29,7 @@
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_TYPE_FLAC_ENC (gst_flac_enc_get_type())
|
#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)
|
G_DECLARE_FINAL_TYPE (GstFlacEnc, gst_flac_enc, GST, FLAC_ENC, GstAudioEncoder)
|
||||||
#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;
|
|
||||||
|
|
||||||
struct _GstFlacEnc {
|
struct _GstFlacEnc {
|
||||||
GstAudioEncoder element;
|
GstAudioEncoder element;
|
||||||
|
@ -69,12 +63,6 @@ struct _GstFlacEnc {
|
||||||
gint channel_reorder_map[8];
|
gint channel_reorder_map[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstFlacEncClass {
|
|
||||||
GstAudioEncoderClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_flac_enc_get_type(void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_FLAC_ENC_H__ */
|
#endif /* __GST_FLAC_ENC_H__ */
|
||||||
|
|
|
@ -28,13 +28,7 @@
|
||||||
#include <gst/base/gstadapter.h>
|
#include <gst/base/gstadapter.h>
|
||||||
|
|
||||||
#define GST_TYPE_FLAC_TAG (gst_flac_tag_get_type())
|
#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))
|
G_DECLARE_FINAL_TYPE (GstFlacTag, gst_flac_tag, GST, FLAC_TAG, GstElement)
|
||||||
#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;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
@ -68,11 +62,4 @@ struct _GstFlacTag
|
||||||
gboolean metadata_last_block;
|
gboolean metadata_last_block;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstFlacTagClass
|
|
||||||
{
|
|
||||||
GstElementClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
GType gst_flac_tag_get_type (void);
|
|
||||||
|
|
||||||
#endif /* GST_FLAC_TAG_H */
|
#endif /* GST_FLAC_TAG_H */
|
||||||
|
|
Loading…
Reference in a new issue