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.42.5~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e493627bbd19e34edce4ac62f23d07a4c718db63;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 b5182b946..a5fff8404 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