]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/c_glib/src/thrift/c_glib/transport/thrift_fd_transport.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / c_glib / src / thrift / c_glib / transport / thrift_fd_transport.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 #ifndef _THRIFT_FD_TRANSPORT_H
21 #define _THRIFT_FD_TRANSPORT_H
22
23 #include <glib-object.h>
24
25 #include "thrift_transport.h"
26
27 G_BEGIN_DECLS
28
29 /*! \file thrift_fd_transport.h
30 * \brief Class for Thrift file descriptor transports.
31 */
32
33 /* type macros */
34 #define THRIFT_TYPE_FD_TRANSPORT (thrift_fd_transport_get_type ())
35 #define THRIFT_FD_TRANSPORT(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), THRIFT_TYPE_FD_TRANSPORT, \
37 ThriftFDTransport))
38 #define THRIFT_IS_FD_TRANSPORT(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THRIFT_TYPE_FD_TRANSPORT))
40 #define THRIFT_FD_TRANSPORT_CLASS(c) \
41 (G_TYPE_CHECK_CLASS_CAST ((c), THRIFT_TYPE_FD_TRANSPORT, \
42 ThriftFDTransportClass))
43 #define THRIFT_IS_FD_TRANSPORT_CLASS(c) \
44 (G_TYPE_CHECK_CLASS_TYPE ((c), THRIFT_TYPE_FD_TRANSPORT))
45 #define THRIFT_FD_TRANSPORT_GET_CLASS(obj) \
46 (G_TYPE_INSTANCE_GET_CLASS ((obj), THRIFT_TYPE_FD_TRANSPORT, \
47 ThriftFDTransportClass))
48
49 typedef struct _ThriftFDTransport ThriftFDTransport;
50
51 struct _ThriftFDTransport
52 {
53 ThriftTransport parent;
54
55 /* protected */
56 gint fd;
57 };
58
59 typedef struct _ThriftFDTransportClass ThriftFDTransportClass;
60
61 /*!
62 * Thrift Transport class
63 */
64 struct _ThriftFDTransportClass
65 {
66 ThriftTransportClass parent;
67 };
68
69 /* used by THRIFT_TYPE_FD_TRANSPORT */
70 GType thrift_fd_transport_get_type (void);
71
72 G_END_DECLS
73
74 #endif /* _THRIFT_FD_TRANSPORT_H */