[gxml/gsoc2013: 26/69] libxml-2.0.vapi: define a few more methods from the C: validate_name, validate_qname, and (commented
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013: 26/69] libxml-2.0.vapi: define a few more methods from the C: validate_name, validate_qname, and (commented
- Date: Sat, 27 Jul 2013 04:08:23 +0000 (UTC)
commit 2b7167238b9296256590c61e6722b3e95db8c333
Author: Richard Schwarting <aquarichy gmail com>
Date: Sat Jul 27 00:01:30 2013 -0400
libxml-2.0.vapi: define a few more methods from the C: validate_name, validate_qname, and (commented out)
has_feature (for later)
vapi/libxml-2.0.vapi | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index 9b611e4..eee6746 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -249,6 +249,11 @@ namespace Xml {
ASCII,
}
+ /* from 'parser' module; need to translate between string features and xmlFeature enum
+ [CCode (cname = "xmlHasFeature")]
+ public static bool has_feature (int feature);
+ */
+
/* tree - interfaces for tree manipulation */
[CCode (cheader_filename = "libxml/tree.h")]
@@ -921,6 +926,12 @@ namespace Xml {
public Doc* read_io (Xml.InputReadCallback ioread, Xml.InputCloseCallback ioclose, void*
ioctx, string url, string? encoding = null, int options = 0);
}
+ /* TODO: consider having this return bool, but right now, 0: valid, >0: invalid, -1: internal/API
error */
+ [CCode (cname = "xmlValidateQName")]
+ public static int validate_qname ([CCode (type = "xmlChar*")] string value, int space);
+
+ [CCode (cname = "xmlValidateName")]
+ public static int validate_name ([CCode (type = "xmlChar*")] string value, int space);
/* uri - library of generic URI related routines */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]