OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
{
22
TAG_SANDESH
,
23
TAG_FIELD
,
24
TAG_LIST
,
25
TAG_MAX
,
26
}
tag_type_t
;
27
28
typedef
struct
{
29
char
stack[
MAX_TAG_STACK_SIZE
][
MAX_XML_TAG_SIZE
];
30
int
tos
;
31
}
tag_stack_t
;
32
33
typedef
struct
{
34
/* Must be the first element */
35
ThriftProtocol
proto
;
36
/* Private data */
37
tag_stack_t
tag_stacks[
TAG_MAX
];
38
}
ThriftXMLProtocol
;
39
40
void
thrift_xml_protocol_init
(
ThriftProtocol
*protocol);
41
42
#endif
43
44
#ifdef __cplusplus
45
}
46
#endif
47
48
#endif
/* _THRIFT_XML_PROTOCOL_H */
TAG_LIST
Definition:
thrift_xml_protocol.h:24
tag_stack_t
Definition:
thrift_xml_protocol.h:28
TAG_SANDESH
Definition:
thrift_xml_protocol.h:22
TAG_FIELD
Definition:
thrift_xml_protocol.h:23
MAX_TAG_STACK_SIZE
#define MAX_TAG_STACK_SIZE
Definition:
thrift_xml_protocol.h:19
tag_type_t
tag_type_t
Definition:
thrift_xml_protocol.h:21
MAX_XML_TAG_SIZE
#define MAX_XML_TAG_SIZE
Definition:
thrift_xml_protocol.h:18
_ThriftProtocol
Definition:
thrift_protocol.h:88
ThriftXMLProtocol::proto
ThriftProtocol proto
Definition:
thrift_xml_protocol.h:35
tag_stack_t::tos
int tos
Definition:
thrift_xml_protocol.h:30
thrift_xml_protocol_init
void thrift_xml_protocol_init(ThriftProtocol *protocol)
TAG_MAX
Definition:
thrift_xml_protocol.h:25
ThriftXMLProtocol
Definition:
thrift_xml_protocol.h:33
contrail
src
contrail-common
sandesh
library
c
protocol
thrift_xml_protocol.h
Generated by
1.8.5