X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-ast.h;fp=formats%2Fctf%2Fmetadata%2Fctf-ast.h;h=2ba6e860f4d7c920be57e6fc6f90626cb841e5a8;hp=93bce7d82860be6ef492fc650d1866a605cee79a;hb=0c880b0af719e4d58ccebe61acdd0e77a4479bfd;hpb=a7dd15ff1b8b60bd1defe71ce536464a050b028e diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index 93bce7d8..2ba6e860 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -73,6 +73,14 @@ struct ctf_node { struct bt_list_head siblings; struct bt_list_head tmp_head; unsigned int lineno; + /* + * We mark nodes visited in the generate-io-struct phase (last + * phase). We only mark the 1-depth level nodes as visited + * (never the root node, and not their sub-nodes). This allows + * skipping already visited nodes when doing incremental + * metadata append. + */ + int visited; enum node_type type; union {