]> git.proxmox.com Git - ceph.git/blob - ceph/src/arrow/c_glib/arrow-flight-glib/client.h
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / c_glib / arrow-flight-glib / client.h
1 /*
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
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
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
17 * under the License.
18 */
19
20 #pragma once
21
22 #include <arrow-flight-glib/common.h>
23
24 G_BEGIN_DECLS
25
26
27 #define GAFLIGHT_TYPE_STREAM_READER \
28 (gaflight_stream_reader_get_type())
29 G_DECLARE_DERIVABLE_TYPE(GAFlightStreamReader,
30 gaflight_stream_reader,
31 GAFLIGHT,
32 STREAM_READER,
33 GAFlightRecordBatchReader)
34 struct _GAFlightStreamReaderClass
35 {
36 GAFlightRecordBatchReaderClass parent_class;
37 };
38
39
40 #define GAFLIGHT_TYPE_CALL_OPTIONS (gaflight_call_options_get_type())
41 G_DECLARE_DERIVABLE_TYPE(GAFlightCallOptions,
42 gaflight_call_options,
43 GAFLIGHT,
44 CALL_OPTIONS,
45 GObject)
46 struct _GAFlightCallOptionsClass
47 {
48 GObjectClass parent_class;
49 };
50
51 GARROW_AVAILABLE_IN_5_0
52 GAFlightCallOptions *
53 gaflight_call_options_new(void);
54
55
56 #define GAFLIGHT_TYPE_CLIENT_OPTIONS (gaflight_client_options_get_type())
57 G_DECLARE_DERIVABLE_TYPE(GAFlightClientOptions,
58 gaflight_client_options,
59 GAFLIGHT,
60 CLIENT_OPTIONS,
61 GObject)
62 struct _GAFlightClientOptionsClass
63 {
64 GObjectClass parent_class;
65 };
66
67 GARROW_AVAILABLE_IN_5_0
68 GAFlightClientOptions *
69 gaflight_client_options_new(void);
70
71
72 #define GAFLIGHT_TYPE_CLIENT (gaflight_client_get_type())
73 G_DECLARE_DERIVABLE_TYPE(GAFlightClient,
74 gaflight_client,
75 GAFLIGHT,
76 CLIENT,
77 GObject)
78 struct _GAFlightClientClass
79 {
80 GObjectClass parent_class;
81 };
82
83 GARROW_AVAILABLE_IN_5_0
84 GAFlightClient *
85 gaflight_client_new(GAFlightLocation *location,
86 GAFlightClientOptions *options,
87 GError **error);
88
89 GARROW_AVAILABLE_IN_5_0
90 GList *
91 gaflight_client_list_flights(GAFlightClient *client,
92 GAFlightCriteria *criteria,
93 GAFlightCallOptions *options,
94 GError **error);
95
96 GARROW_AVAILABLE_IN_6_0
97 GAFlightStreamReader *
98 gaflight_client_do_get(GAFlightClient *client,
99 GAFlightTicket *ticket,
100 GAFlightCallOptions *options,
101 GError **error);
102
103
104 G_END_DECLS