[vala] libxml-2.0: Add XmlIO callbacks
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] libxml-2.0: Add XmlIO callbacks
- Date: Mon, 22 Mar 2010 17:41:25 +0000 (UTC)
commit 8a38b3c2a439305b916a3a6e34aa944bbac1ab71
Author: Tomaž Vajngerl <quikee gmail com>
Date: Mon Mar 22 10:39:20 2010 -0700
libxml-2.0: Add XmlIO callbacks
Fixes bug 600295.
vapi/libxml-2.0.vapi | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index 00ecb6e..f4fe0df 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -872,6 +872,29 @@ namespace Xml {
[CCode (has_target = false, cname = "xmlInputReadCallback", cheader_filename = "libxml/xmlIO.h")]
public delegate int InputReadCallback (void* context, [CCode (array_length = false)] char[] buffer, int len);
+ [CCode (has_target = false, cname = "xmlInputMatchCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate int InputMatchCallback (string filename);
+
+ [CCode (has_target = false, cname = "xmlInputOpenCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate void* InputOpenCallback (string filename);
+
+ [CCode (has_target = false, cname = "xmlOutputMatchCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate int OutputMatchCallback (string filename);
+
+ [CCode (has_target = false, cname = "xmlOutputOpenCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate void* OutputOpenCallback (string filename);
+
+ [CCode (has_target = false, cname = "xmlOutputWriteCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate int OutputWriteCallback ([CCode (array_length = false)] char[] buffer, int len);
+
+ [CCode (has_target = false, cname = "xmlOutputCloseCallback", cheader_filename = "libxml/xmlIO.h")]
+ public static delegate int OutputCloseCallback (void * context);
+
+ [CCode (cname = "xmlRegisterInputCallbacks", cheader_filename = "libxml/xmlIO.h")]
+ public int registerInputCallbacks (InputMatchCallback matchFunc, InputOpenCallback openFunc, InputReadCallback readFunc, InputCloseCallback closeFunc);
+
+ [CCode (cname = "xmlRegisterOutputCallbacks", cheader_filename = "libxml/xmlIO.h")]
+ public int registerOutputCallbacks(OutputMatchCallback matchFunc, OutputOpenCallback openFunc, OutputWriteCallback writeFunc, OutputCloseCallback closeFunc);
/* xmlschemas - incomplete XML Schemas structure implementation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]