This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9576a41001 GH-44153: [GLib][FlightRPC] Fix closure annotation (#44154)
9576a41001 is described below

commit 9576a41001fe883ab4b6538663647d7c602fc4df
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Sep 18 12:02:21 2024 +0900

    GH-44153: [GLib][FlightRPC] Fix closure annotation (#44154)
    
    ### Rationale for this change
    
    It should be added to a callback function not data for the callback 
function.
    
    ### What changes are included in this PR?
    
    Move annotation location.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    Yes.
    * GitHub Issue: #44153
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 c_glib/arrow-flight-glib/client.cpp | 4 ++--
 c_glib/arrow-flight-glib/server.cpp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/c_glib/arrow-flight-glib/client.cpp 
b/c_glib/arrow-flight-glib/client.cpp
index 75b02ec258..596aa4b3a5 100644
--- a/c_glib/arrow-flight-glib/client.cpp
+++ b/c_glib/arrow-flight-glib/client.cpp
@@ -274,8 +274,8 @@ gaflight_call_options_clear_headers(GAFlightCallOptions 
*options)
 /**
  * gaflight_call_options_foreach_header:
  * @options: A #GAFlightCallOptions.
- * @func: (scope call): The user's callback function.
- * @user_data: (closure): Data for @func.
+ * @func: (scope call) (closure user_data): The user's callback function.
+ * @user_data: Data for @func.
  *
  * Iterates over all headers in the options.
  *
diff --git a/c_glib/arrow-flight-glib/server.cpp 
b/c_glib/arrow-flight-glib/server.cpp
index e39fd97b0d..2feeb853e2 100644
--- a/c_glib/arrow-flight-glib/server.cpp
+++ b/c_glib/arrow-flight-glib/server.cpp
@@ -461,8 +461,8 @@ 
gaflight_server_call_context_class_init(GAFlightServerCallContextClass *klass)
 /**
  * gaflight_server_call_context_foreach_incoming_header:
  * @context: A #GAFlightServerCallContext.
- * @func: (scope call): The user's callback function.
- * @user_data: (closure): Data for @func.
+ * @func: (scope call) (closure user_data): The user's callback function.
+ * @user_data: Data for @func.
  *
  * Iterates over all incoming headers.
  *

Reply via email to