mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
shout2: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
59ac993a91
commit
5ccd5659c4
2 changed files with 5 additions and 31 deletions
|
@ -220,8 +220,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass)
|
||||||
/* signals */
|
/* signals */
|
||||||
gst_shout2send_signals[SIGNAL_CONNECTION_PROBLEM] =
|
gst_shout2send_signals[SIGNAL_CONNECTION_PROBLEM] =
|
||||||
g_signal_new ("connection-problem", G_TYPE_FROM_CLASS (klass),
|
g_signal_new ("connection-problem", G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_CLEANUP, G_STRUCT_OFFSET (GstShout2sendClass,
|
G_SIGNAL_RUN_CLEANUP, 0, NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
||||||
connection_problem), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT);
|
|
||||||
|
|
||||||
gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_shout2send_start);
|
gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_shout2send_start);
|
||||||
gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_shout2send_stop);
|
gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_shout2send_stop);
|
||||||
|
|
|
@ -35,8 +35,10 @@ typedef enum {
|
||||||
} GstShout2SendProtocol;
|
} GstShout2SendProtocol;
|
||||||
|
|
||||||
|
|
||||||
/* Definition of structure storing data for this element. */
|
#define GST_TYPE_SHOUT2SEND (gst_shout2send_get_type())
|
||||||
typedef struct _GstShout2send GstShout2send;
|
G_DECLARE_FINAL_TYPE (GstShout2send, gst_shout2send, GST, SHOUT2SEND,
|
||||||
|
GstBaseSink)
|
||||||
|
|
||||||
struct _GstShout2send {
|
struct _GstShout2send {
|
||||||
GstBaseSink parent;
|
GstBaseSink parent;
|
||||||
|
|
||||||
|
@ -72,33 +74,6 @@ struct _GstShout2send {
|
||||||
GstTagList* tags;
|
GstTagList* tags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Standard definition defining a class for this element. */
|
|
||||||
typedef struct _GstShout2sendClass GstShout2sendClass;
|
|
||||||
struct _GstShout2sendClass {
|
|
||||||
GstBaseSinkClass parent_class;
|
|
||||||
|
|
||||||
/* signal callbacks */
|
|
||||||
void (*connection_problem) (GstElement *element,guint errno);
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Standard macros for defining types for this element. */
|
|
||||||
#define GST_TYPE_SHOUT2SEND \
|
|
||||||
(gst_shout2send_get_type())
|
|
||||||
#define GST_SHOUT2SEND(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_SHOUT2SEND,GstShout2send))
|
|
||||||
#define GST_SHOUT2SEND_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_SHOUT2SEND,GstShout2sendClass))
|
|
||||||
#define GST_IS_SHOUT2SEND(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_SHOUT2SEND))
|
|
||||||
#define GST_IS_SHOUT2SEND_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_SHOUT2SEND))
|
|
||||||
|
|
||||||
/* Standard function returning type information. */
|
|
||||||
GType gst_shout2send_get_type(void);
|
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_SHOUT2SEND_H__ */
|
#endif /* __GST_SHOUT2SEND_H__ */
|
||||||
|
|
Loading…
Reference in a new issue