]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libxml-2.0: Fix 'htmlEncodeEntities' and 'UTF8ToHtml' using 'ref' instead of 'out'
authorGuillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>
Tue, 28 Jun 2016 14:58:14 +0000 (10:58 -0400)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 21 Jul 2016 14:05:52 +0000 (16:05 +0200)
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

index 749762e2ab284abaae294a74c4c333a5afb9f6b5..a4e62c87dbfd406d0116bf847b00c30cc7b0aefb 100644 (file)
@@ -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);