[libsoup] vapi: Fix Message.add_*_handler() by unhiding user_data parameter



commit a8f39201e8c084429e9246c1fce69d385f684976
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Aug 8 14:14:55 2021 -0500

    vapi: Fix Message.add_*_handler() by unhiding user_data parameter
    
    GLib.Callback doesn't have a target/data parameter and therefore vala
    doesn't create this usual implicit parameter.
    
    Basically g-i shouldn't add a closure attribute for GObject.Callback
    parameters.
    
    Closes #129
    Closes !34

 libsoup/Soup-3.0.metadata | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libsoup/Soup-3.0.metadata b/libsoup/Soup-3.0.metadata
index b5d6b075..66d7b3ff 100644
--- a/libsoup/Soup-3.0.metadata
+++ b/libsoup/Soup-3.0.metadata
@@ -12,7 +12,9 @@ AuthDomain.accepts#method name="accepts_authorization"
 Message
     // Vala can use these C style methods
     .add_header_handler skip=false
+    .add_header_handler.callback closure=-1
     .add_status_code_handler skip=false
+    .add_status_code_handler.callback closure=-1
 
 // Constructor overrides
 Server.new skip=false


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