]> Dogcows Code - chaz/openbox/blobdiff - obt/parse.c
add obt_parse_save_file() method to the obt parse library
[chaz/openbox] / obt / parse.c
index b7c34ab163122e5cd6d37474ba732245cacfa184..b44e968d589f3ee7bef87dc02347ba4b0a61edb2 100644 (file)
@@ -277,6 +277,13 @@ gboolean obt_parse_load_mem(ObtParseInst *i,
     return r;
 }
 
+gboolean obt_parse_save_file(ObtParseInst *inst,
+                             const gchar *path,
+                             gboolean pretty)
+{
+    return xmlSaveFormatFile(path, inst->doc, pretty) != -1;
+}
+
 void obt_parse_close(ObtParseInst *i)
 {
     if (i && i->doc) {
This page took 0.018088 seconds and 4 git commands to generate.