X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fparse.c;h=b44e968d589f3ee7bef87dc02347ba4b0a61edb2;hb=04dc598a1fb195065403055fbb95589dd3511daa;hp=b7c34ab163122e5cd6d37474ba732245cacfa184;hpb=7aae8cc5262c1b36e3196845d62489b76af9063f;p=chaz%2Fopenbox diff --git a/obt/parse.c b/obt/parse.c index b7c34ab1..b44e968d 100644 --- a/obt/parse.c +++ b/obt/parse.c @@ -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) {