]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 13 Jan 2019 12:36:56 +0000 (13:36 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 13 Jan 2019 12:36:56 +0000 (13:36 +0100)
See https://gitlab.gnome.org/GNOME/vala/issues/731

vapi/libsoup-2.4.vapi
vapi/metadata/Soup-2.4.metadata

index 388a172be05e7987b4b1aef83911f23d6fe3387d..a304cdef75e1dde0c4282bdf9d342744be2c4f74 100644 (file)
@@ -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)]
index c0056ec82f41a7bd0ff06b7f1a96bedf3ce2b0cf..da65956438702f1a21c05f1b74cfd25ee1232d4f 100644 (file)
@@ -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