X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fformat-internal.h;h=78f2fd552c8fdf3d6a05ad510b2996321bc8e940;hp=589b68a3b5c2e5978540aa31905263709f5b0cdb;hb=837b0013ab8a3851ee975f33a10726289afa7369;hpb=4d08698162f805114213c16b95a4d8d9c3fd52ef diff --git a/include/babeltrace/format-internal.h b/include/babeltrace/format-internal.h index 589b68a3..78f2fd55 100644 --- a/include/babeltrace/format-internal.h +++ b/include/babeltrace/format-internal.h @@ -31,6 +31,8 @@ #include #include +#include +#include #ifdef __cplusplus extern "C" { @@ -41,8 +43,23 @@ struct bt_trace_descriptor { char path[PATH_MAX]; /* trace path */ struct bt_context *ctx; struct bt_trace_handle *handle; + struct trace_collection *collection; /* Container of this trace */ + GHashTable *clocks; + struct ctf_clock *single_clock; /* currently supports only one clock */ + bool interval_set; + struct packet_index_time interval_real; /* Interval of events to consider */ }; +static inline void init_trace_descriptor(struct bt_trace_descriptor *td) { + if (!td) { + return; + } + + td->interval_real.timestamp_begin = INT64_MIN; + td->interval_real.timestamp_end = INT64_MAX; + td->interval_set = false; +} + #ifdef __cplusplus } #endif