]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libsoup2.4: Fix arguments for MessageHeaders.get_range
authorJens Georg <mail@jensge.org>
Wed, 22 Feb 2012 11:44:44 +0000 (13:44 +0200)
committerJens Georg <mail@jensge.org>
Fri, 24 Feb 2012 09:08:21 +0000 (11:08 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=670602

vapi/libsoup-2.4.vapi
vapi/metadata/Soup-2.4.metadata

index fa07d0918092355d091cf15ad8f79add38093ba4..d086eca0617012f47cd7c52fa0820602f647995e 100644 (file)
@@ -450,7 +450,7 @@ namespace Soup {
                public Soup.Expectation get_expectations ();
                public unowned string get_list (string name);
                public unowned string get_one (string name);
-               public bool get_ranges (int64 total_length, out Soup.Range ranges, int length);
+               public bool get_ranges (int64 total_length, [CCode (array_length_cname = "length", array_length_pos = 2.1, type = "SoupRange**")] out Soup.Range[] ranges);
                public void remove (string name);
                public void replace (string name, string value);
                public void set_content_disposition (string disposition, GLib.HashTable<string,string>? @params);
index 3b4f9b516acc1e34e4b1dc5fbdd71d214c73152b..415117fb7cccb2d0a1479681119016364dc7e461 100644 (file)
@@ -45,7 +45,7 @@ MessageHeaders
        .get_content_disposition.* out unowned=false
        .get_content_type.* out unowned=false
        .get_content_*.params type_arguments="string,string"
-       .get_ranges.ranges out
+       .get_ranges.ranges out type="Soup.Range[]" array_length_idx=2
        .set_content_disposition.params type_arguments="string,string" nullable
        .set_content_type.params type_arguments="string,string" nullable
 Multipart.get_part