struct name cleanup in preparation for AST + warning removal
[babeltrace.git] / formats / ctf / metadata / ctf-ast.h
CommitLineData
8b9d5b5e
MD
1#ifndef _CTF_PARSER_H
2#define _CTF_PARSER_H
3
4#include <helpers/list.h>
34d3acc4
MD
5#include <stdio.h>
6#include <glib.h>
7
8// the parameter name (of the reentrant 'yyparse' function)
9// data is a pointer to a 'SParserParam' structure
10//#define YYPARSE_PARAM scanner
11
12// the argument for the 'yylex' function
13#define YYLEX_PARAM ((struct ctf_scanner *) scanner)->scanner
14
15struct ctf_node;
16struct ctf_parser;
8b9d5b5e
MD
17
18enum node_type {
19 NODE_UNKNOWN,
20 NODE_ROOT,
21 NODE_EVENT,
22 NODE_STREAM,
23 NODE_TYPE,
24 NODE_TRACE,
25
26 NR_NODE_TYPES,
27};
28
8b9d5b5e
MD
29struct ctf_node {
30 enum node_type type;
31 char *str;
32 long long ll;
33 struct ctf_node *parent;
34 char *ident;
35 struct cds_list_head siblings;
36 struct cds_list_head children;
37 struct cds_list_head gc;
38};
39
34d3acc4
MD
40struct ctf_ast {
41 struct ctf_node root;
42};
8b9d5b5e
MD
43
44#endif /* _CTF_PARSER_H */
This page took 0.032977 seconds and 4 git commands to generate.