After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670602 - libsoup2.4: Fix arguments for MessageHeaders.get_range
libsoup2.4: Fix arguments for MessageHeaders.get_range
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
unspecified
Other All
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-22 11:50 UTC by Jens Georg
Modified: 2012-02-24 09:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libsoup2.4: Fix arguments for MessageHeaders.get_range (1.74 KB, patch)
2012-02-22 11:50 UTC, Jens Georg
committed Details | Review

Description Jens Georg 2012-02-22 11:50:42 UTC
There's still a slight problem with that, the libsoup docs say to free the returned array with soup_message_headers_free_ranges() so no idea if that's doable with annotations.
Comment 1 Jens Georg 2012-02-22 11:50:45 UTC
Created attachment 208192 [details] [review]
libsoup2.4: Fix arguments for MessageHeaders.get_range
Comment 2 Luca Bruno 2012-02-22 14:49:07 UTC
(In reply to comment #0)
> There's still a slight problem with that, the libsoup docs say to free the
> returned array with soup_message_headers_free_ranges() so no idea if that's
> doable with annotations.

Not possible. Anyway, free_ranges() will just g_free() so it's fine for now.
Comment 3 Luca Bruno 2012-02-22 19:24:19 UTC
Review of attachment 208192 [details] [review]:

The patch looks good, thanks.

::: vapi/metadata/Soup-2.4.metadata
@@ +46,3 @@
 	.get_content_type.* out unowned=false
 	.get_content_*.params type_arguments="string,string"
+	.get_ranges.ranges out type="Soup.Range[]" array_length_idx=2

You can use `array` instead of `type="Soup.Range[]"`, to mark the type as an array.
Comment 4 Luca Bruno 2012-02-22 19:24:23 UTC
Review of attachment 208192 [details] [review]:

The patch looks good, thanks.

::: vapi/metadata/Soup-2.4.metadata
@@ +46,3 @@
 	.get_content_type.* out unowned=false
 	.get_content_*.params type_arguments="string,string"
+	.get_ranges.ranges out type="Soup.Range[]" array_length_idx=2

You can use `array` instead of `type="Soup.Range[]"`, to mark the type as an array.
Comment 5 Jens Georg 2012-02-23 08:15:38 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > There's still a slight problem with that, the libsoup docs say to free the
> > returned array with soup_message_headers_free_ranges() so no idea if that's
> > doable with annotations.
> 
> Not possible. Anyway, free_ranges() will just g_free() so it's fine for now.

Is it ok if I also hide the free_ranges() function then? It's kind of useless then.
Comment 6 Luca Bruno 2012-02-23 20:07:14 UTC
(In reply to comment #5)
> Is it ok if I also hide the free_ranges() function then? It's kind of useless
> then.

No it's ok as is. Feel free to push.
Comment 7 Jens Georg 2012-02-24 09:09:52 UTC
Attachment 208192 [details] pushed as 519a36c - libsoup2.4: Fix arguments for MessageHeaders.get_range