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