From: Rico Tzschichholz Date: Sun, 13 Jan 2019 12:36:56 +0000 (+0100) Subject: libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter X-Git-Tag: 0.36.18~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dce7b02811ed7d0b55d35a51c7fb810fbce602e;p=thirdparty%2Fvala.git libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter See https://gitlab.gnome.org/GNOME/vala/issues/731 --- diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 12fb7e7e4..b4460b900 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -511,8 +511,8 @@ namespace Soup { public weak Soup.MessageHeaders response_headers; [CCode (has_construct_function = false)] public Message (string method, string uri_string); - public uint add_header_handler (string @signal, string header, GLib.Callback callback); - public uint add_status_code_handler (string @signal, uint status_code, GLib.Callback callback); + public uint add_header_handler (string @signal, string header, GLib.Callback callback, void* user_data); + public uint add_status_code_handler (string @signal, uint status_code, GLib.Callback callback, void* user_data); [Version (since = "2.28")] public void disable_feature (GLib.Type feature_type); [CCode (has_construct_function = false)] diff --git a/vapi/metadata/Soup-2.4.metadata b/vapi/metadata/Soup-2.4.metadata index c0056ec82..da6595643 100644 --- a/vapi/metadata/Soup-2.4.metadata +++ b/vapi/metadata/Soup-2.4.metadata @@ -27,7 +27,9 @@ ContentSniffer.sniff.params nullable form_* skip=false Message .add_header_handler skip=false + .add_header_handler.callback closure=-1 .add_status_code_handler skip=false + .add_status_code_handler.callback closure=-1 .request_*#property skip .response_*#property skip .set_request.req_body type="uint8[]" array_length_idx=3