* gaflight_client_get_flight_info: * @client: A #GAFlightClient. * @descriptor: A #GAFlightDescriptor to be processed. * @options: (nullable): A #GAFlightCallOptions. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The returned #GAFlightInfo on * success, %NULL on error. * * Since: 9.0.0 */
| 933 | * Since: 9.0.0 |
| 934 | */ |
| 935 | GAFlightInfo * |
| 936 | gaflight_client_get_flight_info(GAFlightClient *client, |
| 937 | GAFlightDescriptor *descriptor, |
| 938 | GAFlightCallOptions *options, |
| 939 | GError **error) |
| 940 | { |
| 941 | auto flight_client = gaflight_client_get_raw(client); |
| 942 | auto flight_descriptor = gaflight_descriptor_get_raw(descriptor); |
| 943 | arrow::flight::FlightCallOptions flight_default_options; |
| 944 | auto flight_options = &flight_default_options; |
| 945 | if (options) { |
| 946 | flight_options = gaflight_call_options_get_raw(options); |
| 947 | } |
| 948 | auto result = flight_client->GetFlightInfo(*flight_options, *flight_descriptor); |
| 949 | if (!garrow::check(error, result, "[flight-client][get-flight-info]")) { |
| 950 | return NULL; |
| 951 | } |
| 952 | auto flight_info = std::move(*result); |
| 953 | return gaflight_info_new_raw(flight_info.release()); |
| 954 | } |
| 955 | |
| 956 | /** |
| 957 | * gaflight_client_do_get: |
nothing calls this directly
no test coverage detected