Commit | Line | Data |
---|---|---|
8b9d5b5e MD |
1 | #ifndef _CTF_PARSER_H |
2 | #define _CTF_PARSER_H | |
3 | ||
4 | #include <helpers/list.h> | |
5 | ||
6 | enum node_type { | |
7 | NODE_UNKNOWN, | |
8 | NODE_ROOT, | |
9 | NODE_EVENT, | |
10 | NODE_STREAM, | |
11 | NODE_TYPE, | |
12 | NODE_TRACE, | |
13 | ||
14 | NR_NODE_TYPES, | |
15 | }; | |
16 | ||
17 | struct ctf_node; | |
18 | ||
19 | struct ctf_node { | |
20 | enum node_type type; | |
21 | char *str; | |
22 | long long ll; | |
23 | struct ctf_node *parent; | |
24 | char *ident; | |
25 | struct cds_list_head siblings; | |
26 | struct cds_list_head children; | |
27 | struct cds_list_head gc; | |
28 | }; | |
29 | ||
30 | int is_type(const char *id); | |
31 | ||
32 | #endif /* _CTF_PARSER_H */ |