[vala] libxml-2.0: add many methods to ParserCtxt



commit 026b74e013be6042623caffbd7f3de20bcb5faa0
Author: Giulio Paci <giuliopaci interfree it>
Date:   Thu Jul 28 22:53:09 2011 -0700

    libxml-2.0: add many methods to ParserCtxt
    
    Fixes bug 655543.

 vapi/libxml-2.0.vapi |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index 1bbefdd..d5fdf29 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -792,14 +792,59 @@ namespace Xml {
 	}
 
 	[Compact]
-	[CCode (cname = "xmlParserCtxt")]
+	[CCode (cname = "xmlParserCtxt", free_function = "xmlFreeParserCtxt", cheader_filename = "libxml/parser.h")]
 	public class ParserCtxt {
 		public SAXHandler* sax;
 		[CCode (cname = "userData")]
 		public void* user_data;
 
+		[CCode (cname = "xmlNewParserCtxt")]
+		public ParserCtxt ();
+
+		[CCode (cname = "xmlCreatePushParserCtxt")]
+		public ParserCtxt.create_push (Xml.SAXHandler* sax, void* user_data, [CCode (array_length = false)] char[] data, int len, string? filename = null);
+
+		[CCode (cname = "xmlCreateIOParserCtxt")]
+		public ParserCtxt.create_io (Xml.SAXHandler* sax, void* user_data, Xml.InputReadCallback ioread, Xml.InputCloseCallback ioclose, void* ioctx, string? encoding = null);
+
+		[CCode (cname = "xmlCreateDocParserCtxt")]
+		public ParserCtxt.create_doc (string cur);
+
+		[CCode (cname = "xmlParseChunk")]
+		public int parse_chunk ([CCode (array_length = false)] char[] data, int size, bool terminate);
+
 		[CCode (cname = "xmlParseDocument")]
 		public int parse_document ();
+
+		[CCode (cname = "xmlCtxtResetPush")]
+		public void reset_push ([CCode (array_length = false)] char[] data, int len, string? filename = null, string? encoding = null);
+
+		[CCode (cname = "xmlCtxtReset")]
+		public void reset ();
+
+		[CCode (cname = "xmlCtxtInit")]
+		public void init ();
+
+		[CCode (cname = "xmlCtxtClear")]
+		public void clear ();
+
+		[CCode (cname = "xmlCtxtUseOptions")]
+		public int use_options (int options);
+
+		[CCode (cname = "xmlCtxtReadDoc")]
+		public Doc* read_doc (string cur, string url, string? encoding = null, int options = 0);
+
+		[CCode (cname = "xmlCtxtReadFile")]
+		public Doc* read_file (string filename, string? encoding = null, int options = 0);
+
+		[CCode (cname = "xmlCtxtReadMemory")]
+		public Doc* read_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding = null, int options = 0);
+
+		[CCode (cname = "xmlCtxtReadFd")]
+		public Doc* read_fd (int fd, string url, string? encoding = null, int options = 0);
+
+		[CCode (cname = "xmlCtxtReadIO")]
+		public Doc* read_io (Xml.InputReadCallback ioread, Xml.InputCloseCallback ioclose, void* ioctx, string url, string? encoding = null, int options = 0);
 	}
 
 



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