X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-ast.h;h=3d86f99c84cb7c7a5f7bf4e9895bddddfe4273dc;hb=1934b94f75b4e9804e92d8c62de21dca5a4322d6;hp=1252272acec3b6c42a022f67d9802fd80f48a1ef;hpb=48a01768126d75c638babf8b0f9a62106daf67cb;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index 1252272a..3d86f99c 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -2,9 +2,9 @@ #define _CTF_PARSER_H #include -#include #include #include +#include // the parameter name (of the reentrant 'yyparse' function) // data is a pointer to a 'SParserParam' structure @@ -194,7 +194,10 @@ struct ctf_node { } string; struct { char *id; - /* range list or single value node */ + /* + * Range list or single value node. Contains unary + * expressions. + */ struct cds_list_head values; } enumerator; struct { @@ -226,6 +229,10 @@ struct ctf_ast { struct cds_list_head allocated_nodes; }; +const char *node_type(struct ctf_node *node); + int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node); +int ctf_visitor_semantic_check(FILE *fd, int depth, struct ctf_node *node); +int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node); #endif /* _CTF_PARSER_H */