{
destroy_pretty_data(
bt_self_component_get_data(
- bt_self_component_sink_borrow_self_component(comp)));
+ bt_self_component_sink_as_self_component(comp)));
}
static
struct pretty_component *pretty;
pretty = bt_self_component_get_data(
- bt_self_component_sink_borrow_self_component(comp));
+ bt_self_component_sink_as_self_component(comp));
BT_ASSERT(pretty);
BT_ASSERT(!pretty->iterator);
pretty->iterator = bt_self_component_port_input_notification_iterator_create(
bt_notification_array notifs;
struct bt_self_component_port_input_notification_iterator *it;
struct pretty_component *pretty = bt_self_component_get_data(
- bt_self_component_sink_borrow_self_component(comp));
+ bt_self_component_sink_as_self_component(comp));
enum bt_notification_iterator_status it_ret;
uint64_t count = 0;
uint64_t i = 0;
struct pretty_component *pretty = data;
if (!bt_value_map_has_entry(
- bt_private_value_borrow_value(pretty->plugin_opt_map),
+ bt_private_value_as_value(pretty->plugin_opt_map),
key)) {
fprintf(pretty->err,
"[warning] Parameter \"%s\" unknown to \"text.pretty\" sink component\n", key);
set_use_colors(pretty);
bt_self_component_set_data(
- bt_self_component_sink_borrow_self_component(comp), pretty);
+ bt_self_component_sink_as_self_component(comp), pretty);
init_stream_packet_context_quarks();
end: