Skip to content

Commit

Permalink
apacheGH-44153: [GLib][FlightRPC] Fix closure annotation (apache#44154)
Browse files Browse the repository at this point in the history
### 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: apache#44153

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored Sep 18, 2024
1 parent fe39c8f commit 9576a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions c_glib/arrow-flight-glib/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions c_glib/arrow-flight-glib/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9576a41

Please sign in to comment.