Change behaviour of stream-intersection with multiple traces
[babeltrace.git] / include / babeltrace / format-internal.h
index 281fd1d99a8505f61b6a3f088b2d1f35c2e1586d..78f2fd552c8fdf3d6a05ad510b2996321bc8e940 100644 (file)
@@ -30,6 +30,9 @@
  */
 
 #include <limits.h>
+#include <babeltrace/context-internal.h>
+#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/ctf/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -38,8 +41,25 @@ extern "C" {
 /* Parent trace descriptor */
 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
This page took 0.023622 seconds and 4 git commands to generate.