[gxml] libxml-2.0.vapi: define a few more methods from the C: validate_name, validate_qname, and (commented



commit 3b1bc072cd390c798753fad223d10299f7da5953
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]