OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thrift_binary_protocol.h
Go to the documentation of this file.
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  * Copyright 2006-2017 The Apache Software Foundation.
20  * https://github.com/apache/thrift
21  */
22 
23 #ifndef _THRIFT_BINARY_PROTOCOL_H
24 #define _THRIFT_BINARY_PROTOCOL_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* version numbers */
31 #define THRIFT_BINARY_PROTOCOL_VERSION_1 0x80010000
32 #define THRIFT_BINARY_PROTOCOL_VERSION_MASK 0xffff0000
33 
35 
36 void thrift_binary_protocol_init (ThriftBinaryProtocol *protocol);
37 int32_t thrift_binary_protocol_skip_from_buffer (uint8_t *buf, const uint32_t buflen,
38  ThriftType type, int *error);
39 
40 /* Write to ThriftTransport */
41 static inline int32_t
43 {
44  THRIFT_UNUSED_VAR (protocol);
45  THRIFT_UNUSED_VAR (error);
46  return 0;
47 }
48 
49 static inline int32_t
51  const char *name,
52  int *error )
53 {
54  THRIFT_UNUSED_VAR (protocol);
55  THRIFT_UNUSED_VAR (name);
56  THRIFT_UNUSED_VAR (error);
57  return 0;
58 }
59 
60 static inline int32_t
62  int *error )
63 {
64  THRIFT_UNUSED_VAR (protocol);
65  THRIFT_UNUSED_VAR (error);
66  return 0;
67 }
68 
69 static inline int32_t
71  int *error )
72 {
73  THRIFT_UNUSED_VAR (protocol);
74  THRIFT_UNUSED_VAR (error);
75  return 0;
76 }
77 
78 static inline int32_t
80  int *error )
81 {
82  THRIFT_UNUSED_VAR (protocol);
83  THRIFT_UNUSED_VAR (error);
84  return 0;
85 }
86 
87 /* Read from ThriftTransport */
88 static inline int32_t
90  int *error )
91 {
92  THRIFT_UNUSED_VAR (protocol);
93  THRIFT_UNUSED_VAR (error);
94  return 0;
95 }
96 
97 static inline int32_t
99  int *error )
100 {
101  THRIFT_UNUSED_VAR (protocol);
102  THRIFT_UNUSED_VAR (error);
103  return 0;
104 }
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif /* _THRIFT_BINARY_PROTOCOL_H */
static int32_t thrift_binary_protocol_write_list_end(ThriftProtocol *protocol, int *error)
ThriftType
#define THRIFT_UNUSED_VAR(x)
Definition: thrift.h:32
int32_t thrift_binary_protocol_skip_from_buffer(uint8_t *buf, const uint32_t buflen, ThriftType type, int *error)
static int32_t thrift_binary_protocol_read_sandesh_end(ThriftProtocol *protocol, int *error)
uint8_t type
Definition: load_balance.h:109
static int32_t thrift_binary_protocol_write_struct_end(ThriftProtocol *protocol, int *error)
void thrift_binary_protocol_init(ThriftBinaryProtocol *protocol)
ThriftProtocol ThriftBinaryProtocol
static int32_t thrift_binary_protocol_write_field_end(ThriftProtocol *protocol, int *error)
static int32_t thrift_binary_protocol_write_struct_begin(ThriftProtocol *protocol, const char *name, int *error)
static int32_t thrift_binary_protocol_write_sandesh_end(ThriftProtocol *protocol, int *error)
static int32_t thrift_binary_protocol_read_struct_end(ThriftProtocol *protocol, int *error)