diff options
author | Tor Lillqvist <tml@novell.com> | 2005-12-17 23:56:16 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-12-17 23:56:16 +0800 |
commit | 491a3a63436f2cc1f46f4da598b6d5e3e9af1011 (patch) | |
tree | 3f002527b6cfa87cef25becf71098e551fb45f72 /e-util/e-pilot-map.c | |
parent | 656e89904ca9fb3fc6feba9c3f4d423b7df39e98 (diff) | |
download | gsoc2013-evolution-491a3a63436f2cc1f46f4da598b6d5e3e9af1011.tar.gz gsoc2013-evolution-491a3a63436f2cc1f46f4da598b6d5e3e9af1011.tar.zst gsoc2013-evolution-491a3a63436f2cc1f46f4da598b6d5e3e9af1011.zip |
Use e_xml_parse_file() and e_xml_save_file() instead of using libxml
2005-12-17 Tor Lillqvist <tml@novell.com>
* e-pilot-map.c: Use e_xml_parse_file() and e_xml_save_file()
instead of using libxml directly.
svn path=/trunk/; revision=30824
Diffstat (limited to 'e-util/e-pilot-map.c')
-rw-r--r-- | e-util/e-pilot-map.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c index e155657732..533c2f3de7 100644 --- a/e-util/e-pilot-map.c +++ b/e-util/e-pilot-map.c @@ -20,13 +20,16 @@ * Boston, MA 02111-1307, USA. */ -#include "e-pilot-map.h" - -#include <string.h> /* memset(), strcmp() */ +#include <string.h> #include <stdlib.h> + #include <glib.h> #include <libxml/parser.h> +#include <libedataserver/e-xml-utils.h> + +#include "e-pilot-map.h" + typedef struct { char *uid; @@ -402,7 +405,7 @@ e_pilot_map_write (const char *filename, EPilotMap *map) /* Write the file */ xmlSetDocCompressMode (doc, 0); - ret = xmlSaveFile (filename, doc); + ret = e_xml_save_file (filename, doc); if (ret < 0) { g_warning ("Pilot map file '%s' could not be saved\n", filename); return -1; |