gio: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-12 08:02:02 +01:00 committed by GStreamer Merge Bot
parent d297c4447d
commit 29b8a64b7e
6 changed files with 15 additions and 81 deletions

View file

@ -66,6 +66,8 @@ struct _GstGioBaseSinkClass
GType gst_gio_base_sink_get_type (void);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstGioBaseSink, gst_object_unref)
G_END_DECLS
#endif /* __GST_GIO_BASE_SINK_H__ */

View file

@ -67,6 +67,8 @@ struct _GstGioBaseSrcClass
GType gst_gio_base_src_get_type (void);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstGioBaseSrc, gst_object_unref)
G_END_DECLS
#endif /* __GST_GIO_BASE_SRC_H__ */

View file

@ -29,19 +29,8 @@
G_BEGIN_DECLS
#define GST_TYPE_GIO_SINK \
(gst_gio_sink_get_type())
#define GST_GIO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GIO_SINK,GstGioSink))
#define GST_GIO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GIO_SINK,GstGioSinkClass))
#define GST_IS_GIO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GIO_SINK))
#define GST_IS_GIO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GIO_SINK))
typedef struct _GstGioSink GstGioSink;
typedef struct _GstGioSinkClass GstGioSinkClass;
#define GST_TYPE_GIO_SINK (gst_gio_sink_get_type())
G_DECLARE_FINAL_TYPE (GstGioSink, gst_gio_sink, GST, GIO_SINK, GstGioBaseSink)
/**
* GstGioSink:
@ -56,13 +45,6 @@ struct _GstGioSink
GFile *file;
};
struct _GstGioSinkClass
{
GstGioBaseSinkClass parent_class;
};
GType gst_gio_sink_get_type (void);
G_END_DECLS
#endif /* __GST_GIO_SINK_H__ */

View file

@ -29,19 +29,8 @@
G_BEGIN_DECLS
#define GST_TYPE_GIO_SRC \
(gst_gio_src_get_type())
#define GST_GIO_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GIO_SRC,GstGioSrc))
#define GST_GIO_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GIO_SRC,GstGioSrcClass))
#define GST_IS_GIO_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GIO_SRC))
#define GST_IS_GIO_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GIO_SRC))
typedef struct _GstGioSrc GstGioSrc;
typedef struct _GstGioSrcClass GstGioSrcClass;
#define GST_TYPE_GIO_SRC (gst_gio_src_get_type())
G_DECLARE_FINAL_TYPE (GstGioSrc, gst_gio_src, GST, GIO_SRC, GstGioBaseSrc)
/**
* GstGioSrc:
@ -56,13 +45,6 @@ struct _GstGioSrc
GFile *file;
};
struct _GstGioSrcClass
{
GstGioBaseSrcClass parent_class;
};
GType gst_gio_src_get_type (void);
G_END_DECLS
#endif /* __GST_GIO_SRC_H__ */

View file

@ -29,19 +29,9 @@
G_BEGIN_DECLS
#define GST_TYPE_GIO_STREAM_SINK \
(gst_gio_stream_sink_get_type())
#define GST_GIO_STREAM_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GIO_STREAM_SINK,GstGioStreamSink))
#define GST_GIO_STREAM_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GIO_STREAM_SINK,GstGioStreamSinkClass))
#define GST_IS_GIO_STREAM_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GIO_STREAM_SINK))
#define GST_IS_GIO_STREAM_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GIO_STREAM_SINK))
typedef struct _GstGioStreamSink GstGioStreamSink;
typedef struct _GstGioStreamSinkClass GstGioStreamSinkClass;
#define GST_TYPE_GIO_STREAM_SINK (gst_gio_stream_sink_get_type())
G_DECLARE_FINAL_TYPE (GstGioStreamSink, gst_gio_stream_sink,
GST, GIO_STREAM_SINK, GstGioBaseSink)
/**
* GstGioStreamSink:
@ -51,18 +41,11 @@ typedef struct _GstGioStreamSinkClass GstGioStreamSinkClass;
struct _GstGioStreamSink
{
GstGioBaseSink sink;
/* < private > */
GOutputStream *stream;
};
struct _GstGioStreamSinkClass
{
GstGioBaseSinkClass parent_class;
};
GType gst_gio_stream_sink_get_type (void);
G_END_DECLS
#endif /* __GST_GIO_STREAM_SINK_H__ */

View file

@ -29,19 +29,9 @@
G_BEGIN_DECLS
#define GST_TYPE_GIO_STREAM_SRC \
(gst_gio_stream_src_get_type())
#define GST_GIO_STREAM_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GIO_STREAM_SRC,GstGioStreamSrc))
#define GST_GIO_STREAM_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GIO_STREAM_SRC,GstGioStreamSrcClass))
#define GST_IS_GIO_STREAM_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GIO_STREAM_SRC))
#define GST_IS_GIO_STREAM_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GIO_STREAM_SRC))
typedef struct _GstGioStreamSrc GstGioStreamSrc;
typedef struct _GstGioStreamSrcClass GstGioStreamSrcClass;
#define GST_TYPE_GIO_STREAM_SRC (gst_gio_stream_src_get_type())
G_DECLARE_FINAL_TYPE (GstGioStreamSrc, gst_gio_stream_src,
GST, GIO_STREAM_SRC, GstGioBaseSrc)
/**
* GstGioStreamSrc:
@ -56,13 +46,6 @@ struct _GstGioStreamSrc
GInputStream *stream;
};
struct _GstGioStreamSrcClass
{
GstGioBaseSrcClass parent_class;
};
GType gst_gio_stream_src_get_type (void);
G_END_DECLS
#endif /* __GST_GIO_STREAM_SRC_H__ */