• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Lesser 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
19  *
20  */
21 #include "gstmpdreportingnode.h"
22 #include "gstmpdparser.h"
23 
24 G_DEFINE_TYPE (GstMPDReportingNode, gst_mpd_reporting_node, GST_TYPE_MPD_NODE);
25 
26 /* Base class */
27 
28 static xmlNodePtr
gst_mpd_reporting_get_xml_node(GstMPDNode * node)29 gst_mpd_reporting_get_xml_node (GstMPDNode * node)
30 {
31   xmlNodePtr reporting_xml_node = NULL;
32 
33   reporting_xml_node = xmlNewNode (NULL, (xmlChar *) "Reporting");
34 
35   return reporting_xml_node;
36 }
37 
38 static void
gst_mpd_reporting_node_class_init(GstMPDReportingNodeClass * klass)39 gst_mpd_reporting_node_class_init (GstMPDReportingNodeClass * klass)
40 {
41   GstMPDNodeClass *m_klass;
42 
43   m_klass = GST_MPD_NODE_CLASS (klass);
44 
45   m_klass->get_xml_node = gst_mpd_reporting_get_xml_node;
46 }
47 
48 static void
gst_mpd_reporting_node_init(GstMPDReportingNode * self)49 gst_mpd_reporting_node_init (GstMPDReportingNode * self)
50 {
51 }
52 
53 GstMPDReportingNode *
gst_mpd_reporting_node_new(void)54 gst_mpd_reporting_node_new (void)
55 {
56   return g_object_new (GST_TYPE_MPD_REPORTING_NODE, NULL);
57 }
58 
59 void
gst_mpd_reporting_node_free(GstMPDReportingNode * self)60 gst_mpd_reporting_node_free (GstMPDReportingNode * self)
61 {
62   if (self)
63     gst_object_unref (self);
64 }
65