[vala] libxml-2.0: Fix 'htmlEncodeEntities' and 'UTF8ToHtml' using 'ref' instead of 'out'



commit e017c96adc0eeed8914736db01d27704b7130abe
Author: Guillaume Poirier-Morency <guillaumepoiriermorency gmail com>
Date:   Tue Jun 28 10:58:14 2016 -0400

    libxml-2.0: Fix 'htmlEncodeEntities' and 'UTF8ToHtml' using 'ref' instead of 'out'
    
    The passed buffer lengths are updated by these calls to indicate how
    much has been read and written. Using a 'out' parameter does not let one
    initialize them with the buffer lenghts.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768143

 vapi/libxml-2.0.vapi |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index 749762e..a4e62c8 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -1742,10 +1742,10 @@ namespace Html {
        public static int is_boolean_attr ([CCode (type = "xmlChar*")] string name);
 
        [CCode (cname = "UTF8ToHtml", cheader_filename = "libxml/HTMLparser.h")]
-       public static int utf8_to_html ([CCode (array_length = false)] char[] outdata, out int outlen, [CCode 
(array_length = false)] char[] indata, out int inlen);
+       public static int utf8_to_html ([CCode (array_length = false)] char[] outdata, ref int outlen, [CCode 
(array_length = false)] char[] indata, ref int inlen);
 
        [CCode (cname = "htmlEncodeEntities", cheader_filename = "libxml/HTMLparser.h")]
-       public static int encode_entities ([CCode (array_length = false)] char[] outdata, out int outlen, 
[CCode (array_length = false)] char[] indata, out int inlen, char quote_char = '\0');
+       public static int encode_entities ([CCode (array_length = false)] char[] outdata, ref int outlen, 
[CCode (array_length = false)] char[] indata, ref int inlen, char quote_char = '\0');
 
        [CCode (cname = "htmlIsScriptAttribute", cheader_filename = "libxml/HTMLparser.h")]
        public static bool is_script_attribute ([CCode (type = "xmlChar*")] string name);


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