]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
some fixes and additions
authorJürg Billeter <j@bitron.ch>
Thu, 9 Nov 2006 09:21:51 +0000 (09:21 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 9 Nov 2006 09:21:51 +0000 (09:21 +0000)
2006-11-09  Jürg Billeter  <j@bitron.ch>

* vapi/libxml-2.0.vala: some fixes and additions

svn path=/trunk/; revision=171

vala/ChangeLog
vala/vapi/libxml-2.0.vala

index 6f2a4cc4e65e8f1d9e7eb3bc72005a79e3a6ce2f..434d487657c345daf20ec70306ec7fc8e2e98507 100644 (file)
@@ -1,3 +1,7 @@
+2006-11-09  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/libxml-2.0.vala: some fixes and additions
+
 2006-11-08  Jürg Billeter  <j@bitron.ch>
 
        * vala/valacodegenerator.vala: support interfaces in header cycles
index a2b17bd001d53dbccf3b9848badc587cb7e786fd..c1b3b125f8f19171947b62e47f23f626890b3845 100644 (file)
  */
 
 namespace Xml {
-       [ReferenceType ()]
+       [ReferenceType (free_function = "xmlFreeTextReader")]
        [CCode (cname = "xmlTextReader", cheader_filename = "libxml/xmlreader.h")]
        public struct TextReader {
                [CCode (cname = "xmlNewTextReaderFilename")]
-               public static ref TextReader new_with_filename (string uri);
+               public construct with_filename (string uri);
                
                [CCode (cname = "xmlReaderForFile")]
-               public static ref TextReader new_from_file (string filename, string encoding, int options);
+               public construct from_file (string filename, string encoding, int options);
                
                [CCode (cname = "xmlTextReaderRead")]
                public int read ();
@@ -50,13 +50,22 @@ namespace Xml {
                public int read_state ();
                
                [CCode (cname = "xmlTextReaderNodeType")]
-               public int node_type ();
+               public ReaderType node_type ();
+               
+               [CCode (cname = "xmlTextReaderConstLocalName")]
+               public string local_name ();
                
                [CCode (cname = "xmlTextReaderConstName")]
-               public string const_name ();
+               public string name ();
+               
+               [CCode (cname = "xmlTextReaderConstNamespaceUri")]
+               public string namespace_uri ();
+               
+               [CCode (cname = "xmlTextReaderConstPrefix")]
+               public string prefix ();
                
                [CCode (cname = "xmlTextReaderConstValue")]
-               public string const_value ();
+               public string @value ();
                
                [CCode (cname = "xmlTextReaderDepth")]
                public int depth ();
@@ -68,7 +77,6 @@ namespace Xml {
                public int has_value ();                
        }
 
-/*     
        [CCode (cname = "xmlTextReaderMode", cheader_filename = "liReaderTypesReaderTypesbxml/xmlreader.h")]
        public enum ReaderMode {
                INITIAL,
@@ -80,7 +88,7 @@ namespace Xml {
        }
        
        [CCode (cname = "xmlReaderTypes",  cheader_filename = "libxml/xmlreader.h")]
-       public enum ReaderTypes {
+       public enum ReaderType {
                NONE,
                ELEMENT,
                ATTRIBUTE,
@@ -100,5 +108,4 @@ namespace Xml {
                END_ENTITY,
                XML_DECLARATION
        }
-*/
 }