Debian Codegraph @

crt/aws-c-common/include/aws/common/private/xml_parser_impl.h

raw symbols SCIP
1 #ifndef AWS_COMMON_PRIVATE_XML_PARSER_IMPL_H
2 #define AWS_COMMON_PRIVATE_XML_PARSER_IMPL_H
3
4 /**
5 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6 * SPDX-License-Identifier: Apache-2.0.
7 */
8
9 #include <aws/common/xml_parser.h>
10
11 struct aws_xml_node {
12 struct aws_xml_parser *parser;
13 struct aws_byte_cursor name;
14 struct aws_array_list attributes;
15 struct aws_byte_cursor doc_at_body;
16 bool processed;
17 bool is_empty;
18 };
19
20 struct aws_xml_parser {
21 struct aws_allocator *allocator;
22 struct aws_byte_cursor doc;
23 struct aws_array_list callback_stack;
24 /* maximum of 10 attributes */
25 struct aws_xml_attribute attributes[10];
26 /* splits on attributes and node name, so (10 attributes + 1 name) */
27 struct aws_byte_cursor split_scratch[11];
28 size_t max_depth;
29 int error;
30 };
31
32 #endif /* AWS_COMMON_PRIVATE_XML_PARSER_IMPL_H */