streamvolume: Use G_DECLARE_INTERFACE

This commit is contained in:
Niels De Graef 2020-03-17 18:20:59 +01:00 committed by GStreamer Merge Bot
parent eae9d3fbd5
commit 21a107294d

View file

@ -25,17 +25,12 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GST_TYPE_STREAM_VOLUME \ #define GST_TYPE_STREAM_VOLUME (gst_stream_volume_get_type ())
(gst_stream_volume_get_type ()) GST_AUDIO_API
#define GST_STREAM_VOLUME(obj) \ G_DECLARE_INTERFACE (GstStreamVolume, gst_stream_volume, GST, STREAM_VOLUME,
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_STREAM_VOLUME, GstStreamVolume)) GObject)
#define GST_IS_STREAM_VOLUME(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_STREAM_VOLUME))
#define GST_STREAM_VOLUME_GET_INTERFACE(inst) \
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_STREAM_VOLUME, GstStreamVolumeInterface))
typedef struct _GstStreamVolume GstStreamVolume; #define GST_STREAM_VOLUME_GET_INTERFACE(obj) GST_STREAM_VOLUME_GET_IFACE(obj)
typedef struct _GstStreamVolumeInterface GstStreamVolumeInterface;
struct _GstStreamVolumeInterface { struct _GstStreamVolumeInterface {
GTypeInterface iface; GTypeInterface iface;
@ -59,9 +54,6 @@ typedef enum {
GST_STREAM_VOLUME_FORMAT_DB GST_STREAM_VOLUME_FORMAT_DB
} GstStreamVolumeFormat; } GstStreamVolumeFormat;
GST_AUDIO_API
GType gst_stream_volume_get_type (void);
GST_AUDIO_API GST_AUDIO_API
void gst_stream_volume_set_volume (GstStreamVolume *volume, void gst_stream_volume_set_volume (GstStreamVolume *volume,
GstStreamVolumeFormat format, GstStreamVolumeFormat format,