taglib: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-15 19:20:49 +01:00
parent e5c9538d2a
commit 58d74f0ec5
2 changed files with 4 additions and 38 deletions

View file

@ -26,30 +26,13 @@
G_BEGIN_DECLS
typedef struct _GstApev2Mux GstApev2Mux;
typedef struct _GstApev2MuxClass GstApev2MuxClass;
#define GST_TYPE_APEV2_MUX (gst_apev2_mux_get_type())
G_DECLARE_FINAL_TYPE (GstApev2Mux, gst_apev2_mux, GST, APEV2_MUX, GstTagMux)
struct _GstApev2Mux {
GstTagMux tagmux;
};
struct _GstApev2MuxClass {
GstTagMuxClass tagmux_class;
};
#define GST_TYPE_APEV2_MUX \
(gst_apev2_mux_get_type())
#define GST_APEV2_MUX(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_APEV2_MUX,GstApev2Mux))
#define GST_APEV2_MUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_APEV2_MUX,GstApev2MuxClass))
#define GST_IS_APEV2_MUX(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_APEV2_MUX))
#define GST_IS_APEV2_MUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_APEV2_MUX))
GType gst_apev2_mux_get_type (void);
G_END_DECLS
#endif /* GST_APEV2_MUX_H */

View file

@ -25,30 +25,13 @@
G_BEGIN_DECLS
typedef struct _GstId3v2Mux GstId3v2Mux;
typedef struct _GstId3v2MuxClass GstId3v2MuxClass;
#define GST_TYPE_ID3V2_MUX (gst_id3v2_mux_get_type())
G_DECLARE_FINAL_TYPE (GstId3v2Mux, gst_id3v2_mux, GST, ID3V2_MUX, GstTagMux)
struct _GstId3v2Mux {
GstTagMux tagmux;
};
struct _GstId3v2MuxClass {
GstTagMuxClass tagmux_class;
};
#define GST_TYPE_ID3V2_MUX \
(gst_id3v2_mux_get_type())
#define GST_ID3V2_MUX(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ID3V2_MUX,GstId3v2Mux))
#define GST_ID3V2_MUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ID3V2_MUX,GstId3v2MuxClass))
#define GST_IS_ID3V2_MUX(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ID3V2_MUX))
#define GST_IS_ID3V2_MUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ID3V2_MUX))
GType gst_id3v2_mux_get_type (void);
G_END_DECLS
#endif /* GST_ID3V2_MUX_H */