OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
thrift_xml_protocol.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019, Juniper Networks Inc.
3  */
4 
5 #ifndef _THRIFT_XML_PROTOCOL_H
6 #define _THRIFT_XML_PROTOCOL_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #ifndef __KERNEL__
13 
14 #define TRUE 1
15 #define FALSE 0
16 
17 #define MAX_XML_BUFFER_SIZE 256
18 #define MAX_XML_TAG_SIZE 128
19 #define MAX_TAG_STACK_SIZE 100
20 
21 typedef enum {
26 } tag_type_t;
27 
28 typedef struct {
30  int tos;
31 } tag_stack_t;
32 
33 typedef struct {
34  /* Must be the first element */
36  /* Private data */
37  tag_stack_t tag_stacks[TAG_MAX];
39 
41 
42 #endif
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* _THRIFT_XML_PROTOCOL_H */
#define MAX_TAG_STACK_SIZE
#define MAX_XML_TAG_SIZE
ThriftProtocol proto
void thrift_xml_protocol_init(ThriftProtocol *protocol)