]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/c_glib/src/thrift/c_glib/protocol/thrift_stored_message_protocol.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / c_glib / src / thrift / c_glib / protocol / thrift_stored_message_protocol.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_STORED_MESSAGE_PROTOCOL_H
21 #define _THRIFT_STORED_MESSAGE_PROTOCOL_H
22
23 #include <glib-object.h>
24
25 #include <thrift/c_glib/protocol/thrift_protocol.h>
26 #include <thrift/c_glib/protocol/thrift_protocol_decorator.h>
27 #include <thrift/c_glib/transport/thrift_transport.h>
28
29 G_BEGIN_DECLS
30
31 /*! \file thrift_stored_message_protocol.h
32 * \brief StoredMessage protocol implementation of a pre-stored message header
33 * on Thrift protocol. Implements the ThriftProtocol interface.
34 */
35
36 /* type macros */
37 #define THRIFT_TYPE_STORED_MESSAGE_PROTOCOL (thrift_stored_message_protocol_get_type ())
38 #define THRIFT_STORED_MESSAGE_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THRIFT_TYPE_STORED_MESSAGE_PROTOCOL, ThriftStoredMessageProtocol))
39 #define THRIFT_IS_STORED_MESSAGE_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THRIFT_TYPE_STORED_MESSAGE_PROTOCOL))
40 #define THRIFT_STORED_MESSAGE_PROTOCOL_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), THRIFT_TYPE_STORED_MESSAGE_PROTOCOL, ThriftStoredMessageProtocolClass))
41 #define THRIFT_IS_STORED_MESSAGE_PROTOCOL_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), THRIFT_TYPE_STORED_MESSAGE_PROTOCOL))
42 #define THRIFT_STORED_MESSAGE_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THRIFT_TYPE_STORED_MESSAGE_PROTOCOL, ThriftStoredMessageProtocolClass))
43
44 /* constant */
45 #define THRIFT_STORED_MESSAGE_PROTOCOL_DEFAULT_SEPARATOR ":"
46
47 typedef struct _ThriftStoredMessageProtocol ThriftStoredMessageProtocol;
48
49
50
51 /*!
52 * Thrift StoredMessage Protocol instance.
53 */
54 struct _ThriftStoredMessageProtocol
55 {
56 ThriftProtocolDecorator parent;
57
58 gchar *name;
59 ThriftMessageType mtype;
60 gint32 seqid;
61 };
62
63 typedef struct _ThriftStoredMessageProtocolClass ThriftStoredMessageProtocolClass;
64
65 /*!
66 * Thrift StoredMessage Protocol class.
67 */
68 struct _ThriftStoredMessageProtocolClass
69 {
70 ThriftProtocolDecoratorClass parent;
71 };
72
73 /* used by THRIFT_TYPE_STORED_MESSAGE_PROTOCOL */
74 GType thrift_stored_message_protocol_get_type (void);
75
76 G_END_DECLS
77
78 #endif /* _THRIFT_STORED_MESSAGE_PROTOCOL_H */