OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thrift_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_PROTOCOL_H
24 #define _THRIFT_PROTOCOL_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
39 typedef enum {
40  T_STOP = 0,
41  T_VOID = 1,
42  T_BOOL = 2,
43  T_BYTE = 3,
44  T_I08 = 3,
45  T_I16 = 6,
46  T_I32 = 8,
47  T_U64 = 9,
48  T_I64 = 10,
49  T_DOUBLE = 4,
50  T_STRING = 11,
51  T_UTF7 = 11,
52  T_STRUCT = 12,
53  T_MAP = 13,
54  T_SET = 14,
55  T_LIST = 15,
56  T_UTF8 = 16,
57  T_UTF16 = 17,
58  T_U16 = 19,
59  T_U32 = 20,
60  T_XML = 21,
61  T_IPV4 = 22,
62  T_UUID = 23,
63  T_IPADDR = 24
64 } ThriftType;
65 
70 typedef enum {
71  T_CALL = 1,
72  T_REPLY = 2,
76 
80 typedef enum {
84 
85 /*
86  * Thrift Protocol
87  */
89 {
92  int32_t (*write_sandesh_begin) (struct _ThriftProtocol *protocol, const char *name,
93  int *error);
94  int32_t (*write_sandesh_end) (struct _ThriftProtocol *protocol, int *error);
95  int32_t (*write_struct_begin) (struct _ThriftProtocol *protocol, const char *name,
96  int *error);
97  int32_t (*write_struct_end) (struct _ThriftProtocol *protocol, int *error);
98  int32_t (*write_field_begin) (struct _ThriftProtocol *protocol, const char *name,
99  const ThriftType field_type,
100  const int16_t field_id, int *error);
101  int32_t (*write_field_end) (struct _ThriftProtocol *protocol, int *error);
102  int32_t (*write_field_stop) (struct _ThriftProtocol *protocol, int *error);
103  int32_t (*write_list_begin) (struct _ThriftProtocol *protocol,
104  const ThriftType element_type,
105  const u_int32_t size, int *error);
106  int32_t (*write_list_end) (struct _ThriftProtocol *protocol, int *error);
107  int32_t (*write_bool) (struct _ThriftProtocol *protocol, const u_int8_t value,
108  int *error);
109  int32_t (*write_byte) (struct _ThriftProtocol *protocol, const int8_t value,
110  int *error);
111  int32_t (*write_i16) (struct _ThriftProtocol *protocol, const int16_t value,
112  int *error);
113  int32_t (*write_i32) (struct _ThriftProtocol *protocol, const int32_t value,
114  int *error);
115  int32_t (*write_i64) (struct _ThriftProtocol *protocol, const int64_t value,
116  int *error);
117  int32_t (*write_u16) (struct _ThriftProtocol *protocol, const u_int16_t value,
118  int *error);
119  int32_t (*write_u32) (struct _ThriftProtocol *protocol, const u_int32_t value,
120  int *error);
121  int32_t (*write_u64) (struct _ThriftProtocol *protocol, const u_int64_t value,
122  int *error);
123  int32_t (*write_ipv4) (struct _ThriftProtocol *protocol, const u_int32_t value,
124  int *error);
125  int32_t (*write_ipaddr) (struct _ThriftProtocol *protocol, const ipaddr_t *value,
126  int *error);
127  int32_t (*write_double) (struct _ThriftProtocol *protocol, const double value,
128  int *error);
129  int32_t (*write_string) (struct _ThriftProtocol *protocol, const char *str,
130  int *error);
131  int32_t (*write_binary) (struct _ThriftProtocol *protocol, const void *buf,
132  const u_int32_t len, int *error);
133  int32_t (*write_xml) (struct _ThriftProtocol *protocol, const char *str,
134  int *error);
135  int32_t (*write_uuid_t) (struct _ThriftProtocol *protocol, const ct_uuid_t value,
136  int *error);
137 
138  int32_t (*read_sandesh_begin) (struct _ThriftProtocol *protocol, char **name,
139  int *error);
140  int32_t (*read_sandesh_end) (struct _ThriftProtocol *protocol, int *error);
141  int32_t (*read_struct_begin) (struct _ThriftProtocol *protocol, char **name,
142  int *error);
143  int32_t (*read_struct_end) (struct _ThriftProtocol *protocol, int *error);
144  int32_t (*read_field_begin) (struct _ThriftProtocol *protocol, char **name,
145  ThriftType *field_type, int16_t *field_id,
146  int *error);
147  int32_t (*read_field_end) (struct _ThriftProtocol *protocol, int *error);
148  int32_t (*read_list_begin) (struct _ThriftProtocol *protocol, ThriftType *element_type,
149  u_int32_t *size, int *error);
150  int32_t (*read_list_end) (struct _ThriftProtocol *protocol, int *error);
151  int32_t (*read_bool) (struct _ThriftProtocol *protocol, u_int8_t *value,
152  int *error);
153  int32_t (*read_byte) (struct _ThriftProtocol *protocol, int8_t *value, int *error);
154  int32_t (*read_i16) (struct _ThriftProtocol *protocol, int16_t *value, int *error);
155  int32_t (*read_i32) (struct _ThriftProtocol *protocol, int32_t *value, int *error);
156  int32_t (*read_i64) (struct _ThriftProtocol *protocol, int64_t *value, int *error);
157  int32_t (*read_u16) (struct _ThriftProtocol *protocol, u_int16_t *value, int *error);
158  int32_t (*read_u32) (struct _ThriftProtocol *protocol, u_int32_t *value, int *error);
159  int32_t (*read_u64) (struct _ThriftProtocol *protocol, u_int64_t *value, int *error);
160  int32_t (*read_ipv4) (struct _ThriftProtocol *protocol, u_int32_t *value, int *error);
161  int32_t (*read_ipaddr) (struct _ThriftProtocol *protocol, ipaddr_t *value, int *error);
162  int32_t (*read_double) (struct _ThriftProtocol *protocol, double *value,
163  int *error);
164  int32_t (*read_string) (struct _ThriftProtocol *protocol, char **str, int *error);
165  int32_t (*read_binary) (struct _ThriftProtocol *protocol, void **buf,
166  u_int32_t *len, int *error);
167  int32_t (*read_xml) (struct _ThriftProtocol *protocol, char **str, int *error);
168  int32_t (*read_uuid_t) (struct _ThriftProtocol *protocol, ct_uuid_t *value, int *error);
169 };
171 
172 /* used by THRIFT_TYPE_PROTOCOL */
174  ThriftProtocol *protocol)
175 {
176  return protocol->ptype;
177 }
178 
179 /* virtual public methods */
180 static inline int32_t thrift_protocol_write_sandesh_begin (
181  ThriftProtocol *protocol,
182  const char *name, int *error)
183 {
184  return protocol->write_sandesh_begin (protocol, name, error);
185 }
186 
187 static inline int32_t thrift_protocol_write_sandesh_end (
188  ThriftProtocol *protocol,
189  int *error)
190 {
191  return protocol->write_sandesh_end (protocol, error);
192 }
193 
194 static inline int32_t thrift_protocol_write_struct_begin (
195  ThriftProtocol *protocol,
196  const char *name,
197  int *error)
198 {
199  return protocol->write_struct_begin (protocol, name, error);
200 }
201 
202 static inline int32_t thrift_protocol_write_struct_end (
203  ThriftProtocol *protocol,
204  int *error)
205 {
206  return protocol->write_struct_end (protocol, error);
207 }
208 
209 static inline int32_t thrift_protocol_write_field_begin (
210  ThriftProtocol *protocol,
211  const char *name,
212  const ThriftType field_type,
213  const int16_t field_id,
214  int *error)
215 {
216  return protocol->write_field_begin (protocol, name, field_type, field_id,
217  error);
218 }
219 
220 static inline int32_t thrift_protocol_write_field_end (
221  ThriftProtocol *protocol,
222  int *error)
223 {
224  return protocol->write_field_end (protocol, error);
225 }
226 
227 static inline int32_t thrift_protocol_write_field_stop (
228  ThriftProtocol *protocol,
229  int *error)
230 {
231  return protocol->write_field_stop (protocol, error);
232 }
233 
234 static inline int32_t thrift_protocol_write_list_begin (
235  ThriftProtocol *protocol,
236  const ThriftType element_type,
237  const u_int32_t size, int *error)
238 {
239  return protocol->write_list_begin (protocol, element_type, size, error);
240 }
241 
242 static inline int32_t thrift_protocol_write_list_end (ThriftProtocol *protocol,
243  int *error)
244 {
245  return protocol->write_list_end (protocol, error);
246 }
247 
248 static inline int32_t thrift_protocol_write_bool (ThriftProtocol *protocol,
249  const u_int8_t value,
250  int *error)
251 {
252  return protocol->write_bool (protocol, value, error);
253 }
254 
255 static inline int32_t thrift_protocol_write_byte (ThriftProtocol *protocol,
256  const int8_t value,
257  int *error)
258 {
259  return protocol->write_byte (protocol, value, error);
260 }
261 
262 static inline int32_t thrift_protocol_write_i16 (ThriftProtocol *protocol,
263  const int16_t value,
264  int *error)
265 {
266  return protocol->write_i16 (protocol, value, error);
267 }
268 
269 static inline int32_t thrift_protocol_write_i32 (ThriftProtocol *protocol,
270  const int32_t value,
271  int *error)
272 {
273  return protocol->write_i32 (protocol, value, error);
274 }
275 
276 static inline int32_t thrift_protocol_write_i64 (ThriftProtocol *protocol,
277  const int64_t value,
278  int *error)
279 {
280  return protocol->write_i64 (protocol, value, error);
281 }
282 
283 static inline int32_t thrift_protocol_write_u16 (ThriftProtocol *protocol,
284  const u_int16_t value,
285  int *error)
286 {
287  return protocol->write_u16 (protocol, value, error);
288 }
289 
290 static inline int32_t thrift_protocol_write_u32 (ThriftProtocol *protocol,
291  const u_int32_t value,
292  int *error)
293 {
294  return protocol->write_u32 (protocol, value, error);
295 }
296 
297 static inline int32_t thrift_protocol_write_u64 (ThriftProtocol *protocol,
298  const u_int64_t value,
299  int *error)
300 {
301  return protocol->write_u64 (protocol, value, error);
302 }
303 
304 static inline int32_t thrift_protocol_write_ipv4 (ThriftProtocol *protocol,
305  const u_int32_t value,
306  int *error)
307 {
308  return protocol->write_ipv4 (protocol, value, error);
309 }
310 
311 static inline int32_t thrift_protocol_write_ipaddr (ThriftProtocol *protocol,
312  const ipaddr_t *value,
313  int *error)
314 {
315  return protocol->write_ipaddr (protocol, value, error);
316 }
317 
318 static inline int32_t thrift_protocol_write_double (ThriftProtocol *protocol,
319  const double value,
320  int *error)
321 {
322  return protocol->write_double (protocol, value, error);
323 }
324 
325 static inline int32_t thrift_protocol_write_string (ThriftProtocol *protocol,
326  const char *str,
327  int *error)
328 {
329  return protocol->write_string (protocol, str, error);
330 }
331 
332 static inline int32_t thrift_protocol_write_binary (ThriftProtocol *protocol,
333  const void *buf,
334  const u_int32_t len,
335  int *error)
336 {
337  return protocol->write_binary (protocol, buf, len, error);
338 }
339 
340 static inline int32_t thrift_protocol_write_xml (ThriftProtocol *protocol,
341  const char *str,
342  int *error)
343 {
344  return protocol->write_xml (protocol, str, error);
345 }
346 
347 static inline int32_t thrift_protocol_write_uuid_t (ThriftProtocol *protocol,
348  const ct_uuid_t value,
349  int *error)
350 {
351  return protocol->write_uuid_t (protocol, value, error);
352 }
353 
354 static inline int32_t thrift_protocol_read_sandesh_begin (
355  ThriftProtocol *protocol,
356  char **name,
357  int *error)
358 {
359  return protocol->read_sandesh_begin (protocol, name, error);
360 }
361 
362 static inline int32_t thrift_protocol_read_sandesh_end (
363  ThriftProtocol *protocol,
364  int *error)
365 {
366  return protocol->read_sandesh_end (protocol, error);
367 }
368 
369 static inline int32_t thrift_protocol_read_struct_begin (
370  ThriftProtocol *protocol,
371  char **name,
372  int *error)
373 {
374  return protocol->read_struct_begin (protocol, name, error);
375 }
376 
377 static inline int32_t thrift_protocol_read_struct_end (
378  ThriftProtocol *protocol,
379  int *error)
380 {
381  return protocol->read_struct_end (protocol, error);
382 }
383 
384 static inline int32_t thrift_protocol_read_field_begin (
385  ThriftProtocol *protocol,
386  char **name,
387  ThriftType *field_type,
388  int16_t *field_id,
389  int *error)
390 {
391  return protocol->read_field_begin (protocol, name, field_type, field_id,
392  error);
393 }
394 
395 static inline int32_t thrift_protocol_read_field_end (ThriftProtocol *protocol,
396  int *error)
397 {
398  return protocol->read_field_end (protocol, error);
399 }
400 
401 static inline int32_t thrift_protocol_read_list_begin (
402  ThriftProtocol *protocol,
403  ThriftType *element_type,
404  u_int32_t *size, int *error)
405 {
406  return protocol->read_list_begin (protocol, element_type, size, error);
407 }
408 
409 static inline int32_t thrift_protocol_read_list_end (ThriftProtocol *protocol,
410  int *error)
411 {
412  return protocol->read_list_end (protocol, error);
413 }
414 
415 static inline int32_t thrift_protocol_read_bool (ThriftProtocol *protocol,
416  u_int8_t *value,
417  int *error)
418 {
419  return protocol->read_bool (protocol, value, error);
420 }
421 
422 static inline int32_t thrift_protocol_read_byte (ThriftProtocol *protocol,
423  int8_t *value,
424  int *error)
425 {
426  return protocol->read_byte (protocol, value, error);
427 }
428 
429 static inline int32_t thrift_protocol_read_i16 (ThriftProtocol *protocol,
430  int16_t *value,
431  int *error)
432 {
433  return protocol->read_i16 (protocol, value, error);
434 }
435 
436 static inline int32_t thrift_protocol_read_i32 (ThriftProtocol *protocol,
437  int32_t *value,
438  int *error)
439 {
440  return protocol->read_i32 (protocol, value, error);
441 }
442 
443 static inline int32_t thrift_protocol_read_i64 (ThriftProtocol *protocol,
444  int64_t *value,
445  int *error)
446 {
447  return protocol->read_i64 (protocol, value, error);
448 }
449 
450 static inline int32_t thrift_protocol_read_u16 (ThriftProtocol *protocol,
451  u_int16_t *value,
452  int *error)
453 {
454  return protocol->read_u16 (protocol, value, error);
455 }
456 
457 static inline int32_t thrift_protocol_read_u32 (ThriftProtocol *protocol,
458  u_int32_t *value,
459  int *error)
460 {
461  return protocol->read_u32 (protocol, value, error);
462 }
463 
464 
465 static inline int32_t thrift_protocol_read_u64 (ThriftProtocol *protocol,
466  u_int64_t *value,
467  int *error)
468 {
469  return protocol->read_u64 (protocol, value, error);
470 }
471 
472 static inline int32_t thrift_protocol_read_ipv4 (ThriftProtocol *protocol,
473  u_int32_t *value,
474  int *error)
475 {
476  return protocol->read_ipv4 (protocol, value, error);
477 }
478 
479 static inline int32_t thrift_protocol_read_ipaddr (ThriftProtocol *protocol,
480  ipaddr_t *value,
481  int *error)
482 {
483  return protocol->read_ipaddr (protocol, value, error);
484 }
485 
486 static inline int32_t thrift_protocol_read_double (ThriftProtocol *protocol,
487  double *value, int *error)
488 {
489  return protocol->read_double (protocol, value, error);
490 }
491 
492 static inline int32_t thrift_protocol_read_string (ThriftProtocol *protocol,
493  char **str, int *error)
494 {
495  return protocol->read_string (protocol, str, error);
496 }
497 
498 static inline int32_t thrift_protocol_read_binary (ThriftProtocol *protocol,
499  void **buf, u_int32_t *len,
500  int *error)
501 {
502  return protocol->read_binary (protocol, buf, len, error);
503 }
504 
505 static inline int32_t thrift_protocol_read_xml (ThriftProtocol *protocol,
506  char **str, int *error)
507 {
508  return protocol->read_xml (protocol, str, error);
509 }
510 
511 static inline int32_t thrift_protocol_read_uuid_t (ThriftProtocol *protocol,
512  ct_uuid_t *value, int *error)
513 {
514  return protocol->read_uuid_t (protocol, value, error);
515 }
516 
518  int *error);
519 
520 void thrift_protocol_init (ThriftProtocol *protocol,
523 
524 /* define error types */
525 typedef enum
526 {
534 
535 #ifdef __cplusplus
536 }
537 #endif
538 
539 #endif /* _THRIFT_PROTOCOL_H */
static int32_t thrift_protocol_read_ipv4(ThriftProtocol *protocol, u_int32_t *value, int *error)
int32_t(* read_binary)(struct _ThriftProtocol *protocol, void **buf, u_int32_t *len, int *error)
static int32_t thrift_protocol_write_list_end(ThriftProtocol *protocol, int *error)
ThriftTransport * transport
int32_t(* write_string)(struct _ThriftProtocol *protocol, const char *str, int *error)
int32_t(* write_sandesh_end)(struct _ThriftProtocol *protocol, int *error)
int32_t(* read_sandesh_begin)(struct _ThriftProtocol *protocol, char **name, int *error)
int32_t(* read_struct_end)(struct _ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_read_string(ThriftProtocol *protocol, char **str, int *error)
unsigned char ct_uuid_t[16]
Definition: sandesh.h:61
int32_t(* read_i64)(struct _ThriftProtocol *protocol, int64_t *value, int *error)
static int32_t thrift_protocol_write_u64(ThriftProtocol *protocol, const u_int64_t value, int *error)
static int32_t thrift_protocol_read_uuid_t(ThriftProtocol *protocol, ct_uuid_t *value, int *error)
static int32_t thrift_protocol_write_field_end(ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_write_u16(ThriftProtocol *protocol, const u_int16_t value, int *error)
static int32_t thrift_protocol_write_double(ThriftProtocol *protocol, const double value, int *error)
ThriftMessageType
ThriftType
int32_t thrift_protocol_skip(ThriftProtocol *protocol, ThriftType type, int *error)
static int32_t thrift_protocol_write_xml(ThriftProtocol *protocol, const char *str, int *error)
static int32_t thrift_protocol_write_struct_begin(ThriftProtocol *protocol, const char *name, int *error)
ThriftProtocolError
int32_t(* read_double)(struct _ThriftProtocol *protocol, double *value, int *error)
static int32_t thrift_protocol_write_string(ThriftProtocol *protocol, const char *str, int *error)
int32_t(* read_sandesh_end)(struct _ThriftProtocol *protocol, int *error)
int32_t(* read_list_begin)(struct _ThriftProtocol *protocol, ThriftType *element_type, u_int32_t *size, int *error)
static int32_t thrift_protocol_read_byte(ThriftProtocol *protocol, int8_t *value, int *error)
int32_t(* write_xml)(struct _ThriftProtocol *protocol, const char *str, int *error)
static ThriftProtocolType thrift_protocol_get_type(ThriftProtocol *protocol)
int32_t(* read_string)(struct _ThriftProtocol *protocol, char **str, int *error)
int32_t(* read_xml)(struct _ThriftProtocol *protocol, char **str, int *error)
int32_t(* write_i32)(struct _ThriftProtocol *protocol, const int32_t value, int *error)
static int32_t thrift_protocol_write_i32(ThriftProtocol *protocol, const int32_t value, int *error)
int32_t(* write_field_begin)(struct _ThriftProtocol *protocol, const char *name, const ThriftType field_type, const int16_t field_id, int *error)
ThriftProtocolType ptype
static int32_t thrift_protocol_write_u32(ThriftProtocol *protocol, const u_int32_t value, int *error)
int32_t(* read_field_end)(struct _ThriftProtocol *protocol, int *error)
int32_t(* write_i16)(struct _ThriftProtocol *protocol, const int16_t value, int *error)
int32_t(* read_u16)(struct _ThriftProtocol *protocol, u_int16_t *value, int *error)
static int32_t thrift_protocol_read_struct_begin(ThriftProtocol *protocol, char **name, int *error)
int32_t(* write_u64)(struct _ThriftProtocol *protocol, const u_int64_t value, int *error)
static int32_t thrift_protocol_write_ipv4(ThriftProtocol *protocol, const u_int32_t value, int *error)
static int32_t thrift_protocol_read_i16(ThriftProtocol *protocol, int16_t *value, int *error)
static int32_t thrift_protocol_read_u64(ThriftProtocol *protocol, u_int64_t *value, int *error)
int32_t(* write_ipv4)(struct _ThriftProtocol *protocol, const u_int32_t value, int *error)
uint8_t type
Definition: load_balance.h:109
void thrift_protocol_init(ThriftProtocol *protocol, ThriftProtocolType ptype, ThriftTransport *transport)
static int32_t thrift_protocol_write_byte(ThriftProtocol *protocol, const int8_t value, int *error)
int32_t(* write_sandesh_begin)(struct _ThriftProtocol *protocol, const char *name, int *error)
int32_t(* write_list_begin)(struct _ThriftProtocol *protocol, const ThriftType element_type, const u_int32_t size, int *error)
int32_t(* read_i32)(struct _ThriftProtocol *protocol, int32_t *value, int *error)
int32_t(* write_struct_begin)(struct _ThriftProtocol *protocol, const char *name, int *error)
int32_t(* read_byte)(struct _ThriftProtocol *protocol, int8_t *value, int *error)
static int32_t thrift_protocol_read_field_begin(ThriftProtocol *protocol, char **name, ThriftType *field_type, int16_t *field_id, int *error)
static int32_t thrift_protocol_read_list_begin(ThriftProtocol *protocol, ThriftType *element_type, u_int32_t *size, int *error)
static int32_t thrift_protocol_read_u16(ThriftProtocol *protocol, u_int16_t *value, int *error)
static int32_t thrift_protocol_read_i32(ThriftProtocol *protocol, int32_t *value, int *error)
int32_t(* write_double)(struct _ThriftProtocol *protocol, const double value, int *error)
static int32_t thrift_protocol_read_double(ThriftProtocol *protocol, double *value, int *error)
ThriftProtocolType
int32_t(* write_uuid_t)(struct _ThriftProtocol *protocol, const ct_uuid_t value, int *error)
static int32_t thrift_protocol_read_list_end(ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_read_ipaddr(ThriftProtocol *protocol, ipaddr_t *value, int *error)
static int32_t thrift_protocol_write_field_begin(ThriftProtocol *protocol, const char *name, const ThriftType field_type, const int16_t field_id, int *error)
static int32_t thrift_protocol_write_sandesh_begin(ThriftProtocol *protocol, const char *name, int *error)
int32_t(* read_i16)(struct _ThriftProtocol *protocol, int16_t *value, int *error)
static int32_t thrift_protocol_write_list_begin(ThriftProtocol *protocol, const ThriftType element_type, const u_int32_t size, int *error)
static int32_t thrift_protocol_read_u32(ThriftProtocol *protocol, u_int32_t *value, int *error)
static int32_t thrift_protocol_read_i64(ThriftProtocol *protocol, int64_t *value, int *error)
int32_t(* read_uuid_t)(struct _ThriftProtocol *protocol, ct_uuid_t *value, int *error)
static int32_t thrift_protocol_read_struct_end(ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_write_uuid_t(ThriftProtocol *protocol, const ct_uuid_t value, int *error)
static int32_t thrift_protocol_write_struct_end(ThriftProtocol *protocol, int *error)
int32_t(* read_struct_begin)(struct _ThriftProtocol *protocol, char **name, int *error)
int32_t(* read_bool)(struct _ThriftProtocol *protocol, u_int8_t *value, int *error)
static int32_t thrift_protocol_write_i64(ThriftProtocol *protocol, const int64_t value, int *error)
static int32_t thrift_protocol_write_sandesh_end(ThriftProtocol *protocol, int *error)
int32_t(* write_u32)(struct _ThriftProtocol *protocol, const u_int32_t value, int *error)
int32_t(* write_binary)(struct _ThriftProtocol *protocol, const void *buf, const u_int32_t len, int *error)
int32_t(* write_u16)(struct _ThriftProtocol *protocol, const u_int16_t value, int *error)
int32_t(* read_ipaddr)(struct _ThriftProtocol *protocol, ipaddr_t *value, int *error)
int32_t(* write_struct_end)(struct _ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_write_i16(ThriftProtocol *protocol, const int16_t value, int *error)
int32_t(* write_byte)(struct _ThriftProtocol *protocol, const int8_t value, int *error)
static int32_t thrift_protocol_read_binary(ThriftProtocol *protocol, void **buf, u_int32_t *len, int *error)
static int32_t thrift_protocol_read_bool(ThriftProtocol *protocol, u_int8_t *value, int *error)
int32_t(* write_field_end)(struct _ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_write_bool(ThriftProtocol *protocol, const u_int8_t value, int *error)
int32_t(* write_bool)(struct _ThriftProtocol *protocol, const u_int8_t value, int *error)
int32_t(* read_u32)(struct _ThriftProtocol *protocol, u_int32_t *value, int *error)
static int32_t thrift_protocol_write_field_stop(ThriftProtocol *protocol, int *error)
int32_t(* read_list_end)(struct _ThriftProtocol *protocol, int *error)
int32_t(* write_ipaddr)(struct _ThriftProtocol *protocol, const ipaddr_t *value, int *error)
int32_t(* read_field_begin)(struct _ThriftProtocol *protocol, char **name, ThriftType *field_type, int16_t *field_id, int *error)
static int32_t thrift_protocol_read_field_end(ThriftProtocol *protocol, int *error)
int32_t(* read_ipv4)(struct _ThriftProtocol *protocol, u_int32_t *value, int *error)
int32_t(* write_field_stop)(struct _ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_write_binary(ThriftProtocol *protocol, const void *buf, const u_int32_t len, int *error)
int32_t(* read_u64)(struct _ThriftProtocol *protocol, u_int64_t *value, int *error)
static int32_t thrift_protocol_read_sandesh_end(ThriftProtocol *protocol, int *error)
int32_t(* write_list_end)(struct _ThriftProtocol *protocol, int *error)
static int32_t thrift_protocol_read_sandesh_begin(ThriftProtocol *protocol, char **name, int *error)
static int32_t thrift_protocol_read_xml(ThriftProtocol *protocol, char **str, int *error)
int32_t(* write_i64)(struct _ThriftProtocol *protocol, const int64_t value, int *error)
static int32_t thrift_protocol_write_ipaddr(ThriftProtocol *protocol, const ipaddr_t *value, int *error)