From 9576a41001fe883ab4b6538663647d7c602fc4df Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 18 Sep 2024 12:02:21 +0900 Subject: [PATCH] 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 Signed-off-by: Sutou Kouhei --- 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 75b02ec25869f..596aa4b3a5a03 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 e39fd97b0d06c..2feeb853e2c51 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. *