From: Evan Nemerson Date: Fri, 8 Feb 2013 07:51:53 +0000 (-0800) Subject: libxml-2.0: add some schema-related bindings X-Git-Tag: 0.19.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81fc089c4283897b1b2f238df07caffb47d7bc7e;p=thirdparty%2Fvala.git libxml-2.0: add some schema-related bindings --- diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi index f91a6b0c4..43b580b19 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 */