]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libxml-2.0: add some schema-related bindings
authorEvan Nemerson <evan@coeus-group.com>
Fri, 8 Feb 2013 07:51:53 +0000 (23:51 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 8 Feb 2013 07:53:18 +0000 (23:53 -0800)
vapi/libxml-2.0.vapi

index f91a6b0c483057bca6c2d3b133b487a2b2fd0f10..43b580b196daf0000b282691ba6dbe39203e4e47 100644 (file)
@@ -935,8 +935,29 @@ namespace Xml {
        /* xmlschemas - incomplete XML Schemas structure implementation */
 
        [Compact]
-       [CCode (cname = "xmlSchemaValidCtxt", cheader_filename = "libxml/xmlreader.h")]
+       [CCode (cname = "xmlSchema", free_function = "xmlSchemaFree", cheader_filename = "libxml/xmlschemas.h")]
+       public class Schema {
+               [CCode (cname = "xmlSchemaDump", instance_pos = -1)]
+               public void dump (GLib.FileStream output);
+       }
+
+       [Compact]
+       [CCode (cname = "xmlSchemaParserCtxt", free_function = "xmlSchemaFreeParserCtxt", cheader_filename = "libxml/xmlschemas.h")]
+       public class SchemaParserCtxt {
+               [CCode (cname = "xmlSchemaNewParserCtxt")]
+               public SchemaParserCtxt (string URL);
+               [CCode (cname = "xmlSchemaNewDocParserCtxt")]
+               public SchemaParserCtxt.from_doc (Xml.Doc doc);
+               [CCode (cname = "xmlSchemaNewMemParserCtxt")]
+               public SchemaParserCtxt.from_buffer (uint8[] buffer);
+               [CCode (cname = "xmlSchemaParse")]
+               public Xml.Schema parse ();
+       }
+
+       [Compact]
+       [CCode (cname = "xmlSchemaValidCtxt", free_function = "xmlSchemaFreeValidCtxt", cheader_filename = "libxml/xmlschemas.h")]
        public class SchemaValidCtxt {
+               public SchemaValidCtxt (Xml.Schema schema);
        }
 
        /* xmlsave */