2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
22 #include <arrow-flight-glib/common.h>
27 #define GAFLIGHT_TYPE_STREAM_READER \
28 (gaflight_stream_reader_get_type())
29 G_DECLARE_DERIVABLE_TYPE(GAFlightStreamReader
,
30 gaflight_stream_reader
,
33 GAFlightRecordBatchReader
)
34 struct _GAFlightStreamReaderClass
36 GAFlightRecordBatchReaderClass parent_class
;
40 #define GAFLIGHT_TYPE_CALL_OPTIONS (gaflight_call_options_get_type())
41 G_DECLARE_DERIVABLE_TYPE(GAFlightCallOptions
,
42 gaflight_call_options
,
46 struct _GAFlightCallOptionsClass
48 GObjectClass parent_class
;
51 GARROW_AVAILABLE_IN_5_0
53 gaflight_call_options_new(void);
56 #define GAFLIGHT_TYPE_CLIENT_OPTIONS (gaflight_client_options_get_type())
57 G_DECLARE_DERIVABLE_TYPE(GAFlightClientOptions
,
58 gaflight_client_options
,
62 struct _GAFlightClientOptionsClass
64 GObjectClass parent_class
;
67 GARROW_AVAILABLE_IN_5_0
68 GAFlightClientOptions
*
69 gaflight_client_options_new(void);
72 #define GAFLIGHT_TYPE_CLIENT (gaflight_client_get_type())
73 G_DECLARE_DERIVABLE_TYPE(GAFlightClient
,
78 struct _GAFlightClientClass
80 GObjectClass parent_class
;
83 GARROW_AVAILABLE_IN_5_0
85 gaflight_client_new(GAFlightLocation
*location
,
86 GAFlightClientOptions
*options
,
89 GARROW_AVAILABLE_IN_5_0
91 gaflight_client_list_flights(GAFlightClient
*client
,
92 GAFlightCriteria
*criteria
,
93 GAFlightCallOptions
*options
,
96 GARROW_AVAILABLE_IN_6_0
97 GAFlightStreamReader
*
98 gaflight_client_do_get(GAFlightClient
*client
,
99 GAFlightTicket
*ticket
,
100 GAFlightCallOptions
*options
,