From e493627bbd19e34edce4ac62f23d07a4c718db63 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 13 Jan 2019 13:36:56 +0100 Subject: [PATCH] libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter See https://gitlab.gnome.org/GNOME/vala/issues/731 --- vapi/libsoup-2.4.vapi | 4 ++-- vapi/metadata/Soup-2.4.metadata | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.2