mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -15,23 +15,10 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_PIPEWIRE_POOL \
|
||||
(gst_pipewire_pool_get_type())
|
||||
#define GST_PIPEWIRE_POOL(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIPEWIRE_POOL,GstPipeWirePool))
|
||||
#define GST_PIPEWIRE_POOL_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIPEWIRE_POOL,GstPipeWirePoolClass))
|
||||
#define GST_IS_PIPEWIRE_POOL(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIPEWIRE_POOL))
|
||||
#define GST_IS_PIPEWIRE_POOL_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIPEWIRE_POOL))
|
||||
#define GST_PIPEWIRE_POOL_GET_CLASS(klass) \
|
||||
(G_TYPE_INSTANCE_GET_CLASS ((klass), GST_TYPE_PIPEWIRE_POOL, GstPipeWirePoolClass))
|
||||
#define GST_TYPE_PIPEWIRE_POOL (gst_pipewire_pool_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstPipeWirePool, gst_pipewire_pool, GST, PIPEWIRE_POOL, GstBufferPool)
|
||||
|
||||
typedef struct _GstPipeWirePoolData GstPipeWirePoolData;
|
||||
typedef struct _GstPipeWirePool GstPipeWirePool;
|
||||
typedef struct _GstPipeWirePoolClass GstPipeWirePoolClass;
|
||||
|
||||
struct _GstPipeWirePoolData {
|
||||
GstPipeWirePool *pool;
|
||||
void *owner;
|
||||
|
|
@ -59,12 +46,6 @@ struct _GstPipeWirePool {
|
|||
GCond cond;
|
||||
};
|
||||
|
||||
struct _GstPipeWirePoolClass {
|
||||
GstBufferPoolClass parent_class;
|
||||
};
|
||||
|
||||
GType gst_pipewire_pool_get_type (void);
|
||||
|
||||
GstPipeWirePool * gst_pipewire_pool_new (GstPipeWireStream *stream);
|
||||
|
||||
void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue