struct debug_info *debug_info = NULL;
bt_value *field = NULL;
const char *str_value;
- enum bt_value_status ret;
+ bt_value_status ret;
field = bt_trace_get_environment_field_value_by_name(writer_trace,
"domain");
int int_ret;
const bt_stream_class *stream_class = NULL,
*writer_stream_class = NULL;
- enum bt_component_status ret;
+ bt_component_status ret;
stream_class = bt_stream_get_class(stream);
BT_ASSERT(stream_class);
const bt_stream_class *writer_stream_class = NULL;
const bt_trace *trace, *writer_trace = NULL;
struct debug_info_trace *di_trace;
- enum bt_component_status ret;
+ bt_component_status ret;
int int_ret;
trace = bt_stream_class_get_trace(stream_class);
goto error;
}
/*
- * Take the ref on the stream and keep it until the notification
+ * Take the ref on the stream and keep it until the message
* is created.
*/
bt_stream_get_ref(writer_stream);
}
static
-int set_event_clock_value(FILE *err, const bt_event *event,
+int set_event_clock_snapshot(FILE *err, const bt_event *event,
const bt_event *writer_event)
{
const bt_clock_class *clock_class = NULL;
- bt_clock_value *clock_value = NULL;
+ bt_clock_snapshot *clock_snapshot = NULL;
int ret = 0;
clock_class = event_get_clock_class(err, event);
goto end;
}
- clock_value = bt_event_get_clock_value(event, clock_class);
- if (!clock_value) {
+ clock_snapshot = bt_event_get_clock_snapshot(event, clock_class);
+ if (!clock_snapshot) {
ret = 0;
goto end;
}
* We share the same clocks, so we can assign the clock value to the
* writer event.
*/
- ret = bt_event_set_clock_value(writer_event, clock_value);
+ ret = bt_event_set_clock_snapshot(writer_event, clock_snapshot);
if (ret) {
BT_LOGE_STR("Failed to set clock value.");
goto error;
ret = -1;
end:
bt_clock_class_put_ref(clock_class);
- bt_object_put_ref(clock_value);
+ bt_object_put_ref(clock_snapshot);
return ret;
}
goto error;
}
- ret = set_event_clock_value(err, event, writer_event);
+ ret = set_event_clock_snapshot(err, event, writer_event);
if (ret) {
BT_LOGE_STR("Failed to set clock value.");
goto error;