]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref"
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 20 May 2018 10:55:58 +0000 (12:55 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 21 May 2018 16:21:30 +0000 (18:21 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=788113

vapi/javascriptcoregtk-4.0.vapi
vapi/metadata/JavaScriptCore-4.0-custom.vala

index c937cae11c9e37f5bc58342bdf3a56b04e3f514c..4ddd4ef4491c184216c719cb5fb1a8789496f93b 100644 (file)
@@ -54,7 +54,7 @@ namespace JS {
                [CCode (cname = "JSStringGetMaximumUTF8CStringSize")]
                public size_t get_maximum_utf8_cstring_size ();
                [CCode (cname = "JSStringGetUTF8CString")]
-               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer);
+               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer);
                [CCode (cname = "JSStringIsEqual")]
                public bool is_equal (JS.String b);
                [CCode (cname = "JSStringIsEqualToUTF8CString")]
index 2a1125fd356b45b194b11b952e488230719e5453..bcd5767a31a3b0af43c860289df194b2545d3f99 100644 (file)
@@ -57,7 +57,7 @@ namespace JS {
                [CCode (cname = "JSStringGetMaximumUTF8CStringSize")]
                public size_t get_maximum_utf8_cstring_size ();
                [CCode (cname = "JSStringGetUTF8CString")]
-               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer);
+               public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer);
                [CCode (cname = "JSStringIsEqual")]
                public bool is_equal (JS.String b);
                [CCode (cname = "JSStringIsEqualToUTF8CString")]