mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05:00
gst: use G_DECLARE_FINAL_TYPE for all classes
This commit is contained in:
parent
0bde0ebad8
commit
8da35df0bf
5 changed files with 16 additions and 115 deletions
|
|
@ -20,21 +20,10 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_PIPEWIRE_SRC \
|
||||
(gst_pipewire_src_get_type())
|
||||
#define GST_PIPEWIRE_SRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIPEWIRE_SRC,GstPipeWireSrc))
|
||||
#define GST_PIPEWIRE_SRC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIPEWIRE_SRC,GstPipeWireSrcClass))
|
||||
#define GST_IS_PIPEWIRE_SRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIPEWIRE_SRC))
|
||||
#define GST_IS_PIPEWIRE_SRC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIPEWIRE_SRC))
|
||||
#define GST_PIPEWIRE_SRC_CAST(obj) \
|
||||
((GstPipeWireSrc *) (obj))
|
||||
#define GST_TYPE_PIPEWIRE_SRC (gst_pipewire_src_get_type())
|
||||
#define GST_PIPEWIRE_SRC_CAST(obj) ((GstPipeWireSrc *) (obj))
|
||||
G_DECLARE_FINAL_TYPE (GstPipeWireSrc, gst_pipewire_src, GST, PIPEWIRE_SRC, GstPushSrc)
|
||||
|
||||
typedef struct _GstPipeWireSrc GstPipeWireSrc;
|
||||
typedef struct _GstPipeWireSrcClass GstPipeWireSrcClass;
|
||||
|
||||
/**
|
||||
* GstPipeWireSrc:
|
||||
|
|
@ -78,12 +67,6 @@ struct _GstPipeWireSrc {
|
|||
enum spa_meta_videotransform_value transform_value;
|
||||
};
|
||||
|
||||
struct _GstPipeWireSrcClass {
|
||||
GstPushSrcClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_pipewire_src_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_PIPEWIRE_SRC_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue