Merging gst-plugins-bad
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-bad / ext / dash / gstmpdsegmenturlnode.h
1 /* GStreamer
2  *
3  * Copyright (C) 2019 Collabora Ltd.
4  *   Author: Stéphane Cerveau <scerveau@collabora.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library (COPYING); if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 #ifndef __GSTMPDSEGMENTURLNODE_H__
22 #define __GSTMPDSEGMENTURLNODE_H__
23
24 #include <gst/gst.h>
25 #include "gstmpdnode.h"
26
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_MPD_SEGMENT_URL_NODE gst_mpd_segment_url_node_get_type ()
30 G_DECLARE_FINAL_TYPE (GstMPDSegmentURLNode, gst_mpd_segment_url_node, GST, MPD_SEGMENT_URL_NODE, GstMPDNode)
31
32 struct _GstMPDSegmentURLNode
33 {
34   GstObject parent_instance;
35   gchar *media;
36   GstXMLRange *mediaRange;
37   gchar *index;
38   GstXMLRange *indexRange;
39 };
40
41 GstMPDSegmentURLNode * gst_mpd_segment_url_node_new (void);
42 void gst_mpd_segment_url_node_free (GstMPDSegmentURLNode* self);
43
44 GstMPDSegmentURLNode *gst_mpd_segment_url_node_clone (GstMPDSegmentURLNode * seg_url);
45
46 G_END_DECLS
47
48 #endif /* __GSTMPDSEGMENTURLNODE_H__ */