static inline
int find_mapped_clock_class(struct ctf_field_class *fc,
- struct bt_clock_class **clock_class)
+ bt_clock_class **clock_class)
{
int ret = 0;
uint64_t i;
struct ctf_stream_class *stream_class)
{
int ret = 0;
- struct bt_clock_class *clock_class = stream_class->default_clock_class;
+ bt_clock_class *clock_class =
+ stream_class->default_clock_class;
uint64_t i;
ret = find_mapped_clock_class(stream_class->packet_context_fc,
}
if (!stream_class->default_clock_class) {
- stream_class->default_clock_class = bt_get(clock_class);
+ stream_class->default_clock_class = clock_class;
+ bt_clock_class_get_ref(stream_class->default_clock_class);
}
end:
{
uint64_t i;
int ret = 0;
- struct bt_clock_class *clock_class = NULL;
+ bt_clock_class *clock_class = NULL;
ret = find_mapped_clock_class(ctf_tc->packet_header_fc,
&clock_class);