[vala] webkit2gtk: URI*.get_http_headers returns unowned Soup.MessageHeaders
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] webkit2gtk: URI*.get_http_headers returns unowned Soup.MessageHeaders
- Date: Tue, 20 Sep 2016 10:12:53 +0000 (UTC)
commit 63fa61b473ee6966a3d87e06b5e682fc996b4e11
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 19 18:31:05 2016 +0200
webkit2gtk: URI*.get_http_headers returns unowned Soup.MessageHeaders
Those are actually annotated "transfer none" in the webkit's source.
https://bugzilla.gnome.org/show_bug.cgi?id=741175
vapi/metadata/WebKit2WebExtension-4.0.metadata | 2 ++
vapi/webkit2gtk-web-extension-4.0.vapi | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/vapi/metadata/WebKit2WebExtension-4.0.metadata b/vapi/metadata/WebKit2WebExtension-4.0.metadata
index 65bfbfe..3fe3c18 100644
--- a/vapi/metadata/WebKit2WebExtension-4.0.metadata
+++ b/vapi/metadata/WebKit2WebExtension-4.0.metadata
@@ -8,4 +8,6 @@ Frame.get_javascript_* type="void*"
DOMEventTarget.add_event_listener_with_closure.handler type="owned WebKit.DOM.EventTargetFunc"
+URIRequest.get_http_headers unowned
+URIResponse.get_http_headers unowned
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index 09d3115..0190e86 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -2869,7 +2869,7 @@ namespace WebKit {
public class URIRequest : GLib.Object {
[CCode (has_construct_function = false)]
public URIRequest (string uri);
- public Soup.MessageHeaders get_http_headers ();
+ public unowned Soup.MessageHeaders get_http_headers ();
public unowned string get_http_method ();
public unowned string get_uri ();
public void set_uri (string uri);
@@ -2880,13 +2880,13 @@ namespace WebKit {
[CCode (has_construct_function = false)]
protected URIResponse ();
public uint64 get_content_length ();
- public Soup.MessageHeaders get_http_headers ();
+ public unowned Soup.MessageHeaders get_http_headers ();
public unowned string get_mime_type ();
public uint get_status_code ();
public unowned string get_suggested_filename ();
public unowned string get_uri ();
public uint64 content_length { get; }
- public Soup.MessageHeaders http_headers { owned get; }
+ public Soup.MessageHeaders http_headers { get; }
public string mime_type { get; }
public uint status_code { get; }
public string suggested_filename { get; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]