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
20 #ifndef _THRIFT_FD_TRANSPORT_H
21 #define _THRIFT_FD_TRANSPORT_H
23 #include <glib-object.h>
25 #include "thrift_transport.h"
29 /*! \file thrift_fd_transport.h
30 * \brief Class for Thrift file descriptor transports.
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, \
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))
49 typedef struct _ThriftFDTransport ThriftFDTransport
;
51 struct _ThriftFDTransport
53 ThriftTransport parent
;
59 typedef struct _ThriftFDTransportClass ThriftFDTransportClass
;
62 * Thrift Transport class
64 struct _ThriftFDTransportClass
66 ThriftTransportClass parent
;
69 /* used by THRIFT_TYPE_FD_TRANSPORT */
70 GType
thrift_fd_transport_get_type (void);
74 #endif /* _THRIFT_FD_TRANSPORT_H */