[vala/0.36] libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter



commit 1dce7b02811ed7d0b55d35a51c7fb810fbce602e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jan 13 13:36:56 2019 +0100

    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 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]