[vala] libxml-2.0: add some schema-related bindings



commit 81fc089c4283897b1b2f238df07caffb47d7bc7e
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Feb 7 23:51:53 2013 -0800

    libxml-2.0: add some schema-related bindings

 vapi/libxml-2.0.vapi |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index f91a6b0..43b580b 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]