#include <babeltrace2/babeltrace.h>
#include "common/common.h"
#include "common/assert.h"
-#include "compat/uuid.h"
+#include "common/uuid.h"
#include <glib.h>
#include <stdint.h>
#include <string.h>
const bt_clock_class *default_clock_class;
GString *default_clock_class_name;
+ bool has_packets;
bool packets_have_ts_begin;
bool packets_have_ts_end;
bool has_discarded_events;
/* Weak */
const bt_trace_class *ir_tc;
- unsigned char uuid[BABELTRACE_UUID_LEN];
+ bt_uuid_t uuid;
/* Array of `struct fs_sink_ctf_stream_class *` (owned by this) */
GPtrArray *stream_classes;
sc->event_classes_from_ir = g_hash_table_new(g_direct_hash,
g_direct_equal);
BT_ASSERT(sc->event_classes_from_ir);
+ sc->has_packets = bt_stream_class_supports_packets(ir_sc);
sc->packets_have_ts_begin =
bt_stream_class_packets_have_beginning_default_clock_snapshot(
ir_sc);
BT_ASSERT(trace);
- if (bt_uuid_generate(trace->uuid)) {
- fs_sink_ctf_trace_destroy(trace);
- trace = NULL;
- goto end;
- }
+ bt_uuid_generate(trace->uuid);
trace->ir_trace = ir_trace;
trace->ir_tc = bt_trace_borrow_class_const(ir_trace);
(GDestroyNotify) fs_sink_ctf_stream_class_destroy);
BT_ASSERT(trace->stream_classes);
-end:
return trace;
}