Debian Codegraph @

ext/adaptivedemux2/dash/gstmpdnode.h

raw
1 /* GStreamer
2 *
3 * Copyright (C) 2019 Collabora Ltd.
4 * Author: Stéphane Cerveau <[email protected]>
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 __GSTMPDNODE_H__
22 #define __GSTMPDNODE_H__
23
24 #include <gst/gst.h>
25 #include "gstmpd-prelude.h"
26 #include "gstxmlhelper.h"
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_MPD_NODE gst_mpd_node_get_type ()
30 G_DECLARE_DERIVABLE_TYPE (GstMPDNode2, gst_mpd_node,GST, MPD_NODE, GstObject)
31
32 typedef GstMPDNode2 GstMPDNode;
33 typedef GstMPDNode2Class GstMPDNodeClass;
34
35 #define glib_autoptr_clear_GstMPDNode glib_autoptr_clear_GstMPDNode2
36
37 typedef gboolean (*GstMPDGetXMLBuffer) (GstMPDNode * n, gchar ** doc_content, int *doc_size);
38 typedef xmlNodePtr (*GstMPDGetXMLNode) (GstMPDNode * n);
39
40 struct _GstMPDNode2Class {
41 GstObjectClass base;
42
43 GstMPDGetXMLBuffer get_xml_buffer;
44 GstMPDGetXMLNode get_xml_node;
45 };
46
47 gboolean gst_mpd_node_get_xml_buffer (GstMPDNode * node, gchar ** xml_content, int * xml_size);
48 xmlNodePtr gst_mpd_node_get_xml_pointer (GstMPDNode * node);
49
50 void gst_mpd_node_get_list_item (gpointer data, gpointer user_data);
51 void gst_mpd_node_add_child_node (GstMPDNode* data, xmlNodePtr user_data);
52
53 G_END_DECLS
54 #endif /* __GSTMPDNODE_H__ */