]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libxml-2.0: add SaveCtxt bindings
authorRichard Schwarting <aquarichy@gmail.com>
Sat, 2 Jun 2012 22:26:35 +0000 (15:26 -0700)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Jun 2012 15:28:21 +0000 (17:28 +0200)
Partially fixes bug 677355.

vapi/libxml-2.0.vapi

index 6f8830189ea2c505184cdd039fc4ea9160c5a77f..7aaa34881d0569322a4c6d4153556c420d077e8d 100644 (file)
@@ -952,6 +952,24 @@ namespace Xml {
        public class SchemaValidCtxt {
        }
 
+       /* xmlsave */
+
+       [Compact]
+       [CCode (cname = "xmlSaveCtxt", free_function = "xmlSaveClose", cheader_filename = "libxml/xmlsave.h")]
+       public class SaveCtxt {
+               [CCode (cname = "xmlSaveToIO")]
+               public SaveCtxt.to_io (OutputWriteCallback iowrite, OutputCloseCallback ioclose, void * ioctx = null, string? encoding = null, int options = 0);
+
+               [CCode (cname = "xmlSaveClose")]
+               public int close ();
+               [CCode (cname = "xmlSaveFlush")]
+               public int flush ();
+               [CCode (cname = "xmlSaveDoc")]
+               public int save_doc (Xml.Doc *doc);
+               [CCode (cname = "xmlSaveTree")]
+               public int save_tree (Xml.Node *node);
+       }
+
        /* xmlwriter - the XMLWriter implementation */
 
        [Compact]