#include <babeltrace/types.h>
#include <babeltrace/format.h>
+#include <babeltrace/format-internal.h>
#include <babeltrace/ctf/types.h>
#include <sys/types.h>
#include <dirent.h>
struct ctf_trace {
struct bt_trace_descriptor parent;
+
/* root scope */
struct declaration_scope *root_declaration_scope;
struct definition_scope *definition_scope;
GPtrArray *streams; /* Array of struct ctf_stream_declaration pointers */
struct ctf_stream_definition *metadata;
+ char *metadata_string;
+ int metadata_packetized;
GHashTable *clocks;
GHashTable *callsites;
struct ctf_clock *single_clock; /* currently supports only one clock */
- struct trace_collection *collection; /* Container of this trace */
GPtrArray *event_declarations; /* Array of all the struct bt_ctf_event_decl */
struct declaration_struct *packet_header_decl;
/* Heap of streams, ordered to always get the lowest timestamp */
struct ptr_heap *stream_heap;
- char path[PATH_MAX];
-
- struct bt_context *ctx;
- struct bt_trace_handle *handle;
};
#define CTF_STREAM_SET_FIELD(ctf_stream, field) \