From: Rico Tzschichholz Date: Wed, 21 Aug 2019 18:29:07 +0000 (+0200) Subject: libsoup-2.4: soup_auth_new is not a constructor but a factory method X-Git-Tag: 0.46.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe187b5e285377875a105eeef795c288ebc4ecb4;p=thirdparty%2Fvala.git libsoup-2.4: soup_auth_new is not a constructor but a factory method Fixes https://gitlab.gnome.org/GNOME/vala/issues/791 --- diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index b0bea0e55..3d35a2376 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -148,7 +148,7 @@ namespace Soup { [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_auth_get_type ()")] public abstract class Auth : GLib.Object { [CCode (has_construct_function = false)] - public Auth (GLib.Type type, Soup.Message msg, string auth_header); + protected Auth (); public virtual void authenticate (string username, string password); [Version (since = "2.54")] public virtual bool can_authenticate (); @@ -163,6 +163,7 @@ namespace Soup { public void has_saved_password (string username, string password); [Version (since = "2.42")] public virtual bool is_ready (Soup.Message msg); + public static Soup.Auth? @new (GLib.Type type, Soup.Message msg, string auth_header); public void save_password (string username, string password); public virtual bool update (Soup.Message msg, GLib.HashTable auth_header); [NoAccessorMethod] diff --git a/vapi/metadata/Soup-2.4.metadata b/vapi/metadata/Soup-2.4.metadata index da6595643..0bb012ddf 100644 --- a/vapi/metadata/Soup-2.4.metadata +++ b/vapi/metadata/Soup-2.4.metadata @@ -18,6 +18,9 @@ ProxyResolver deprecated_since="2.28" replacement="ProxyURIResolver" // Report upstream add_* skip=false type="unowned GLib.TimeoutSource" +Auth + // Factory method + .new symbol_type="function" AuthDomain .accepts#method name="accepts_authorization" AuthDomainBasic.new skip=false