summaryrefslogtreecommitdiff
path: root/ext/dash/gstmpdsegmenturlnode.h
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2019-12-04 17:25:24 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-01-03 20:50:27 +0000
commitac74b042ec263650d14d7acce6cfdbce483c3cd2 (patch)
tree987ef6f55542baa2463e8a3f986a3105b7bb09fe /ext/dash/gstmpdsegmenturlnode.h
parent4e6a1b9634954f2382c29d93ec0ce1cddc7da620 (diff)
downloadgstreamer-plugins-bad-ac74b042ec263650d14d7acce6cfdbce483c3cd2.tar.gz
dash: Generate an XML content from object.
Add mpd node base class to provide xml generation facilities for child objects.
Diffstat (limited to 'ext/dash/gstmpdsegmenturlnode.h')
-rw-r--r--ext/dash/gstmpdsegmenturlnode.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/ext/dash/gstmpdsegmenturlnode.h b/ext/dash/gstmpdsegmenturlnode.h
index 5523ec50e..851632c58 100644
--- a/ext/dash/gstmpdsegmenturlnode.h
+++ b/ext/dash/gstmpdsegmenturlnode.h
@@ -22,25 +22,12 @@
#define __GSTMPDSEGMENTURLNODE_H__
#include <gst/gst.h>
-#include "gstmpdhelper.h"
+#include "gstmpdnode.h"
G_BEGIN_DECLS
#define GST_TYPE_MPD_SEGMENT_URL_NODE gst_mpd_segment_url_node_get_type ()
-#define GST_MPD_SEGMENT_URL_NODE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_MPD_SEGMENT_URL_NODE, GstMPDSegmentURLNode))
-#define GST_MPD_SEGMENT_URL_NODE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_MPD_SEGMENT_URL_NODE, GstMPDSegmentURLNodeClass))
-#define GST_IS_MPD_SEGMENT_URL_NODE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_MPD_SEGMENT_URL_NODE))
-#define GST_IS_MPD_SEGMENT_URL_NODE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MPD_SEGMENT_URL_NODE))
-#define GST_MPD_SEGMENT_URL_NODE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_MPD_SEGMENT_URL_NODE, GstMPDSegmentURLNodeClass))
-
-typedef struct _GstMPDSegmentURLNode GstMPDSegmentURLNode;
-typedef struct _GstMPDSegmentURLNodeClass GstMPDSegmentURLNodeClass;
-
+G_DECLARE_FINAL_TYPE (GstMPDSegmentURLNode, gst_mpd_segment_url_node, GST, MPD_SEGMENT_URL_NODE, GstMPDNode)
struct _GstMPDSegmentURLNode
{
@@ -51,13 +38,6 @@ struct _GstMPDSegmentURLNode
GstXMLRange *indexRange;
};
-struct _GstMPDSegmentURLNodeClass {
- GstObjectClass parent_class;
-};
-
-
-G_GNUC_INTERNAL GType gst_mpd_segment_url_node_get_type (void);
-
GstMPDSegmentURLNode * gst_mpd_segment_url_node_new (void);
void gst_mpd_segment_url_node_free (GstMPDSegmentURLNode* self);