print_state(stream),
stream->last_returned_inactivity_timestamp,
stream->current_inactivity_timestamp);
- bt_object_put_ref(port);
+ bt_port_put_ref(port);
}
BT_HIDDEN
component = bt_component_from_private(lttng_live->private_component);
graph = bt_component_get_graph(component);
ret = bt_graph_is_canceled(graph);
- bt_object_put_ref(graph);
- bt_object_put_ref(component);
+ bt_graph_put_ref(graph);
+ bt_component_put_ref(component);
return ret;
}
if (nr_ports < 0) {
return -1;
}
- BT_OBJECT_PUT_REF_AND_RESET(component);
+ BT_COMPONENT_PUT_REF_AND_RESET(component);
if (nr_ports == 1) {
enum bt_component_status status;
retval = bt_trace_set_is_static(trace->trace);
BT_ASSERT(!retval);
- BT_OBJECT_PUT_REF_AND_RESET(trace->trace);
+ BT_TRACE_PUT_REF_AND_RESET(trace->trace);
}
lttng_live_metadata_fini(trace);
BT_OBJECT_PUT_REF_AND_RESET(trace->cc_prio_map);
*notification = notif;
end:
bt_object_put_ref(clock_value);
- bt_object_put_ref(clock_class);
+ bt_clock_class_put_ref(clock_class);
return ret;
error:
ret = BT_LTTNG_LIVE_ITERATOR_STATUS_ERROR;
- bt_object_put_ref(notif);
+ bt_notification_put_ref(notif);
goto end;
}
lttng_live_stream->current_inactivity_timestamp;
end:
bt_object_put_ref(clock_value);
- bt_object_put_ref(clock_class);
+ bt_clock_class_put_ref(clock_class);
return ret;
}
if (viewer_connection) {
bt_live_viewer_connection_destroy(viewer_connection);
}
- BT_OBJECT_PUT_REF_AND_RESET(url_value);
+ BT_VALUE_PUT_REF_AND_RESET(url_value);
return query_ret;
}
if (!lttng_live->url) {
goto error;
}
- BT_OBJECT_PUT_REF_AND_RESET(value);
+ BT_VALUE_PUT_REF_AND_RESET(value);
lttng_live->viewer_connection =
bt_live_viewer_connection_create(lttng_live->url->str, lttng_live);
if (!lttng_live->viewer_connection) {
const struct bt_port *self_port = bt_port_from_private(self_private_port);
other_component = bt_port_get_component(other_port);
- bt_object_put_ref(other_component); /* weak */
+ bt_component_put_ref(other_component); /* weak */
if (!lttng_live->downstream_component) {
lttng_live->downstream_component = other_component;
goto end;
}
end:
- bt_object_put_ref(self_port);
+ bt_port_put_ref(self_port);
return status;
}