summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-xml-doc.h
blob: e9040aa74df29c93962d3ceffd8336f8aa660f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (C) 2006, 2007 OpenedHand Ltd.
 * Copyright (C) 2009 Nokia Corporation.
 *
 * Author: Jorn Baayen <jorn@openedhand.com>
 *         Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef GUPNP_XML_DOC_H
#define GUPNP_XML_DOC_H

#include <libxml/tree.h>
#include <glib-object.h>

G_BEGIN_DECLS

#define GUPNP_TYPE_XML_DOC \
                (gupnp_xml_doc_get_type ())

G_DECLARE_FINAL_TYPE (GUPnPXMLDoc,
                      gupnp_xml_doc,
                      GUPNP,
                      XML_DOC,
                      GObject)

GUPnPXMLDoc *
gupnp_xml_doc_new                       (xmlDoc         *xml_doc);

GUPnPXMLDoc *
gupnp_xml_doc_new_from_path             (const char     *path,
                                         GError        **error);

const xmlDoc *
gupnp_xml_doc_get_doc                   (GUPnPXMLDoc    *xml_doc);

G_END_DECLS

#endif /* GUPNP_XML_DOC_H */