- struct declaration_scope *scope; /* root scope */
- GArray *streams; /* Array of struct ctf_stream */
+ struct trace_descriptor parent;
+ /* root scope */
+ struct declaration_scope *root_declaration_scope;
+
+ struct declaration_scope *declaration_scope;
+ /* innermost definition scope. to be used as parent of stream. */
+ struct definition_scope *definition_scope;
+ GPtrArray *streams; /* Array of struct ctf_stream_class pointers */
+ struct ctf_file_stream metadata;
+
+ /* Declarations only used when parsing */
+ struct declaration_struct *packet_header_decl;
+
+ /* Definitions used afterward */
+ struct definition_struct *packet_header;