OpenSDN source code
thrift_xml_protocol.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019, Juniper Networks Inc.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef _THRIFT_XML_PROTOCOL_H
7 #define _THRIFT_XML_PROTOCOL_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #ifndef __KERNEL__
14 
15 #define TRUE 1
16 #define FALSE 0
17 
18 #define MAX_XML_BUFFER_SIZE 256
19 #define MAX_XML_TAG_SIZE 128
20 #define MAX_TAG_STACK_SIZE 100
21 
22 typedef enum {
27 } tag_type_t;
28 
29 typedef struct {
31  int tos;
32 } tag_stack_t;
33 
34 typedef struct {
35  /* Must be the first element */
37  /* Private data */
38  tag_stack_t tag_stacks[TAG_MAX];
40 
42 
43 #endif
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* _THRIFT_XML_PROTOCOL_H */
ThriftProtocol proto
@ TAG_FIELD
@ TAG_MAX
@ TAG_SANDESH
@ TAG_LIST
#define MAX_XML_TAG_SIZE
#define MAX_TAG_STACK_SIZE
void thrift_xml_protocol_init(ThriftProtocol *protocol)