]> git.datanom.net - caldav.git/blob - src/xml.h
First complete version
[caldav.git] / src / xml.h
1 /*
2 * xml.h
3 *
4 * Copyright 2017 Michael Rasmussen <mir@datanom.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 */
21
22 #ifndef __XML_H__
23 #define __XML_H__
24
25 #include <glib.h>
26 #include <libxml/parser.h>
27 #include "caldav.h"
28
29 G_BEGIN_DECLS
30
31 GSList* find_element(const gchar* element, const gchar* xml, const gchar* prefix, const gchar* ns_url);
32 xmlNodePtr find_node_by_name(xmlNodePtr rootnode, const xmlChar* nodename, GSList** nodes);
33 GSList* find_node(const gchar* node, const gchar* xml);
34 GSList* find_calendars(const gchar* host_part, const gchar* xml);
35 void dump_node(FILE* f, xmlDocPtr doc, xmlNodePtr node);
36 void dump_nodes(gpointer data, gpointer user_data);
37 void get_props(gpointer data, gpointer user_data);
38 void set_debug_mode(gboolean mode);
39
40 G_END_DECLS
41
42 #endif
This page took 0.058334 seconds and 6 git commands to generate.